This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- .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 § 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+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')]") | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post '/login' do | |
redirect '/login' and return unless params[:login].present? | |
login = params[:login].strip | |
@new_user = User.new | |
if (user = User.where(email: login).first) and User.authenticate(user, params[:password]) | |
if user.service.present? | |
Event.blocked_email! login, user.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/spec/policies/proposal_policy_spec.rb b/spec/policies/proposal_policy_spec.rb | |
index 95b31b0..219004d 100644 | |
--- a/spec/policies/proposal_policy_spec.rb | |
+++ b/spec/policies/proposal_policy_spec.rb | |
@@ -196,8 +196,7 @@ describe ProposalPolicy do | |
it "allows a client admin to see unassociated requests that are inside its client scope" do | |
proposal.update_attributes(client_data_type:'AbcCompany::SomethingApprovable') | |
- user = proposal.approvers.first | |
- user.client_slug = "abc_company" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Ncr | |
class ProposalsController < ApplicationController | |
before_filter :authenticate_user! | |
def new | |
@proposal_form = Ncr::ProposalForm.new | |
@form_url, @form_method = {action: "create"}, "post" | |
approver = self.suggested_approver | |
if approver | |
@proposal_form.approver_email = approver.email_address |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module WorkflowHelper | |
class ThreeStateWorkflow | |
include Workflow | |
workflow do | |
state :pending | |
state :accepted | |
state :rejected | |
end | |
end | |
class NCRWorfklow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/views/shared/_cart_properties.html.erb b/app/views/shared/_cart_properties.html.erb | |
index 9f04e3d..1b8e98b 100644 | |
--- a/app/views/shared/_cart_properties.html.erb | |
+++ b/app/views/shared/_cart_properties.html.erb | |
@@ -8,7 +8,8 @@ | |
<%- unless cart.property_exclusions.include? property %> | |
<tr class="cart_item_information"> | |
<td class="results-list" align="left"> | |
- <strong><%= property.underscore.humanize %></strong> | |
+ <strong><%= I18n.t('helpers.label.cart.' + property, |
NewerOlder