Skip to content

Instantly share code, notes, and snippets.

@Bjwebb
Bjwebb / -
Last active December 29, 2015 08:59
for f in *; do echo -n $f; cat $f | jq '.result[] | .license_id' | sort | uniq -c; done | python ../../licenses.py | sed 's/ \+/,/' | sed 's/ \+/,/' | gist
aa,2,"OKD Compliant::Other (Attribution)"
aai,11,"OKD Compliant::Creative Commons Attribution"
aauk,1,"OKD Compliant::Creative Commons Attribution"
acaa,2,"OKD Compliant::Open Data Commons Public Domain Dedication and Licence (PDDL)"
acodevacord,1,"OKD Compliant::Open Data Commons Public Domain Dedication and Licence (PDDL)"
addinternational,2,"OKD Compliant::Other (Attribution)"
adrauk,1,"OKD Compliant::Open Data Commons Open Database License (ODbL)"
aet,1,"OKD Compliant::Creative Commons Attribution"
afdb,54,"OKD Compliant::Other (Attribution)"
afghanaid,1,"OKD Compliant::Other (Public Domain)"
@Bjwebb
Bjwebb / -
Last active December 30, 2015 08:48
Activities missing from the datastore. Each line shows: difference in number of activities, package name, activities counted by me, activities in the datastore
73779 (total)
5073 sida-998 5566 493
2951 unitedstates-tz 3743 792
2808 unitedstates-usa_regional_crs_2010 3986 1178
2771 unitedstates-ml 3806 1035
2701 eu-998 5184 2483
2596 danida-all 2596 0
2520 minbuza_nl-activities 3921 1401
2230 fco-officialdevelopmentassistanceprogrammespend2012 2736 506
2150 unitedstates-gt 2285 135
<?xml version="1.0" encoding="utf-8"?>
<iati-organisations version="1.02" generated-datetime="2013-06-07T16:24:34.347">
<iati-organisation last-updated-datetime="2012-06-07T16:24:34.347" default-currency="USD" xml:lang="en">
<reporting-org ref="41114" type="40">United Nations Development Programme</reporting-org>
<iati-identifier>41114</iati-identifier>
<name>United Nations Development Programme</name>
<!--Please note, the below forward looking budgets are indicative figures only, and do not fully reflect ongoing resource mobilization efforts.-->
<total-budget>
1991 data/unitedstates/unitedstates-sd_pre_2011_election
1872 data/unitedstates/unitedstates-ne
1845 data/unitedstates/unitedstates-ng
1718 data/unitedstates/unitedstates-af
1630 data/unitedstates/unitedstates-sd
1376 data/unitedstates/unitedstates-pk
1337 data/unitedstates/unitedstates-ml
1329 data/asdb/asdb-activities
1062 data/unitedstates/unitedstates-et
967 data/unitedstates/unitedstates-ug
<b a1="GB-1-201242" a2="GB-COH-03788027-CSCF" a3="GB-COH-03788027-CSCF-542" a4="GB-CHC-208724-CSCF542"/>
<b a1="GB-1-201242" a2="GB-COH-03788027-CSCF" a3="GB-COH-03788027-CSCF-543" a4="GB-CHC-208724-CSCF543"/>
<b a1="GB-1-201242" a2="GB-COH-03788027-CSCF" a3="GB-COH-03788027-CSCF-540" a4="GB-CHC-1079599-BN-2011-UG-DFID-36A"/>
<b a1="GB-1-201242" a2="GB-COH-03788027-CSCF" a3="GB-COH-03788027-CSCF-541" a4="GB-CHC-1079599-BN-2011-GH-DFID-541"/>
<b a1="GB-1-201242" a2="GB-COH-03788027-CSCF" a3="GB-COH-03788027-CSCF-546" a4="GB-CHC-281681-CSCF546"/>
<b a1="GB-1-201242" a2="GB-COH-03788027-CSCF" a3="GB-COH-03788027-CSCF-544" a4="GB-CHC-1001698-UGA001"/>
<b a1="GB-1-201242" a2="GB-COH-03788027-CSCF" a3="GB-COH-03788027-CSCF-545" a4="GB-CHC-1837621-545"/>
<b a1="GB-1-201242" a2="GB-COH-03788027-CSCF" a3="GB-COH-03788027-CSCF-525" a4="GB-CHC-250456-CSCF525"/>
<b a1="GB-1-201242" a2="GB-COH-03788027-CSCF" a3="GB-COH-03788027-CSCF-526" a4="GB-CHC-250456-CSCF526"/>
<b a1="GB-1-201242" a2="GB-COH-03788027-CSCF" a3="GB-COH
GB-1-201242 GB-COH-03788027-CSCF GB-COH-03788027-CSCF-542 GB-CHC-208724-CSCF542
GB-1-201242 GB-COH-03788027-CSCF GB-COH-03788027-CSCF-543 GB-CHC-208724-CSCF543
GB-1-201242 GB-COH-03788027-CSCF GB-COH-03788027-CSCF-540 GB-CHC-1079599-BN-2011-UG-DFID-36A
GB-1-201242 GB-COH-03788027-CSCF GB-COH-03788027-CSCF-541 GB-CHC-1079599-BN-2011-GH-DFID-541
GB-1-201242 GB-COH-03788027-CSCF GB-COH-03788027-CSCF-546 GB-CHC-281681-CSCF546
GB-1-201242 GB-COH-03788027-CSCF GB-COH-03788027-CSCF-544 GB-CHC-1001698-UGA001
GB-1-201242 GB-COH-03788027-CSCF GB-COH-03788027-CSCF-545 GB-CHC-1837621-545
GB-1-201242 GB-COH-03788027-CSCF GB-COH-03788027-CSCF-525 GB-CHC-250456-CSCF525
GB-1-201242 GB-COH-03788027-CSCF GB-COH-03788027-CSCF-526 GB-CHC-250456-CSCF526
GB-1-201242 GB-COH-03788027-CSCF GB-COH-03788027-CSCF-554 GB-COH-4075590-CSCF554
@Bjwebb
Bjwebb / -
Created February 11, 2014 15:32
Activities missing from my local copy of the datastore.
37445 (total)
1905 unitedstates-ng 3456 1551
1829 unitedstates-sd_pre_2011_election 2102 273
1153 unitedstates-ml 3806 2653
1065 unitedstates-ug 4030 2965
1019 asdb-activities 1329 310
1009 unitedstates-ke 4002 2993
830 fco-britishcouncil 923 93
820 unitedstates-ua 2058 1238
784 unitedstates-tz 3743 2959
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.03">
<xsd:annotation>
<xsd:documentation xml:lang="en">
International Aid Transparency Initiative: Activity-Information Schema
Release 1.03, 2012-09-06
NOTE: the xml.xsd and iati-common.xsd schemas must be in the
same directory as this one.
Context Element/Attribute Requirement Tested if
Context Element/Attribute Requirement Tested if