Skip to content

Instantly share code, notes, and snippets.

+class AtfI50032(PreProcessorBase):
+ """478.103 contains a chunk of text which is meant to appear in a poster
+ and be easily copy-paste-able. Unfortunately, the XML post 2003 isn't
+ structured to contain all of the appropriate elements within the EXTRACT
+ associated with the poster. This PreProcessor moves these additional
+ elements back into the appropriate EXTRACT."""
+ MARKER = ("//SECTNO[contains(., '478.103')]/.." # In 478.103
+ # Look for a P with the appropriate key words
+ "/P[contains(., 'ATF I 5300.2') and contains(., 'shall state')]")
+
@cmc333333
cmc333333 / 2015.patch
Created February 15, 2016 05:11
10 CFR 50 patch
--- .eregs_index/annual/10/50/2015 2016-02-15 05:04:10.250647377 +0000
+++ /vagrant/2015 2016-02-15 05:03:51.000000000 +0000
@@ -322,10 +322,8 @@
<E T="03">Common defense and security</E> means the common defense and security of the United States.</P>
<P>
<E T="03">Construction</E> or <E T="03">constructing</E> means, for the purposes of &#167; 50.55(e), the analysis, design, manufacture, fabrication, quality assurance, placement, erection, installation, modification, inspection, or testing of a facility or activity which is subject to the regulations in this part and consulting services related to the facility or activity that are safety related.</P>
- <P>
- <E T="03">Controls</E> when used with respect to nuclear reactors means apparatus and mechanisms, the manipulation of which directly affects the reactivity or power level of the reactor.</P>
- <P>
- <E T="03">Controls</E> when used with respect to any other facility means apparatus and mechan
16-03-25T21:08:10.76+0000 [API/0] OUT Updated app with guid a916257d-1e61-4f45-a2a2-848917bda4a1 ({"state"=>"STARTED"})
2016-03-25T21:08:10.92+0000 [STG/2] OUT -----> Downloaded app package (4.4M)
2016-03-25T21:08:12.64+0000 [STG/2] OUT -----> Downloaded app buildpack cache (49M)
2016-03-25T21:08:13.58+0000 [STG/0] OUT -------> Buildpack version 1.5.4
2016-03-25T21:08:13.61+0000 [STG/0] OUT ! Warning: Your application is missing a Procfile. This file tells Heroku how to run your application.
2016-03-25T21:08:13.61+0000 [STG/0] OUT ! Learn more: https://devcenter.heroku.com/articles/procfile
2016-03-25T21:08:16.26+0000 [STG/0] OUT -----> Uninstalling stale dependencies
2016-03-25T21:08:16.60+0000 [STG/0] OUT Uninstalling waitress-0.8.10:
2016-03-25T21:08:16.60+0000 [STG/0] ERR Exception:
2016-03-25T21:08:16.60+0000 [STG/0] ERR Traceback (most recent call last):
def algorithm(points, k, cutoff):
initial = random.sample(points, k)
clusters = [Cluster([p]) for p in initial]
loop_counter = 0
while True:
lists = [[] for c in clusters]
cluster_count = len(clusters)
loop_counter += 1
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="cfr.xsl"?>
<CFRGRANULE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CFRMergedXML.xsd">
<FDSYS>
<CFRTITLE>37</CFRTITLE>
<CFRTITLETEXT>Patents, Trademarks, and Copyrights</CFRTITLETEXT>
<VOL>1</VOL>
<DATE>2015-07-01</DATE>
<ORIGINALDATE>2015-07-01</ORIGINALDATE>
<COVERONLY>false</COVERONLY>