├── .circleci └── config.yml ├── .coveragerc ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── hyperbolic_tessellation ├── geometry.py ├── geometry_test.py ├── hyperbolic.py ├── hyperbolic_test.py ├── svg │ ├── rotated_triangle.svg │ ├── rotated_triangle_vertex.svg │ ├── tessellation_3_7.svg │ ├── tessellation_4_5.svg │ ├── tessellation_4_6.svg │ ├── tessellation_4_7.svg │ ├── tessellation_5_4.svg │ ├── tessellation_5_5.svg │ ├── tessellation_5_6.svg │ ├── tessellation_5_7.svg │ ├── tessellation_6_4.svg │ ├── tessellation_6_5.svg │ ├── tessellation_6_6.svg │ ├── tessellation_6_7.svg │ ├── tessellation_7_3.svg │ ├── tessellation_7_4.svg │ ├── tessellation_7_5.svg │ ├── tessellation_7_6.svg │ └── tessellation_7_7.svg ├── tessellation.py ├── tessellation_integration_test.py ├── tessellation_test.py └── testing.py ├── neural_network ├── mnist │ └── mnist.tar.gz ├── mnist_integration_test.py ├── mnist_network.py ├── neural_network.py ├── neural_network_integration_test.py └── neural_network_test.py ├── newtons_method ├── newton.py └── newton_test.py ├── planar_5_coloring ├── color.py └── color_test.py ├── requirements.txt ├── secret_sharing ├── examples.py ├── interpolate.py ├── interpolate_test.py ├── plot_collisions.py ├── polynomial.py ├── polynomial_test.py └── polynomials-perfect-secrecy.svg ├── singular_value_decomposition ├── README.md ├── all_stories.json ├── data │ ├── README.md │ ├── __init__.py │ ├── cleaner.py │ ├── cnn-stories │ │ ├── story0.txt │ │ ├── story1.txt │ │ ├── story10.txt │ │ ├── story100.txt │ │ ├── story101.txt │ │ ├── story102.txt │ │ ├── story103.txt │ │ ├── story104.txt │ │ ├── story105.txt │ │ ├── story106.txt │ │ ├── story107.txt │ │ ├── story108.txt │ │ ├── story109.txt │ │ ├── story11.txt │ │ ├── story110.txt │ │ ├── story112.txt │ │ ├── story113.txt │ │ ├── story114.txt │ │ ├── story115.txt │ │ ├── story116.txt │ │ ├── story117.txt │ │ ├── story118.txt │ │ ├── story119.txt │ │ ├── story12.txt │ │ ├── story120.txt │ │ ├── story121.txt │ │ ├── story122.txt │ │ ├── story123.txt │ │ ├── story124.txt │ │ ├── story125.txt │ │ ├── story126.txt │ │ ├── story127.txt │ │ ├── story128.txt │ │ ├── story129.txt │ │ ├── story13.txt │ │ ├── story130.txt │ │ ├── story131.txt │ │ ├── story132.txt │ │ ├── story133.txt │ │ ├── story134.txt │ │ ├── story135.txt │ │ ├── story136.txt │ │ ├── story137.txt │ │ ├── story138.txt │ │ ├── story139.txt │ │ ├── story14.txt │ │ ├── story140.txt │ │ ├── story141.txt │ │ ├── story142.txt │ │ ├── story143.txt │ │ ├── story144.txt │ │ ├── story145.txt │ │ ├── story146.txt │ │ ├── story147.txt │ │ ├── story148.txt │ │ ├── story149.txt │ │ ├── story15.txt │ │ ├── story150.txt │ │ ├── story151.txt │ │ ├── story152.txt │ │ ├── story153.txt │ │ ├── story154.txt │ │ ├── story155.txt │ │ ├── story156.txt │ │ ├── story157.txt │ │ ├── story158.txt │ │ ├── story159.txt │ │ ├── story16.txt │ │ ├── story160.txt │ │ ├── story161.txt │ │ ├── story162.txt │ │ ├── story163.txt │ │ ├── story164.txt │ │ ├── story165.txt │ │ ├── story166.txt │ │ ├── story167.txt │ │ ├── story168.txt │ │ ├── story169.txt │ │ ├── story17.txt │ │ ├── story170.txt │ │ ├── story171.txt │ │ ├── story172.txt │ │ ├── story173.txt │ │ ├── story174.txt │ │ ├── story175.txt │ │ ├── story176.txt │ │ ├── story177.txt │ │ ├── story178.txt │ │ ├── story179.txt │ │ ├── story18.txt │ │ ├── story180.txt │ │ ├── story181.txt │ │ ├── story182.txt │ │ ├── story183.txt │ │ ├── story184.txt │ │ ├── story186.txt │ │ ├── story187.txt │ │ ├── story188.txt │ │ ├── story189.txt │ │ ├── story19.txt │ │ ├── story190.txt │ │ ├── story191.txt │ │ ├── story192.txt │ │ ├── story193.txt │ │ ├── story194.txt │ │ ├── story195.txt │ │ ├── story196.txt │ │ ├── story197.txt │ │ ├── story198.txt │ │ ├── story199.txt │ │ ├── story2.txt │ │ ├── story20.txt │ │ ├── story200.txt │ │ ├── story201.txt │ │ ├── story202.txt │ │ ├── story203.txt │ │ ├── story204.txt │ │ ├── story205.txt │ │ ├── story206.txt │ │ ├── story207.txt │ │ ├── story208.txt │ │ ├── story209.txt │ │ ├── story21.txt │ │ ├── story210.txt │ │ ├── story211.txt │ │ ├── story212.txt │ │ ├── story213.txt │ │ ├── story214.txt │ │ ├── story215.txt │ │ ├── story216.txt │ │ ├── story217.txt │ │ ├── story218.txt │ │ ├── story219.txt │ │ ├── story22.txt │ │ ├── story220.txt │ │ ├── story221.txt │ │ ├── story222.txt │ │ ├── story223.txt │ │ ├── story224.txt │ │ ├── story225.txt │ │ ├── story226.txt │ │ ├── story227.txt │ │ ├── story228.txt │ │ ├── story229.txt │ │ ├── story23.txt │ │ ├── story230.txt │ │ ├── story231.txt │ │ ├── story232.txt │ │ ├── story233.txt │ │ ├── story234.txt │ │ ├── story235.txt │ │ ├── story236.txt │ │ ├── story237.txt │ │ ├── story238.txt │ │ ├── story239.txt │ │ ├── story24.txt │ │ ├── story240.txt │ │ ├── story241.txt │ │ ├── story242.txt │ │ ├── story243.txt │ │ ├── story244.txt │ │ ├── story245.txt │ │ ├── story246.txt │ │ ├── story247.txt │ │ ├── story248.txt │ │ ├── story249.txt │ │ ├── story25.txt │ │ ├── story250.txt │ │ ├── story251.txt │ │ ├── story252.txt │ │ ├── story253.txt │ │ ├── story254.txt │ │ ├── story255.txt │ │ ├── story256.txt │ │ ├── story257.txt │ │ ├── story258.txt │ │ ├── story259.txt │ │ ├── story26.txt │ │ ├── story260.txt │ │ ├── story261.txt │ │ ├── story262.txt │ │ ├── story263.txt │ │ ├── story264.txt │ │ ├── story265.txt │ │ ├── story266.txt │ │ ├── story267.txt │ │ ├── story268.txt │ │ ├── story269.txt │ │ ├── story27.txt │ │ ├── story270.txt │ │ ├── story271.txt │ │ ├── story272.txt │ │ ├── story273.txt │ │ ├── story274.txt │ │ ├── story275.txt │ │ ├── story276.txt │ │ ├── story277.txt │ │ ├── story278.txt │ │ ├── story279.txt │ │ ├── story28.txt │ │ ├── story280.txt │ │ ├── story281.txt │ │ ├── story282.txt │ │ ├── story283.txt │ │ ├── story284.txt │ │ ├── story285.txt │ │ ├── story286.txt │ │ ├── story287.txt │ │ ├── story288.txt │ │ ├── story289.txt │ │ ├── story29.txt │ │ ├── story290.txt │ │ ├── story291.txt │ │ ├── story292.txt │ │ ├── story293.txt │ │ ├── story294.txt │ │ ├── story295.txt │ │ ├── story296.txt │ │ ├── story297.txt │ │ ├── story298.txt │ │ ├── story299.txt │ │ ├── story3.txt │ │ ├── story30.txt │ │ ├── story300.txt │ │ ├── story301.txt │ │ ├── story302.txt │ │ ├── story303.txt │ │ ├── story304.txt │ │ ├── story305.txt │ │ ├── story306.txt │ │ ├── story307.txt │ │ ├── story308.txt │ │ ├── story309.txt │ │ ├── story31.txt │ │ ├── story310.txt │ │ ├── story311.txt │ │ ├── story312.txt │ │ ├── story313.txt │ │ ├── story314.txt │ │ ├── story315.txt │ │ ├── story316.txt │ │ ├── story317.txt │ │ ├── story318.txt │ │ ├── story319.txt │ │ ├── story32.txt │ │ ├── story320.txt │ │ ├── story321.txt │ │ ├── story322.txt │ │ ├── story323.txt │ │ ├── story324.txt │ │ ├── story325.txt │ │ ├── story326.txt │ │ ├── story327.txt │ │ ├── story328.txt │ │ ├── story329.txt │ │ ├── story33.txt │ │ ├── story330.txt │ │ ├── story331.txt │ │ ├── story332.txt │ │ ├── story333.txt │ │ ├── story334.txt │ │ ├── story335.txt │ │ ├── story336.txt │ │ ├── story337.txt │ │ ├── story338.txt │ │ ├── story339.txt │ │ ├── story34.txt │ │ ├── story340.txt │ │ ├── story341.txt │ │ ├── story342.txt │ │ ├── story343.txt │ │ ├── story344.txt │ │ ├── story345.txt │ │ ├── story346.txt │ │ ├── story347.txt │ │ ├── story348.txt │ │ ├── story349.txt │ │ ├── story35.txt │ │ ├── story350.txt │ │ ├── story351.txt │ │ ├── story352.txt │ │ ├── story353.txt │ │ ├── story354.txt │ │ ├── story355.txt │ │ ├── story356.txt │ │ ├── story357.txt │ │ ├── story358.txt │ │ ├── story359.txt │ │ ├── story36.txt │ │ ├── story360.txt │ │ ├── story361.txt │ │ ├── story362.txt │ │ ├── story363.txt │ │ ├── story364.txt │ │ ├── story365.txt │ │ ├── story366.txt │ │ ├── story367.txt │ │ ├── story368.txt │ │ ├── story369.txt │ │ ├── story37.txt │ │ ├── story370.txt │ │ ├── story371.txt │ │ ├── story372.txt │ │ ├── story373.txt │ │ ├── story374.txt │ │ ├── story375.txt │ │ ├── story376.txt │ │ ├── story377.txt │ │ ├── story378.txt │ │ ├── story379.txt │ │ ├── story38.txt │ │ ├── story380.txt │ │ ├── story381.txt │ │ ├── story382.txt │ │ ├── story383.txt │ │ ├── story384.txt │ │ ├── story385.txt │ │ ├── story386.txt │ │ ├── story387.txt │ │ ├── story388.txt │ │ ├── story389.txt │ │ ├── story39.txt │ │ ├── story390.txt │ │ ├── story391.txt │ │ ├── story392.txt │ │ ├── story393.txt │ │ ├── story394.txt │ │ ├── story395.txt │ │ ├── story396.txt │ │ ├── story397.txt │ │ ├── story398.txt │ │ ├── story399.txt │ │ ├── story4.txt │ │ ├── story40.txt │ │ ├── story400.txt │ │ ├── story401.txt │ │ ├── story402.txt │ │ ├── story403.txt │ │ ├── story404.txt │ │ ├── story405.txt │ │ ├── story406.txt │ │ ├── story407.txt │ │ ├── story408.txt │ │ ├── story409.txt │ │ ├── story41.txt │ │ ├── story410.txt │ │ ├── story411.txt │ │ ├── story412.txt │ │ ├── story413.txt │ │ ├── story414.txt │ │ ├── story415.txt │ │ ├── story416.txt │ │ ├── story417.txt │ │ ├── story418.txt │ │ ├── story419.txt │ │ ├── story42.txt │ │ ├── story420.txt │ │ ├── story421.txt │ │ ├── story422.txt │ │ ├── story423.txt │ │ ├── story424.txt │ │ ├── story425.txt │ │ ├── story426.txt │ │ ├── story427.txt │ │ ├── story428.txt │ │ ├── story429.txt │ │ ├── story43.txt │ │ ├── story430.txt │ │ ├── story431.txt │ │ ├── story432.txt │ │ ├── story433.txt │ │ ├── story434.txt │ │ ├── story435.txt │ │ ├── story436.txt │ │ ├── story437.txt │ │ ├── story438.txt │ │ ├── story439.txt │ │ ├── story44.txt │ │ ├── story440.txt │ │ ├── story441.txt │ │ ├── story442.txt │ │ ├── story443.txt │ │ ├── story444.txt │ │ ├── story445.txt │ │ ├── story446.txt │ │ ├── story447.txt │ │ ├── story448.txt │ │ ├── story449.txt │ │ ├── story45.txt │ │ ├── story450.txt │ │ ├── story451.txt │ │ ├── story452.txt │ │ ├── story453.txt │ │ ├── story454.txt │ │ ├── story455.txt │ │ ├── story456.txt │ │ ├── story457.txt │ │ ├── story458.txt │ │ ├── story459.txt │ │ ├── story46.txt │ │ ├── story460.txt │ │ ├── story461.txt │ │ ├── story462.txt │ │ ├── story463.txt │ │ ├── story464.txt │ │ ├── story465.txt │ │ ├── story466.txt │ │ ├── story467.txt │ │ ├── story468.txt │ │ ├── story469.txt │ │ ├── story47.txt │ │ ├── story470.txt │ │ ├── story471.txt │ │ ├── story472.txt │ │ ├── story473.txt │ │ ├── story474.txt │ │ ├── story475.txt │ │ ├── story476.txt │ │ ├── story477.txt │ │ ├── story478.txt │ │ ├── story479.txt │ │ ├── story48.txt │ │ ├── story480.txt │ │ ├── story481.txt │ │ ├── story482.txt │ │ ├── story483.txt │ │ ├── story484.txt │ │ ├── story485.txt │ │ ├── story486.txt │ │ ├── story487.txt │ │ ├── story488.txt │ │ ├── story489.txt │ │ ├── story49.txt │ │ ├── story490.txt │ │ ├── story491.txt │ │ ├── story492.txt │ │ ├── story493.txt │ │ ├── story494.txt │ │ ├── story495.txt │ │ ├── story496.txt │ │ ├── story497.txt │ │ ├── story498.txt │ │ ├── story499.txt │ │ ├── story5.txt │ │ ├── story50.txt │ │ ├── story500.txt │ │ ├── story501.txt │ │ ├── story502.txt │ │ ├── story503.txt │ │ ├── story504.txt │ │ ├── story505.txt │ │ ├── story506.txt │ │ ├── story507.txt │ │ ├── story508.txt │ │ ├── story509.txt │ │ ├── story51.txt │ │ ├── story510.txt │ │ ├── story511.txt │ │ ├── story512.txt │ │ ├── story513.txt │ │ ├── story514.txt │ │ ├── story515.txt │ │ ├── story516.txt │ │ ├── story517.txt │ │ ├── story518.txt │ │ ├── story519.txt │ │ ├── story52.txt │ │ ├── story520.txt │ │ ├── story521.txt │ │ ├── story522.txt │ │ ├── story523.txt │ │ ├── story524.txt │ │ ├── story525.txt │ │ ├── story526.txt │ │ ├── story527.txt │ │ ├── story528.txt │ │ ├── story529.txt │ │ ├── story53.txt │ │ ├── story530.txt │ │ ├── story531.txt │ │ ├── story532.txt │ │ ├── story533.txt │ │ ├── story534.txt │ │ ├── story535.txt │ │ ├── story536.txt │ │ ├── story537.txt │ │ ├── story538.txt │ │ ├── story539.txt │ │ ├── story54.txt │ │ ├── story540.txt │ │ ├── story541.txt │ │ ├── story542.txt │ │ ├── story543.txt │ │ ├── story544.txt │ │ ├── story545.txt │ │ ├── story546.txt │ │ ├── story547.txt │ │ ├── story548.txt │ │ ├── story549.txt │ │ ├── story55.txt │ │ ├── story550.txt │ │ ├── story551.txt │ │ ├── story552.txt │ │ ├── story553.txt │ │ ├── story554.txt │ │ ├── story555.txt │ │ ├── story556.txt │ │ ├── story557.txt │ │ ├── story558.txt │ │ ├── story559.txt │ │ ├── story56.txt │ │ ├── story560.txt │ │ ├── story561.txt │ │ ├── story562.txt │ │ ├── story563.txt │ │ ├── story564.txt │ │ ├── story565.txt │ │ ├── story566.txt │ │ ├── story567.txt │ │ ├── story568.txt │ │ ├── story569.txt │ │ ├── story57.txt │ │ ├── story570.txt │ │ ├── story571.txt │ │ ├── story572.txt │ │ ├── story573.txt │ │ ├── story574.txt │ │ ├── story575.txt │ │ ├── story576.txt │ │ ├── story577.txt │ │ ├── story578.txt │ │ ├── story58.txt │ │ ├── story580.txt │ │ ├── story581.txt │ │ ├── story582.txt │ │ ├── story583.txt │ │ ├── story584.txt │ │ ├── story585.txt │ │ ├── story586.txt │ │ ├── story587.txt │ │ ├── story588.txt │ │ ├── story589.txt │ │ ├── story59.txt │ │ ├── story590.txt │ │ ├── story591.txt │ │ ├── story592.txt │ │ ├── story593.txt │ │ ├── story594.txt │ │ ├── story595.txt │ │ ├── story596.txt │ │ ├── story597.txt │ │ ├── story598.txt │ │ ├── story599.txt │ │ ├── story6.txt │ │ ├── story60.txt │ │ ├── story600.txt │ │ ├── story601.txt │ │ ├── story603.txt │ │ ├── story604.txt │ │ ├── story605.txt │ │ ├── story606.txt │ │ ├── story607.txt │ │ ├── story608.txt │ │ ├── story609.txt │ │ ├── story61.txt │ │ ├── story610.txt │ │ ├── story611.txt │ │ ├── story612.txt │ │ ├── story613.txt │ │ ├── story614.txt │ │ ├── story615.txt │ │ ├── story616.txt │ │ ├── story617.txt │ │ ├── story618.txt │ │ ├── story619.txt │ │ ├── story62.txt │ │ ├── story620.txt │ │ ├── story621.txt │ │ ├── story622.txt │ │ ├── story623.txt │ │ ├── story624.txt │ │ ├── story625.txt │ │ ├── story626.txt │ │ ├── story627.txt │ │ ├── story628.txt │ │ ├── story629.txt │ │ ├── story63.txt │ │ ├── story630.txt │ │ ├── story631.txt │ │ ├── story632.txt │ │ ├── story633.txt │ │ ├── story634.txt │ │ ├── story635.txt │ │ ├── story636.txt │ │ ├── story637.txt │ │ ├── story638.txt │ │ ├── story639.txt │ │ ├── story64.txt │ │ ├── story640.txt │ │ ├── story641.txt │ │ ├── story642.txt │ │ ├── story643.txt │ │ ├── story644.txt │ │ ├── story645.txt │ │ ├── story646.txt │ │ ├── story647.txt │ │ ├── story648.txt │ │ ├── story649.txt │ │ ├── story65.txt │ │ ├── story650.txt │ │ ├── story651.txt │ │ ├── story652.txt │ │ ├── story653.txt │ │ ├── story654.txt │ │ ├── story655.txt │ │ ├── story656.txt │ │ ├── story657.txt │ │ ├── story658.txt │ │ ├── story659.txt │ │ ├── story66.txt │ │ ├── story660.txt │ │ ├── story661.txt │ │ ├── story662.txt │ │ ├── story663.txt │ │ ├── story664.txt │ │ ├── story665.txt │ │ ├── story666.txt │ │ ├── story667.txt │ │ ├── story668.txt │ │ ├── story669.txt │ │ ├── story67.txt │ │ ├── story670.txt │ │ ├── story671.txt │ │ ├── story672.txt │ │ ├── story673.txt │ │ ├── story674.txt │ │ ├── story675.txt │ │ ├── story676.txt │ │ ├── story677.txt │ │ ├── story678.txt │ │ ├── story679.txt │ │ ├── story68.txt │ │ ├── story680.txt │ │ ├── story681.txt │ │ ├── story682.txt │ │ ├── story683.txt │ │ ├── story684.txt │ │ ├── story685.txt │ │ ├── story686.txt │ │ ├── story687.txt │ │ ├── story688.txt │ │ ├── story689.txt │ │ ├── story69.txt │ │ ├── story690.txt │ │ ├── story691.txt │ │ ├── story692.txt │ │ ├── story693.txt │ │ ├── story694.txt │ │ ├── story695.txt │ │ ├── story696.txt │ │ ├── story697.txt │ │ ├── story698.txt │ │ ├── story699.txt │ │ ├── story7.txt │ │ ├── story70.txt │ │ ├── story700.txt │ │ ├── story701.txt │ │ ├── story702.txt │ │ ├── story703.txt │ │ ├── story704.txt │ │ ├── story705.txt │ │ ├── story706.txt │ │ ├── story707.txt │ │ ├── story708.txt │ │ ├── story709.txt │ │ ├── story71.txt │ │ ├── story710.txt │ │ ├── story711.txt │ │ ├── story712.txt │ │ ├── story713.txt │ │ ├── story714.txt │ │ ├── story715.txt │ │ ├── story716.txt │ │ ├── story717.txt │ │ ├── story718.txt │ │ ├── story719.txt │ │ ├── story72.txt │ │ ├── story720.txt │ │ ├── story721.txt │ │ ├── story722.txt │ │ ├── story723.txt │ │ ├── story724.txt │ │ ├── story725.txt │ │ ├── story726.txt │ │ ├── story727.txt │ │ ├── story728.txt │ │ ├── story729.txt │ │ ├── story73.txt │ │ ├── story730.txt │ │ ├── story731.txt │ │ ├── story732.txt │ │ ├── story733.txt │ │ ├── story734.txt │ │ ├── story735.txt │ │ ├── story736.txt │ │ ├── story737.txt │ │ ├── story738.txt │ │ ├── story739.txt │ │ ├── story74.txt │ │ ├── story740.txt │ │ ├── story741.txt │ │ ├── story742.txt │ │ ├── story743.txt │ │ ├── story744.txt │ │ ├── story745.txt │ │ ├── story746.txt │ │ ├── story747.txt │ │ ├── story748.txt │ │ ├── story749.txt │ │ ├── story75.txt │ │ ├── story750.txt │ │ ├── story751.txt │ │ ├── story752.txt │ │ ├── story753.txt │ │ ├── story754.txt │ │ ├── story755.txt │ │ ├── story756.txt │ │ ├── story757.txt │ │ ├── story758.txt │ │ ├── story759.txt │ │ ├── story76.txt │ │ ├── story760.txt │ │ ├── story761.txt │ │ ├── story762.txt │ │ ├── story763.txt │ │ ├── story764.txt │ │ ├── story765.txt │ │ ├── story766.txt │ │ ├── story767.txt │ │ ├── story768.txt │ │ ├── story769.txt │ │ ├── story77.txt │ │ ├── story770.txt │ │ ├── story771.txt │ │ ├── story772.txt │ │ ├── story773.txt │ │ ├── story774.txt │ │ ├── story775.txt │ │ ├── story776.txt │ │ ├── story777.txt │ │ ├── story778.txt │ │ ├── story779.txt │ │ ├── story78.txt │ │ ├── story780.txt │ │ ├── story781.txt │ │ ├── story782.txt │ │ ├── story783.txt │ │ ├── story784.txt │ │ ├── story785.txt │ │ ├── story786.txt │ │ ├── story787.txt │ │ ├── story788.txt │ │ ├── story789.txt │ │ ├── story79.txt │ │ ├── story790.txt │ │ ├── story791.txt │ │ ├── story792.txt │ │ ├── story793.txt │ │ ├── story794.txt │ │ ├── story795.txt │ │ ├── story796.txt │ │ ├── story797.txt │ │ ├── story798.txt │ │ ├── story799.txt │ │ ├── story8.txt │ │ ├── story80.txt │ │ ├── story800.txt │ │ ├── story801.txt │ │ ├── story802.txt │ │ ├── story803.txt │ │ ├── story804.txt │ │ ├── story805.txt │ │ ├── story806.txt │ │ ├── story807.txt │ │ ├── story808.txt │ │ ├── story809.txt │ │ ├── story81.txt │ │ ├── story810.txt │ │ ├── story811.txt │ │ ├── story812.txt │ │ ├── story813.txt │ │ ├── story814.txt │ │ ├── story815.txt │ │ ├── story816.txt │ │ ├── story817.txt │ │ ├── story818.txt │ │ ├── story819.txt │ │ ├── story82.txt │ │ ├── story820.txt │ │ ├── story821.txt │ │ ├── story822.txt │ │ ├── story823.txt │ │ ├── story824.txt │ │ ├── story825.txt │ │ ├── story826.txt │ │ ├── story827.txt │ │ ├── story828.txt │ │ ├── story829.txt │ │ ├── story83.txt │ │ ├── story830.txt │ │ ├── story831.txt │ │ ├── story832.txt │ │ ├── story833.txt │ │ ├── story834.txt │ │ ├── story835.txt │ │ ├── story836.txt │ │ ├── story837.txt │ │ ├── story838.txt │ │ ├── story839.txt │ │ ├── story84.txt │ │ ├── story840.txt │ │ ├── story842.txt │ │ ├── story843.txt │ │ ├── story844.txt │ │ ├── story845.txt │ │ ├── story846.txt │ │ ├── story847.txt │ │ ├── story848.txt │ │ ├── story849.txt │ │ ├── story85.txt │ │ ├── story850.txt │ │ ├── story851.txt │ │ ├── story852.txt │ │ ├── story853.txt │ │ ├── story854.txt │ │ ├── story855.txt │ │ ├── story856.txt │ │ ├── story857.txt │ │ ├── story858.txt │ │ ├── story859.txt │ │ ├── story86.txt │ │ ├── story860.txt │ │ ├── story861.txt │ │ ├── story862.txt │ │ ├── story863.txt │ │ ├── story864.txt │ │ ├── story865.txt │ │ ├── story866.txt │ │ ├── story867.txt │ │ ├── story868.txt │ │ ├── story869.txt │ │ ├── story87.txt │ │ ├── story870.txt │ │ ├── story871.txt │ │ ├── story872.txt │ │ ├── story873.txt │ │ ├── story874.txt │ │ ├── story875.txt │ │ ├── story876.txt │ │ ├── story877.txt │ │ ├── story878.txt │ │ ├── story879.txt │ │ ├── story88.txt │ │ ├── story880.txt │ │ ├── story881.txt │ │ ├── story882.txt │ │ ├── story883.txt │ │ ├── story884.txt │ │ ├── story885.txt │ │ ├── story886.txt │ │ ├── story887.txt │ │ ├── story888.txt │ │ ├── story889.txt │ │ ├── story89.txt │ │ ├── story890.txt │ │ ├── story891.txt │ │ ├── story892.txt │ │ ├── story893.txt │ │ ├── story894.txt │ │ ├── story895.txt │ │ ├── story896.txt │ │ ├── story897.txt │ │ ├── story898.txt │ │ ├── story899.txt │ │ ├── story9.txt │ │ ├── story90.txt │ │ ├── story900.txt │ │ ├── story901.txt │ │ ├── story902.txt │ │ ├── story903.txt │ │ ├── story904.txt │ │ ├── story905.txt │ │ ├── story906.txt │ │ ├── story907.txt │ │ ├── story908.txt │ │ ├── story909.txt │ │ ├── story91.txt │ │ ├── story910.txt │ │ ├── story911.txt │ │ ├── story912.txt │ │ ├── story913.txt │ │ ├── story914.txt │ │ ├── story915.txt │ │ ├── story916.txt │ │ ├── story917.txt │ │ ├── story918.txt │ │ ├── story919.txt │ │ ├── story92.txt │ │ ├── story920.txt │ │ ├── story921.txt │ │ ├── story922.txt │ │ ├── story923.txt │ │ ├── story924.txt │ │ ├── story925.txt │ │ ├── story926.txt │ │ ├── story927.txt │ │ ├── story928.txt │ │ ├── story929.txt │ │ ├── story93.txt │ │ ├── story930.txt │ │ ├── story931.txt │ │ ├── story932.txt │ │ ├── story933.txt │ │ ├── story934.txt │ │ ├── story935.txt │ │ ├── story936.txt │ │ ├── story937.txt │ │ ├── story938.txt │ │ ├── story939.txt │ │ ├── story94.txt │ │ ├── story940.txt │ │ ├── story941.txt │ │ ├── story942.txt │ │ ├── story943.txt │ │ ├── story944.txt │ │ ├── story945.txt │ │ ├── story946.txt │ │ ├── story947.txt │ │ ├── story948.txt │ │ ├── story949.txt │ │ ├── story95.txt │ │ ├── story950.txt │ │ ├── story951.txt │ │ ├── story952.txt │ │ ├── story953.txt │ │ ├── story954.txt │ │ ├── story955.txt │ │ ├── story956.txt │ │ ├── story957.txt │ │ ├── story958.txt │ │ ├── story959.txt │ │ ├── story96.txt │ │ ├── story960.txt │ │ ├── story961.txt │ │ ├── story962.txt │ │ ├── story963.txt │ │ ├── story964.txt │ │ ├── story965.txt │ │ ├── story966.txt │ │ ├── story967.txt │ │ ├── story968.txt │ │ ├── story969.txt │ │ ├── story97.txt │ │ ├── story970.txt │ │ ├── story971.txt │ │ ├── story972.txt │ │ ├── story973.txt │ │ ├── story974.txt │ │ ├── story975.txt │ │ ├── story976.txt │ │ ├── story977.txt │ │ ├── story978.txt │ │ ├── story979.txt │ │ ├── story98.txt │ │ ├── story980.txt │ │ ├── story981.txt │ │ ├── story982.txt │ │ ├── story983.txt │ │ ├── story984.txt │ │ ├── story985.txt │ │ ├── story986.txt │ │ ├── story987.txt │ │ ├── story988.txt │ │ ├── story989.txt │ │ ├── story99.txt │ │ ├── story990.txt │ │ ├── story991.txt │ │ ├── story992.txt │ │ ├── story993.txt │ │ ├── story994.txt │ │ ├── story995.txt │ │ ├── story996.txt │ │ ├── story997.txt │ │ ├── story998.txt │ │ └── story999.txt │ ├── one-grams.txt │ └── setup.sh ├── demo.py ├── statistics.py ├── svd.py ├── svd_test.py ├── topicmodel.py ├── topicmodel_integration_test.py └── topicmodel_test.py ├── stable_marriages ├── stable_marriage.py └── stable_marriage_test.py ├── tox.ini └── waves ├── eigenvalues_100_beads.pdf ├── eigenvalues_5_beads.pdf ├── javascript_demo ├── README.md ├── build │ ├── main.bundle.js │ └── main.bundle.js.map ├── geometry.js ├── gulpfile.js ├── index.html ├── main.js ├── package.json ├── springs.js └── yarn.lock ├── plot_waves.py ├── waves.py ├── waves_integration_test.py └── waves_test.py /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2.1 2 | 3 | orbs: 4 | python: circleci/python@2.0.3 5 | 6 | jobs: 7 | build-and-test: 8 | docker: 9 | - image: cimg/python:3.6 10 | steps: 11 | - checkout 12 | - run: sudo apt-get update 13 | - run: sudo apt-get install cmake 14 | - python/install-packages: 15 | pkg-manager: pip 16 | - run: 17 | name: Test and Coverage 18 | command: | 19 | python -m pytest --doctest-modules -v --cov-report term-missing --cov --junitxml=test-results/pytest/results.xml 20 | coveralls 21 | - store_test_results: 22 | path: test-results 23 | 24 | workflows: 25 | main: 26 | jobs: 27 | - build-and-test 28 | -------------------------------------------------------------------------------- /.coveragerc: -------------------------------------------------------------------------------- 1 | [run] 2 | omit = venv/*,__pycache__/*,*test.py,*testing.py,singular-value-decomposition/data/* 3 | 4 | [report] 5 | exclude_lines = 6 | pragma: no cover 7 | def __repr__ 8 | raise NotImplementedError 9 | if __name__ == .__main__.: 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.swp 3 | __pycache__/ 4 | *pytest_cache* 5 | venv 6 | .coverage 7 | cov_annotate/ 8 | cov_html/ 9 | node_modules/ 10 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.7-slim-buster 2 | 3 | RUN apt-get update \ 4 | && apt-get install -y build-essential build-essential python3.7-dev python-igraph 5 | 6 | COPY . /pimbook 7 | WORKDIR "/pimbook" 8 | 9 | RUN pip3 install -r requirements.txt 10 | 11 | ENTRYPOINT ["bash"] 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Jeremy Kun 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # A Programmer's Introduction to Mathematics 2 | 3 | [](https://dl.circleci.com/status-badge/redirect/gh/pim-book/programmers-introduction-to-mathematics/tree/master) [](https://coveralls.io/github/pim-book/programmers-introduction-to-mathematics?branch=master) [](https://lgtm.com/projects/g/pim-book/programmers-introduction-to-mathematics/context:python) 4 | 5 | This repository contains the code implementing the applications from each 6 | chapter of [A Programmer's Introduction to Mathematics](https://pimbook.org). 7 | All code is written in Python 3.x. Feel free to submit a pull request if you 8 | find a bug. 9 | 10 | To install the requirements and run the examples, using pip and virtualenv (Python's standard packaging tools): 11 | 12 | ``` 13 | virtualenv -p python3 venv 14 | source venv/bin/activate 15 | pip install -r requirements.txt 16 | ``` 17 | 18 | To run the test suite: 19 | 20 | ``` 21 | pytest 22 | 23 | # with code coverage 24 | pytest --cov-report html:cov_html --cov-report annotate:cov_annotate --cov 25 | ``` 26 | 27 | ## Docker 28 | 29 | To build and run the code in the repository with docker, run 30 | 31 | ``` 32 | docker build -t pimbook -f Dockerfile . 33 | docker run -it --name pimbook pimbook:latest 34 | ``` 35 | -------------------------------------------------------------------------------- /hyperbolic_tessellation/hyperbolic_test.py: -------------------------------------------------------------------------------- 1 | from assertpy import assert_that 2 | from geometry import Point 3 | from tessellation import TessellationConfiguration 4 | import math 5 | 6 | from hyperbolic import * 7 | from testing import * 8 | 9 | 10 | def test_fundamental_triangle(): 11 | config = TessellationConfiguration(6, 4) 12 | center, pi_over_q_vertex, x_axis_vertex = compute_fundamental_triangle( 13 | config) 14 | assert_that(center).is_equal_to(Point(0, 0)) 15 | assert_iterables_are_close(x_axis_vertex, Point(math.sqrt(2) - 1, 0)) 16 | 17 | b_x = 0.5 * math.sqrt(6 - 3 * math.sqrt(3)) 18 | b_y = 0.5 * math.sqrt(2 - math.sqrt(3)) 19 | assert_iterables_are_close(pi_over_q_vertex, Point(x=b_x, y=b_y)) 20 | 21 | 22 | def test_poincare_disk_line_reflect(): 23 | line = PoincareDiskLine(Point(0, 0), radius=2 ** 0.5) 24 | point = Point(2, 2) 25 | expected_inverse = Point(1/2, 1/2) 26 | actual_inverse = line.reflect(point) 27 | assert_are_close(actual_inverse, expected_inverse) 28 | 29 | 30 | def test_poincare_disk_model_line_through_diameter(): 31 | model = PoincareDiskModel(Point(0, 0), radius=1) 32 | p1 = Point(1/6, 1/5) 33 | p2 = Point(2/6, 2/5) 34 | actual_line = model.line_through(p1, p2) 35 | expected_line = Line(Point(1/6, 1/5), slope=6/5) 36 | assert_that(expected_line).is_equal_to(actual_line) 37 | 38 | 39 | def test_poincare_disk_model_line_through_hyperbolic(): 40 | model = PoincareDiskModel(Point(0, 0), radius=1) 41 | p1 = Point(1/2, 1/2) 42 | p2 = Point(1/2, -1/2) 43 | actual_line = model.line_through(p1, p2) 44 | expected_line = PoincareDiskLine(Point(3/2, 0), (5/4) ** 0.5) 45 | assert_that(expected_line).is_equal_to(actual_line) 46 | -------------------------------------------------------------------------------- /hyperbolic_tessellation/tessellation_integration_test.py: -------------------------------------------------------------------------------- 1 | import os 2 | import shutil 3 | import tempfile 4 | 5 | from tessellation import TessellationConfiguration 6 | from tessellation import HyperbolicTessellation 7 | 8 | 9 | def test_generate_many_tessellations(): 10 | tmpdir = tempfile.mkdtemp() 11 | 12 | try: 13 | # test we can generate and write many to svg files without error 14 | for p in range(3, 8): 15 | for q in range(3, 8): 16 | if (p - 2) * (q - 2) > 4: 17 | config = TessellationConfiguration(p, q) 18 | tessellation = HyperbolicTessellation(config) 19 | tessellation.render( 20 | filename=os.path.join( 21 | tmpdir, "tessellation_{}_{}.svg".format(p, q)), 22 | canvas_width=500) 23 | finally: 24 | shutil.rmtree(tmpdir) 25 | -------------------------------------------------------------------------------- /hyperbolic_tessellation/tessellation_test.py: -------------------------------------------------------------------------------- 1 | from geometry import Point 2 | from geometry import rotate_around_origin 3 | import math 4 | import pytest 5 | 6 | from tessellation import * 7 | from testing import * 8 | 9 | 10 | def test_valid_configuration(): 11 | TessellationConfiguration(6, 4) 12 | TessellationConfiguration(4, 5) 13 | TessellationConfiguration(7, 3) 14 | TessellationConfiguration(3, 7) 15 | 16 | 17 | def test_invalid_configuration(): 18 | with pytest.raises(ValueError): 19 | TessellationConfiguration(4, 4) 20 | 21 | 22 | def test_center_polygon(): 23 | config = TessellationConfiguration(6, 4) 24 | tessellation = HyperbolicTessellation(config) 25 | 26 | b_x = 0.5 * math.sqrt(6 - 3 * math.sqrt(3)) 27 | b_y = 0.5 * math.sqrt(2 - math.sqrt(3)) 28 | starting_vertex = Point(x=b_x, y=b_y) 29 | 30 | vertices = [ 31 | rotate_around_origin(k * math.pi / 3, starting_vertex) 32 | for k in range(6) 33 | ] 34 | 35 | assert_iterables_are_close(tessellation.compute_center_polygon(), vertices) 36 | -------------------------------------------------------------------------------- /hyperbolic_tessellation/testing.py: -------------------------------------------------------------------------------- 1 | from assertpy import fail 2 | from geometry import EPSILON 3 | 4 | 5 | def is_close(v1, v2): 6 | try: 7 | return v1.is_close_to(v2) 8 | except AttributeError: 9 | return abs(v1 - v2) < EPSILON 10 | 11 | 12 | def assert_are_close(v1, v2): 13 | if not is_close(v1, v2): 14 | fail("Expected {} to to be close to {}, but it wasn't".format( 15 | v1, v2)) 16 | 17 | 18 | def assert_iterables_are_close(s1, s2): 19 | for item1, item2 in zip(s1, s2): 20 | assert_are_close(item1, item2) 21 | -------------------------------------------------------------------------------- /neural_network/mnist/mnist.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pim-book/programmers-introduction-to-mathematics/552290d324297b10be7885ee5d720856d8c4efcd/neural_network/mnist/mnist.tar.gz -------------------------------------------------------------------------------- /neural_network/mnist_integration_test.py: -------------------------------------------------------------------------------- 1 | import os 2 | import random 3 | import shutil 4 | import tarfile 5 | import tempfile 6 | 7 | from mnist_network import train_mnist 8 | 9 | 10 | def test_train_mnist(): 11 | random.seed(1) 12 | tmpdir = tempfile.mkdtemp() 13 | test_dir = os.path.dirname(__file__) 14 | mnist_archive = os.path.join(test_dir, 'mnist', 'mnist.tar.gz') 15 | 16 | with tarfile.open(mnist_archive) as tar: 17 | tar.extractall(tmpdir) 18 | 19 | try: 20 | train_mnist(tmpdir, num_epochs=1) 21 | finally: 22 | shutil.rmtree(tmpdir) 23 | -------------------------------------------------------------------------------- /newtons_method/newton_test.py: -------------------------------------------------------------------------------- 1 | from itertools import takewhile 2 | from assertpy import assert_that 3 | 4 | from newton import newton_sequence 5 | 6 | EPSILON = 1e-4 7 | 8 | 9 | def test_newtons_sequence_converge(): 10 | def f(x): 11 | return x**5 - x - 1 12 | 13 | def f_derivative(x): 14 | return 5 * x**4 - 1 15 | 16 | starting_x = 1 17 | 18 | approximation = [ 19 | (x, f(x)) 20 | for x in list(newton_sequence(f, f_derivative, starting_x)) 21 | ] 22 | 23 | assert_that(approximation[-1][0]).is_close_to(1.1673, EPSILON) 24 | assert_that(approximation[-1][1]).is_close_to(0, EPSILON) 25 | 26 | 27 | def test_newtons_sequence_fails_to_converge(): 28 | def f(x): 29 | return x**5 - x - 1 30 | 31 | def f_derivative(x): 32 | return 5 * x**4 - 1 33 | 34 | starting_x = 0 35 | approximation = [ 36 | (x, f(x)) for (i, x) in takewhile( 37 | lambda z: z[0] < 10000, 38 | enumerate(newton_sequence(f, f_derivative, starting_x)) 39 | ) 40 | ] 41 | 42 | for (x, y) in approximation: 43 | assert_that(abs(x - 1.1673)).is_greater_than(EPSILON) 44 | assert_that(abs(y)).is_greater_than(EPSILON) 45 | 46 | 47 | def test_newtons_sequence_converges_large_root(): 48 | def f(x): 49 | return (x - 100)**5 - (x - 100) - 1 50 | 51 | def f_derivative(x): 52 | return 5 * (x - 100)**4 - 1 53 | 54 | starting_x = 103 55 | 56 | approximation = [ 57 | (x, f(x)) 58 | for x in list(newton_sequence(f, f_derivative, starting_x)) 59 | ] 60 | 61 | assert_that(approximation[-1][0]).is_close_to(101.1673, EPSILON) 62 | assert_that(approximation[-1][1]).is_close_to(0, EPSILON) 63 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | appnope==0.1.0 2 | assertpy==0.13 3 | atomicwrites==1.2.1 4 | attrs==18.2.0 5 | backcall==0.1.0 6 | certifi==2022.12.7 7 | chardet==3.0.4 8 | coverage==4.0.3 9 | cycler==0.10.0 10 | decorator==4.3.0 11 | docopt==0.6.2 12 | idna==2.7 13 | igraph==0.9.11 14 | ipython==6.5.0 15 | ipython-genutils==0.2.0 16 | jedi==0.12.1 17 | kiwisolver==1.0.1 18 | matplotlib==3.0.0 19 | more-itertools==4.3.0 20 | nltk==3.4.5 21 | numpy==1.15.2 22 | parso==0.3.1 23 | pexpect==4.6.0 24 | pickleshare==0.7.4 25 | pluggy==0.7.1 26 | prompt-toolkit==1.0.15 27 | ptyprocess==0.6.0 28 | py==1.10.0 29 | pycodestyle==2.4.0 30 | Pygments==2.7.4 31 | pyparsing==2.2.0 32 | pytest==3.8.0 33 | pytest-cov==2.5.0 34 | python-coveralls==2.9.3 35 | python-dateutil==2.7.3 36 | pytz==2018.5 37 | PyYAML==5.4 38 | requests==2.20.0 39 | scipy==1.1.0 40 | simplegeneric==0.8.1 41 | six==1.11.0 42 | svgwrite==1.1.12 43 | traitlets==4.3.2 44 | urllib3==1.24.2 45 | wcwidth==0.1.7 46 | -------------------------------------------------------------------------------- /secret_sharing/examples.py: -------------------------------------------------------------------------------- 1 | from polynomial import * 2 | from interpolate import * 3 | 4 | f = Polynomial([109, -55, 271]) 5 | for i in range(1, 6): 6 | print((i, f(i))) 7 | 8 | pts = [(1, 325), (3, 2383), (5, 6609)] 9 | f = interpolate(pts) 10 | 11 | print(f) 12 | print(f(0)) 13 | 14 | 15 | pts = [(2, 1083), (5, 6609)] 16 | f = interpolate(pts + [(0, 533)]) 17 | 18 | print(f) 19 | print(f(0)) 20 | -------------------------------------------------------------------------------- /secret_sharing/interpolate_test.py: -------------------------------------------------------------------------------- 1 | from assertpy import assert_that 2 | 3 | from interpolate import interpolate 4 | import pytest 5 | 6 | 7 | EPSILON = 1e-9 8 | 9 | 10 | def test_interpolate_empty(): 11 | with pytest.raises(ValueError): 12 | interpolate([]) 13 | 14 | 15 | def test_interpolate_repeated_x_values(): 16 | with pytest.raises(ValueError): 17 | interpolate([(1, 2), (1, 3)]) 18 | 19 | 20 | def test_interpolate_degree_0(): 21 | assert_that(interpolate([(1, 2)]).coefficients).is_equal_to([2]) 22 | 23 | 24 | def test_interpolate_degree_1(): 25 | assert_that(interpolate([(1, 2), (2, 3)]).coefficients).is_equal_to([1, 1]) 26 | 27 | 28 | def test_interpolate_degree_3(): 29 | points = [(1, 1), (2, 0), (-3, 2), (4, 4)] 30 | actual_polynomial = interpolate(points) 31 | expected_evaluations = points 32 | actual_evaluations = [(x, actual_polynomial(x)) 33 | for (x, y) in expected_evaluations] 34 | 35 | for (p1, p2) in zip(expected_evaluations, actual_evaluations): 36 | for (a, b) in zip(p1, p2): 37 | assert_that(a).is_close_to(b, EPSILON) 38 | -------------------------------------------------------------------------------- /secret_sharing/polynomial_test.py: -------------------------------------------------------------------------------- 1 | from assertpy import assert_that 2 | 3 | from polynomial import strip 4 | from polynomial import Polynomial 5 | 6 | 7 | def test_strip_empty(): 8 | assert_that(strip([], 1)).is_equal_to([]) 9 | 10 | 11 | def test_strip_single(): 12 | assert_that(strip([1, 2, 3, 1], 1)).is_equal_to([1, 2, 3]) 13 | 14 | 15 | def test_strip_many(): 16 | assert_that(strip([1, 2, 3, 1, 1, 1, 1], 1)).is_equal_to([1, 2, 3]) 17 | 18 | 19 | def test_strip_string(): 20 | assert_that(strip("123111", "1")).is_equal_to("123") 21 | 22 | 23 | def test_polynomial_zero(): 24 | assert_that(Polynomial([0]).coefficients).is_equal_to([]) 25 | assert_that(len(Polynomial([0]))).is_equal_to(0) 26 | 27 | 28 | def test_polynomial_repr(): 29 | f = Polynomial([1, 2, 3]) 30 | assert_that(repr(f)).is_equal_to("1 + 2 x^1 + 3 x^2") 31 | 32 | 33 | def test_polynomial_add(): 34 | f = Polynomial([1, 2, 3]) 35 | g = Polynomial([4, 5, 6]) 36 | assert_that((f + g).coefficients).is_equal_to([5, 7, 9]) 37 | 38 | 39 | def test_polynomial_sub(): 40 | f = Polynomial([1, 2, 3]) 41 | g = Polynomial([4, 5, 6]) 42 | assert_that((f - g).coefficients).is_equal_to([-3, -3, -3]) 43 | 44 | 45 | def test_polynomial_add_zero(): 46 | f = Polynomial([1, 2, 3]) 47 | g = Polynomial([0]) 48 | assert_that((f + g).coefficients).is_equal_to([1, 2, 3]) 49 | 50 | 51 | def test_polynomial_negate(): 52 | f = Polynomial([1, 2, 3]) 53 | assert_that((-f).coefficients).is_equal_to([-1, -2, -3]) 54 | 55 | 56 | def test_polynomial_multiply(): 57 | f = Polynomial([1, 2, 3]) 58 | g = Polynomial([4, 5, 6]) 59 | assert_that((f * g).coefficients).is_equal_to([4, 13, 28, 27, 18]) 60 | 61 | 62 | def test_polynomial_evaluate_at(): 63 | f = Polynomial([1, 2, 3]) 64 | assert_that((f(2))).is_equal_to(1 + 4 + 12) 65 | -------------------------------------------------------------------------------- /singular_value_decomposition/README.md: -------------------------------------------------------------------------------- 1 | # SVD 2 | 3 | An implementation of the greedy algorithm for SVD, using the power method for the 1-dimensional case. 4 | 5 | # Setup 6 | 7 | Run the following to set up all the requirements needed to run the code in this repository. 8 | 9 | ``` 10 | $ virtualenv venv 11 | $ source venv/bin/activate 12 | $ pip install -r requirements.txt 13 | $ bash setup.sh # downloads relevant natural language processing (NLP) corpora from nltk 14 | ``` 15 | 16 | Then run `python3 topicmodel.py` for the main topic-model routine, with `svd.py` providing the core svd algorithm. 17 | 18 | When finished, run `$ deactivate` to exit the virtual environment. 19 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/README.md: -------------------------------------------------------------------------------- 1 | # Preprocess raw data 2 | 3 | To re-run the raw data preprocessing, make sure you're in a python environment 4 | with the base directory's `requirements.txt` installed. Then run 5 | 6 | ``` 7 | # install the word corpora from nltk 8 | bash setup.sh 9 | 10 | # process the documents 11 | python cleaner.py 12 | ``` 13 | 14 | The cleaner takes about two minutes (probably could be faster, but it's a 15 | one-time computation). The output is `all_stories.json` 16 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pim-book/programmers-introduction-to-mathematics/552290d324297b10be7885ee5d720856d8c4efcd/singular_value_decomposition/data/__init__.py -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story0.txt: -------------------------------------------------------------------------------- 1 | Body of Arkansas 4-year-old found 2 | Caleb Linn's remains were found in the South Fork River in northern Arkansas, according to Fulton County Sheriff's dispatcher Arles Lenderman. No foul play was suspected in his disappearance. Two T-shirts worn by Caleb were found Tuesday afternoon along the river at the Boy Scout camp where he was last seen, officials said. "We had pictures of the boy when we he went missing. They were the same clothes he was wearing that day," Sheriff Buck Foley said. Caleb's family was devastated by the loss of a boy they described as having a genial disposition. "He was full of life," stepfather Randy Muir told CNN affiliate KARK. "He was an amazing young kid." CNN affiliate KATV reported that the boy was last seen by his aunt on Saturday at Kia Kima Scout Reservation. Caleb had asked whether he could catch up with some other children who had gone back to a cabin area about 300 yards away, according to the station. The search covered about 1,000 acres, Foley said. The camp is near the Arkansas-Missouri border, about 160 miles north of Little Rock. Caleb's aunt and mother identified the clothes as the little boy's, Foley said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story100.txt: -------------------------------------------------------------------------------- 1 | Debris forces astronauts to take shelter 2 | The six crew members were told to take shelter late Friday in their Soyuz capsules after it was determined there was a small possibility the debris could hit the station, the U.S. space agency said in a statement. NASA said it began tracking the debris early Friday morning but only decided to take the precautionary steps after an analysis showed a slight possibility of hitting the space station. The debris was predicted to pass about 23 kilometers (14.2 miles) from the space station, NASA said. "The Expedition 30 crew aboard the International Space Station received an 'all clear' to move out of their Soyuz vehicles after a small piece of a Russian Cosmos satellite debris passed by the complex without incident early Saturday," the statement said. "They began the process of moving out of the vehicles and back to their regular duties and a weekend off." NASA also tweeted details of the incident as it occurred, describing the Soyuz capsules as "the crew's transportation to Earth, for either a normal end of mission, or as a 'rescue craft.'" It described the International Space Station, via Twitter, as the "most heavily shielded spacecraft ever, to protect it from debris." It is the third time in the space station's history that a crew has had to take shelter in escape capsules because of the possibility of being hit by orbital debris. The last time the crew took cover was in June 2011. The Expedition 30 crew includes NASA's Commander Dan Burbank and Don Pettit, Russian cosmonauts Anton Shkaplerov, Anatoly Ivanishin and Oleg Kononenko, as well as Andre Kuipers of the European Space Agency. The crew has been aboard the International Space Station since mid-December. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story103.txt: -------------------------------------------------------------------------------- 1 | Boat lost in tsunami spotted off Canada 2 | "It looks fairly sound and has rust streak from being out there for a year," said Marc Proulx, the maritime coordinator of the Joint Rescue Coordination Center in Victoria, British Columbia. The trawler was stable and posed no danger Saturday, officials said. The trawler is part of a giant debris field that was generated by the giant wall of water that struck the east coast of the island nation a year ago following a 9.0 earthquake, sweeping everything from cars to houses into the ocean. The fishing vessel is about 120 miles off the Queen Charlotte Islands, commonly referred to as the Haida Gwaii. The islands are an archipelago on the north coast of the British Columbia. It was first spotted by a Canadian military air patrol, and it has since been determined that it has been adrift without anybody at the helm since March 11, 2011, Proulx said Friday. The Japan Coast Guard identified the owner of the vessel after being contacted Friday by Canadian officials, who were able to provide the identification number on the hull of the ship. The vessel, which was used for squid fishing, was moored at Hachinohe in the Aomori prefecture when the tsunami hit, said Toshiro Yoshinaga, a Coast Guard official. The trawler is considered a navigation obstruction for vessels in the area, according to Canada's Department of National Defense. Mariners received a notice about the vessel's presence. Canadian agencies are monitoring the ship for possible marine pollution, though there are no reports of leaks from the vessel, the defense department said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story13.txt: -------------------------------------------------------------------------------- 1 | Tibet activist dies after self-immolation 2 | The 27-year-old man was admitted to hospital in New Delhi Monday with 90% burns to his body, but doctors could not save him and he died on Wednesday, said L.K. Makhija, the head of the burns ward at the Ram Manohar Lohia hospital. Dramatic pictures showed the man, named by the London-based Free Tibet group as Jampa Yeshi, running along the street in flames as hundreds of protesters gathered outside the Indian parliament to protest against Chinese rule in Tibet. Many ethnic Tibetans fled Tibet for India with the Dalai Lama in 1959 after a failed uprising. President Hu was due to arrive in India for Thursday's BRICS summit of emerging economic powers, which includes India, China, Brazil, Russia and South Africa. Self-immolation is a common form of protest for Tibetans who want genuine autonomy from China and accuse Beijing of repression. Reports: Tibetans take their lives in protest of Chinese rule More than 30 of them took place in the last year in China, Tibetan advocacy groups say. They follow an increase in security measures by the Chinese authorities in response to unrest among Tibetans in western areas of China in recent months. Some in Tibet have advocated independence from China. But the Dalai Lama, the exiled Tibetan spiritual leader, and others have said they favor genuine autonomy and resent the slow erosion of their culture amid an influx of Han Chinese, the most numerous ethnic group in China. Activists say the disturbing acts of self-immolation reflect an increasingly repressive environment under China's control. Beijing rejects accusations of oppression of Tibetans, saying that under its rule, living standards have greatly improved for the Tibetan people. Chinese officials have described the self-immolations as "extreme" acts. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story137.txt: -------------------------------------------------------------------------------- 1 | 5 more bodies found in cruise wreck 2 | Two of the roughly 4,200 originally aboard the cruise liner remain missing. The Costa Concordia, a ship belonging to cruise line Costa Crociere, struck rocks off the island of Giglio on January 13 with about 3,200 passengers and 1,000 crew members on board. Workers completed the removal of 2,400 tons of oil from the ship's tanks this week, a delicate process that began five weeks ago, the ship's owner said Thursday. Luxury cruise ship collides with container vessel A salvage company will be selected next month to move the ship, a task that could take a year, according to the statement from Costa Crociere. Divers who located the three bodies Thursday were not able to immediately determine age or sex of the victims, according to Piero De Milito, an official with Italy's Civil Protection Coordination department. "The bodies were found on the exterior side of the wreck facing the island, between the wreck and the rocks," De Milito said. "In the next 48 hours, we'll be able to bring them on the mainland." Crews used 20 vessels, including platforms, tugs, transport ships, crane barges and tankers, to defuel the cruise ship, which remains on its side. While the oil has been removed, the "caretaking" operation to clean the seabed and monitor the ship will continue for several months, the company said. The cruise line will choose next month which of six bidding salvage companies will remove the wrecked ship. "The operation to remove the wreck will be a particularly complex one and is expected to take from 10 to 12 months, depending on which tender is chosen," the company said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story151.txt: -------------------------------------------------------------------------------- 1 | 'The Situation' explains drug problem 2 | A statement was posted on the reality-TV personality's official website Wednesday, after denying online reports that he checked into rehab. "Don't believe everything you read or hear," he tweeted Tuesday. He used his Twitter account to distribute his new statement, which was titled "The Situation Wants to Set The Record Straight." "I have voluntarily taken steps to get control of a prescription medication problem I had due to exhaustion," his statement said. "I have spent the past several weeks getting treatment for this problem and recuperating from my work and appearance schedule. I appreciate my fans support and love you guys." "Jersey Shore" ended its fifth season this month, but MTV has renewed the show for a sixth season. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story163.txt: -------------------------------------------------------------------------------- 1 | Colombia: Dozens of guerrillas killed 2 | Operations throughout the country led to the killing of 39 suspected members the Revolutionary Armed Forces of Colombia and the capture of a dozen others from the rebel group, Defense Minister Juan Carlos Pinzon told reporters. "This is one of the greatest blows (to the rebel group) in the last five years," Pinzon said. One operation near the Venezuelan border led to the killing of 36 suspected rebels and the capture of five others, including a top leader of one faction of the rebel group, he said. The joint military-police operation occurred in the department of Arauca, where over the weekend authorities said rebels killed 11 troops in an attack. The Revolutionary Armed Forces of Colombia, known as the FARC, has been at war with the Colombian government since the 1960s. While severely weakened in recent years, the guerrilla group has continued to carry out kidnappings and attack security forces. A mediator said Wednesday that the FARC will begin releasing its 10 remaining government hostages on Monday. "With much joy and satisfaction we want to inform you that next Monday the FARC will hand over the 10 uniformed people, police and soldiers, that are in their control," said Piedad Cordoba, a former senator who has helped coordinate hostage handovers in the past. The hostage release could take two days, Cordoba said. She did not specify where it would take place. In December, the FARC announced the planned release of six national police officers in the group, but later postponed their release because of an alleged militarization in the area where the rebels operate. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story198.txt: -------------------------------------------------------------------------------- 1 | N. Korea invites nuclear inspectors back 2 | IAEA officials are considering the offer, which was sent Friday, agency spokeswoman Gill Tudor told reporters. No details of the invitation were released. "Details will be discussed," Tudor said. "Nothing has been decided yet." North Korea threw IAEA inspectors out of its Yongbyon nuclear complex in April 2009, about a month before it conducted its second nuclear weapons test. The invitation comes as the North plans to launch a satellite atop a long-range rocket, a move the United States warned would jeopardize a food-aid agreement reached in early March. The launch has been condemned as a back-door missile test, something long-impoverished North Korea agreed to forgo in exchange for food. Under the aid deal, the north would receive 240,000 metric tons of food in exchange for a halt to nuclear tests, long-range missile launches and uranium enrichment activities. U.S. State Department spokeswoman Victoria Nuland said last week that planning for the food shipments was "relatively far advanced," but the deal could be put on hold if Pyongyang went ahead with its rocket launch. North Korea says it has a right to a peaceful space program and invited international space experts and journalists to witness the launch, the state-run Korean Central News Agency said Saturday. The satellite would be sent into orbit in mid-April to mark the 100th anniversary of the birth of Kim Il Sung, North Korea's founder and current leader Kim Jong Un's grandfather. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story218.txt: -------------------------------------------------------------------------------- 1 | Burial for soldier killed in rescue try 2 | The funeral took place, as scheduled, in the early morning, said cemetery spokeswoman Jennifer Lynch. Chief Warrant Officer II Edward Duane Cantrell, 36, was a member of the 3rd Special Forces Group at Fort Bragg. The Green Beret had returned in August from his latest overseas deployment. His wife, Louise, told officials the family was upstairs when the fire broke out just before 2 a.m. March 5 in Hope Mills, a suburb of Fayetteville. She jumped from a second-floor window and ran next door to call for help while her husband went to get 6-year-old Isabella and 4-year-old Natalia, the Cumberland County Sheriff's Office said. "They never made it out," said Debbie Tanna, spokeswoman for the Sheriff's Office. Officials believe the family's century-old home had tinderbox conditions that led to "a very intense fire." Military officials said the Fort Bragg soldier had completed six deployments, including one to Iraq and five to Afghanistan. He had four Bronze Stars and a Purple Heart for his service, according to the Army Special Operations Command. Cantrell was honored with a military funeral at the cemetery in Arlington, Virginia. "That was his wishes," said Lt. April Olsen of U.S. Army Special Forces Command. His two daughters will lie beside him. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story219.txt: -------------------------------------------------------------------------------- 1 | Dozens arrested at N.Y. Occupy protest 2 | Protesters attempted to re-occupy Zuccotti Park, the downtown plaza where demonstrators were encamped in the first two months of the movement, on Saturday. Police made 74 arrests as they forced them out of the park, the Manhattan district attorney's office told CNN. Protesters chanted "We are the 99%," and tried to set up tents in the park, which they occupied for nearly two months before they were rousted by police in mid-November. Police carried handcuffed demonstrators from the park -- some of them struggling, others limp. According to the New York Police Department, the charges included disorderly conduct, trespassing, assault and resisting arrest. Online, however, Occupy Wall Street and its supporters accused police of abusing peaceful demonstrators. Artist to the 1%: Come buy our protest art "Welcome to New York City!" liberal documentary producer Michael Moore, who attended the St. Patrick's Day demonstration, posted on his website. "Feel free to get drunk and barf on the streets as much as you want, just don't take on the banksters or we'll beat the ever-loving crap out of you." There was no immediate response to the allegations from the NYPD. The protests began September 17, with participants decrying income inequality, corporate greed and the influence of the top 1% of Americans. They soon drew the support of organized labor, while similar spinoff movements sprang up in numerous U.S. cities and overseas. Police in riot gear drove them out of Zuccotti Park two months later, citing health and sanitation concerns. But the protesters are widely credited with shifting the national dialogue toward lingering unemployment and the gap between the rich and poor in the United States. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story221.txt: -------------------------------------------------------------------------------- 1 | 2 Brazilian tourists freed by Bedouins 2 | Interior Ministry spokesman Alaa Mahmoud on Sunday said that the tourist and their guide had been released. The whereabouts of the officer had been unclear. Provincial officials said that an "unknown armed group" had stopped the tourists' bus near the Greek Orthodox monastery of St. Catherine's and taken the two Brazilians and the guide hostage, according to the state-run Egypt New Agency. That report did not mention a police officer being kidnapped. The kidnappers then demanded the release of Bedouin prisoners jailed under longtime Egyptian strongman Hosni Mubarak, as well as the cancellation of sentences handed down in absentia. But a security official in southern Sinai said that the the tourists and their guide were released late Sunday without any of those demands being met, according to the official Egypt News Agency report. Instead, the kidnappers heeded calls from Bedouin tribal leaders to let them go free, said the official. There was no immediate word on the status of the police officer who the Interior Ministry spokesman had also reported kidnapped. The southern Sinai Peninsula has seen a rash of kidnappings in recent months, including the brief abduction of two American tourists in February and the seizure of two dozen Chinese workers and a translator in late January. Kidnappings and daylight robberies have become increasingly common in the turbulent year since Mubarak's overthrow in February 2011, with several wealthy Egyptians among those targeted by hostage-takers demanding ransom. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story222.txt: -------------------------------------------------------------------------------- 1 | Diplomat's daughter killed in Venezuela 2 | Karen Berendique, 19, died Saturday from gunshot wounds after Venezuelan police shot at the vehicle she was riding in with her brother in the coastal city of Maracaibo, officials said. Her father, Chilean Honorary Consul Fernando Berendique, told reporters that police pointed guns at the car and opened fire when it didn't stop at a checkpoint. The car had six bullet holes in it, he said. "It is a product of the irresponsibility and a product of the disrespect for human life here, an act of officials that had little experience, and this is the consequence. ... They cut short the life of my brilliant, 19-year-old daughter," he told reporters. Venezuelan Interior Minister Tareck El Aissami condemned the shooting, calling it an "irregular practice" and pledging to punish those responsible. "We reject this type of bad police practice," Commissioner Jose Humberto Ramirez said, saying that the police officials allegedly involved had been detained and would be investigated by prosecutors. Chile's foreign ministry condemned the killing and called on Venezuelan officials to swiftly investigate. Saturday's shooting comes several months after Chile's consul general in Caracas was kidnapped, shot and wounded after leaving a hotel. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story224.txt: -------------------------------------------------------------------------------- 1 | British journalists freed in Libya 2 | Gareth Montgomery-Johnson and Nicholas Davies "are well" after being turned over to British diplomats "and look forward to being reunited with their families soon," the Foreign and Commonwealth Office said in a statement announcing their release. The Saraya Swehli militia accused the journalists, who work mainly for Iran's state-run Press TV, of lacking proper immigration paperwork. But it turned the men over to the central government in Tripoli last week, paving the way for their return. Montgomery-Johnson's sister, Mel Gribble, told CNN on Thursday that the family had been "buoyed up" by the handover and was looking forward to hearing good news "in the next day or two." She said the past weeks had been a "whirlwind of stress and anxiousness" as the family sought to deal with the situation. Some militias that established themselves to fight dictator Moammar Gadhafi have remained intact and outside government control since Gadhafi's government fell in August. Saraya Swehli told Human Rights Watch that it did not have faith in the central government. Gribble said her brother's passport was valid, and that although she was aware there had been a "difficulty with visas," he was not alone in having that issue. She described hearing the news of her brother's capture by the militia group as "a physical and emotional terror. Your body is almost cut in two. ... It's terrifying." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story227.txt: -------------------------------------------------------------------------------- 1 | Snow closes Arizona interstate 2 | The road was closed in both directions about 6:30 a.m. (9:30 a.m. ET), said David Beck, dispatch supervisor for the Flagstaff office of the Arizona Highway Patrol. The closure stretched roughly from Kingman in western Arizona to eastward to Winslow, including the city of Flagstaff, he said. Portions of Interstate 17 south of Flagstaff were also closed, according to the Arizona Department of Transportation's website, as were several state roads. As of 9 a.m. Sunday, Flagstaff -- with an elevation of about 6,900 feet -- had received 10 to 14 inches of snow, according to the National Weather Service. The city of Prescott had received 8 to 12 inches. Areas above 7,000 feet could see up to 22 inches, according to the weather service. Several crashes and reports of stuck vehicles had been reported as of Sunday morning, Beck said, with one person sustaining minor injuries on I-40. The Flagstaff Unified School District said its schools would be closed Monday. Northern Arizona University said its Flagstaff campus would be closed Monday, and Coconino Community College said its Flagstaff and Page campuses would be closed. Much of Arizona remained under a winter weather advisory or a winter storm warning on Sunday. The warning was in effect until midnight Sunday. In addition to heavy snow, wind gusts of up to 30 mph were forecast for the Flagstaff area, according to the National Weather Service. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story234.txt: -------------------------------------------------------------------------------- 1 | Red Bull co-founder dies a billionaire 2 | Chaleo Yoovidhya, who with an Austrian entrepreneur transformed his noncarbonated concoction into the global brand Red Bull, died of natural causes Saturday, according to MCOT, Thailand's national news agency. Chaleo was in his 80s. The self-made business mogul was ranked 205th this year in Forbes' list of billionaires, with a net worth estimated at $5 billion. That made him Thailand's third wealthiest person. Chaleo also founded TC Pharmaceuticals. Chaleo and Dietrich Mateschitz adapted the formula to Western tastes in 1984. Krating Daeng translates to Red Bull in English. They each owned 49% of the privately held company, with Chaleo's son holding the balance of 2%. Mateschitz ran the company, according to MCOT. The battling bovines, the slogan "Red Bull Gives You Wings" and the berry-flavored drink blended to become a worldwide commercial bonanza. Red Bull, headquartered in Austria, is available in 164 countries worldwide. The company also owns sports and racing teams. Much of Red Bull's marketing and distribution success is due to Mateschitz, who became aware of "tonic drinks" in the Far East. Krating Daeng became popular in Asia in the 1970s and 1980s, especially among truck drivers, construction workers and farmers, according to MCOT. On business trips, Mateschitz tried a drink sold in Thai pharmacies as a revitalizing agent. He noticed it put a dent in his jet lag. "I realized that these little syrups developed in Japan did extremely well all over Asia," Mateschitz told Forbes in 2005. The Austrian, after studying the market, and Chaleo decided to co-found Red Bull, each investing $500,000 in their bid to reach the global market, according to Forbes. Since 1987, an estimated 30 billion cans of Red Bull have been consumed, according to the company. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story237.txt: -------------------------------------------------------------------------------- 1 | Assange to run for Australian Senate 2 | The group, which facilitates the anonymous leaking of secret information, said it discovered it is possible for Assange to run while living in England under house arrest. Assange was born in Australia and grew up there. Since the summer of 2010, he has become a household name and a pop culture fixture. He's an internationally controversial figure who has cast himself as a champion of free speech by distributing classified documents. Assange is also a suspect in a Swedish sex crimes investigation. He's been fighting extradition before Britain's Supreme Court, which is weighing whether he should be sent to Sweden to face allegations of rape and sexual assault lodged by two women in the country. Assange is living in England under house arrest related to the case and has so far failed to convince magistrates and the court of appeal that a warrant for his arrest is invalid. Lawyers for Assange have vowed to take the fight all the way to the European Court of Human Rights if necessary. He has repeatedly said he's innocent. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story243.txt: -------------------------------------------------------------------------------- 1 | Outsiders invited to North Korea launch 2 | The apparent attempt at North Korean transparency comes amid a flurry of condemnations of its planned launch because it uses ballistic missile technology. Pyongyang is set to launch next month an "Earth observation" satellite using a carrier rocket, a move that would potentially violate a United Nations Security Council ban on nuclear testing. The planned launch has put at risk a deal struck last month between the United States and North Korea in which Pyongyang agreed to halt nuclear tests, long-range missile launches and enrichment activities in exchange for food aid. At the time of the food aid agreement, under which North Korea would receive 240,000 metric tons of foodstuffs, the United States told Pyongyang that such a launch would be contrary to the accord, the U.S. State Department said. There was no immediate comment from the nations critical of the launch about the North Korean invitation to outsiders. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story244.txt: -------------------------------------------------------------------------------- 1 | Nazi war criminal Demjanjuk dies 2 | Demjanjuk, 91, was found guilty last May in a German court of assisting in mass murder as a guard at the Nazi-run Sobibor death camp in German-occupied Poland, and sentenced to five years in prison. He died in a home for the elderly where he was living pending appeal, Oberbayern-Sud police spokesman Kilian Steger said. As part of standard procedure, the Traunstein state prosecutor's office is looking into the circumstances of his death, Steger said. The Nazis and their sympathizers killed at least 167,000 people at Sobibor in 1942 and 1943, according to the U.S. Holocaust Memorial Museum. Munich state prosecutors charged Demjanjuk as an accessory to about 27,900 of those deaths, and the court found the killings were "motivated by racial hatred." Demjanjuk denied the charges, arguing that he was a prisoner of war who was forced to do what the Nazis wanted. The Ukraine native, who moved to the U.S. after World War II, raised a family and worked in the auto industry in Ohio, was finally extradited from the United States in 2009 to face trial following a long legal battle. The accusations against Demjanjuk date to the late 1970s, when the U.S. Justice Department accused him of being a Nazi guard known as "Ivan the Terrible." His U.S. citizenship was revoked in 1981, and he was extradited to Israel in 1986. He was convicted in an Israeli court in 1988 and sentenced to death, but that conviction was overturned in 1993 amid evidence that someone else was "Ivan the Terrible." A U.S. federal court restored Demjanjuk's citizenship, ruling that the government withheld evidence supporting his case. But his citizenship was revoked again in 2002 after a federal judge ruled that his 1952 entry into the United States was illegal because he hid his past as a Nazi guard. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story251.txt: -------------------------------------------------------------------------------- 1 | Odd-behaving 'Kony' director detained 2 | While San Diego police declined to provide the identity of the 33-year-old man, an official familiar with the case confirmed him to be Jason Russell. Police said the man, who 911 callers said was interfering with traffic and acting irrationally, was not arrested and was transported to a local medical facility. Russell is one of the founders of the San Diego-based nonprofit group Invisible Children, which produced the half-hour film about warlord Joseph Kony. "Kony 2012" skyrocketed to popularity on YouTube, propelled by thousands of posts on Twitter and Facebook, garnering nearly 80 million views since its March 5 release. Ben Keesey, the group's chief executive, issued a statement Friday confirming that Russell was hospitalized for "exhaustion, dehydration and malnutrition." "The past two weeks have taken a severe emotional toll on all of us, Jason especially, and that toll manifested itself in an unfortunate incident yesterday," Keesey said. The popularity of the film led to a flurry of media appearances for Russell and his fellow Invisible Children co-founders and prompted scrutiny from some who argued that the social media frenzy was too little, too late. The group has said it hopes the film and other efforts will make Kony a household name and drum up international support to halt killings, rapes, abuses and abductions committed by his group, the Lord's Resistance Army, in central Africa. Kony has operated in central Africa for two decades and is wanted for crimes against humanity by the International Criminal Court. In October, the United States sent 100 combat-equipped troops on a mission to kill or capture Kony. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story269.txt: -------------------------------------------------------------------------------- 1 | Band yells racist chant at NCAA tourney 2 | TV cameras captured the incident during the University of Southern Mississippi-Kansas State University game at the Consol Energy Center in Pittsburgh. As Kansas State point guard Angel Rodriguez shot free throws, several people could clearly be heard with the green card chant. Rodriguez did not change his expression during the chants and helped push Kansas State to victory by scoring 13 points. "I heard it. I don't pay attention to that nonsense, especially because Puerto Rico is a commonwealth, so we don't need no type of papers," Rodriguez said Friday. "Their athletic director and personnel from their school came to apologize, and I accepted it." Rodriguez said he realized that there are "ignorant people, and I know that is not how they want to represent their university." "I've moved on already," he said. "I have a game to focus on." NCAA spokeswoman Stacey Osburn said the University of Southern Mississippi "responded in a timely and appropriate fashion to address the matter." "Any determination of championship misconduct is the purview of the men's basketball committee and will be addressed following the tournament," she said. Southern Miss President Martha Saunders issued an apology. "We deeply regret the remarks made by a few students at today's game," Saunders said in a statement on the school's website. "The words of these individuals do not represent the sentiments of our pep band, athletic department or university. We apologize to Mr. Rodriguez and will take quick and appropriate disciplinary action against the students involved in this isolated incident." The eighth-seeded Kansas State Wildcats beat the ninth-seeded Southern Miss Golden Eagles 70-64, knocking them out of the tournament. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story279.txt: -------------------------------------------------------------------------------- 1 | Comic Gallagher has heart attack at club 2 | "We will not know the outcome until sometime tomorrow," Christine Scherrer said. Gallagher, 65, is in stable condition at an undisclosed Dallas-area hospital, Scherrer said. He was about to go onstage Wednesday at Hat Tricks, a Lewisville, Texas, club, when he fell ill and was taken to a hospital by paramedics, she said. "His family is with him and Hat Tricks has been unbelievable with the help and support with everything," Scherrer said. His shows in Texas, Oklahoma and Oregon scheduled through next week have been postponed, she said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story284.txt: -------------------------------------------------------------------------------- 1 | 3 French soldiers killed in shooting 2 | The defense ministry corrected its earlier report that all three soldiers had died. "The last one is not dead, but he is in a very bad state," said ministry spokeswoman Natalie Neveu. The third soldier was hospitalized in Toulouse, she said. Two of the soldiers, aged 24 and 26, died at the scene of the shooting, officials said earlier. The three soldiers were at a commercial center when the man approached them, pulled a gun and started firing, city police commander Charles Cauquil told CNN. The police and army were seeking the shooter, who fled the scene after the attack. The three soldiers belonged to the 17th parachute regiment stationed in Montauban, a Defense Ministry spokesman said. The judiciary police in Toulouse were investigating the shooting, Cauquil said. Montauban, capital of the Tarn-et-Garonne area, is about 50 kilometers (31 miles) from Toulouse. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story292.txt: -------------------------------------------------------------------------------- 1 | TSA to test new screening for elderly 2 | Beginning Monday, the TSA will test procedures allowing those passengers to leave their shoes on, as well as light outerwear. Other changes are intended to reduce the likelihood that older passengers will be subjected to a pat-down. Some airports want private screeners The tests will be conducted at four airports: Chicago's O'Hare, Denver International, Portland International in Oregon, and Orlando International. If they are successful, the TSA could expand the procedures to checkpoints nationwide. The new protocols closely parallel changes implemented last fall for passengers age 12 and under, and for the same reason -- intelligence indicates that they are unlikely to be involved in a terrorist attack, the TSA said. TSA spokesman Greg Soule said the agency is trying to "move away from the one-size-fits-all approach" to security screening. The changes will manage risk, but not eliminate it, he said. FAA changes safety reporting culture At the selected checkpoints, passengers 75 and older will be allowed to leave their shoes and light outerwear on. If the full-body scanner detects an anomaly, the passenger will be allowed a second pass through the machine to resolve the issue. If the matter is still unresolved, the TSA screeners will be able to use other methods, such as an explosive trace detection test, before subjecting the traveler to a physical pat down. Passengers may be required to remove shoes and may still undergo a pat-down if anomalies persist. TSA officers will make a visual assessment to determine which passengers are 75 or older, the agency said. The TSA said the new procedures will allow officers to better focus on passengers who may be more likely to pose a risk to transportation while expediting the screening process. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story302.txt: -------------------------------------------------------------------------------- 1 | Senate passes $109B transportation bill 2 | The 74-22 Senate vote showed broad bipartisan support for the two-year measure that extends the federal highway trust fund set to expire at the end of March. Without an extension, many federally funded projects to build and repair roads and bridges would halt. Senate Majority Leader Harry Reid, D-Nevada, hailed the measure as a jobs bill and urged the Republican-led House to quickly pass it. The White House also called for rapid House approval on a bill to keep work going on infrastructure projects and provide state and local authorities with "the certainty they need to plan ahead." House Republicans are pushing a five-year transportation bill that would include provisions opposed by Democrats, such as expanded oil drilling on federal lands. "We are all working together toward coalescing around a longer-term approach with needed reforms," said Michael Steel, the spokesman for House Speaker John Boehner, R-Ohio. "If we can't get there, we may have to take up something like the Senate bill -- but we'd prefer to take the responsible approach on this and get a longer-term bill through the House." According to two House GOP leadership aides, the House will likely bring up a short-term extension of a few months to provide more time to work out the desired longer-term version. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story306.txt: -------------------------------------------------------------------------------- 1 | School bus, truck collide in Pennsylvania 2 | At least one person was killed in the crash, Pennsylvania State Police Trooper Scott Kovach said. Medical helicopters were transporting six students to hospitals, said Geraldine Budzina, a dispatcher with Somerset County 911. Two other school buses were taking 22 students with less serious injuries to a hospital, she said. As many as 70 students may have been on the school bus, she said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story309.txt: -------------------------------------------------------------------------------- 1 | Pakistan Christian mom faces execution 2 | A Pakistani court Asia Bibi guilty of defiling the name of the Prophet Mohammed during a 2009 argument with Muslim fellow field workers. The offense is punishable by death or life imprisonment, according to Pakistan's penal code, and Bibi was sentenced to hang. But an investigation by a Pakistani government ministry found the charges stemmed from religious and personal enmity and recommended Bibi's release. The petition was signed by 50 activists including a former Czech foreign minister, the president of the U.N. General Assembly, a survivor of Tiananmen Square and a women's rights advocate from Mali. "With Pakistan now running for a seat on the U.N. Human Rights Council, the government should make an important gesture by releasing Asia Bibi, and repealing its blasphemy law, which is inconsistent with basic human rights," said Hillel Neuer, director of U.N. Watch, a Geneva-based human rights group that organized the petition. However, Pakistani Prime Minister Yousuf Raza Gilani has said that the government will not change the country's controversial blasphemy laws. Liberal politician Salman Taseer, then governor of Punjab, who led a campaign to end the law, was assassinated in January 2011. Taseer said the blasphemy laws were being misused to persecute religious minorities and had called for Bibi's release. Bibi writes about her ordeal in a recently published book called "Get Me Out of Here." It includes a letter she wrote to her family urging them to have faith in God. "My children," she wrote, "don't lose courage or faith in Jesus Christ." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story314.txt: -------------------------------------------------------------------------------- 1 | Doobie Brothers drummer dead at 65 2 | He had been battling cancer for some time and succumbed to complications of the disease with his family at his side. Hossack was a member of the Doobie Brothers between 1971 and 1973, playing on several of the band's best-known hits , including "Jesus Is Just Alright," "Listen to the Music" and "China Grove." Hossack returned to the band when they reunited in 1987 and was a mainstay of the group through the next two decades, performing on most of the group's tours until he took a health leave in 2010. The Doobie Brothers released a statement on Hossack in January, saying he was improving slowly. In 2010, Hossack wrote a message to his fans explaining that, while "it's been hard not touring with the band," he had "incredible support" from his family, friends and the Doobie Brothers . See the full article at RollingStone.com 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story316.txt: -------------------------------------------------------------------------------- 1 | Strong earthquake hits Japan 2 | The Japanese Meteorological Agency issued a brief tsunami advisory, warning of a half-meter wave. The tsunami advisory was called off a short time after the agency issued it. The quake was centered about 270 kilometers (170 miles) off the east coast. There were no immediate reports of damage, police said. This temblor comes three days after the one-year anniversary of the earthquake and tsunami that killed thousands in Japan, and triggered the world's worst nuclear crisis in a quarter century. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story327.txt: -------------------------------------------------------------------------------- 1 | Missouri school bus overturns; 16 hurt 2 | The accident near Belgrade happened along Highway C, according to Missouri Highway Patrol Sgt. Al Nothum. The driver reported he was distracted by a child and lost control of the vehicle, he said. The bus overturned onto its right side. On board were 35 students and the driver, said Nothum. Thirteen of the injured were either taken to or walked in at Washington County Memorial Hospital, said spokeswoman Leah Osbahr. They were being treated for fractures and lacerations. The other three victims were at St. Louis Children's Hospital, said spokeswoman Jackie Furman. All were listed in satisfactory condition. School bus wreck kills driver, child in Indiana The accident happened at about 3:10 p.m. (4:10 p.m. ET), said Nothum. Later, aerial video of the accident scene showed a school bus being towed. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story339.txt: -------------------------------------------------------------------------------- 1 | Tiger may still make the Masters 2 | Speculation was rife that Woods could miss the Masters at the start of next month. But the four-time winner at Augusta now looks likely to tee off at the golf year's opening major after revealing he has only suffered a minor strain to his left Achilles tendon. The American used his official account on the micro-blogging website Twitter to announce his relief. "Got good news from doc (sic) tonight. Only mild strain of left Achilles. Can resume hitting balls late in week and hopeful for next week." The 14-time major winner rushed his recovery from a similar injury he sustained at the 2011 Masters, returning at the Players Championship just five weeks later only to withdraw after just nine holes. Injury forces Woods to withdraw It led to a three-month layoff, and the 36-year-old said on Sunday wanted to avoid making a similar mistake this year. But he could make his return as early as next week, when he is scheduled to play at the PGA Tour's Arnold Palmer Invitational in his home state Florida. Woods has shown flashes of evidence that he is returning to the top of his game in recent months after struggling for form and fitness since details of his extramarital affairs emerged in November 2009, leading to his divorce. He finished tied for third at the Abu Dhabi Golf Championship in January and won the Chevron World Challenge, a tournament he hosts, in November. Woods' recent form raised hopes he could clinch a first major title since the 2008 U.S. Open at the April 5-8 Masters, with golf fans also eagerly anticipating a showdown with new world No. 1 and U.S. Open champion Rory McIlroy. McIlroy, 22, is the second-youngest player to reach the top of the world rankings, with only Woods reaching the mark at an earlier age. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story354.txt: -------------------------------------------------------------------------------- 1 | Student, driver die in school bus wreck 2 | Ten other children were injured, including two critically, according to the Indianapolis Fire Department. The girl killed in the wreck was estimated to be 5 or 6 years old. The wreck happened just before 8 a.m. on Emerson Avenue in southeastern Indianapolis, the fire department said. An investigation into the cause of the accident is under way. Witnesses said they saw nothing unusual before the bus hit an abutment beneath a concrete overpass, according to fire department spokeswoman Rita Burris. Officials are waiting for a coroner's report to determine if the driver had a medical condition that could have contributed to the wreck. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story364.txt: -------------------------------------------------------------------------------- 1 | Instagram hits 27 million users 2 | The app now has 27 million registered users -- up from 15 million in December, its co-founders announced Sunday. And a long-awaited version of Instagram for the Android platform is coming soon. "We've been able to put together one of the most incredible Android apps you will ever see," said CEO Kevin Systrom told audience members during a session at the South By Southwest Interactive conference, waving an Android phone with a prototype on it. "It's extremely fast." Systrom said he's been using the Android phone since shattering his iPhone while climbing out of an Austin pedicab. Systrom said the Android app is in private beta but will be released to the public "really soon." Instagram also is looking at WIndows Phone 7 as another possible future platform, he said. "It's a very exciting time for us. We're growing faster more quickly than anyone right now," he said. Launched by Systrom and partner Mike Krieger less than two years ago, Instagram already has more users than location-based network Foursquare , despite only being available on Apple's iOS. Systrom and Krieger attributed their dramatic growth rate to the popularity of the iPhone 4S and Apple naming Instagram as its 2011 App of the Year . The pair also were featured in a Best Buy ad that aired during the Super Bowl last month. The app lets users enhance their photos with filters, share them with their friends or other people and comment on friends' photos. Like Twitter, Instagram also allows people to follow other users. The Wall Street Journal reported last week that Instagram is raising a new round of funding that would value the company at up to $500 million. Systrom declined to comment on that Sunday. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story376.txt: -------------------------------------------------------------------------------- 1 | Suicide attack at Pakistan funeral kills 14 2 | The blast took place just outside Peshawar, the capital of the Khyber Pakhtunkhwa province, said city police official Kalam Khan. While no one immediately claimed responsibility for the attack, authorities believe the target may have been members of the Awami National Party. Khushdil Khan, a party member who is the deputy speaker of the provincial assembly, had gone to the funeral for a local woman. But he left before the suicide bomber walked up to mourners and blew himself up as they were leaving, police said The Awami National Party, which is part of the governing coalition led by Prime Minister Yousaf Raza Gilani's Pakistan Peoples Party, is often targeted by the Taliban. In February, an explosion outside a political rally in northwest Pakistan killed five people and wounded 10, officials said. The Tehrik-e-Taliban, or Pakistani Taliban, claimed responsibility for the blast. "We carried out the attack," said Asim Mehsud, the Taliban spokesman for Pakistan's South Waziristan region. "We will also target upcoming rallies of the Awami National Party, as it is a secular party. We will also target any other rallies conducted by secular political parties in the future." In November, party member Hanif Jadoon and his bodyguard were killed in a suicide attack. Jadoon had just finished morning prayers on the Islamic holiday of Eid al-Adha when a bomber approached his car and detonated his explosives. The attack took place in the Swabi district of the province, about 80 kilometers (50 miles) west of Islamabad. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story385.txt: -------------------------------------------------------------------------------- 1 | Remains of 167 found in Mexico 2 | The remains were discovered inside a cave on the Nuevo Ojo de Agua ranch, and show no visible signs of violence, according to a statement from state prosecutors. Studies will be done to determine the age, sex and cause of death of each person, it read. The prosecutors promised not to rule out "any line of investigation." Though the remains are thought to be more than half a century old, the discovery is still sure to attract attention in a country where mass graves have been unearthed in recent years. The bodies of 72 migrants from Central and South America were discovered at a ranch in northern Mexico in August 2010. In the same area, authorities found mass graves last year, containing the remains of nearly 200 people. They began finding the graves while investigating the kidnappings of bus passengers. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story386.txt: -------------------------------------------------------------------------------- 1 | 3 dead in Kenya bus station blast 2 | At least 68 people are undergoing treatment at a Nairobi hospital, according to the agency. The explosions, which authorities believe are grenade attacks, occurred Saturday at a normally-crowded bus station in central Nairobi. "We still need to complete investigations and we cannot immediately confirm who did this, but we highly suspect that it is Al-Shabaab or sympathizers of Al-Shabaab," said Charles Owino, the police deputy spokesman. "Eyewitnesses say that grenades were thrown from a vehicle and the suspected perpetrators fled from the scene." There have been several instances of grenade attacks at bus stations and at a bar in Nairobi in recent months. One person was killed and 20 injured in October when an attacker hurled grenades into a bar and a bus station. In that attack, a Kenyan man pleaded guilty to being a member of the Islamic militant group Al-Shabaab and was charged with causing grievous bodily harm. The East African nation has been on edge since it sent its troops into Somalia to pursue Al-Shabaab militants after the abductions of tourists and aid workers in Kenya. It blames the abductions on Al-Shabaab, which has denied involvement. Al-Shabaab, which the U.S. considers a terror group, has threatened to attack Kenya if it does not withdraw its forces from Somalia. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story392.txt: -------------------------------------------------------------------------------- 1 | Officials: Yemen forces kill 36 militants 2 | In a separate action, 18 additional militants were killed in airstrikes, officials said. The first airstrikes occurred in the Yemen province of al-Baitha in areas used as launching pads for militant attacks, the officials said. "Al Qaeda is trying to build a stronghold in al-Baitha and it is in the beginning stages. We are trying to eliminate their presence while it is still possible and easy," one of the officials said. Both officials did not want to be named because they are not authorized to speak to the media. Smoke from the air raids covered the skies of al-Baitha hours after the attack. Security forces also formed new checkpoints in nearby districts. Residents said military aircraft roam the skies of the province around the clock. In a separate action, the air force carried out five airstrikes in the towns of Jaar and Zinjibar in Abyan province, killing 18 suspected Ansar al-Sharia militants, Yemeni security officials toldf CNN. The attacks targeted caches of weapons and equipment seized by the militants earlier this week, the officials said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story397.txt: -------------------------------------------------------------------------------- 1 | Actor Michael Madsen arrested 2 | Madsen, 54, was arrested Friday afternoon after deputies were called to his Malibu home, according to a sheriff's department statement. "Madsen, an actor, appeared under the influence of alcohol got into a physical altercation with his teenage son," the statement said The teen did not need medical attention. Madsen, who starred in the movie "Kill Bill," faces a charge of cruelty to a child. Bail was set at $100,000. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story401.txt: -------------------------------------------------------------------------------- 1 | Birthday girl left at Chuck E. Cheese 2 | "She was remorseful. She was upset," Pearland police investigator Jeff Mink said by phone. "But the question still arises, how and why the child was left behind? And why it took so long for the mother to realize the child was still missing?" A restaurant worker alerted police to the abandoned child at 10:50 p.m. Thursday, but the mother did not report her missing until 7:50 a.m. Friday, Mink said. The woman left the restaurant at 10 p.m. with her other nine children and it wasn't until she was getting them ready for school the next morning that she realized her mistake, Mink said. He added that the mother, a relative and a friend were the only adults involved in hosting the event, which was attended by 19 children Police planned to analyze surveillance video from the restaurant before deciding whether to file charges against the mother, who has no record, Mink said. Meanwhile, the child has been placed in the custody of Child Protection Services. Restaurant staff referred media calls to the chain's home office, which was closed at the time. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story404.txt: -------------------------------------------------------------------------------- 1 | Judge stabbed, officer shot in Wash. 2 | Undersheriff Rick Scott said the man gave his name as Michael Thomas when the officer approached him shortly after noon inside the Grays Harbor County Courthouse in Montesano. "He attacked her with a sharp-edged instrument," Scott said. "The judge rushed to the aid of the officer and actually struck the suspect physically, knocking him off of the deputy." The suspect cut Superior Court Judge David Edwards in the neck. Deputy Polly Davin attempted to draw her weapon, but the suspect was able to knock her to the floor and take her weapon, officials said. The suspect fired twice, hitting the deputy once in the shoulder. Seattle affiliate KING said the man left the courthouse with the handgun. Edwards and Davin were in satisfactory condition at Grays Harbor Community Hospital, spokesman David Quigg said. "They are comfortable and doing well," said Quigg, declining to detail the extent of their injuries. The suspect was still on the loose, Scott told CNN. CNN Seattle affiliate KIRO aired footage of officers in a residential neighborhood in Montesano. "They believe he could be in a location in the area," said Trooper Russ Winger, a spokesman for the Washington State Patrol. "They believe he is armed." Scott said officials were not certain of the suspect's true identity. The incident occurred in Montesano, the county seat for Grays Harbor County, west of Olympia and near the Pacific Coast. Many offices and buildings were placed in lockdown. According to KIRO, a man garnered the attention of courthouse employees and the officer approached him. The suspect was well-dressed and possibly carrying a briefcase, Winger said. Montesano Police did not immediately return phone messages seeking comment. Gov. Chris Gregoire appointed Edwards to the bench in December 2007. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story412.txt: -------------------------------------------------------------------------------- 1 | 'Disco Inferno' singer Jimmy Ellis dies 2 | He was 74. Ellis' rich baritone powered the funky Grammy-winning tune from the "Saturday Night Fever" album. It is only second to "The Bodyguard" as the best-selling soundtrack album of all time with sales of 15 million. Despite the success associated with the hit movie, Ellis and the band couldn't translate it into mainstream appeal, scoring just three R&B Top 10 hits from 1972 to 1978. But the group still commanded respect in the music community. "But the Trammps' prowess can't be measured by chart popularity. Ellis' booming, joyous vocals brilliantly championed the celebratory fervor and atmosphere that made disco both loved and hated among music fans," the group's biography on allmusic.com says. The Trammps began in Philadelphia in 1972. Ellis' memorial service is scheduled for March 16 at Central Church of God in Charlotte, North Carolina. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story415.txt: -------------------------------------------------------------------------------- 1 | Infant found dead in car's trunk 2 | Relatives of the car's owner said they were cleaning out the trunk and found the body of an infant, according to Lt. Steve Jones of the Calvert County Sheriff's Office. The car was parked outside a home in Prince Frederick area. Investigators are questioning the vehicle's owner, Jones said. Family members had earlier called police to voice fears about the baby's well-being, CNN affiliate WUSA reported. No charges have been filed yet, the affiliate said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story416.txt: -------------------------------------------------------------------------------- 1 | Greek bond deal clears way for debt bailout 2 | The monumental deal means Greece has cleared its final hurdle to qualify for the 130 billion bailout program from the European Union and International Monetary Fund. More than 85% of private bondholders agreed to the deal, Deputy Prime Minister Evangelos Venizelos said in a statement. The agreement, called the private-sector involvement, gives bondholders unattractive terms, experts have said. Investors who own Greek bonds could now see losses of up to 75%. But not doing the agreement could have meant that Greece would not qualify for more bailout money and could face default. Now that the deal is accepted, European finance officials could approve the final portion of Greece's bailout as early as Friday. "I wish to express my appreciation to all of our creditors who have supported our ambitious program of reform and adjustment, and who have shared the sacrifices of the Greek people in this historic endeavor," Venizelos said. The Institute of International Finance, the Washington, D.C.-based industry group that represented the private-sector creditors, applauded the plan. "The very strong and positive result provides a major opportunity now for Greece to move ahead with its economic reform program," the group said in a statement. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story419.txt: -------------------------------------------------------------------------------- 1 | Candy's Take: Why they keep running 2 | Despite Mitt Romney having a sizable delegate lead on his rivals, they might not be going anywhere. Track the candidates on CNN's delegate counter They might want something from whoever wins -- a speaking slot at the convention or a specific plank in the party platform. The more delegates you have, the greater your power to affect convention issues. They may want the attention, keeping their profile up for future book sales or speaking fees. Remember, every place they go (almost), local cameras are there and will talk about candidate X on the local news, not to mention the constant national television presence. They may be a message candidate, anxious to use the limelight to promote a specific issue or doctrine (think anti-war presidential candidate Rep. Dennis Kucinich in 2004 and 2008). You know the saying "hope springs eternal"? Yes it does. Improbable does not mean impossible. Hundreds of "what ifs" swirl through a campaign on life support. "What if the front-runner says something really egregious and his numbers plummet? Then I'll be there. What if I change our message? My strategy? What if my ship comes in tomorrow?" Finally, regardless of what you think of politicians, they are human beings. They have worked for years or decades to get where they are, and the 2012 presidential campaign began long before most people were paying the least bit of attention. It has been a long, hard slog. They've dreamed of being president. If you have ever had to let go of a dream, then you know how hard it is. The first stage is denial. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story428.txt: -------------------------------------------------------------------------------- 1 | Bin Laden widows in trouble in Pakistan 2 | The widows are in the custody of Pakistani authorities, Minister Rehman Malik said. Last year, Pakistan told U.S. officials that three wives of bin Laden, who was killed in Pakistan by U.S. forces last year, were living in the country. Malik said two of bin Laden's widows have been detained. The status of the third widow, who authorities reported last year was also residing in Pakistan, was not immediately clear Thursday. 2011: U.S. interviews "hostile" bin Laden widows "Their entry into Pakistan was illegal," Malik said. "They also did not inform the authorities that they were living here. "And there were many other incidents where deception and forgery was committed," Malik told reporters. The widows have already been presented in court and are now in custody, the minister added. "The most important thing is that the women are kept in a proper manner, and keeping this in mind they have been kept in a proper house which has been declared a sub-jail," Malik said. Pakistan's Federal Investigation Agency initiated the proceedings against the widows three days ago. "They can have their own lawyers, and they will have the whole liberty to defend themselves in the court," Malik said. The children of the widows aren't included in the proceedings and are free to live in the country, he explained. "There is no case on the children. Only the adult family members, who knew the law and who abetted Osama, have had a case registered against them," Malik said. "A five-bedroom house has been given to them, so the children feel they are in their own home and have been given every type of facility, food and shelter, as though it were their own home," he added. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story435.txt: -------------------------------------------------------------------------------- 1 | U.S. probes Afghan air force drug claims 2 | Investigators want to know whether the drug-running allegations, first reported in the Wall Street Journal , are linked to the shooting deaths last year of eight U.S. Air Force officers at the airport in the Afghan capital, Kabul. "The allegations of improper use of AAF aircraft is being looked into," said Lt. Col. Tim Stauffer, referring to the allegations that Afghan air force equipment has been used to illegally ferry drugs and arms. He said that he was aware of media reports linking this investigation to a shooting at Kabul International Airport in 2011 but that the investigation was ongoing. A U.S. Air Force investigation into the killing of the eight American officers found that the shooter acted alone. The exhaustive report describes a shooter who was radicalized and vocally anti-American at times but at other times interacted with American mentors and trainers in his capacity as a pilot. The Wall Street Journal reported that the majority of the officers killed were involved in an early investigation into the misuse of Afghan planes. The shooter, Ahmed Gul, was the Afghan officer who coordinated the Afghan air force's cargo movement, the newspaper said. According to the paper, Western officials say early findings suggest that Afghan air force officials may have been involved in drugs and weapons transporting or at least turned a blind eye to it. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story437.txt: -------------------------------------------------------------------------------- 1 | Teen flees alleged Facebook predator 2 | The 13-year-old girl escaped from a motel room in Plainview last month after a 25-year-old man allegedly befriended her by posing as a 15-year-old girl on Facebook, police said. He later invited her into the motel, Plainview Police Capt. Manuel Balderas told CNN by phone. Police said they have a suspect whom they have not identified publicly, and no one has been arrested after school officials made the incident public this week. The teen's older sister drove her to the motel, Balderas said, and she went to the room where she planned to meet her Facebook friend. Once she got to the room, an older man greeted her, saying her Facebook friend was in the shower and would greet her shortly, according to the police When the girl turned her back to look toward the bathroom, he grabbed her and taped her mouth shut, Balderas said. She resisted and screamed, and the man panicked and removed the tape, according to police. Balderas said the girl blurted out that her sister was waiting outside the motel for her, forcing the man to release his grip. She ran out of the door and back to her sister's car, according to police. Such situations rarely end so safely, said Balderas, who urged parents to monitor their children's online activity and ensure that meetings with people they meet online take place under adult supervision and in a public place. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story439.txt: -------------------------------------------------------------------------------- 1 | Jobs bill would aid small businesses 2 | The proposal called the JOBS Act, short for "Jump-starting Our Business Startups," comprises of six measures aimed at removing barriers to small business investment. Republican leaders and the White House sent signals of a possible detente last week as they huddled over a lunch of salmon risotto. "The president was very optimistic about moving that bill through the House," House Speaker John Boehner, R-Ohio, said following the February 29 meeting. "Frankly, it was a very good luncheon, and I'm encouraged by the attitude and the tone that we had during the meeting." White House spokesman Jay Carney called the lunch meeting "cordial and constructive," and cited proposals to help small businesses as an area of possible agreement. "We've been very explicit about the opportunity to move forward on some aspects of" the JOBS proposal, Carney said. Most of the JOBS Act measures have already passed the House with bipartisan support. The vote comes as the U.S. economy is starting to show signs of sustained recovery years after a crippling recession. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story443.txt: -------------------------------------------------------------------------------- 1 | Murder charges nixed in abortion case 2 | "We have exercised our discretion to dismiss them at this point," said Cecil County State's Attorney Ellis Rollins. The doctors, Steven Brigham and Nicola Riley, had faced identical charges: five counts each of first-degree murder, five of second-degree murder and one of conspiracy to commit first-degree murder. The investigation began August 13, 2010, when Riley brought a woman into an Elkton hospital due to a "complication resulting from a medical procedure," police said. The woman had driven from New Jersey to Maryland for an abortion, investigators later determined. Days later, Elkton police searched the abortion clinic where Brigham and Riley work and found several fetuses "in a freezer chest." The fetuses were taken to a medical examiner's office in Baltimore, according a police news release. Maryland is one of 38 states that have fetal homicide laws, often supported by anti-abortion advocates, which advocates say are intended to protect the lives of both the pregnant woman and the fetus. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story445.txt: -------------------------------------------------------------------------------- 1 | Ravi texted Clementi on night of suicide 2 | It is not clear if Clementi ever received the messages. "I've known you were gay and I have no problem with it," read messages sent by Ravi, according to authorities. Ravi apparently sent the messages after he learned that Clementi had requested a room change. They were sent September 22, 2010, the same night Clementi took his own life by leaping from the George Washington Bridge, which spans the Hudson River between New York and New Jersey. Prosecutors have said Ravi and another student placed the camera in the dormitory room without Clementi's knowledge to spy and humiliate him because he was gay. Ravi's lawyer, Steve Altman, has said his client had switched on the webcam to monitor his personal items because he did not trust his roommate's visitor. The man who Clementi was intimate with, identified only as M.B., testified last week that after one encounter he "could hear people talking in the courtyard. People joking, people laughing." Ravi, 20, now faces a 15-count indictment in Clementi's death that includes charges of bias intimidation, invasion of privacy, tampering with physical evidence, witness tampering and hindering apprehension or prosecution. His trial began last Friday. If convicted, he faces up to 10 years in prison. Last year, he turned down a plea deal that would have allowed him to avoid jail time. Less than a month after Clementi's suicide, President Obama released a videotaped message condemning bullying. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story454.txt: -------------------------------------------------------------------------------- 1 | Storm kills 72 in Madagascar 2 | One person has been injured, and two more are missing, according to Setra Rakotomandrindra of the National Bureau of Natural Catastrophes. About 21,235 people are homeless, he said, and a total of 67,911 people have been affected, mostly in the southeastern part of the island nation. The government was using tents to house those who need shelter, he said. Irina was Madagascar's second violent storm in two weeks, according to the IRIN news agency, a service of the U.N.'s Office for the Coordination of Humanitarian Affairs. Cyclone Giovanna wreaked havoc on Madagascar last month, IRIN said. But "while most people had been warned of Giovanna's destructive potential, Irina took the Indian Ocean island largely by surprise, destroying roads and houses already weakened by the first cyclone." More than 100 people have died during the nation's current cyclone season, which usually runs from January to March, IRIN said. Most of the casualties were in the southeastern town of Ifanadiana, where a mudslide swallowed homes and caused a traffic accident involving a minibus, according to IRIN. Main roads in Madagascar have been reopened as of Wednesday, Rakotomandrindra said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story46.txt: -------------------------------------------------------------------------------- 1 | Drunk driving charge for Bobby Brown 2 | Brown, 43, showed signs of intoxication and failed a field sobriety test during the traffic stop at 12:20 p.m. in the Reseda area of Los Angeles County, Officer Tiana Reed said. He was taken to the Los Angeles Police station in Van Nuys, where he was booked on a charge of driving under the influence, Reed said. Brown was released later Monday after several hours in custody, according to a California Highway Patrol spokesman. Brown, the ex-husband of the late singer Whitney Houston, is scheduled to perform with his group New Edition on Thursday in St. Louis. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story468.txt: -------------------------------------------------------------------------------- 1 | $336M Powerball winner claims prize 2 | "I'm very happy and I'm very proud," she said. "We are truly blessed. Thank you." White bought the winning ticket last month in Newport, Rhode Island, after a family member had a craving for rainbow sherbet and brought her to a store where she purchased the ticket. "We're very excited to be a part of this little bit of history; the winner is a lovely woman and valued customer," said store employee Suzi Robinson. "We are very happy for her." After realizing she had won, White tucked the winning ticket into her Bible and went to sleep holding the Bible, bringing it with her to breakfast the next day until she could eventually store it in a safe deposit box. White then sought legal counsel and established a trust for the funds, according to her attorney, Gregory Fater. It's called the Rainbow Sherbert Trust, named for the snack that prompted her visit to the store, even though the correct spelling is sherbet. Fater described White as "extremely grounded," and approached her newfound wealth with "extreme poise and level headedness." White elected to take the cash option and will receive a lump sum payment of $210 million, the highest cash option payout ever for Powerball, according to lottery officials. The state of Rhode Island will collect $14.7 million, while the federal government also tallies up to $52.5 million in revenue. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story474.txt: -------------------------------------------------------------------------------- 1 | Soldier dies trying to save daughters 2 | Chief Warrant Officer II Edward Duane Cantrell, 36, was a member of the 3rd Special Forces Group at Fort Bragg. The Green Beret had returned in August from his latest overseas deployment, said Lt. Col. April Olsen, spokeswoman for U.S. Army Services Command at Fort Bragg. His wife, Louise, told officials the family was upstairs when the fire broke out just before 2 a.m. Tuesday in Hope Mills, a suburb of Fayetteville. She jumped from a second-floor window and ran next door to call for help while her husband went to get their daughters, ages, 4 and 6, said Debbie Tanna, spokeswoman for the sheriff's office. "They never made it out," Tanna said. Local media reports say Cantrell and his two young daughters, Natalia and Isabella, died from smoke inhalation. Louise Cantrell was taken to Cape Fear Valley Medical Center in Fayetteville, Tanna told CNN affiliate WRAL. Officials believe the family's century-old home had tinderbox conditions that led to "a very intense fire." Military officials said the Fort Bragg soldier had completed six deployments, including one to Iraq and five to Afghanistan. He had four Bronze Stars and a Purple Heart for his service, according to the Army Special Operations Command. "There are no words to express the sorrow felt in our close-knit community when one of our families suffers such a loss," Olsen said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story475.txt: -------------------------------------------------------------------------------- 1 | Police: Fired worker kills headmaster 2 | The gunman, who was terminated earlier in the day and carried an assault rifle in a guitar case, went to the office of Headmistress Dale Regan, Undersheriff Dwain Senterfitt with the Jackonsville Sheriff's Office told reporters. "He shot and killed Ms. Regan and then he killed himself," he said. The sheriff's office later identified the suspected gunman as 28-year-old Shane Schumerth. No students were believed to be involved in the incident. "Our prayers go out to the Episcopal community," Senterfitt said, noting that he knew Regan personally and that his daughter had recently graduated from the same private school. "It's a tough day for us." Regan had worked at Episcopal High School for 34 years, according to Kate Moorehead, dean of St. John's Cathedral in Jacksonville. "We have full confidence that Dale Regan is already with God and in heaven," she said. "We ask you to please pray for us as a community." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story487.txt: -------------------------------------------------------------------------------- 1 | Glitch leaves Eurostar riders stuck 2 | The glitch in the overhead electricity lines on the French side of the tunnel under the English Channel caused big delays on trains running in both directions. Eurostar, the company that operates the service, canceled several trains Monday and experienced "severe delays totaling many hours on others," said a company spokeswoman. Some trains were still between stations at 1:45 a.m. Tuesday in Britain, she added. The train operator has also canceled four trains scheduled for Tuesday and expects more delays, the spokeswoman said, since the power supply problem means the trains can't use the high-speed lines they usually travel on. CNN's Juliet Mann was trying to get from Paris to London by Eurostar on Monday afternoon. "It was very obvious as we trundled through the French countryside that we had been diverted from our usual route," she said, saying the train driver made regular stops to check for status updates via fax. "We pulled into (London's) St. Pancras (station) four hours later than planned after the scenic tour of northern France," she said. Eurostar gave passengers regular updates and glasses of water, and offered them a complimentary round-trip journey, Mann said. The travel disruption took place at an inconvenient time for the fashion world, coming near the end of a week of Pret A Porter shows in Paris. The Eurostar runs a route between London and Paris, stopping in some cases at smaller towns in between. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story488.txt: -------------------------------------------------------------------------------- 1 | Ohio shooting suspect back in court 2 | Seated with his attorney and positioned in front of his grandparents, Lane, 17, wore a beige shirt and appeared to address the court politely during its ongoing deliberations over last month's shooting at Chardon High School. He is charged with three counts of aggravated murder, two of attempted aggravated murder and one of felonious assault. Authorities released police reports and court records last week that showed Lane had a troubled childhood. When he was 15, Lane was charged with juvenile assault for putting his uncle in a choke hold and punching him in the face, according to an incident report from the Geauga County Sheriff's Office. His parents also had both been charged with domestic violence against each other, according to court documents. His father also served prison time for assaulting a police officer and was charged in an assault on another woman. At the time of the shooting, Lane was living with his grandparents. Prosecutors filed a motion Monday to block the media from access to other records related to Lane, CNN affiliate WOIO reported. Prosecutors argued that Lane was already under "public scrutiny" and the release of more information "would only magnify the situation for him and his relatives," the affiliate reported. A probable cause hearing is scheduled for April 3, prosecutors said. A funeral mass for 16-year-old Demetrius C. Hewlin, one of the victims, coincided with Tuesday's proceedings. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story490.txt: -------------------------------------------------------------------------------- 1 | Obama to hold 1st formal briefing of '12 2 | Obama will address the media Tuesday afternoon, his first formal news conference since last year, the White House said. White House officials did not say what the topic of the news conference would be. Obama's remarks will come before the pivotal results are tallied from Super Tuesday, the Republican battle for voters in 10 states. His remarks also come one day after Obama met with Israeli Prime Minister Benjamin Netanyahu. The two leaders spoke about Iran's nuclear program and other Middle East issues amid speculation that Israel may attack nuclear sites in Iran. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story499.txt: -------------------------------------------------------------------------------- 1 | Taliban link attack to Quran burning 2 | The blast at the base, north of Kabul, killed two civilians and wounded two others, Interior Ministry spokesman Sediq Seddiqi said. A Taliban spokesman claimed 12 U.S. soldiers, including Special Forces members, and nine Afghans were killed in the blast, part of the group's "revenge campaign" for the Quran burning. An Afghan official, however, said two personnel from the NATO-led mission in Afghanistan were wounded, and a spokesman for the mission, the International Security Assistance Force, said initial reports suggested no ISAF casualties. The Taliban frequently exaggerate battlefield losses inflicted on ISAF personnel and have been accused of causing 75% of civilian casualties in the country. News of the Qurans being burned sparked protests and attacks that have left at least 40 people dead, including four American soldiers, and hundreds more wounded. U.S. officials have called the Quran burning an error by troops who were inadvertently given the Qurans and other religious materials to dispose of because they were thought to contain extremist inscriptions. U.S. President Barack Obama has apologized for the burning to his Afghan counterpart, Hamid Karzai. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story5.txt: -------------------------------------------------------------------------------- 1 | Rivera apologizes for Martin remarks 2 | After facing criticism from the media, celebrities, and his own son, Rivera today issued a "sincere and heartfelt apology" for his remarks. "I apologize to anyone offended by what one prominent black conservative called my 'very practical and potentially life-saving campaign urging black and Hispanic parents not to let their children go around wearing hoodies,'" Rivera wrote in an email to POLITICO. He added that "by putting responsibility on what kids wear instead of how people react to them I have obscured the main point that someone shot and killed an unarmed teenager." Additionally, Rivera verbally apologized on his radio show Wednesday morning. "[M]y own family and friends believe [that] I have obscured or diverted attention from the principal fact, which is that an unarmed 17-year-old was shot dead by a man who was never seriously investigated by local police," he said. "And if that is true, I apologize." See the full article at EW.com . 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story501.txt: -------------------------------------------------------------------------------- 1 | Report: Iran to spare American's life 2 | A lower court sentenced Amir Mirzaei Hekmati to death in January, but the nation's Supreme Court annulled that sentence and ordered a retrial, state-run Press TV said. The lower court previously had convicted the 28-year-old of "working for an enemy country," as well as membership in the CIA and "efforts to accuse Iran of involvement in terrorism," the semi-official Fars news agency has reported. The U.S. State Department has strongly condemned his conviction. "Allegations that Mr. Hekmati either worked for or was sent to Iran by the CIA are simply untrue," department spokeswoman Victoria Nuland said earlier this year. "The Iranian regime has a history of falsely accusing people of being spies, of eliciting forced confessions, and of holding innocent Americans for political reasons." Hekmati's family also denies the allegations. Hekmati was arrested in August while visiting his grandmother and other relatives, his family in Michigan said. The Hekmatis said their son served in the U.S. Marines from 2001 to 2005. Later, he started his own linguistics company and contracted his services to the military as well as civilian businesses. His military contracts included cultural competency training. He worked with troops at military bases to promote understanding and positive communication with people of other cultures, his family said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story507.txt: -------------------------------------------------------------------------------- 1 | Service set for Ohio shooting victim 2 | A visitation was set for Hewlin at Burr Funeral Home in Chardon ahead of Tuesday's funeral Mass, the same day accused shooter T.J. Lane heads back to court. Hewlin was killed last week when a lone gunman opened fire on students in Chardon High School's cafeteria. Two other students were hospitalized and another was grazed by gunfire. The shooting rocked the school and the community of 5,100 people about 30 miles east of Cleveland. A funeral service for Daniel Parmertor, 16, was held Saturday. A service for the third victim, 17-year-old Russell D. King, is scheduled for Thursday. Authorities say Lane, 17, is charged with three counts of aggravated murder, two of attempted aggravated murder and one of felonious assault. The latter is related to the student who was grazed by a bullet. Prosecutor David Joyce filed charges against Lane in juvenile court. The defendant's next court appearance will be Tuesday, and a hearing scheduled for March 19 will discuss a motion to transfer his case to an adult court. Lane's friends have said that the teen had a troubled childhood. His parents had both been charged with domestic violence against each other, according to court documents. His father also served prison time for assaulting a police officer and was charged in an assault on another woman. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story511.txt: -------------------------------------------------------------------------------- 1 | Ammo dump explodes in Congo; 200 die 2 | The explosions occurred shortly after 8 a.m. Sunday (2 a.m. ET) when a fire at the depot set off a cache of tank shells, said Betu Bangana, director of protocol for President Denis Sassou-Nguesso. Bangana said at least 200 people had been confirmed dead by Monday morning, and many bodies may be "unfindable." Ministry of Information press attache Bruno Impene said hospitals were overflowing, with the wounded lying in the corridors. The blasts destroyed numerous homes in the neighborhoods surrounding the installation, Bangana said. The force of the explosions broke windows up to 5 km (3 miles) away in Kinshasa, the capital of the neighboring Democratic Republic of the Congo. The DRC's military responded by putting tanks and troops on the streets and the banks of the Congo River, which separates the two cities, until it became clear that no attack on the capital was under way. Impene said a short circuit the suspected cause of the fire. Authorities are treating the blaze as accidental, Bangana said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story521.txt: -------------------------------------------------------------------------------- 1 | Police find child's body in 30-foot hole 2 | Authorities believe the child is Samuel Jones, who went missing Saturday, Carlsbad Police Department spokeswoman Lt. Jennifer Moyers said in a statement. Officials think the child died when he fell into the hole in his neighbor's yard, CNN affiliate KOAT reported. "We initially began with rescue procedures. Unfortunately, it was discovered that the conditions inside the hole were not survivable, the amount of oxygen that was there, the temperature, that type of thing," Carlsbad Police Chief Daniel Fierro told CNN affiliate KRQE . A detective searching for the 4-year-old Sunday morning spotted the body when he shined a light into the neighbor's well, KOAT reported. It could take a day for mining crews to reach the body safely, state police said. "It breaks my heart, that little boy down there," heavy equipment operator Paul Kartscner told KOAT. Crews were digging a trench from the side of the hole and shoring up the sides, KOAT said. Investigators, who said Saturday that they feared the boy had been abducted by a stranger, said Sunday that they were treating the case as a homicide until they determine a cause of death, KRQE reported. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story523.txt: -------------------------------------------------------------------------------- 1 | Chavez gets new cancer treatment 2 | In a recorded statement aired on state television, the 57-year-old Chavez said the tumor that was removed last Monday by doctors in Cuba was smaller than the one that he had removed last June. But he said doctors who examined the growth "confirmed what had they already supposed" -- that it was a recurrence of the initially diagnosed cancer and that it had been completely removed. "There is no metastasis, thanks be to God," he said. He said he was going through physical therapy following surgery and was about to start radiation treatment. "We are very optimistic," he said. The outspoken, flamboyant socialist leader has led Venezuela since 1999 and has pledged to run for reelection in October. But the government released few specifics about his surgery, fueling speculation that his illness would force him from politics. Chavez had surgery in Cuba on Monday, more than eight months after his earlier operation. The president's appearance, recorded Saturday, was his first on camera since his surgery, and he held up a copy of a Cuban newspaper to confirm the date. He has not specified the type of cancer he battled last year, but announced in October that his treatment had been successful. But he said his doctors told him that the new growth "required a fast intervention." "The other one was much bigger," he said. But doctors believed "it was likely ... that given what we had studied, that it was a recurrence." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story525.txt: -------------------------------------------------------------------------------- 1 | Ammo depot explodes in Congo; 123 die 2 | The explosions occurred shortly after 8 a.m. Sunday (2 a.m. ET) when a fire at the depot set off a cache of tank shells, said Betu Bangana, director of protocol for President Denis Sassou-Nguesso. Bangana said 123 people had been confirmed dead by Sunday evening, and many bodies may be "unfindable." Ministry of Information press attache Bruno Impene said hospitals were overflowing, with the wounded lying in the corridors. The blasts destroyed numerous homes in the neighborhoods surrounding the installation, Bangana said. The force of the explosions broke windows up to 5 km (3 miles) away in Kinshasa, the capital of the neighboring Democratic Republic of the Congo. The DRC's military responded by putting tanks and troops on the streets and the banks of the Congo River, which separates the two cities, until it became clear that no attack on the capital was under way. Impene said a short circuit the suspected cause of the fire. Authorities are treating the blaze as accidental, Bangana said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story529.txt: -------------------------------------------------------------------------------- 1 | Trains collide in Poland; 16 dead 2 | An American citizen was among the dead, said a spokesman with the U.S. Consulate in Krakow. In addition to the fatalities, the collision Saturday night injured at least 60 others, according to the Polish State Fire Brigade. Authorities are "almost sure there will be no living persons inside the wreckage," said Marcin Kopczynski, the duty officer. "We are using dogs to see if there are any living persons inside but no signs yet." A firefighter described the rescue operation at the crash site in Szczekociny as complicated. "The damage (to) the wagons is huge. We have contact with victims. We approach very cautiously," firefighter Jaroslaw Wojtasik told CNN's Polish affiliate TVN. More than 100 passengers who were not injured were evacuated to Warsaw, authorities said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story533.txt: -------------------------------------------------------------------------------- 1 | Scout to cookie $ thief: Gonna get you 2 | The incident left one of the girls slightly injured after she held on to the getaway car to stop it from leaving the scene, CNN affiliate KPRC reported. It started when a passenger got out of a car Saturday and pretended to be interested in the cookies the girls were selling outside a grocery store, according to the affiliate. He grabbed the cash box and ran, leaving the girls stunned outside a Walmart store in Fort Bend County. Girl Scout Iravia Cotton pursued the man to his car. "I started hitting the boy in the passenger seat," Cotton told the affiliate. "So I think he learned his lesson a little bit ... and then they dragged my friend Rachel across the street." Rachel Johnson told the affiliate she got a few bumps and scratches when she held onto the back bumper to stop the car from driving away. "I hope your face hurts from where Iravia punched you, jerk, bam," Johnson said in a message to the thieves. "I hope your face hurts and I hope it leaves a scar. Who steals money from Girl Scouts, I mean, really?" The cash box contained about $200, according to the affiliate. Girl Scouts are financially responsible for any cookies they order, troop leader Jean Marie Johnson said. Authorities said the suspects covered their license tag during the incident. An investigation is under way. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story534.txt: -------------------------------------------------------------------------------- 1 | Toddler is family's lone survivor 2 | They did know that she needed help. So the rush was on Friday to help the girl after she was found in Salem after devastating tornadoes struck the area, Clark County Sheriff's Department Maj. Chuck Adams said. Adams said the 20-month-old was intubated, with a tube inserted into her throat to help her breathe. She was taken first to Indiana's St. Vincent Salem Hospital before being flown about 35 miles southeast to Kosair Children's Hospital in Louisville, Kentucky, according to Brian Rublein, a spokesman for Kosair. "She is in critical condition," Rublein said Saturday night. Rublein and Adams said that, since the girl was first located, someone had called to identify her. The hospital spokesman added Saturday that extended family members were then with the child. But her entire immediate family -- her parents, as well as 3-year-old brother and 2-month-old sister -- were killed in the storm, according to Rublein. Those wishing to help can do so through the hospital's website, www.kosairchildrens.com , by specifying they want their donation to be directed to the girl who lost her family in the storm. As uncertain as this toddler's fate was, the situation was likewise tenuous for a 9-year-old boy from Henryville, about 20 miles east of Salem. Adams said that the boy's whereabouts have been unknown since twisters ravaged his Indiana town, destroying its high school, knocking down trees and tearing roofs off buildings. With lights knocked out throughout the region due to the potent storm, authorities were using thermal imaging and search dogs in an attempt to locate the boy, according to Adams. As of Saturday evening, authorities were reporting that at least 37 people had died as a result of the severe weather, including 18 in Kentucky and 14 in Indiana. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story538.txt: -------------------------------------------------------------------------------- 1 | Hundreds mourn slain Ohio student 2 | "I just can't believe what happened. He was honestly the sweetest person I've ever met. He's such a good person and I can't believe he's gone," said Parmertor's friend, Gabby Cveljo, CNN affiliate WEWS reported. Funeral services for the slain student were held at the Church of St. Mary in Chardon, Ohio, the network said. Mourners marched silently to the church, carrying the American flag. Others had signs with hearts and stood outside, wrapped in blankets against the cold. Parmertor was killed this week when a lone gunman opened fire on students in Chardon High School's cafeteria. Two other students were hospitalized and another was grazed by gunfire. The shooting rocked the school and the community of 5,100 people about 30 miles east of Cleveland. Authorities say T.J. Lane, 17, is charged him with three counts of aggravated murder, two of attempted aggravated murder and one of felonious assault. The latter is related to the student who was grazed by a bullet. Prosecutor David Joyce filed charges against Lane on Thursday in juvenile court. The defendant's next court appearance will be Tuesday, and a hearing scheduled for March 19 will discuss a motion to transfer his case to an adult court. Lane's friends have said that the teen had a troubled childhood. His parents had both been charged with domestic violence against each other, according to court documents. His father also served prison time for assaulting a police officer and was charged in an assault on another woman. "I think there's a lot of kids that go through things like that. That doesn't give them the right to kill other people," said Bob Parmertor, Daniel Parmertor's grandfather. "No one has the right to shoot other people because they've had a rough life." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story545.txt: -------------------------------------------------------------------------------- 1 | 13 shot outside Arizona nightclub 2 | No fatalities had been reported from the shooting, which occurred late Friday, but two people were in serious condition, Sgt. Steven Carbajal said. Police were searching for two men who left the scene. Concertgoers were outside The Clubhouse nightclub to hear rapper Nipsey Hussle perform. One patron said she was backed up against a wall and people were losing their phones in the panic during the shooting. The witness, who described the scene via Twitter under the moniker @RenTen10, wrote that she was struck by how many abandoned high-heeled shoes were on the pavement and sidewalk after the incident. Nipsey Hussle, who didn't go on stage, used his Twitter account to express his displeasure with the shooting at his show. "(Arizona) ... y'all gotta be cool man," he wrote. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story546.txt: -------------------------------------------------------------------------------- 1 | Official: 6 involved in Quran burning 2 | The Qurans burned were among religious materials seized from a detainee facility at Bagram Airfield last week. Throngs of outraged Afghans took to the streets following the incident, prompting U.S. President Barack Obama to apologize to his Afghan counterpart, Hamid Karzai, calling the burning an inadvertent error. Furor over the burnings have fueled a string of protests and attacks that have left at least 39 people dead, including four American soldiers. Hundreds more have been wounded in the attacks. A man wearing an Afghan National Army uniform killed two U.S. soldiers last week at a base in eastern Afghanistan. Last weekend, two senior U.S. officers were gunned down inside the heavily secure Afghan Interior Ministry when a junior intelligence officer turned his gun on them. A suicide bombing Monday at a military airfield in eastern Afghanistan killed nine people and wounded 12, Afghan police said. Afghan officials have suggested the attacks are in response to the Quran burning. Afghan and NATO officials are investigating the incident, and the latter said a decision on what to do about the burning will be made in the future. "The actual joint investigation is complete," said Lt. Col Jimmie Cummings, a spokesman for ISAF. "It is now in legal review and then Gen. John Allen will have to review and make his decision on the findings. He will be looking at recommendations from both U.S. and Afghan investigators." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story55.txt: -------------------------------------------------------------------------------- 1 | 'Hunger Games' sets box office records 2 | The Lionsgate movie based on the best-selling young-adult novel raked in an estimated $155 million in its opening weekend, according to the studio, giving it the third-best debut in North American box office history. Only "Harry Potter and the Deathly Hallows Part 2" and "The Dark Knight" -- both sequels, with the strength of a franchise behind each -- recorded bigger opening weekends. The massive total for "Hunger Games" more than doubles the opening weekend of the first film in the "Twilight" franchise, another set of films that sprang from a young-adult series. Jennifer Lawrence, Josh Hutcherson and Liam Hemsworth star in the dystopian fantasy, based on the first book in the Suzanne Collins trilogy about a future society in which teenagers are forced to battle to the death. The $155 million estimate was reported by Exhibitor Relations Co., which compiles the box office totals tallied by studios. Final weekend numbers will be available Monday. Experts had initially projected a $100 million opening for "Hunger Games," then revised their guesses as high as $140 million as fan fever soared, fueled by the books' success and a canny marketing campaign. The weekend's $155 million easily gives "The Hunger Games" the record for the biggest March opening ever, besting the $116 million debut of "Alice in Wonderland" in 2010, and shows a blockbuster release is not limited to the summer and holiday seasons, as long presumed. "Hunger Games" is already the highest-grossing movie in the history of Lionsgate, which has announced the sequel, "Catching Fire," will be released November 22, 2013. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story550.txt: -------------------------------------------------------------------------------- 1 | American Airlines offers more legroom 2 | The airline will start installing the new seating configuration across its fleet this year, the airline said. The roomier seating will be at the front of the main coach cabins to make boarding and deplaning easier for passengers who opt for the extra legroom. Prices for customers who purchase the roomier seating will range from $8 to $108 per segment, depending on length. Passengers will be able to buy the new seats for flights aboard the new Boeing 777-300ERs in spring 2012. Access to the option will be free for higher-level award program members and passengers who purchase full-fare economy tickets. A "significant portion" of Main Cabin Extra seats will be reserved for elite customers, the airline said in its announcement. "Customers traveling in Main Cabin Extra seats will enjoy four to six inches of extra leg room compared to a standard main cabin seat, as well as priority boarding privileges," said Virasb Vahidi, American's chief commercial officer, in a statement. "We continue to provide our customers with choices that enable them to customize their travel on American to be the experience they desire and value." Upgrades and purchase of the new seats will be available from the time of booking until check-in. American will continue to offer Preferred Seats, desirable seats near the front of the main coach cabin, which are complimentary for elite fliers and available for purchase by other customers. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story551.txt: -------------------------------------------------------------------------------- 1 | BP, plaintiffs reach Gulf spill agreement 2 | BP estimated that it would have to pay about $7.8 billion in the Deepwater Horizon disaster settlement. "The proposed settlement represents significant progress toward resolving issues from the Deepwater Horizon accident and contributing further to economic and environmental restoration efforts along the Gulf Coast," said Bob Dudley, the CEO of BP. A group representing the plaintiffs in the case said the settlement "will fully compensate hundreds of thousands of victims of the tragedy." "The settlement is to be fully funded by BP, with no cap on the amount BP will pay," the group added. U.S. District Court Judge Carl Barbier wrote in an order that the two sides have "reached an agreement on the terms of a proposed class settlement which will be submitted to the court for approval." A civil trial on the issue was scheduled to take place in Louisiana federal court. Among the defendants were BP, the well operator and majority shareholder in the venture, rig-owner Transocean, construction contractor Halliburton and other firms associated with the project. Among the thousands of plaintiffs are fishermen, hotel owners and other Gulf Coast residents. The three-month-long spill, the largest oil spill in U.S. history, was triggered after an explosion aboard the Deepwater Horizon oil rig on April 20, 2010. Eleven people were killed in the blast. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story574.txt: -------------------------------------------------------------------------------- 1 | Woman missing as ship docks in Florida 2 | A man, also Canadian, told a Celebration Cruise Line staff member around 8 a.m. on Wednesday -- as travelers were disembarking in Palm Beach -- that he hadn't seen his female traveling companion for seven hours, Celebration spokesman Glenn Ryerson told CNN. That disclosure prompted an extensive search of the ship, after which police were notified, according to the cruise line's spokesman. The couple -- who Ryerson said were not married but were "certainly" friends -- had left Palm Beach on Saturday destined for the Bahamas. They disembarked in the Caribbean nation the next day, spending two nights there through a package offered via the cruise line, Ryerson said. "We believe she did reboard" on Tuesday for her return trip to Florida, the spokesman said. After the search, the ship set sail again at 6 p.m. Wednesday on another scheduled trip, Ryerson said. By then, authorities had begun their probe into the woman's disappearance. "The FBI is investigating, and we have launched a search-and-rescue operation," said Coast Guard spokesman Nick Ameen. Specifically, two Coast Guard cutter ships -- the Drummond and Kingfisher -- are canvassing the waters off Florida's southeast coast, Ameen said. They are getting air support in the form of crews aboard a C-130 Hercules plane and an H-60 Jayhawk helicopter out of the Coast Guard's Clearwater air station, as well as from a Florida National Guard airplane crew, Ameen said. Chris Plunkett, a spokesman for the Canadian Embassy in Washington, said Thursday that foreign ministry officials were aware of the missing woman. Canadian consular officials are working with the cruise line and Florida authorities and are preparing, as needed, to provide assistance, Plunkett said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story609.txt: -------------------------------------------------------------------------------- 1 | Coast Guard copter crashes off Ala. 2 | The body of another crew member who was on the chopper was recovered by a rescue crew, the Coast Guard said. The helicopter, an MH-65C, crashed Tuesday night while on a training mission from the Aviation Training Center at Mobile Regional Airport, a statement from the Coast Guard said. "Our thoughts and prayers are with the families of the crew members during this difficult time," said Capt. Don Rose, commanding officer of Coast Guard Sector Mobile. Authorities searched for survivors throughout the night and intensified their efforts as daylight broke. "Particularly when the sun comes up, it gives you a whole different perspective," Rose said Wednesday morning. The crew members were wearing survival gear, and Rose remained hopeful that they would be found. Water temperatures overnight were about 60 degrees, with calm winds. "All of us are out there and feel the pain and grief over seeing one of our own in peril," he said. Authorities have cordoned off a mile-wide radius around the crash site in Mobile Bay to keep ships out while they search, Rose said. The cause of the crash is under investigation, the Coast Guard said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story611.txt: -------------------------------------------------------------------------------- 1 | Arrest made in Good Samaritan's death 2 | Several tips from the community led to Tuesday's arrest of Kendall Harrison, who is accused of shooting Harry "Mike" Ainsworth, 44. Ainsworth was with his two sons, ages 9 and 11, as they waited for a morning school bus on January 25. When he saw a man carjacking his neighbor, Ainsworth ran to help, jumping on the hood of the car, police said. Opinion: A father who gave his life for his neighbor The carjacker shot him through the windowshield, police said. Wounded, Ainsworth staggered into a neighbor's yard where he collapsed. The boys ran to him and sat by his side until emergency responders arrived. It was too late. The two sons witnessed their father die. How to help Ainsworth's family On Tuesday, police picked up Harrison at his school. Authorities linked him to the case through DNA testing and are charging him as an adult. Harry Ainsworth was a longtime volunteer with the New Orleans Police Department's COPS 8 program, which provides assistance to the officers of the 8th District. "The members of the 8th District station sincerely appreciated his efforts to fix up the station by painting and repairing various things in the building," police Supt. Ronal Serpas said last month. "He'll be missed." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story629.txt: -------------------------------------------------------------------------------- 1 | Fire leaves Costa cruise ship adrift 2 | The ship, the Allegra, is a sister of the Costa Concordia, which wrecked off the coast of Italy on January 13, killing at least 21 people. The fire left the Allegra without propulsion, although its communications equipment is intact, the authorities said. The Allegra's fire has been put out, and the passengers are all in good health, the authorities said. The Seychelles is sending a tug, and merchant ships in the area are steaming toward the Allegra, the coast guard said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story630.txt: -------------------------------------------------------------------------------- 1 | 'Berenstain Bears' author dies 2 | "It is with very sad hearts we inform you that our dear Jan died on Friday, February 24. We are grateful for all of your very kind thoughts. Please remember her family at this very difficult time," said a statement on the Berenstain Bears Facebook page. Berenstain and her husband, Stan, were already successful cartoonists when they decided to transition to writing children's books. According to publisher Harper Collins, "The Big Honey Hunt," published in 1962, was the first book starring the bear family. Since that time, more than 330 "Berenstain Bears" books have been published over the past 50 years, the publisher said. More than 260 million copies have been sold, making it one of the best-selling children's book series in history, Harper Collins said. The Berenstain Bears stories were so popular that the storyline was made into an animated TV show special on NBC in 1979 and then a hit daily TV series that began on PBS in 2002. After Stan Berenstain died at age 82 in 2005, Jan Berenstain and her son Mike continued to write and illustrate new adventures for the Berenstain Bears, according to the Berenstain Bear Facebook page. Berenstain lived in Bucks County, Pennsylvania, according to her publisher. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story644.txt: -------------------------------------------------------------------------------- 1 | Rain causing havoc for Daytona 500 2 | Rain led race officials to pull the plug Sunday and try again Monday afternoon, but continuing showers led them to re-reschedule the start for Monday evening. The rain let up in the afternoon, and the race got under way about 7:15 p.m. Ticket prices were not being refunded to Sunday ticketholders, a woman who answered the phone at the raceway said. The speedway can accommodate about 160,000 people, and the grandstands and infield were packed despite the 24-hour delay. Before this year, rain had cut short four of 53 previous races -- in 1965, 1966, 2003 and 2009 -- but none had been canceled for the day. "This is one of the toughest things for us drivers," Carl Edwards said. "When you put that off for another day for all of us, it's now (about) who can really stay focused." Fellow driver Bobby Labonte shrugged off the delay. "(There's) not a whole lot we can do about the weather, but you just try to plan as much as possible," the winner of 21 NASCAR Sprint Cup Series races said. "When you get in the race car, then everything else goes away and you're just ready to go." The Daytona 500 opens the NASCAR season, but it also is the sport's most prestigious race. Daytona International Speedway announced this month that the race will boast a record purse of more than $19 million. In comparison, last year's Indianapolis 500 had a payout of $13.5 million. Race officials are battling the odds. The National Weather Service forecast the central Florida coast called for an 80% chance of precipitation Monday afternoon and a 30% chance in the evening. Tuesday is expected to be partly sunny after patches of morning fog. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story65.txt: -------------------------------------------------------------------------------- 1 | Suu Kyi falls ill, suspends campaign 2 | Nyan Win, the spokesman for Suu Kyi's National League for Democracy, said the rigors of crisscrossing the country to attend election rallies had taken a toll on the 66-year-old old Nobel Laureate. "She was sick, but her health condition has improved now," he said. "She still feels a bit tired." Suu Kyi, who was released from years under house arrest in 2010, is expected to resume travel once she feels better. Her party has submitted candidates for all 47 seats up for grabs in the April 1 by-elections, after boycotting previous elections. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story650.txt: -------------------------------------------------------------------------------- 1 | Last missing soldier in Iraq identified 2 | Staff Sgt. Ahmed K. Altaie of Ann Arbor, Michigan, was kidnapped October 23, 2006, after he left the Green Zone in Baghdad. The military said Altaie, then 41, and serving as a translator for the U.S. military, was visiting family members when he was abducted. A group in February 2007 claimed on a militant Shiite Web site that it had Altaie and posted a 10-second video of a man it claimed was him. The man in the video was Altaie, his uncle told CNN then. Altaie's remains were identified on Saturday by the Armed Forces Medical Examiner at the Dover Port Mortuary in Delaware, the Army said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story651.txt: -------------------------------------------------------------------------------- 1 | 3 killed in train derailment in Canada 2 | All three people were employees of Via Rail Canada, Michelle Lamarche, a spokeswoman for the railway, said, calling it a "very sad day for Via." At least 45 passengers were injured, three severely, according to John Marginson, chief operating officer of Via. The derailment occurred around 3:30 p.m. in Burlington, about 40 miles southwest of Toronto, Lamarche said. The train, carrying 75 passengers, was traveling from Niagara Falls to Toronto, according to Lamarche. An investigation into the cause of the wreck is under way. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story654.txt: -------------------------------------------------------------------------------- 1 | 'Lin-Sanity' dessert draws heat 2 | "We offer a heartfelt apology if anyone was offended by our handmade Lin-Sanity flavor," read a statement issued Friday on behalf of Ben & Jerry's Boston Scoop Shops. "We are proud and honored to have Jeremy Lin hail from one of our fine, local universities and we are huge sports fans. Our intention was to create a flavor to honor Jeremy Lin's accomplishments and his meteoric rise in the NBA, and recognize that he was a local Harvard graduate," the statement said. "We try (to) demonstrate our commitment as a Boston-based, valued-led business and if we failed in this instance we offer our sincere apologies." The fortune cookies have since been replaced with waffle cookies. The misstep isn't the only one that has surrounded the hype over the Asian-American guard for the NBA's New York Knicks. ESPN fired a writer over a controversial headline. The headline read "Chink in the Armor: Jeremy Lin's 9 Turnovers Cost Knicks in Streak-stopping Loss to Hornets." The phrase -- Chink in the Armor -- contains a word that has two meanings; one is an ethnic slur. An anchor who used the same phrase was suspended, the sports network said last Sunday. Lin, 23, came off the bench earlier this month to guide the Knicks to win after improbable win. The unlikely star of Taiwanese descent quickly turned into a global brand and "Linsanity" became the phrase of the times. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story656.txt: -------------------------------------------------------------------------------- 1 | FARC says it will free some hostages 2 | It did not address the fate of its civilian captives, nor did the group renounce kidnapping for political purposes. Calling its police and military hostages "prisoners of war," FARC vowed in a statement published on its website to continue its fight against the state. The leftist rebels have been at war with the Colombian government since the 1960s. While severely weakened in recent years, the group has continued to carry out kidnappings and attack security forces. "We are very happy for the 10 hostages who will be released and their families," Colombian President Juan Manuel Santos wrote on Twitter soon after the announcement. He recognized FARC's decision to renounce kidnapping as an "important and necessary step," but said it didn't go far enough. In December, the FARC announced the planned release of six national police officers: Luis Alfonso Beltran, Cesar Augusto Laso, Carlos Jose Duarte, Jorge Trujillo, Jorge Humberto Romero and Jose Libardo Forero. Need to buy a cow? Turn to FARC It later postponed their release because of an alleged militarization in the area where the rebels operate. Those six officers and four more hostages will now be freed, FARC said. Details as to when and where were not immediately available. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story658.txt: -------------------------------------------------------------------------------- 1 | Mandela released from hospital 2 | "The doctors have assured us that there is nothing to worry about and that Madiba is in good health," President Jacob Zuma said in a statement earlier, referring to the 93-year-old Mandela by his affectionate clan name. Mandela underwent a diagnostic laparoscopy, defense minister Lindiwe Sisulu said without elaborating. The procedure involves inserting a camera into the body to allow doctors a look in a patient's abdomen or pelvis. A family member had said Saturday that Mandela had hernia surgery, but Zuma described it as a "diagnostic procedure" without providing details. Considered the founding father of South Africa's democracy, Mandela became an international figure when he was imprisoned for 27 years for fighting racial segregation. Why Nelson Mandela still matters to South Africans He was freed in 1990, and three years later, he won the Nobel Peace Prize. In 1994, Mandela was elected president and served one term as he had promised. Mandela last appeared in public in the closing ceremonies of the 2010 World Cup in South Africa. He was hospitalized last year for treatment of an acute respiratory infection, and continued to receive treatment at home after doctors discharged him. Despite his rare appearances, Mandela retains his popularity and is considered a hero of democracy. Mandela relocated to his childhood town of Qunu last year, but moved back to his Johannesburg home earlier this year. At the time, Zuma said the move was because the home in his boyhood town was undergoing maintenance. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story665.txt: -------------------------------------------------------------------------------- 1 | Fire at Antarctica station kills 2 sailors 2 | The fire occurred at the Comandante Ferraz station on King George Island, said Adm. Julio Soares de Moura Neto, commander of the Brazilian navy. The sailors were trying to extinguish a fire that broke out in the engine room of the facility. Brazilian military police are investigating the cause. The station is home to researchers who conduct studies on the effects of climate change in Antarctica and its implications on the planet, according to the Ministry of Science and Technology and Innovation. Researchers at the base also study marine life and the atmosphere. The Brazilian navy estimated there were 32 civilians and 12 sailors at the station when the fire broke out. Remaining personnel on the base were transferred to Chilean base Eduardo Frei in southern Chile and were expected to return to Brazil some time on Monday, according to the Brazilian Foreign Ministry. According to state-run news agency Agencia Brasil, Defense Minister Celso Amorim said that the Antarctica program will continue, despite much of the station being destroyed by fire and with it, many materials and equipment used for research. He said the nation has a 30-year commitment to the project. "The entire core base, which is where these facilities are concentrated, was lost," said Amorim. "The program is a source of pride for us, so let us continue. " Amorim thanked Chile, Argentina and Poland for the transport and accommodation of Brazilian personnel after the fire, Agencia Brasil reported. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story67.txt: -------------------------------------------------------------------------------- 1 | Man charged in 5 San Francisco deaths 2 | The victims were found around 7:45 a.m. Friday in a building near the City College of San Francisco in the city's Ingleside district, said Commander Michael Biel, head of the San Francisco Police Department's investigations division. There were "four separate homicide scenes within the residence" -- suggesting people had been killed in four different locales -- Police Chief Greg Suhr said. Suhr said the five died "apparently from blunt trauma, (though) we really didn't know what happened." He added later that there also was an "edge-weapon involved," capable of cutting someone, but there was no evidence of gunshots. The names and ages of those killed have not been released, though Suhr did say "we believe that the victims may be related." The man accused of killing them, Binh Thai Luc, is a 35-year-old San Francisco resident with a criminal record. He was arrested and booked on five counts of murder early Sunday, according to Suhr, who added Luc "did not surrender" and "was not arrested at home." His brother, 32-year-old Brian Luc, was also arrested and charged with narcotics possession, a felon in possession of ammunition and for a probation violation, according to police. The two live together in the city. The police chief said there was "a relationship" between the suspect and the victims, though he did not specify what that was. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story676.txt: -------------------------------------------------------------------------------- 1 | Berlusconi corruption case dismissed 2 | Berlusconi was charged with bribing a British lawyer, David Mills, to secure favorable testimony in legal cases. Although Saturday's decision will spare Berlusconi prison time, the ruling is not the same as an acquittal. A written report on the case will be published within 90 days. The ruling is a victory for the former premier's lawyers, who had argued that the statute of limitations in the case has expired. Mills' conviction in the case was overturned in 2010. Berlusconi, 75, dominated Italian politics for a decade and a half before resigning amid a financial crisis in November. He has survived a series of political, corruption and sex scandals over the years, involving allegations of embezzlement, tax fraud and bribery. In addition to the Mills case, he also faces trial on charges that he hired an underage prostitute and later tried to pull strings to get her out of jail when she was arrested for theft. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story683.txt: -------------------------------------------------------------------------------- 1 | 7 firefighters injured in Maryland blaze 2 | The fire broke out at a one-story, vacant house shortly after 9 p.m. Friday, the Prince George's County Fire Department said Saturday. "Preliminary reports indicate that firefighters had initiated an interior attack on the fire when a sudden rush of air, fanned by high winds, entered from the rear of the house either from a door or window being opened or broken out," the fire department said in a statement. "The sudden addition of a large amount of fresh air into the fire environment created a 'fireball' inside, engulfing the firefighters." The injuries included burns, fractures and lacerations, fire officials said. By Saturday morning, four of the firefighters had been released; two remained hospitalized in critical condition with burns, and one was in good condition with injured ribs, fire department spokesman Mark Brady said. The cause of the fire is under investigation. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story7.txt: -------------------------------------------------------------------------------- 1 | 2 killed in Colorado wildfire 2 | The blaze has already killed two people and damaged 27 structures. Authorities warned thousands that they had to evacuate. Firefighters have struggled to extinguish the blaze, which was fueled by high winds and dry conditions. As of late Wednesday morning, 3,790 acres were burned and the fire remained completely uncontained, said Jacki Kelley, spokeswoman for the Jefferson County Sheriff's Office. Some winds expected Wednesday could move smoke over Denver and cause haze, but it will likely be high enough not to cause serious problems, said CNN meteorologist Jacqui Jeras. At one point Tuesday, residents of 6,500 homes in the area near the fire were told they might have to evacuate, but they were later told they did not need to, the Jefferson County Sheriff's Office said. A search-and-rescue team of 32 people and six search dogs concentrated on finding a missing woman who was last seen at her home that was destroyed by the fire, the sheriff's office said. Jefferson County Coroner John Graham identified the two people killed as Samuel Lucas, 77, and Linda Lucas, 76. Linda Lucas' remains were discovered at the couple's residence first; Samuel Lucas' remains were recovered Tuesday. Although he didn't have exact causes of death, Graham said he suspects the deaths were fire-related. "They were found very close together. One was found outside; one was found inside," Kelley said. Officials were trying to determine why the couple had not left the fire zone by Monday night. Kelley provided little information on the missing person. "It is a woman who lives within the area that was pretty heavily damaged," she said. Authorities were trying to determine if the wildfire was started after a controlled burn in the area crept outside a perimeter and swept through the area. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story703.txt: -------------------------------------------------------------------------------- 1 | Cyber-bullying trial begins 2 | Dharun Ravi faces a 15-count indictment, which includes hate crime charges, in connection with the death of Tyler Clementi, Ravi's roommate. Clementi killed himself after the incident, jumping from the George Washington Bridge between New York and New Jersey. Last year, Ravi turned down a plea deal that would have allowed him to avoid jail time. "You want to know why he's rejected the plea?" his attorney, Steven Altman, said in December. "Simple principle of law, simple principle of life -- he's innocent. He's not guilty." Ravi is a citizen of India who was studying in the U.S. legally. The deal offered by Middlesex County prosecutors would have required Ravi, 19, to undergo 600 hours of community service, counseling and to dispose of any information that could identify the man that Clementi was with. Prosecutors also offered to help Ravi avoid deportation, though they said they could not guarantee it. A second student charged in the scandal, Molly Wei, 19, reached a plea deal and that requires her to testify against Ravi. Less than a month after Clementi's suicide, President Barack Obama released a taped video message condemning bullying. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story71.txt: -------------------------------------------------------------------------------- 1 | Vodka ad draws anti-rape controversy 2 | "Unlike some people, Belvedere always goes down smoothly," the ad's caption read. It drew hundreds of negative comments after it appeared Friday on the company's Facebook page, with many suggesting it appeared to depict a rape. Belvedere Vodka marketing Senior Vice President Jason Lundy posted an apology on the page Friday afternoon, saying the ad also offended "the people who work here at Belvedere." "The post is absolutely inconsistent with our values and beliefs and in addition to removing the offensive post we are committed to making sure that something like this doesn't happen again," Lundy said. Company President Charles Gibb added his apology in a posting Saturday. "It should never have happened," Gibb said. "I am currently investigating the matter to determine how this happened and to be sure it never does so again. The content is contrary to our values and we deeply regret this lapse." The company's apology included a donation to RAINN -- the Rape, Abuse and Incest National Network -- "as an expression of our regret," Gibb said. RAINN posted on its Facebook page that when Gibb called the group he was "profusely apologetic" and "offered to make a generous donation to RAINN to support our work to help victims of sexual violence and educate the public." The apology appeared to be accepted. "Nice to see a company that not only undoes its mistake but looks for a way to do good afterwards," RAINN's post said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story727.txt: -------------------------------------------------------------------------------- 1 | U.S. envoy meets N. Korean officials 2 | Special Representative for North Korea Policy Glyn Davies is holding talks with North Korean First Vice Foreign Minister Kim Kye Gwan. The discussions are the first high-level contact since Kim Jong Il, who had ruled North Korea since 1994, died in December and his youngest son, Kim Jong Un, became the new head of the secretive regime. "My hope is that we can find a way to move forward with the North," Davies said Wednesday after arriving in Beijing. Pyongyang has warned South Korea and other countries not to expect any change in its policies under its new leader. Washington hopes the talks Thursday signal the regime's desire to negotiate with the United States and address international concerns over its nuclear program. Kim Jong Il's death threw into flux U.S. plans for renewed diplomacy with North Korea, including formal talks on ending Pyongyang's nuclear program and possible resumption of U.S. food assistance. The North Korea government was thought to be considering the suspension of its uranium enrichment in exchange for food assistance as part of a deal that was to be announced around the time of Kim Jong Il's death. Davies said he also plans to raise the issues of nonproliferation, human rights and humanitarian affairs during the talks Thursday. The U.S. envoy was recently in Russia, where he discussed continuing efforts to get North Korea to disarm. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story729.txt: -------------------------------------------------------------------------------- 1 | 2 people shot at Connecticut hospital 2 | The incident occurred Wednesday evening at the Hospital for Special Care in New Britain. Before the shooting, the suspect was in a "disciplinary dispute," said Lynn Ricci, a hospital spokeswoman. The victims, identified as Lynn Trask and Robert Barlucci, were in serious but stable condition after the shooting, Ricci said. Authorities arrested the suspect, Victor Valcarcel, later at his home, Ricci said. The 228-bed hospital was on lockdown for a period of time after the shooting. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story73.txt: -------------------------------------------------------------------------------- 1 | 7.2-magnitude quake hits central Chile 2 | There were no immediate reports of major damage. The earthquake was at a depth of 21.6 miles (34.8 km) and struck 16 miles (27 km) north-northwest of Talca, the U.S. Geological Survey said. It had originally reported the quake was offshore and had a magnitude of 7.2. No tsunami warning was issued and authorities initially canceled an evacuation order that had been issued for parts of the coast. They reissued that order late Sunday as a preventative measure. Three people were injured as a result of the quake, emergency officials said. One person was in a traffic accident in the Biobio region and two people sustained light injuries when a ceiling collapsed. Talca was one of the cities hit hard by a devastating 8.8-magnitude earthquake in 2010. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story732.txt: -------------------------------------------------------------------------------- 1 | Hitman hired to kill random fur-wearer? 2 | Meredith Lowell, 27, of Cleveland Heights, is accused of creating a phony Facebook profile with the intention of contacting a would-be killer, according to the affidavit filed in an Ohio district court. Lowell allegedly posted on the social media website the following request: "I would like to create an online community on facebook which would allow me to find someone who is willing to kill someone who is wearing fur toward the end of October 2011 or early November 2011 or possibly in January 2012 or February 2012 at the latest." An undercover FBI agent then contacted her, posing as a hit man after the agency subpoenaed Facebook to uncover details about her profile. She then allegedly requested that the murder take place at a local library and that she be present so that she could then hand out documents about animal cruelty after the homicide. "Bring a sharp knife that is at least 4 inches long, it should be sharp enough to stab someone with and/or to slit their throat to kill them," Lowell allegedly wrote in an e-mail, according to the affidavit. The individual should be at least 12 years old, but "preferably 14 years or older," Lowell allegedly wrote. "I want the person dead in less than 2 minutes (under 2 minutes or 1 minute or less would be better.)" In April 2011, Lowell allegedly sent an e-mail to the Cleveland Heights Police Department in which she "indicated that she had been investigating the fur industry and believes the police should also conduct an investigation," according to the affidavit. Lowell was arrested Tuesday by federal marshals and is awaiting a hearing. Her attorney could not be immediately reached for comment. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story734.txt: -------------------------------------------------------------------------------- 1 | National Cathedral fix to top $20M 2 | The cathedral, sometimes called "the spiritual home for the nation," was perhaps the hardest-hit landmark in the capital when a magnitude 5.8 earthquake struck on August 23. The Gothic cathedral's three towers and the carved pinnacles and embellishments that decorate them were severely affected by the earthquake. "The repair work, which includes intricate stone carving and detailed masonry, and will require significant scaffolding and large cranes to access the damaged areas, could be completed in five years if sufficient funds are raised immediately," the cathedral said in a news release. Carvers are fabricating new stones from blocks of limestone taken from the original quarries in Indiana, it said. A total of $2 million was raised over the past six months to cover the cost of stabilizing damaged stones and protection to allow the cathedral to reopen, it said. The total repair cost, initially estimated at $15 million, is now expected to be more than $20 million, leaving another $18 million to be raised, it said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story735.txt: -------------------------------------------------------------------------------- 1 | Senate offices warned of mail threat 2 | In a message to the U.S. Senate community, Sergeant at Arms Terrance Gainer said three letters that contained harmless powder showed up at two Senate state offices and a House district office on Tuesday and Wednesday. "The author of these letters has indicated that additional letters containing a powdery substance will be arriving at more Senate offices and that some of these letters may contain an actual harmful material," Gainer's message said. While the three letters received so far were harmless, "it is essential that we treat every piece of suspicious mail as if it may, in fact, be harmful," Gainer continued in his message. Suspect in Capitol bomb plot to remain jailed Any letters postmarked from Portland, Oregon, required special attention, especially those with a particular Portland return address, Gainer's message said. The return address cited by Gainer did not appear to exist. "If any mail is received from this return address, it should remain unopened and the local authorities contacted immediately, followed by notification to the United States Capitol Police Threat Assessment Section," Gainer's message said. Federal and local law enforcement authorities are investigating the possible threat, according to Gainer. While phone and letter threats to congressional offices are relatively commonplace, precautions against a possible toxic chemical attack increased after letters containing anthrax sent to congressional offices and news organizations killed five people and sickened 17 others in 2001. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story736.txt: -------------------------------------------------------------------------------- 1 | Arrests made in death of Ala. 3rd-grader 2 | "Joyce Hardin Garrard, 46, and Jessica Mae Hardin, 27, were both arrested and charged with murder in connection to the death of Savannah Hardin," Capt. Jeremy Walker said in a news release issued by the Etowah County Sheriff's Office. Garrard is the child's grandmother and Jessica Hardin is her stepmother. At about 6:45 p.m., the stepmother called 911 and said that Savannah, who had run for about three hours, had suffered a seizure and was unresponsive, the release said. "A very unnecessary act," said Etowah County District Attorney Jimmie Harp in a telephone interview about the incident, which occurred Friday. "(The) taking of a candy bar turned into (an) all-day marathon ... until the point of time she just collapsed." Savannah Hardin died Monday at Children's Hospital in Birmingham; a state pathologist in Huntsville ruled her death a homicide. "Preliminary reports show Savannah was extremely dehydrated and had a very low sodium level," the release says. "It's sad when a family is grieving over the death of a daughter and granddaughter and so soon to find out that the death could have been prevented," said Sheriff Todd Entrekin, whose office became involved after witnesses called investigators to express concerns. "We have always said that we will protect the rights of those who cannot defend themselves," he continued. Savannah was a third-grade student at Carlisle Elementary School. Garrard and Hardin were being held in the Etowah County Detention Center in lieu of a $500,000 cash bond. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story739.txt: -------------------------------------------------------------------------------- 1 | Police: Student shot, another in custody 2 | An 8-year-old girl suffered a gunshot wound at Armin Jahr Elementary School, said Bremerton police Lt. Pete Fisher. Her condition was not immediately known. She was airlifted to a local hospital. The incident occurred at about 1:30 p.m. PT (4:30 p.m. ET), police said. The school was placed on lockdown for a time. The gun was recovered, Fisher said. No further information on the suspected shooter was released. "It is far too early in investigation to release details at this point," Fisher told reporters. CNN Seattle affiliate KING said the wounded girl is in the third grade. School officials in Bremerton, west of Seattle, did not immediately return a message left by CNN. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story74.txt: -------------------------------------------------------------------------------- 1 | Gas prices up but may be peaking 2 | The average price of U.S. regular gasoline rose to $3.93 per gallon, up from just over $3.81 in the last Lundberg Survey on March 9. But survey publisher Trilby Lundberg said prices declined about a penny per gallon in California, where fuel costs are typically the highest, and crude oil prices have remained fairly steady in March. "If crude oil prices do not spike again, then gasoline prices will be peaking very soon. They may already be doing so," Lundberg said. "It will depend almost entirely on crude, as usual, but if they stay where they are, the peak may well turn out to be under $4 per gallon." Average U.S. gasoline prices have climbed by 36 cents per gallon over the past year. But with demand still relatively weak and nearly one-fifth of U.S. refinery capacity idled, the U.S. gasoline market "is not strong enough to spike on its own," Lundberg said. "The market is well supplied and looking well supplied into the future," she said. The latest Lundberg survey canvassed about 2,500 filling stations in the continental United States on Friday. The cheapest average gas prices in Lundberg's were in Tulsa, Oklahoma, at $3.58 per gallon, while Chicago had the most expensive at $4.56. Average per-gallon prices in other cities: Albuquerque, New Mexico: $3.64 Atlanta: $3.80 Baltimore: $3.91 Baton Rouge, Louisiana: $3.73 Boston: $3.83 Denver: $3.64 Newark, New Jersey: $3.62 Portland, Oregon: $4.03 St. Louis: $3.97 Sacramento, California $4.23 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story749.txt: -------------------------------------------------------------------------------- 1 | Occupy London loses eviction fight 2 | Last month, the High Court ruled in favor of the City of London Corporation, the body that runs London's financial district, which applied for an eviction order after the protesters failed to abide by a previous order to pack up the camp. The Occupy London group then filed an appeal against the ruling at the Court of Appeal. Wednesday, the three judges of the court refused them the permission to appeal. Michael Paget, the lawyer representing the Occupy London group, said the group doesn't intend to file another legal challenge. "The occupy message has been heard and will continue to be heard. It has made a difference and will continue to make a difference." The activists, who set up camp outside the cathedral October 15, had been protesting against corporate greed and economic inequality. Many of the tents set up by the Occupy activists around St. Paul's are on what the corporation designates as a public road. St. Paul's suspended its own legal action against the activists in November, after a number of senior cathedral figures resigned over the threat to evict them. "Peaceful protest is a democratic right but the camp is clearly in breach of highway and planning law," said Stuart Fraser, policy chairman for the City of London Corporation." I would call on protesters to comply with the decision of the courts and remove their tents and equipment voluntarily right away." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story753.txt: -------------------------------------------------------------------------------- 1 | Adele's obscene gesture at Brit Awards 2 | The British star, who raked in six Grammys last week, won best album at the Brits for "21," which featured the hit single "Rolling in the Deep." But when Brit host James Corden cut her speech short Tuesday night, she made the rude gesture. Adele, Corden and the station that broadcast the awards all issued apologies of one kind or another after the incident. The singer said backstage that she "flung the middle finger. But that finger was to the suits at the Brit Awards, not to my fans. "I was about to thank the British public for their support and they cut me off," she said. "Sorry if I offended anyone, but the suits offended me." Corden, the comedian who hosted the show, later said, "Can't believe i was told to cut off the amazing Adele at the end. #Livetvnightmare," on Twitter. ITV, the broadcaster, apologized to Adele for cutting her off. "The Brits is a live event, sadly the program was over-running and we had to move on," a statement from ITV said. "We would like to apologize to Adele for the interruption.... We don't want this to undermine her incredible achievement in winning her incredible award." Last week the 23-year old won all six Grammys she was nominated for, including album of the year. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story763.txt: -------------------------------------------------------------------------------- 1 | Police: 5 dead in Georgia spa shooting 2 | A man shot himself to death after killing his two sisters and their husbands at the Su Jung Health Spa in Norcross, Georgia, according to a police statement. The man had been asked to leave the business earlier in the day, but returned at 8:40 p.m. and began shooting with a semiautomatic pistol, police said. The names of the dead, all in their early 50s to mid-60s, have not been made public. "The Norcross Police Department continues to investigate the incident and has worked with the (South) Korean consulate in this incident," the statement said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story77.txt: -------------------------------------------------------------------------------- 1 | Thousands attend papal Mass 2 | Cheering onlookers waved balloons, flags and banners as the pope arrived at Bicentennial Park in Mexico's Guanajuato state. Many said they had spent the night camped out, awaiting the pope's arrival. More than 400,000 people attended the Mass, according to Mexico's state-run Notimex news agency. The pope urged Mexican Catholics to remain true to their faith, and called on the Virgin Mary to "continue accompanying and protecting her beloved Mexican and Latin American children, so that Christ reigns in their lives and helps them to boldly promote peace, harmony, justice and solidarity." The pope's visit to Mexico comes as church leaders there grapple with brutal drug-related violence. More than 47,000 people have died since President Felipe Calderon began a crackdown on cartels in December 2006. The Archbishop of Leon asked the pope to deliver a message of hope to crowds gathered Sunday, noting that Mexico faces "events of violence and death that have created a painful sensation of fear, impotence and pain." "We know that this dramatic reality has perverse roots that feed it, poverty, the absence of opportunity, corruption, impunity, the inefficient administration of justice," Archbishop of Leon Jose Guadalupe Martin Rabago said. The pope arrived in Mexico on Friday on his first trip to Spanish-speaking Latin America. He visited Portuguese-speaking Brazil in 2007 and the United States a year later. He is scheduled to arrive in Cuba Monday. Guanajuato state, which is hosting the pontiff, boasts the highest percentage of Catholics in Mexico -- well over 90 percent. Nationally, the number of Catholics is 83 percent, according to Mexico's National Institute of Statistics and Geography. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story78.txt: -------------------------------------------------------------------------------- 1 | Cheney has heart transplant 2 | "President Bush was in touch with the family yesterday," said the statement from Freddy Ford, Bush's communications director. "He and Mrs. Bush were very happy to hear that the surgery went well. They are keeping Vice President Cheney in their prayers for a full and speedy recovery. Cheney, 71, had surgery Saturday at Inova Fairfax Hospital in Falls Church, Virginia. He had been on the cardiac transplant list for more than 20 months, a statement from his office said. "Although the former vice president and his family do not know the identity of the donor, they will be forever grateful for this lifesaving gift," it said. Cheney has a history of heart trouble, suffering at least five heart attacks since 1978. His first occurred when he was 37. In June 2010, he was hospitalized at George Washington University for conditions related to his coronary artery disease. He had a left ventricular assist device (LVAD) implanted to help his heart pump. In June 2001, Cheney was implanted with a pacemaker after he experienced irregular heart rhythms. The former Wyoming congressman served as an influential vice president with President George W. Bush from 2001 to 2009. In January, Showtime announced that it was producing a documentary about Cheney, tentatively titled "The World According to Dick Cheney." The network said filmmaker R.J. Cutler "will offer up a measured, layered profile of the polarizing, controversial former vice president." As vice president, Cheney worked diligently, mostly behind the scenes, to forge the Bush administration's identity and broad policy positions. He was considered the administration's point man on three major issues: energy, global warming and domestic terrorism. Cheney also served in the Nixon White House and was chief of staff to President Gerald Ford. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story780.txt: -------------------------------------------------------------------------------- 1 | Suspected suicide bomb kids seized 2 | Four suspected insurgents were about to smuggle the children across the mountains into Pakistan from eastern Kunar province on Friday, said Sediq Seddiqi, the spokesman. "We strongly believe that the children were being taken to Pakistan to be trained, brainwashed and sent back as Afghan enemies," Seddiqi said. The children are aged between 6 and 11, he said. Police handed the children back to their families after they were rescued in the Watapur district of Kunar province, he said. "The insurgents cheat poor and ordinary Afghans and take away their children," Seddiqi said. Afghan and foreign forces have arrested many would-be suicide bomber children in the past. Earlier this month Afghan forces rearrested two children in Kandahar province on suspicion of planning to be suicide bombers. The two were from a group of would-be suicide bombers who were pardoned by President Hamid Karzai last summer, according to a press statement from the Kandahar governor's office. They had gone to Quetta, Pakistan, to get more training before being sent back to Afghanistan for suicide attacks, the statement said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story799.txt: -------------------------------------------------------------------------------- 1 | Italian soldiers die in Afghanistan 2 | A convoy of Italian forces and USAID workers were on their way to survey a dam in the Shindand district of western Herat province, when they slid off the road in wet conditions, said Abdul Rauf Ahmadi, a police spokesman. USAID is a government agency providing U.S. economic and humanitarian assistance. NATO confirmed the deaths of three International Security Assistance Force members, but did not immediately release their identities or nationalities. It also did not say how the three died. More than 2,800 coalition forces have died in Afganistan since the military operation began in 2001 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story80.txt: -------------------------------------------------------------------------------- 1 | Queen stuns couple, attends wedding 2 | She showed up. Despite their shock, the groom had the presence of mind to bow, and the bride to curtsey as the monarch appeared and congratulated them, amateur video of the event showed. "Basically it was a wedding gift for us," Frances Canning told CNN affiliate ITN. The queen's husband Prince Philip also wished the couple well. Queen Elizabeth was in Manchester Friday on official duties that included visits to Central Manchester University Hospitals and a new BBC complex. She is making appearances around the country this spring as she celebrates her Diamond Jubilee, marking her 60 years on the throne. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story801.txt: -------------------------------------------------------------------------------- 1 | South Korea carries out military drill 2 | The drill Monday involved howitzers, mortars and attack helicopters, South Korean news agency Yonhap reported. It took place on islands off the west coast of the Korean peninsula where tensions have flared in the past. Seoul notified the North on Sunday of the drill, a regular live-fire exercise that lasts an hour. About 1,000 island residents were moved to safe areas during the drill, Yonhap reported, citing military officials. "This is a very dangerous play with fire to ignite a war against the North as it is a clear declaration of war against it," Pyongyang's state-run Korean Central News Agency reported Sunday, citing a bulletin from the Secretariat of the Committee for the Peaceful Reunification of Korea. In late 2010, North Korea responded to a South Korean military exercise in the same area by firing artillery at Yeonpyeong Island, killing two South Korean marines and two civilians. "If the puppet warmongers preempt reckless firing despite our warning, they will not escape punishment thousands-fold severer" than the shelling of Yeonpyeong Island, the bulletin said. It identified "the puppet warmongers" as being South Korea and the United States, which has tens of thousands of troops in South Korea. The death in December of North Korean leader Kim Jong Il and the subsequent anointment of his son and chosen successor, Kim Jong Un, has created uncertainty about the future direction of the secretive regime in Pyongyang. Further tensions over military maneuvers on the Korean peninsula are expected in the coming weeks. There are two joint exercises planned involving thousands of U.S. and South Korean forces scheduled between February and April. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story804.txt: -------------------------------------------------------------------------------- 1 | Lucky to be alive: 2 survive midair crash 2 | A helicopter clipped a small plane in the skies over northern California on Sunday evening, sending both crashing to the ground, CNN affiliate KCRA reported, citing the Sacramento County Sheriff's Office. The collision snapped off the helicopter's tail, but firefighters found the pilot sitting in the car of a driver who had stopped to help, the station said. "She was a little shaken up, but she was completely with it," said Capt. Brandon Wilson of the Rio Vista Fire Department. "Initially, she didn't want to go to the hospital. "The person that was flying it was very lucky -- very lucky -- to walk away pretty much uninjured." The helicopter, a Robinson R22, went down about eight miles south of the Rio Vista Airport, between San Francisco and Sacramento. It collided with a single-engine Beechcraft Bonanza, which landed near Byron Airport, some 20 miles to the south, said Ian Gregor of the Federal Aviation Administration. Footage of the helicopter showed it resting in a field. KCRA said its severed tail rotor landed about 50 feet away from the fuselage. The plane's pilot was not injured. "Absolutely a best-case scenario, very lucky for everybody involved," Wilson said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story805.txt: -------------------------------------------------------------------------------- 1 | Damaged oil barge is drained, relocated 2 | "Since operations began Friday, 100 bags of oiled debris and 40 bags of oiled sorbents have been collected," a Coast Guard statement said. "A total of 4,700 feet of hard containment boom has been deployed in an effort to minimize environmental damage." The drained barge has been taken to a repair facility in West Wego. The Coast Guard estimates the total of leaked oil at less than 10,000 gallons. The spill started after a tanker barge towed by a motorized vessel, Settoon, ran into a construction barge towed by the tugboat Alydar just before 2 a.m. Friday near Reserve in St. John Parish, west of New Orleans. U.S. Coast Guard spokeswoman Lt. Suzanne Kerver said the tanker barge suffered a 10 feet by 5 feet gash above the water line, allowing crude oil to spill out of the 214,000-gallon tank. The river was closed to commercial traffic for several hours Friday before it was reopened. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story808.txt: -------------------------------------------------------------------------------- 1 | 'Colbert Report' to resume production 2 | Comedy Central aired repeat episodes of the hit TV show last week because of what it described then as "unforeseen circumstances." "Colbert Report abruptly suspends production and I fall into a deep depression. Related?" actor Josh Adams tweeted. While Colbert hasn't made any public statements on the suspension, he posted a message on Twitter. On Friday, he wrote: "My family and I would like to thank everyone who has offered their thoughts and prayers. We are grateful and touched by your concern." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story813.txt: -------------------------------------------------------------------------------- 1 | 44 killed in Mexican prison riot 2 | Inmates took a guard hostage as clashes broke out early Sunday morning at a prison in Apodaca, Nuevo Leon, said state security spokesman Jorge Domene. He did not rule out the possibility the melee masked an escape. Guards could have been complicit and they, along with the prison's director, have been detained for questioning, he said. Some prisoners also set mattresses ablaze, Domene said, sending a column of smoke rising above the facility. Federal and state police had the situation under control later in the day. The clashes, which occurred in a part of the prison where most inmates were serving time for federal drug trafficking offenses, may have begun as a fight between the Zetas and Gulf cartels, Domene said. The Zetas started with deserters from the Mexican Army, and quickly gained a reputation for ruthless violence as the armed branch of Mexico's Gulf cartel. It split off into a separate drug-trafficking organization in 2010. Friends and family members of inmates gathered outside the prison to find out whether their loved ones had died. In May 2011, 14 inmates were killed and 35 people were injured in a fire in the prison's psychiatric ward. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story815.txt: -------------------------------------------------------------------------------- 1 | 3 die in Washington avalanche 2 | Spokeswoman Katie Larson said several groups of skiers were caught in the deadly rush. "Almost all of them -- probably up to 12 at some point -- are buried in the snow. They manage to dig themselves out. ... At that point then, they look and they find that three of these skiers are suffering from medical issues. They begin CPR and, unfortunately, they were not able to resuscitate the victims," she said, adding that everyone was accounted for. All the skiers were experienced and had the appropriate equipment, Larson said. "Nature happened." Several were swept as far as 1,500 to 2,000 feet down, said Deputy Chris Bedker of the King County Sheriff's Office. All had avalanche beacons, and one wore an avalanche rescue system, which works like an airbag and helped her to survive, he said. The skiers were in a designated out-of-bounds area, but it was not closed and they were allowed to be there, Bedker said. John Gifford, general manager of the Stevens Pass ski area in the Cascade Mountains, said the avalanche took place roughly three miles west of the resort. Operations were not affected. Heavy snow has hit the region recently. A post on the resort's website Sunday reported that more than 2 feet of snow fell overnight Saturday. The Northwest Weather and Avalanche Center forecast the area as having a high avalanche danger Sunday, Bedker said. "The skiers were aware of that. ... They took that risk," he added. In a separate incident Sunday, a snowboarder was found dead near Snoqualmie Pass in the same mountain range. The cause of death was not immediately known. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story819.txt: -------------------------------------------------------------------------------- 1 | Missing teen mom, child found dead 2 | Thomas Lorde, the estranged boyfriend of 19-year-old Latasha Jackson and the father of 1-year-old Chaniya Wynn, was found next to them, dead of an apparent self-inflicted gunshot wound to the head, police said Sunday. Cleveland police issued an Amber Alert on Saturday after witnesses reported seeing Jackson and Chaniya abducted while walking on East 72nd Avenue in Cleveland. Jackson's 14-year-old brother was walking with the pair when he said Lorde approached. "He walked up on us and ... he pulled out the gun. He pointed it at me," the brother told CNN affiliate WEWS. "He told me to run." The brother, who CNN is not identifying because of his age, ran home and called 911. "I was scared for my niece and my sister," he said. "She (Jackson) was silent. She was scared. She didn't know what to do." The alert named Lorde, 25, as the kidnapping suspect, warning that he was a "violent sexual predator with felony warrants out of New York," and armed and dangerous. The alert was lifted Sunday after police found the bodies of the three "in a closed garage of an unoccupied structure in the 7000 block of Union Avenue," a police statement said. "All three were found unresponsive with gunshot wounds and pronounced dead on the scene," the statement said. No other details of the investigation were made public. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story820.txt: -------------------------------------------------------------------------------- 1 | Iran halts oil exports to Britain, France 2 | The order came several days after Iran threatened to cut oil exports to some European Union countries in retaliation for sanctions put in place by the EU and the United States in January, a ministry spokesman said in a statement. "Iran has no difficulty in selling and exporting its crude oil. ... We have our own customers and have designated alternatives for our oil sales. We shall sell to new customers, who will replace French and UK companies," ministry spokesman Ali Reza Nikzad-Rahbar said. The sanctions put in place last month are meant to force Iran to provide more information on its nuclear program by shutting off its sale of crude oil, which generates half of Iran's revenue. The West believes Tehran may be trying to develop nuclear weapons, but Iran has long maintained that its nuclear program is solely for civilian energy production. Iran exports 2.2 million barrels of oil a day, 18% of which is bound for European markets, according to the U.S. Energy Information Administration. The world consumes about 89 million barrels of oil per day. Analysts last week said that if Iran suspends shipments to some European countries, it would only have a modest impact on oil prices. Final details of the EU sanctions are still being worked out, and it's expected that they will have a grace period of up to eight months, an EU diplomat told CNN last month The grace period will allow European refiners to find new suppliers and Iran to find new buyers. Analysts have said that while the new sanctions are the toughest ever imposed, they still contain many loopholes. Iran is expected to still be able to sell its oil to places like China, India and other Asian countries, but perhaps at a discount of 10% to 15%. About 35% of Iran's oil exports currently go to China and India. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story823.txt: -------------------------------------------------------------------------------- 1 | 2 killed by roadside bomb in Pakistan 2 | The attack took place in Dera Bugti, a district in the Balochistan province, when a paramilitary vehicle on a routine patrol struck the bomb, said Murtaza Baig, a spokesman for the paramilitary forces. Militants in Balochistan, a province rich in natural gas, have been fighting Pakistani military forces for self-rule. For years, they have complained that the government has paid little attention to them and their economic needs. Dera Bugti is home to four major gas fields and was once the operational base for rebel leader Nawab Akbar Bugti, who was killed in a military raid in 2006. Paramilitary forces in the area are responsible for guarding natural gas installations that militants have frequently targeted in recent weeks. Pakistan has said the militants in Balochistan do not have links to the Islamic hardliners who have launched assaults in other parts of the country. In one such attack, six members of a pro-government militia were killed in a bomb blast in Khyber Agency, one of seven semiautonomous tribal agencies along the Afghan border. A remotely detonated bomb killed the militia members as they were taking control of an area that had been a militant stronghold, said Khalid Mumtaz Kundi, a senior government official of the district. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story825.txt: -------------------------------------------------------------------------------- 1 | Elizabeth Smart gets married in Hawaii 2 | "Yes, Elizabeth did get married today and we are all thrilled," said Smart's father, Ed, on Saturday. Smart and Matthew Gilmour exchanged vows Saturday on Oahu's North Shore before family and friends, CNN affiliate KSL said, citing a family spokesman. They plan to honeymoon at an undisclosed location, according to Chris Thomas, the spokesman. "Elizabeth's desire was for what most women want to celebrate her nuptials in a private wedding with family and close friends," Thomas told the affiliate. The pair got engaged last month and planned to get married in the summer, but moved up the wedding because of the media attention, the spokesman said. Gilmour, a native of Scotland, met his bride while she was doing missionary work in France. Smart attends Brigham Young University and also works for ABC News. Smart made headlines in 2002 when she was kidnapped from her Salt Lake home at age 14 and held captive for nine months. Her kidnapping stunned the nation, and the media covered the monthslong search to find her. Her abductor, Brian David Mitchell, sexually abused her during her time in captivity, and is serving life in prison for the kidnapping and assault. Authorities rescued Smart when she, her captor and his wife were spotted wandering in Sandy, Utah, in March 2003. Smart described the ordeal as "my nine months in hell" during court testimony two years ago. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story826.txt: -------------------------------------------------------------------------------- 1 | Carnival revelers hit Rio streets 2 | Pounding drums and fireworks explosions announced the start of each samba school that parades down the emblematic strip, flanked by stands with seating for 80,000 spectators. Dancers with platform heels and little else posed for photographers before bursting onto the dazzling pavement. Just before the lavish floats hit the Sambadrome, cranes lowered feathered dancers onto podiums where they will dance and swivel their hips nonstop for 40 minutes. But the five-day Carnival in Rio, which started Friday, is more than just the official parades. Neighborhoods across the city host block parties that attract revelers by the thousands -- sometimes more than a million. They drink and dance behind samba bands that wind their way through the streets. This year, about 850,000 tourists descended on Rio for Carnival celebrations, according to tourism officials. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story828.txt: -------------------------------------------------------------------------------- 1 | Police: Ohio mother, toddler abducted 2 | The suspect is a "violent sexual predator with felony warrants out of New York," and is armed and dangerous, the alert read. The suspect, identified by authorities as 25-year-old Thomas Lorde, is an estranged boyfriend of the girl's mother, Latasha Jackson, and the father of the girl, Chaniya Wynn. The missing girl is African-American, weighs 18 pounds and has brown eyes. She was last seen in a brown and pink stroller. Jackson was wearing a green shirt and a brown leather jacket with fur trim. Jackson and Chaniya were walking on East 72nd Avenue in Cleveland when they were abducted, police said. Lorde is armed with a 9mm handgun, according to police. Anyone with information about the group's whereabouts is asked to call 1-877-262-3764. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story833.txt: -------------------------------------------------------------------------------- 1 | Execution in Iran may be imminent 2 | Saeed Malekpour wrote a program to upload photos to the Internet, an accomplishment that could cost him his life, Amnesty International reported Friday. Authorities in the Islamic Republic claimed his program was used by someone else to upload pornography and charged him with "insulting and desecrating Islam." Malekpour, who is a Toronto resident, was arrested in October 2008 while visiting relatives in Iran. He was convicted in a short trial and was sentenced to death in October 2011, according to Amnesty International. Iran's Supreme Court confirmed the sentence on January 17. Malekpour's lawyers have been unable to ascertain the whereabouts of his court files since Tuesday and fear this could be an indicator that an executioner could carry out the sentence soon, Amnesty said. A court official suggested to the lawyers that the file had been sent to the Office for the Implementation of Sentences, according to Amnesty. Malekpour sent a letter from prison detailing beatings and other mistreatment at the hands of Iranian prison officials to obtain a confession, said Hadi Ghaemi, executive director of the International Campaign for Human Rights in Iran. "A large portion of my confession was extracted under pressure, physical and psychological torture, threats to myself and my family, and false promises of immediate release upon giving a false confession to whatever the interrogators dictated," the letter says. Malekpour's supporters have created Facebook pages and websites in his support dating to at least 2009. Amnesty International has requested on its website that concerned individuals write Iranian authorities inside and outside the country to demand that Malekpour not be executed. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story834.txt: -------------------------------------------------------------------------------- 1 | Woman called witch, burned alive 2 | Dhegani Mahato was attacked and set on fire by family members and others after a shaman allegedly accused her of casting a spell to make one of her relatives sick, Police Officer Hira Mani Baral said. The attack occurred Friday in Bagauda in Chitwan district, about 80 kilometers (50 miles) southwest of the Nepalese capital, Kathmandu, Baral said by telephone. Police arrested 10 people, including two shamans, five women and an 8-year-old boy, in connection with the burning. "Those arrested have confessed to their crime and will be charged with murder," Baral said. Mahato had just finished cleaning a cowshed early in the morning when she was attacked, Baral said. She was beaten with sticks and rocks before being doused with kerosene and set afire, an attack witnessed by her 9-year-old daughter, according to the local police report. Neighbors told police they were alerted to the attack but by then it was too late to save her. Prime Minister Baburam Bhattarai appealed to the people not to heed to shamans and faith healers. The government announced 1 million Nepalese rupees (about $14,000) in compensation for Mahato's two children. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story839.txt: -------------------------------------------------------------------------------- 1 | Japanese emperor has heart surgery 2 | Emperor Akihito's surgery lasted nearly five hours, NHK reported. Akihito, a ceremonial but revered figure in Japan, has suffered from poor health in recent months and has been hospitalized several times. Tsugunomiya Akihito was born on December 23, 1933 in Tokyo to Emperor Hirohito and Empress Nagako Kuniat as their fifth child and first son. According to Japanese legend, he is a direct descendant of Japan's first emperor Jimmu, circa 660 BC. Akihito means "shining pinnacle of virtue," and Tsugunomiya means "prince of the august succession and enlightened benevolence." On November 12, 1990, Akihito ascended to the Chrysanthemum Throne -- the oldest hereditary monarchy in the world -- as the 125th Emperor of Japan, one year and ten months after the death of Emperor Hirohito. The position, per Japan's constitution, is defined as "the symbol of the state and of the unity of the people." That said, the office's involvement in day-to-day government affairs tends to be minimal. Akihito broke from precedent following Japan's epic 9.0 magnitude earthquake and subsequent tsunami last year, when he gave a historic, televised speech on March 16. In it, he encouraged citizens to put forth their "best effort to save all suffering people" and he applauded his countrymen's handling of the crisis. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story850.txt: -------------------------------------------------------------------------------- 1 | Dutch prince hurt in avalanche 2 | Prince Johan Friso, 43, a son of Queen Beatrix of the Netherlands, was skiing outside the bounds of the ski resort with friends at the resort of Lech am Arlberg when he was hit by an avalanche, a spokesman for the state of Vorarlberg said. No one else in the group was affected, the spokesman said. The prince was under the snow for a "short period of time," the spokesman said. He was wearing an electronic beacon that helped rescuers quickly find him, he said. The prince was airlifted to a hospital in Innsbruck, where he is in intensive care, authorities said. Doctors described the prince as stable but not out of danger, according to a statement from the queen. Lech am Arlberg is in Austria's Vorarlberg state, a popular skiing area in western Austria. The region's avalanche agency reported there was a considerable to great chance of avalanches in Lech on Friday. It cited new snowfall on top of a packed layer of snow that could cause snow slabs to slide off. The prince gave up his right to the throne when he married in 2004 without Parliament's permission. He and his wife live in London with their two daughters. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story852.txt: -------------------------------------------------------------------------------- 1 | Chunk of Mississippi River closed 2 | The St. Charles Parish Department of Waterworks shut down both of its water intakes located in New Sarpy and Luling because of the spill, but said the incident did not pose a public threat. The area had been reopened, with some restrictions, by Friday afternoon as investigators continued to assess the damage, officials said. No injuries have been reported, and preliminary estimates put the spill at less than 10,000 gallons of crude oil. Response agencies have remained on the scene. The spill was started after a tanker barge towed by a motorized vessel, Settoon, ran into a construction barge towed by the tugboat Alydar just before 2 a.m. Friday near Reserve in St. John Parish, west of New Orleans. U.S. Coast Guard spokeswoman Lt. Suzanne Kerver said the tanker barge suffered a 10 feet by 5 feet gash above the water line, allowing crude oil to spill out of the 214,000-gallon tank. The leak has since been contained, said Lt. Paul Rhynard, also of the Coast Guard. Oil Mop, a contracted cleanup company, was on the scene and has deployed 100 feet of boom, Kerver said. "One of our priorities is to facilitate the safe continuation of commercial traffic," said Coast Guard Capt. Pete Gautier. "Safety is paramount, and the unified command is working to minimize the impact this spill has on people, the environment and commerce." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story862.txt: -------------------------------------------------------------------------------- 1 | ICE shooting was workplace dispute 2 | Federal officials said the incident occurred during a counseling session regarding performance. Director John Morton traveled to Long Beach, where the confrontation occurred Thursday evening, "The situation began ... as an incidence of workplace violence involving two federal agents in their office space," said Steven Martinez, assistant director of the FBI office in Los Angeles. "When the incident escalated, one agent fired several rounds at the other agent, wounding him." A third colleague intervened and fired at the shooter, killing him, Martinez said. Kevin Kozak, 51, a deputy special agent in the Los Angeles area, suffered multiple injuries and is undergoing treatment at a hospital. He is in stable condition. Federal agent Ezequiel Garcia, 45, was killed during the incident. "At this time, we believe this is an isolated incident and we believe the shooter was acting alone," Martinez said. The investigation includes officers from the ICE, the Long Beach Police Department and the FBI. By Friday morning, the federal building had reopened to the public, said FBI spokeswoman Laura Eimiller. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story864.txt: -------------------------------------------------------------------------------- 1 | Airline goes bust; travelers stranded 2 | "It currently appears that there are no funds available to meet operational expenses so flights will be suspended immediately," the company said in joint statement Friday with its newly appointed administrators, KordaMentha. About 4,000 passengers in total have been left stranded in Hawaii, Thailand, Indonesia and Australia as a result of the suspension, said Michael Smith, a spokesman for KordaMentha. "It also appears highly unlikely there will be any flights in the short to medium term," the airline's statement said, advising passengers to make alternative arrangements. The airline had sold about 100,000 tickets for future flights, Smith said. With no indication from Air Australia when it might resume operations, those tickets could end up worthless. Some customers may be entitled to refunds, the airline said, depending on how they bought their tickets. But it added that customers without the relevant insurance who paid in cash are unlikely to be eligible for refunds. "Apparently, the straw that broke camel's back was inability to pay for airline fuel," said Michael Ilyine, an accountant from Geelong, Australia. Ilyine and his wife were on their honeymoon in Thailand when they were left stuck at the airport in Phuket, he said, after their Air Australia flight was grounded with their baggage in the hold. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story866.txt: -------------------------------------------------------------------------------- 1 | 2 ICE agents shot in California; 1 dead 2 | One of the agents died; the other is listed in stable condition, according to the agency. The names of the agents are being held until their families can be notified. The shooting, which took place around 5:30 p.m. PT (8:30 p.m. ET), is under investigation by ICE's Office of Professional Responsibility, the Long Beach Police Department and the FBI, ICE said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story868.txt: -------------------------------------------------------------------------------- 1 | Drugs on plane in presidential airspace 2 | That was the apparent lesson Thursday when two fighter jets under the direction of the the North American Aerospace Defense Command intercepted a general aviation plane that had flown Thursday into temporarily restricted air space over Los Angeles, NORAD said. The restriction of the airspace coincided with travel to the West Coast by President Barack Obama. The F-16s were scrambled from March Air Reserve Base in Riverside, California, and intercepted the errant Cessna 182 around 11:30 a.m. (2:30 p.m. ET), said NORAD. Accompanied by the F-16s, the Cessna 182 landed without incident, where it was met by local law enforcement, NORAD said. A law enforcement official said 10 kilograms of what appeared to be marijuana were found on the plane. Secret Service spokesman Max Milien said only that "some type of narcotics" was found. The Secret Service concluded that the pilot was "of no protective interest to us," meaning the individual was not considered a threat, and was therefore turned over to the Long Beach Police Department. Immigration and Customs Enforcement Homeland Security Investigations, which helped question the pilot, said police were expected to refer the case to state prosecutors. The White House had no comment. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story90.txt: -------------------------------------------------------------------------------- 1 | Sex traffickers tattoo bar code on teen 2 | The bar code served as a form of identity for the woman and as certificate of "ownership" by one prostitution ring, and beneath the bar code was also tattooed the amount of money she owed the ring, police said. Held hostage by a pimp, the woman had multiple lesions from being beaten and whipped, and her head and eyebrows were shaven because she tried to flee, police said. CNN Freedom Project In all, police disbanded two prostitution rings along Madrid's Montera Street that were operated by two Romanian nationals -- an uncle and his nephew -- and authorities arrested a total of 22 people, including the two relatives, in Madrid and Getafe, police said. When the 19-year-old woman tried to escape, the uncle advised the nephew to tie the woman to a radiator and not feed her, police said. Among items seized by authorities were three illegal firearms, numerous swords and machetes, gold jewelry, five automobiles and $185,696 in Euros, more than half of which was hidden in a double roof of the home of one ring leader, police said. The ring leaders forced women, including underage girls, into prostitution, and members of the rings collected the money and controlled the rented floors of buildings where the women were forced into prostitution, police said. The prostitution ring members referred to the women as "packages," "suitcases," or "bicycles," police said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story917.txt: -------------------------------------------------------------------------------- 1 | 'Angry Birds' flock to Facebook 2 | Rovio's ridiculously addictive mobile game, which has been downloaded more than 500 million times on multiple platforms since debuting on the iPhone in 2009, hit Facebook on Tuesday. While the company had leaked out news that the merger of the game's millions of fans and Facebook's hundreds of millions of users was coming, a Facebook "launch event" was scheduled for 6 p.m. ET on Tuesday. But players, including, presumably, the 15 million who were already fans of the game on Facebook, can start slingshotting their feathered friends now. In addition to allowing players to pay for special in-game tools, such as more powerful birds, the Facebook version of "Angry Birds" also adds a social-gaming element. Besides posting their scores to their News Feed, players can send in-game gifts to friends and get special rewards for earning some of the game's highest scores. Rovio's chief marketing officer (or "Mighty Eagle" in bird-speak) Peter Vesterbacka told the blog Penn Olson that the Finnish company hopes as many as 40% of players will pay for bonus items -- a far higher rate than for other social games like "FarmVille" or "Mafia Wars." Upgrades will cost 99 cents each. From an early look, the game appears to play much like the original version that appeared on iOS devices. The difference, obviously, is that players use a mouse instead of a finger to pull back the bird slingshot. They also must toggle the screen size up and down on a sliding scale instead of pinching a touchscreen. It's a play style that will be familiar to people who played the game on Google Chrome -- a version that rolled out last year. Players can switch to full-screen mode (which is sure to be noticed by your boss, unfortunately) and personalized avatars will be available soon, according to the company. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story92.txt: -------------------------------------------------------------------------------- 1 | Cheney gets heart transplant 2 | Cheney, 71, had surgery at Inova Fairfax Hospital in Falls Church, Virginia. He had been on the cardiac transplant list for more than 20 months, a statement from his office said. "Although the former vice president and his family do not know the identity of the donor, they will be forever grateful for this lifesaving gift," it said. Cheney has a history of heart trouble, suffering at least five heart attacks since 1978. His first occurred when he was 37. In June 2010, he was hospitalized at George Washington University for conditions related to his coronary artery disease. He had a left ventricular assist device (LVAD) implanted to help his heart pump. In June 2001, Cheney was implanted with a pacemaker after he experienced irregular heart rhythms. The former Wyoming congressman served as an influential vice president with President George W. Bush from 2001 to 2009. In January, Showtime announced that it was producing a documentary about Cheney, tentatively titled "The World According to Dick Cheney." The network said filmmaker R.J. Cutler "will offer up a measured, layered profile of the polarizing, controversial former vice president." As vice president, Cheney worked diligently, mostly behind the scenes, to forge the Bush administration's identity and broad policy positions. He was considered the administration's point man on three major issues: energy, global warming and domestic terrorism. Cheney also served in the Nixon White House and was chief of staff to President Gerald Ford. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story930.txt: -------------------------------------------------------------------------------- 1 | 5.5 earthquake hits Northern California 2 | The quake's epicenter was six miles from Weitchpec, about 120 miles west of Redding, at a depth of 20.4 miles, according to USGS. There were no immediate reports of damage or injuries. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story933.txt: -------------------------------------------------------------------------------- 1 | U.S. to hold talks with North Korea 2 | Special Representative for North Korea Policy Glyn Davies will meet with his counterpart, North Korean First Vice Foreign Minister Kim Kye Gwan, in Beijing on February 23, State Department spokeswoman Victoria Nuland told reporters. Davies just returned from Russia, where he discussed continuing efforts to get North Korea to disarm. The talks will mark the first high-level contact since the death of North Korea's longtime leader, Kim Jong Il, in December and the subsequent transition of power to his youngest son, Kim Jong Un. Washington hopes the talks signal the new regime's desire to negotiate with the United States and address international concerns over its nuclear program. Kim's death last month threw into flux U.S. plans for renewed diplomacy with North Korea, including formal talks on ending Pyongyang's nuclear program and possible resumption of U.S. food assistance. The North Korea government was expected to suspend its uranium enrichment in exchange for food assistance as part of a deal that was to be announced around the time of Kim's death. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story94.txt: -------------------------------------------------------------------------------- 1 | AU beefs up forces to hunt down Kony 2 | Uganda, the Central African Republic, South Sudan and the Democratic Republic of Congo will supply soldiers for the mission, said Francisco Madeira, the African Union's special envoy on the LRA. He said the mission has support from the United States and 100 combat-ready troops the Pentagon sent to the region in October will assist. Kony and the LRA have been terrorizing Uganda and now, neighboring nations, for more than two decades. He is accused of using vicious tactics to recruit children to use them as soldiers and sex slaves and of slicing off ears, noses and limbs of his victims. There are reports of child soldiers brainwashed into killing their own parents. A celebrity-backed video that went viral helped make Kony's alleged crimes more widely known. Invisible Children produced the "KONY 2012" half-hour documentary, viewed more than 84 million times on YouTube. But in introducing Kony to many for the first time, the video also spurred a flurry of questions about Invisible Children's intentions, its transparency and whether the social-media frenzy was too little, too late. Kony formed the LRA in an attempt to overthrow the government of Uganda. When that failed and the LRA was pushed out of Uganda in 2006, Kony began moving around in neighboring countries. Abou Moussa, a special U.N. envoy for central Africa, said there is enough information to believe Kony may be in Central African Republic. It's also believed the LRA soldiers range between 200 and 700 in number. "I don't think that's the most important thing," Moussa said. "The most important thing is how little they may be, they still constitute a danger to the environment. So they continue to attack, they continue to create havoc." 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story941.txt: -------------------------------------------------------------------------------- 1 | 5.8 quake reported off Costa Rica 2 | The quake's epicenter was nearly 50 miles (75 kilometers) south of the capital city, San Jose, the survey said. The quake was about 17 miles (28 kilometers) below the Earth's surface, and its epicenter was just off the country's southwestern coast. It struck about 4:55 a.m. local time (5:55 a.m. ET), according to the geological survey. There were no immediate reports of damages or injuries. The agency estimated a higher magnitude for the quake earlier Monday in a preliminary reading. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story947.txt: -------------------------------------------------------------------------------- 1 | Abducted teen transplant patient found 2 | Brittany Jones was located at a hospital in Milwaukee hours after she was seen leaving her room at Cardinal Glennon Children's Medical Center with her father, said Katy O'Sullivan of the St. Louis Police Department. O'Sullivan said the girl's father, Dana Jones, was with her at the Milwaukee hospital. Hours earlier, St. Louis authorities issued an abduction alert for Jones, warning she was in grave danger if she did not receive a scheduled medical treatment. Jones, who underwent a transplant in 2010, was placed in the custody of the Illinois Department of Children and Family Services after her doctors determined she was not getting adequate care for her condition at home, O'Sullivan said. Dana Jones is believed to have taken his daughter around 2 p.m. Sunday from the St. Louis hospital, where according to surveillance footage he was seen removing her IV, walking her out of the hospital and driving off with her in his car, O'Sullivan said. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story949.txt: -------------------------------------------------------------------------------- 1 | U.S. gas prices on the rise 2 | The latest Lundberg Survey found the average price of regular gasoline rose to $3.51 per gallon, publisher Trilby Lundberg said Sunday. The survey canvasses about 2,500 filling stations in the continental United States twice a month. West Texas Intermediate crude, the U.S. benchmark fuel, remained largely flat between January 20 and Friday, when the most recent survey was conducted. There's a glut of the fuel on U.S. markets, so its price went up only 21 cents a barrel between surveys, Lundberg said. But Europe's benchmark Brent crude -- another fuel commonly used in American gasoline -- traded up by $7.45 per barrel over the same period. Lundberg blamed the jump on reduced production from North Sea platforms, tensions among Iran, its Persian Gulf neighbors and Western powers and a dispute between Sudan and newly independent South Sudan that has cut off southern oil from global markets. "Brent is highly sensitive to these events," she said. Meanwhile, U.S. retailers have little margin to absorb the increased fuel prices, meaning pump prices may edge up "a few more pennies" in the coming weeks, Lundberg said. The lowest prices in the latest survey were in Denver, where regular gas cost an average of $3.01 a gallon. The highest were on New York's Long Island, at $3.82. Average prices in some other cities: Atlanta: $3.54 Baltimore: $3.52 Billings, Montana: $3.03 Boston: $3.60 Chicago: $3.63 Houston: $3.42 Jackson, Mississippi: $3.38 Las Vegas: $3.41 Minneapolis: $3.45 Portland, Oregon: $3.48 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story957.txt: -------------------------------------------------------------------------------- 1 | Iraqi officials killed in separate attacks 2 | Gunmen fatally shot Haider Shamkhi, the government official, while he was in his car on Mohammed al-Qassim highway in Iraq's capital, police officials told CNN. In addition, four people -- among them the leader of a local Awakening Council -- died after their vehicle was struck by a roadside bomb around 9 p.m. Saturday (1 p.m. ET) in Amiriyat al-Falluja, said police officials about 30 kilometers (18 miles) north of the city of Falluja. Sheikh Najim Abed Hafidh headed up an Awakening Council in the town of al-Hiramat, which is near Falluja, police said. Such councils, also known as the Sons of Iraq, mainly consist of Sunni Arab fighters who turned against al Qaeda in late 2006. The U.S.-backed movement is credited as among the main factors that contributed to a drop in violence. Council members have been frequent targets for jihadists. The three others killed in that attack included a child and a woman, according to police. In central Falluja, meanwhile, one person died and another was critically wounded after a sticky bomb attached to a civilian car exploded Saturday evening, said police officials in that city, about 65 kilometers (40 miles) west of Baghdad. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story965.txt: -------------------------------------------------------------------------------- 1 | Iran to reveal nuclear achievements 2 | Ahmadinejad did not offer details during his announcement at a rally to mark the 33rd anniversary of the Islamic Revolution. But he slammed "hegemonic powers," accusing them of pressuring the nation on the nuclear front. In the near future, Iran's nuclear demands will be met by the nation's scientists, Ahmadinejad said at the Tehran event broadcast on Press TV "Today you see that the Iranian nation has become nuclear and can supply many of its demands," he said. " And God willing, in next few days, the whole world will witness the inauguration of several major achievements in the nuclear domain. The news comes amid heightened tension between Iran and the West over its nuclear program. The West believes Tehran may be trying to develop nuclear weapons, but Iran has long maintained that its nuclear program is solely for civilian energy production. Tensions hit a boiling point weeks ago when Iran conducted military exercises in the Persian Gulf after threatening to close the Strait of Hormuz, a crucial shipping lane for oil. Iran's threat followed tough sanctions from Western nations aimed at stopping its suspected nuclear weapons program. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story974.txt: -------------------------------------------------------------------------------- 1 | Rio police strike a week before Carnival 2 | Firefighters and the civil and military police announced the strike in a joint protest in downtown Rio, saying they would keep a third of their forces on the job, according to the state-run Agencia Brasil. But hours later, the commanding officers of the military police published a short statement saying all of their units were functioning normally. "There isn't any stoppage of any service for citizens," the statement said. It wasn't clear whether that meant members of military police rank and file were striking. Nearly 300 police officers and firefighters were disciplined by state officials for participating in the strike, Agencia Brasil reported, including 11 people accused of urging or inciting the action. The police union announced it would hold a demonstration to show support for those arrested or disciplined, according to a statement on the union's website. Salvador -- Brazil's third largest city and a popular destination for Carnival -- was hit by a wave of killings and looting when its police launched a strike last week. The military helped quell the violence there, and more than 14,000 troops were on standby to move into Rio if necessary, according to Agencia Brasil. Police and firefighters are demanding wage increases. Rio attracts hundreds of thousands of tourists to its lavish pre-Lenten Carnival celebration every year, and this year has an even higher profile because the country is gearing up for the soccer World Cup in 2014. The police strikes have heightened concerns over the country's ability to provide adequate security. Both Rio and Salvador are going to host games, and Rio is going to host the Olympic Games two years later. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story975.txt: -------------------------------------------------------------------------------- 1 | Somali boat capsizes; at least 11 die 2 | The vessel carrying 58 people, and captained by three smugglers, had set off from Somalia destined for Yemen last Saturday, the United Nations refugee agency said Friday in a news release. The boat's engine failed soon after. Survivors later told authorities that the smugglers then forced 22 people to jump overboard, the U.N. said. Those remaining were adrift at sea until Wednesday, when -- rocked by bad weather and rocky seas -- the boat capsized. Beginning that night on Somali beaches, locals found 13 survivors, including two adult women and a teenage boy and girl. Most suffered from skin burns caused by fuel inside the boat, the U.N. agency said. U.N. partners and local authorities transported these survivors from the Somali village of Qaw to the port city of Bossaso so they could get medical treatment. In addition, 11 bodies have washed up on beaches near the village of Ceelaayo. The U.N. says that each year, tens of thousands of Somalis and Ethiopians pay smugglers to help them flee violence in their native nations. Last year alone, more than 100,000 refugees, migrants and refugee seekers ended up in Yemen, despite the political insecurity in that Arab nation. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/cnn-stories/story992.txt: -------------------------------------------------------------------------------- 1 | Sister in fugitive trio pleads guilty 2 | Lee Grace Dougherty, 29, pleaded guilty Thursday in a Colorado courtroom to one count of attempted first-degree assault and two counts of felony menacing, CNN affiliate KRDO reported. Prosecutors will drop the laundry list of other charges against her, including five counts of attempted second-degree murder, according to the plea agreement. She faces a maximum of 28 years in prison when she is sentenced on April 30, according to court documents. Dougherty and her brothers, Dylan Stanley Dougherty and Ryan Edward Dougherty, are all accused of taking part in a multistate crime rampage that gripped the nation last year. The trio is accused of an armed bank robbery in Georgia and the attempted murder of a Florida police officer on August 2. They escaped from Florida with police in pursuit after they shot out a police cruiser's tire, according to authorities. The next week, the trio surfaced in Colorado and were again pursued by police. They were arrested after a high-speed chase on a rural stretch of interstate. They crashed their car along a rural road and police say they were shooting at officers with an AK-47 during a chase at speeds of up to 120 mph. Just before they were captured, she pointed her pistol at a Colorado police chief, but the chief fired his .40-caliber handgun first, wounding her in the right upper thigh, according to court documents. "I deserved to get shot," she later told the FBI. "I pointed the gun at the cop." Dougherty still faces charges in Georgia and Florida. 3 | -------------------------------------------------------------------------------- /singular_value_decomposition/data/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | python -m nltk.downloader stopwords 4 | python -m nltk.downloader wordnet 5 | python -m nltk.downloader averaged_perceptron_tagger 6 | python -m nltk.downloader punkt 7 | -------------------------------------------------------------------------------- /singular_value_decomposition/demo.py: -------------------------------------------------------------------------------- 1 | from numpy.linalg import svd 2 | import numpy as np 3 | 4 | movieRatings = [ 5 | [2, 5, 3], 6 | [1, 2, 1], 7 | [4, 1, 1], 8 | [3, 5, 2], 9 | [5, 3, 1], 10 | [4, 5, 5], 11 | [2, 4, 2], 12 | [2, 2, 5], 13 | ] 14 | 15 | U, singularValues, V = svd(movieRatings) 16 | 17 | print(U) 18 | print(singularValues) 19 | print(V) 20 | 21 | Sigma = np.vstack([ 22 | np.diag(singularValues), 23 | np.zeros((5, 3)), 24 | ]) 25 | 26 | print(np.round(movieRatings - np.dot(U, np.dot(Sigma, V)), decimals=10)) 27 | 28 | 29 | U, singularValues, V = svd(movieRatings, full_matrices=False) 30 | print(U) 31 | print(singularValues) 32 | print(V) 33 | 34 | Sigma = np.diag(singularValues) 35 | print(np.round(movieRatings - np.dot(U, np.dot(Sigma, V)), decimals=10)) 36 | -------------------------------------------------------------------------------- /singular_value_decomposition/statistics.py: -------------------------------------------------------------------------------- 1 | if __name__ == "__main__": 2 | import json 3 | 4 | with open('all_stories.json', 'r') as infile: 5 | data = json.loads(infile.read()) 6 | 7 | allWords = set() 8 | for entry in data: 9 | allWords |= set(entry['words']) 10 | 11 | print('{} unique words in all the stories'.format(len(allWords))) 12 | print('{} documents total'.format(len(data))) 13 | -------------------------------------------------------------------------------- /singular_value_decomposition/topicmodel_integration_test.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | from topicmodel import cluster_stories 4 | from topicmodel import load 5 | 6 | stories_file = os.path.join(os.path.dirname(__file__), "all_stories.json") 7 | 8 | 9 | def test_end_to_end(): 10 | # assert that the end to end test runs without error 11 | word_clusters, document_clusters = cluster_stories(load(stories_file)) 12 | -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [pycodestyle] 2 | max-line-length = 100 3 | exclude = venv,__pycache__,node_modules 4 | ignore = E402 5 | [pytest] 6 | addopts = --doctest-modules -v --cov-report term-missing --cov . 7 | norecursedirs = data venv __pycache__ node_modules 8 | -------------------------------------------------------------------------------- /waves/eigenvalues_100_beads.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pim-book/programmers-introduction-to-mathematics/552290d324297b10be7885ee5d720856d8c4efcd/waves/eigenvalues_100_beads.pdf -------------------------------------------------------------------------------- /waves/eigenvalues_5_beads.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pim-book/programmers-introduction-to-mathematics/552290d324297b10be7885ee5d720856d8c4efcd/waves/eigenvalues_5_beads.pdf -------------------------------------------------------------------------------- /waves/javascript_demo/README.md: -------------------------------------------------------------------------------- 1 | # Springs demo 2 | 3 | To view the live demo visit [pimbook.org](https://pimbook.org) 4 | 5 | # Run locally 6 | 7 | If you want to run this demo locally, you can simply clone the repo and open index.html. 8 | 9 | If you want to edit the code (you plucky little ruffian), you'll have to install the Javascript dependencies. 10 | 11 | ``` 12 | yarn install # or npm install 13 | # edit files... 14 | gulp build # or gulp watch for auto builds 15 | open index.html 16 | ``` 17 | 18 | - `geometry.js`: contains basic, model-agnostic vector arithmetic 19 | - `springs.js`: containts spring physics specific to this system 20 | - `main.js`: contains d3 visualization setup and interaction with DOM 21 | -------------------------------------------------------------------------------- /waves/javascript_demo/gulpfile.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var browserify = require("browserify"); 4 | var gulp = require("gulp"); 5 | var source = require("vinyl-source-stream"); 6 | var buffer = require("vinyl-buffer"); 7 | var sourcemaps = require("gulp-sourcemaps"); 8 | var gutil = require("gulp-util"); 9 | 10 | gulp.task("build", function() { 11 | // set up the browserify instance on a task basis 12 | var b = browserify({ 13 | entries: "./main.js", 14 | debug: true 15 | }); 16 | 17 | return ( 18 | b 19 | .transform("babelify", { presets: ["es2015"] }) 20 | .bundle() 21 | .pipe(source("main.bundle.js")) 22 | .on("error", gutil.log) 23 | .pipe(buffer()) 24 | .on("error", gutil.log) 25 | .pipe(sourcemaps.init({ loadMaps: true })) 26 | // Add transformation tasks to the pipeline here. 27 | //.pipe(uglify()) 28 | .on("error", gutil.log) 29 | .pipe(sourcemaps.write("./")) 30 | .on("error", gutil.log) 31 | .pipe(gulp.dest("./build/")) 32 | ); 33 | }); 34 | 35 | gulp.task("watch", ["build"], function() { 36 | gulp.watch("*.js", ["build"]); 37 | }); 38 | -------------------------------------------------------------------------------- /waves/javascript_demo/index.html: -------------------------------------------------------------------------------- 1 | <!DOCTYPE html> 2 | <html> 3 | <head> 4 | <title>String experiments</title> 5 | </head> 6 | <body> 7 | <script src="build/main.bundle.js"></script> 8 | <table> 9 | <tr> <th>y_1</th> <th>y_2</th> <th>y_3</th> <th>y_4</th> <th>y_5</th> </tr> 10 | <tr> 11 | <td><input type="number" min=-500 max=500 step=1 id="initial_y1" value="28"></td> 12 | <td><input type="number" min=-500 max=500 step=1 id="initial_y2" value="50"></td> 13 | <td><input type="number" min=-500 max=500 step=1 id="initial_y3" value="58"></td> 14 | <td><input type="number" min=-500 max=500 step=1 id="initial_y4" value="50"></td> 15 | <td><input type="number" min=-500 max=500 step=1 id="initial_y5" value="28"></td> 16 | </tr> 17 | </table> 18 | <p><button id="reset_positions">Reset positions</button></p> 19 | <p><button id="eig1">Use first eigenvector</button></p> 20 | <p><button id="eig2">Use second eigenvector</button></p> 21 | <p><button id="eig3">Use third eigenvector</button></p> 22 | <p><button id="eig4">Use fourth eigenvector</button></p> 23 | <p><button id="eig5">Use fifth eigenvector</button></p> 24 | </body> 25 | </html> 26 | -------------------------------------------------------------------------------- /waves/javascript_demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "springs-experiments", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "repository": "https://github.com/j2kun/springs-experiments", 6 | "license": "MIT", 7 | "contributors": [ 8 | { 9 | "name": "Jeremy Kun", 10 | "url": "https://jeremykun.com" 11 | } 12 | ], 13 | "scripts": { 14 | "babel": "babel --presets es2015 js/main.js -o build/main.bundle.js" 15 | }, 16 | "devDependencies": { 17 | "babel-cli": "^6.22.2", 18 | "babel-core": "^6.22.1", 19 | "babel-preset-es2015": "^6.22.0", 20 | "babelify": "^7.3.0", 21 | "browserify": "^14.1.0", 22 | "gulp": "^3.9.1", 23 | "gulp-sourcemaps": "^2.4.1", 24 | "gulp-uglify": "^2.0.1", 25 | "vinyl-buffer": "^1.0.0", 26 | "vinyl-source-stream": "^1.1.0" 27 | }, 28 | "dependencies": { 29 | "d3": "^4.7.4", 30 | "d3-drag": "^1.0.4", 31 | "fsevents": "^1.1.3", 32 | "jquery": "^3.5.0" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /waves/plot_waves.py: -------------------------------------------------------------------------------- 1 | import matplotlib as mpl 2 | mpl.use('TkAgg') 3 | 4 | import matplotlib.pyplot as plt 5 | import numpy 6 | 7 | from waves import * 8 | 9 | 10 | markers = ["o", "v", "s", "+", "x", "d", "p", "*"] 11 | 12 | 13 | def plot_eigenvectors(eigensystem, markersize=6): 14 | eigenvalues, eigenvectors = eigensystem 15 | x = numpy.arange(0, len(eigenvectors[0]), 1) 16 | fig = plt.figure() 17 | for val, vec, marker in zip(eigenvalues, eigenvectors, markers): 18 | plt.plot(x, vec, marker=marker, markersize=markersize, 19 | label="λ = %G" % val) 20 | 21 | plt.legend(bbox_to_anchor=(1.04, 0.5), loc="center left", borderaxespad=0) 22 | return fig 23 | 24 | 25 | def create_and_save_plots(five_filename="eigenvalues_5_beads.pdf", 26 | hundred_filename="eigenvalues_100_beads.pdf"): 27 | A = bead_matrix(5) 28 | eigensystem = sorted_eigensystem(A) 29 | eigenvalues, eigenvectors = eigensystem 30 | 31 | print("%s | %s" % ("eigenvalue", "eigenvector")) 32 | for val, vec in zip(eigenvalues, eigenvectors): 33 | vec_str = ", ".join(["%5.2f" % entry for entry in vec]) 34 | print("%10.2f | %s" % (val, vec_str)) 35 | 36 | fig1 = plot_eigenvectors(eigensystem) 37 | fig1.savefig(five_filename, bbox_inches="tight") 38 | 39 | fig2 = plot_eigenvectors( 40 | sorted_eigensystem(bead_matrix(100), top_k=5), markersize=4) 41 | fig2.savefig(hundred_filename, bbox_inches="tight") 42 | 43 | 44 | if __name__ == "__main__": 45 | create_and_save_plots() 46 | -------------------------------------------------------------------------------- /waves/waves_integration_test.py: -------------------------------------------------------------------------------- 1 | import os 2 | import shutil 3 | import tempfile 4 | 5 | from plot_waves import create_and_save_plots 6 | 7 | 8 | def test_generate_plots(): 9 | tmpdir = tempfile.mkdtemp() 10 | five_filename = os.path.join(tmpdir, "five.pdf") 11 | hundred_filename = os.path.join(tmpdir, "hundred.pdf") 12 | try: 13 | create_and_save_plots(five_filename, hundred_filename) 14 | finally: 15 | shutil.rmtree(tmpdir) 16 | --------------------------------------------------------------------------------