text:
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.IO;

namespace DiskQueue.Tests
{
	[TestFixture]
	public class PersistentQueueTests : PersistentQueueTestsBase
	{
		[Test]
		[ExpectedException(typeof(InvalidOperationException),
			ExpectedMessage = "Another instance of the queue is already in action, or directory does not exists")]
		public void Only_single_instance_of_queue_can_exists_at_any_one_time()
		{
			using (new PersistentQueue(path))
			{
				new PersistentQueue(path);
			}
		}

		[Test]
		public void If_a_non_running_process_has_a_lock_then_can_start_an_instance ()
		{
			Directory.CreateDirectory(path);
			var lockFilePath = Path.Combine(path, "lock");
			File.WriteAllText(lockFilePath, "78924759045");

			using (new PersistentQueue(path))
			{
				Assert.Pass();
			}
		}

		[Test]
		public void Can_create_new_queue()
		{
			new PersistentQueue(path).Dispose();
		}

		[Test]
		[ExpectedException(typeof(InvalidOperationException), ExpectedMessage ="Unexpected data in transaction log. Expected to get transaction separator but got unknown data. Tx #1")]
		public void Corrupt_index_file_should_throw()
		{
			var buffer = new List<byte>();
			buffer.AddRange(Guid.NewGuid().ToByteArray());
			buffer.AddRange(Guid.NewGuid().ToByteArray());
			buffer.AddRange(Guid.NewGuid().ToByteArray());

			Directory.CreateDirectory(path);
			File.WriteAllBytes(Path.Combine(path, "transaction.log"), buffer.ToArray());

			new PersistentQueue(path);
		}

		[Test]
		public void Dequeing_from_empty_queue_will_return_null()
		{
			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				Assert.IsNull(session.Dequeue());
			}
		}

		[Test]
		public void Can_enqueue_data_in_queue()
		{
			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				session.Enqueue(new byte[] { 1, 2, 3, 4 });
				session.Flush();
			}
		}

		[Test]
		public void Can_dequeue_data_from_queue()
		{
			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				session.Enqueue(new byte[] { 1, 2, 3, 4 });
				session.Flush();
				CollectionAssert.AreEqual(new byte[] { 1, 2, 3, 4 }, session.Dequeue());
			}
		}

		[Test]
		public void Can_enqueue_and_dequeue_data_after_restarting_queue()
		{
			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				session.Enqueue(new byte[] { 1, 2, 3, 4 });
				session.Flush();
			}

			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				CollectionAssert.AreEqual(new byte[] { 1, 2, 3, 4 }, session.Dequeue());
				session.Flush();
			}
		}

		[Test]
		public void After_dequeue_from_queue_item_no_longer_on_queue()
		{
			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				session.Enqueue(new byte[] { 1, 2, 3, 4 });
				session.Flush();
			}

			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				CollectionAssert.AreEqual(new byte[] { 1, 2, 3, 4 }, session.Dequeue());
				Assert.IsNull(session.Dequeue());
				session.Flush();
			}
		}

		[Test]
		public void After_dequeue_from_queue_item_no_longer_on_queue_with_queues_restarts()
		{
			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				session.Enqueue(new byte[] { 1, 2, 3, 4 });
				session.Flush();
			}

			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				CollectionAssert.AreEqual(new byte[] { 1, 2, 3, 4 }, session.Dequeue());
				session.Flush();
			}

			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				Assert.IsNull(session.Dequeue());
				session.Flush();
			}
		}

		[Test]
		public void Not_flushing_the_session_will_revert_dequequed_items()
		{
			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				session.Enqueue(new byte[] { 1, 2, 3, 4 });
				session.Flush();
			}

			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				CollectionAssert.AreEqual(new byte[] { 1, 2, 3, 4 }, session.Dequeue());
				//Explicitly ommitted: session.Flush();
			}

			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				CollectionAssert.AreEqual(new byte[] { 1, 2, 3, 4 }, session.Dequeue());
				session.Flush();
			}
		}

		[Test]
		public void Not_flushing_the_session_will_revert_dequequed_items_two_sessions_same_queue()
		{
			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				session.Enqueue(new byte[] { 1, 2, 3, 4 });
				session.Flush();
			}

			using (var queue = new PersistentQueue(path))
			using (var session2 = queue.OpenSession())
			{
				using (var session1 = queue.OpenSession())
				{
					CollectionAssert.AreEqual(new byte[] { 1, 2, 3, 4 }, session1.Dequeue());
					//Explicitly ommitted: session.Flush();
				}
				CollectionAssert.AreEqual(new byte[] { 1, 2, 3, 4 }, session2.Dequeue());
				session2.Flush();
			}
		}

		[Test]
		public void Two_sessions_off_the_same_queue_cannot_get_same_item()
		{
			using (var queue = new PersistentQueue(path))
			using (var session = queue.OpenSession())
			{
				session.Enqueue(new byte[] { 1, 2, 3, 4 });
				session.Flush();
			}

			using (var queue = new PersistentQueue(path))
			using (var session2 = queue.OpenSession())
			using (var session1 = queue.OpenSession())
			{
				CollectionAssert.AreEqual(new byte[] { 1, 2, 3, 4 }, session1.Dequeue());
				Assert.IsNull(session2.Dequeue());
			}
		}
	}
}


text:
import wrapper from 'atomic-fuel/libs/constants/wrapper';
import Network from 'atomic-fuel/libs/constants/network';

// Local actions
const actions = [];

// Actions that make an api request
const requests = [
  'CREATE_CONTENT_ITEM_SELECTION',
];

export const Constants = wrapper(actions, requests);

export function getContentItemSelection(contentItemReturnURL, contentItem) {
  return {
    type: Constants.CREATE_CONTENT_ITEM_SELECTION,
    method: Network.POST,
    url: 'api/lti_content_item_selection',
    body: {
      content_item_return_url: contentItemReturnURL,
      content_item: JSON.stringify(contentItem)
    }
  };
}

redpajama_set_name: RedPajamaGithub


text:
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using static Interop.Libsodium;

namespace NSec.Cryptography.Formatting
{
    internal sealed class X25519PrivateKeyFormatter : PrivateKeyFormatter
    {
        public X25519PrivateKeyFormatter(byte[] blobHeader) : base(
            crypto_scalarmult_curve25519_SCALARBYTES,
            blobHeader)
        {
        }

        protected override unsafe void Deserialize(
            ReadOnlySpan<byte> span,
            out SecureMemoryHandle? keyHandle,
            out PublicKeyBytes publicKeyBytes)
        {
            if (Unsafe.SizeOf<PublicKeyBytes>() != crypto_scalarmult_curve25519_SCALARBYTES)
            {
                throw Error.InvalidOperation_InternalError();
            }

            Debug.Assert(span.Length == crypto_scalarmult_curve25519_SCALARBYTES);

            keyHandle = SecureMemoryHandle.CreateFrom(span);

            fixed (PublicKeyBytes* q = &publicKeyBytes)
            {
                int error = crypto_scalarmult_curve25519_base(q, keyHandle);

                Debug.Assert(error == 0);
                Debug.Assert((((byte*)q)[crypto_scalarmult_curve25519_SCALARBYTES - 1] & 0x80) == 0);
            }
        }

        protected override void Serialize(
            SecureMemoryHandle keyHandle,
            Span<byte> span)
        {
            Debug.Assert(keyHandle.Size == crypto_scalarmult_curve25519_SCALARBYTES);
            Debug.Assert(span.Length == crypto_scalarmult_curve25519_SCALARBYTES);

            keyHandle.CopyTo(span);
        }
    }
}


text:
<!DOCTYPE html>

<meta charset="utf-8">
<title>Airport</title>

<link href='http://fonts.googleapis.com/css?family=Inconsolata:400,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Oswald|Ubuntu+Mono' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,600,700,300' rel='stylesheet' type='text/css'>

<link rel="stylesheet" type="text/css" href="css/Airport.css">

Airport font effect


text:
export update from './update';
export load from './load';
export upvote from './upvote';


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="Open Knowledge">
    <meta name="description" content="The state of government open data in China
">
    <meta name="keywords" content="China, Open Government, Open Data, Government Transparency, Open Knowledge
">
    <meta property="og:type" content="website"/>
    <meta property="og:title" content="Open Data Index - Open Knowledge"/>
    <meta property="og:site_name" content="Open Data Index"/>
    <meta property="og:description"
          content="The state of government open data in China"/>
    <meta property="og:image" content="/static/images/favicon.ico"/>
    <title>China | Global Open Data Index by Open Knowledge</title>
    <base href="/">

    <link rel="stylesheet" href="/static/css/site.css">
    <link rel="icon" href="/static/images/favicon.ico">

                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                            data-target="#navbar-collapse">
                        Toggle navigation

                    </button>

                            Global
Open Data Index

                                Places

                                Datasets

                                Download

                                Insights

                                Methodology

                                About

                                Press

                        Home

Places

China

                China / 2014                37% open

                China is ranked #58 in the 2014 Index

                    China's overall Index ranking is down from #38 in 2013

See other years

        Current

        2013

Share or embed this page

     Embed

     Twitter

     Facebook

     Google+

        <button type="button" class="close" data-dismiss="modal">×Close</button>

Map embed code

            Use the following code to embed the map visualisation into your own website.

        <xmp contenteditable="true"></xmp>

        If you are a developer, you can read more about the embed options here: Embed options

        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

        <col style="width:6%">
        <col style="width:20%">
        <col style="width:23%">
        <col style="width:20%">
        <col style="width:10%">
        <col style="width:5%">
        <col style="width:10%">
        <col style="width:6%">

                Rank
                Dataset
                Breakdown
                Location (URL)
                Format
                Info
                Prev.
                Score

                  41

                  National Statistics

                      <li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>

<p>Licences are commonly found in:</p>

<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>

<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>

<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>

<p>The following formats are NOT machine readable:</p>

<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>

<p>If you have a different file type and you don't know if it's machine readable or not, ask in the Open Data Census forum</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>

<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>

<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>

<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>

<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>

<p>Data is <strong>NOT</strong> publicly available when:</p>

<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer "YES" to this question and note in the comment section how you discovered the data is in digital form.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>

<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>">

http://data.stats.gov.cn/index...

Excel, CSV

                  #27  60%

                60%

                41

National Statistics

URL: http://data.stats.gov.cn/index

Format: Excel, CSV

nothing changed in 2014

                  25

                  Legislation
                  <span class="dataset-context" data-toggle="popover" title="Legislation" data-content="
This data category requires all national laws and statutes available to be available online, although it is not a requirement that information on legislative behaviour e.g. voting records is available. To satisfy this category, the following minimum criteria must be met:

Content of the law / status

If applicable, all relevant amendments to the law

Date of last amendments

Data should be updated at least on quarterly

">

                      <li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>

<p>Licences are commonly found in:</p>

<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>

<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>

<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>

<p>The following formats are NOT machine readable:</p>

<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>

<p>If you have a different file type and you don't know if it's machine readable or not, ask in the Open Data Census forum</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>

<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>

<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>

<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>

<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>

<p>Data is <strong>NOT</strong> publicly available when:</p>

<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer "YES" to this question and note in the comment section how you discovered the data is in digital form.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>

<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>">

http://www.gov.cn/flfg/index.h...

HTML

                  #20  55%

                55%

                25

Legislation

URL: http://www.gov.cn/flfg/index.htm

Format: HTML

nothing changed in 2014

                  33

                  Pollutant Emissions
                  <span class="dataset-context" data-toggle="popover" title="Pollutant Emissions" data-content="
Aggregate data about the emission of air pollutants especially those potentially harmful to human health (although it is not a requirement to include information on greenhouse gas emissions). Aggregate means national-level or available for at least three major cities. In order to satisfy the minimum requirements for this category, data must be available for the following pollutants and meet the following minimum criteria:

Particulate matter (PM) Levels

Sulphur oxides (SOx)

Nitrogen oxides (NOx)

Volatile organic compounds (VOCs)

Carbon monoxide (CO)

Updated on at least once a week.

Measured either at a national level by regions or at leasts in 3 big cities.

">

                      <li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>

<p>Licences are commonly found in:</p>

<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>

<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>

<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>

<p>The following formats are NOT machine readable:</p>

<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>

<p>If you have a different file type and you don't know if it's machine readable or not, ask in the Open Data Census forum</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>

<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>

<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>

<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>

<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>

<p>Data is <strong>NOT</strong> publicly available when:</p>

<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer "YES" to this question and note in the comment section how you discovered the data is in digital form.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>

<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>">

http://datacenter.mep.gov.cn/

n/a

                  #21  55%

                55%

                33

Pollutant Emissions

URL: http://datacenter.mep.gov.cn/

nothing changed in 2014

                  43

                  Government Budget
                  <span class="dataset-context" data-toggle="popover" title="Government Budget" data-content="
National government budget at a high level. This category is looking at budgets, or the planned government expenditure for the upcoming year, and not the actual expenditure. To satisfy this category, the following minimum criteria must be met:

Planned budget divided by government department and sub-department

Updated once a year.

The budget should include descriptions regarding the different budget sections.

">

                      <li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>

<p>Licences are commonly found in:</p>

<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>

<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>

<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>

<p>The following formats are NOT machine readable:</p>

<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>

<p>If you have a different file type and you don't know if it's machine readable or not, ask in the Open Data Census forum</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>

<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>

<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>

<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>

<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>

<p>Data is <strong>NOT</strong> publicly available when:</p>

<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer "YES" to this question and note in the comment section how you discovered the data is in digital form.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>

<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>">

http://yss.mof.gov.cn/2013zycz...

HTML

                  #27  55%

                55%

                43

Government Budget

URL: http://yss.mof.gov.cn/2013zyczys/index.html

Format: HTML

Nothing changed in 2014.

But the State Council published a new order about "deepening reform of budget management issues" stating and encouraging all level of government to publish in detailed budget and spending data. (Oct 2014)

                  24

                  Transport Timetables
                  <span class="dataset-context" data-toggle="popover" title="Transport Timetables" data-content="
Timetables of major government operated (or commissioned) national-level public transport services (specifically bus and train). The focus here is on national level services (not those which operate only at a municipal or city level and which are not controlled or regulated by the national government). A 'yes' in any question will refer to both types of transport. However, if there is no national level service operated or regulated by the government for a given type of transport (for instance busses), then this type is ignored in this data category. Data submitted in this category should meet the following minimum criteria:

Time of operating

Time of leaving first station and arriving to the last station

Updated at least once a year

">

                      <li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>

<p>Licences are commonly found in:</p>

<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>

<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>

<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>

<p>The following formats are NOT machine readable:</p>

<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>

<p>If you have a different file type and you don't know if it's machine readable or not, ask in the Open Data Census forum</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>

<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>

<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>

<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>

<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>

<p>Data is <strong>NOT</strong> publicly available when:</p>

<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer "YES" to this question and note in the comment section how you discovered the data is in digital form.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>

<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>">

http://www.12306.cn/mormhweb/k...

n/a

                  #13  45%

                45%

                24

Transport Timetables

URL: http://www.12306.cn/mormhweb/kyfw/lcskbcx/

Only Train services is ran and managed at national level in China so the dataset mentioned here only covers the timetable of train service. The online data is available in a web service on national train service website 12306.cn which is mainly used to book tickets.

nothing changed in 2014

                  18

                  Location datasets
                  <span class="dataset-context" data-toggle="popover" title="Location datasets" data-content="
A database of postcodes/zipcodes and the corresponding spatial locations in terms of a latitude and a longitude (or similar coordinates in an openly published national coordinate system). If a postcode/zipcode system does not exist in the country, please submit a dataset of administrative borders. Data submitted in this category must satisfy the following minimum conditions

Zipcodes

Address

Coordinate (latitude longitude)

national level

updated once a year

Administrative boundaries

Boarders poligone

name of poligone (city, neighborhood)

national level

updated once a year

">

                      <li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>

<p>Licences are commonly found in:</p>

<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>

<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>

<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>

<p>The following formats are NOT machine readable:</p>

<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>

<p>If you have a different file type and you don't know if it's machine readable or not, ask in the Open Data Census forum</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>

<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>

<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>

<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>

<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>

<p>Data is <strong>NOT</strong> publicly available when:</p>

<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer "YES" to this question and note in the comment section how you discovered the data is in digital form.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>

<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>">

http://www.cpdc.com.cn/postcdQ...

n/a

                  #21  45%

                45%

                18

Location datasets

URL: http://www.cpdc.com.cn/postcdQueryAction.do?reqCode=gotoQueryPostAddr

The data is only officially available as a web service. It is provided by the China Post (owned by gov)

nothing changed in 2014

                  26

                  Company Register

                      <li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>

<p>Licences are commonly found in:</p>

<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>

<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>

<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>

<p>The following formats are NOT machine readable:</p>

<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>

<p>If you have a different file type and you don't know if it's machine readable or not, ask in the Open Data Census forum</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>

<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>

<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>

<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>

<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>

<p>Data is <strong>NOT</strong> publicly available when:</p>

<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer "YES" to this question and note in the comment section how you discovered the data is in digital form.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>

<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>">

http://www.saic.gov.cn/ywbl/zx...

HTML

                  #16  45%

                45%

                26

Company Register

URL: http://www.saic.gov.cn/ywbl/zxcx/djqyxxcx/index.html

Format: HTML

The data available at national level might not include certain companies which registered at city/province level.

nothing changed in 2014

                  75

                  National Map

                      <li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>

<p>Licences are commonly found in:</p>

<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>

<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>

<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>

<p>The following formats are NOT machine readable:</p>

<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>

<p>If you have a different file type and you don't know if it's machine readable or not, ask in the Open Data Census forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>

<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>

<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>

<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>

<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>

<p>Data is <strong>NOT</strong> publicly available when:</p>

<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer "YES" to this question and note in the comment section how you discovered the data is in digital form.</p>">

                      <li class="yes" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>

<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>">

http://219.238.166.215/mcp/ind...

JPG,EPS

                  #25  55%

                5%

                75

National Map

URL: http://219.238.166.215/mcp/index.asp

Format: JPG,EPS

State Bureau of Surveying and Mapping is responsible for map data. The agency only provides low resolution online (max 1: 4 000 000) in JPG or EPS format  (1).

Sources

(1) http://219.238.166.215/mcp/index.asp Accessed on 2014-10-16

                  84

                  Government Spending
                  <span class="dataset-context" data-toggle="popover" title="Government Spending" data-content="
Records of actual (past) national government spending at a detailed transactional level; A database of contracts awarded or similar will not considered sufficient. This data category refers to detailed ongoing data on actual expenditure. Data submitted in this category should meet the following minimum criteria:

Individual record of transactions.

Date of the transactions

Government office which had the transaction

Name of vendor

amount of the transaction

Update on a monthly basis

">

                      <li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>

<p>Licences are commonly found in:</p>

<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>

<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>

<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>

<p>The following formats are NOT machine readable:</p>

<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>

<p>If you have a different file type and you don't know if it's machine readable or not, ask in the Open Data Census forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>

<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>

<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>

<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>

<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>

<p>Data is <strong>NOT</strong> publicly available when:</p>

<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer "YES" to this question and note in the comment section how you discovered the data is in digital form.</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>

<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>">

n/a

n/a

                  #40  0%

                0%

                84

Government Spending

nothing changed in 2014

                  89

                  Election Results

                      <li class="no" data-toggle="popover" title="<h4><p>Openly licensed? </p></h4>" data-content="<p>The licence must comply with the Open Definition which allows data to be freely used, reused and redistributed. The Open Definition provides a list of conformant licences. If the data uses one of these licences, it is openly licensed.</p>

<p>Licences are commonly found in:</p>

<ul>
<li>the web page footer</li>
<li>a link to Terms &amp; Conditions</li>
<li>the About section</li>
</ul>

<p>Some licences may allow re-use and redistribution but have not been assessed as conformant with the Open Definition. In this case, seek feedback on the Open Data Index discussion forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data machine readable? </p></h4>" data-content="<p>All files are digital, but not all can be processed or parsed easily by a computer. In order to answer this question, you would need to look at the file type of the dataset. As a rule of thumb the following file types are machine readable:</p>

<ul>
<li>XLS</li>
<li>CSV</li>
<li>JSON</li>
<li>XML</li>
</ul>

<p>The following formats are NOT machine readable:</p>

<ul>
<li>HTML</li>
<li>PDF</li>
<li>DOC</li>
<li>JIF</li>
<li>JPEG</li>
<li>PPT</li>
</ul>

<p>If you have a different file type and you don't know if it's machine readable or not, ask in the Open Data Census forum</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is the data provided on a timely and up to date basis? </p></h4>" data-content="<p>Is the data current for the census year? You can determine or estimate when the data was last updated and its update frequency by reviewing:</p>

<ul>
<li>the metadata displayed for the data in an open data portal or web page</li>
<li>the dataset title or filename e.g. Budget 2013-14 or Election_4July2015.csv</li>
<li>metadata tags embedded in the web page that contains the data</li>
<li>date values within the data to find the most recent date value</li>
<li>the timestamp on the data file (although this may not be accurate)</li>
<li>Some data is not updated on a regular basis. e.g. Pollutant emissions may be updated daily - while postal codes may not change for many years. </li>
</ul>

<p>You may need to use your judgement to determine if the data is timely and up to date. Document your rationale in the comments section.</p>

<p>If you cannot determine a date, answer, &quot;NO&quot; i.e. the data is not timely or up-to-date.</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Publicly available? </p></h4>" data-content="<p>Can the data be accessed by the public without restrictions? Data is considered publicly available when:</p>

<ul>
<li>It can be accessed online without the need for a password or permissions.</li>
<li>If the data is in paper form, can be accessed by the public, and there is no restrictions on the number of photocopies that can be made.</li>
</ul>

<p>Data is <strong>NOT</strong> publicly available when:</p>

<ul>
<li>It is only made available after making a request.</li>
<li>It was availiable because of FOIA. </li>
<li>It can only be accessed by government officials.</li>
</ul>">

                      <li class="no" data-toggle="popover" title="<h4><p>Is data in digital form? </p></h4>" data-content="<p>Data can be in a digital format, but not accessible online. For example: A country budget can be stored on a spreadsheet or otherwise on a private government network, but not on the Internet. This means that the data is digital, but not publicly available. If you know that the data is digital somewhere inside the government (e.g. a government official tells you so), then you should answer "YES" to this question and note in the comment section how you discovered the data is in digital form.</p>">

                      <li class="no" data-toggle="popover" title="<h4><p>Does the data exist? </p></h4>" data-content="<p>Data must come from an official resource either issued directly by the government or by a third party officially representing the government. Data offered by companies, citizen initiatives or any non-governmental organisation do not count for the Index.</p>

<p>If the government has given the right to publish the data to third parties, a submission with a link a to third party site is allowed. The third-party site must explicitly state that the data has been commissioned by the government. Check if the organization has an agreement with the government to be the official source and make a note in the comment section.</p>">

n/a

n/a

                  #63  0%

                0%

                89

Election Results

nothing changed in 2014

Contributors

Reviewers

Georg Neumann

FENG GAO

Gil Zaretzer

Kamil Gregor

Tryggvi Björgvinsson

Mor Rubinstein

Zach Christensen

anonymous

Nisha Thompson

yar michl

Rebecca Sentance

Neal Bastek

Codrina Maria Ilie

Submitters

FENG GAO

OKFN CN

Pierre Chrzanowski

anonymous

                        –

                        Data License (Public
                            Domain)

    This service is run by Open Knowledge

Open Knowledge

What is
                    Open Data?

Run your
                    own Index

Source Code

Home

Download

Methodology

FAQ

About

Contact

Press


text:
require "net/http"
require "net/https"
require "json"
require "fastbill-automatic/version"

module Fastbill
  module Automatic
    API_BASE    = "automatic.fastbill.com"
    API_VERSION = "1.0"
    ROOT_PATH   = File.dirname(__FILE__)

    @@api_key = nil
    @@email = nil

    autoload :Base,         "fastbill-automatic/base"
    autoload :Customer,     "fastbill-automatic/customer"
    autoload :Invoice,      "fastbill-automatic/invoice"
    autoload :Item,         "fastbill-automatic/item"
    autoload :Subscription, "fastbill-automatic/subscription"
    autoload :Template,     "fastbill-automatic/template"
    autoload :Article,      "fastbill-automatic/article"
    autoload :Coupon,       "fastbill-automatic/coupon"

    module Services
      autoload :Get,           "fastbill-automatic/services/get"
      autoload :Create,        "fastbill-automatic/services/create"
      autoload :Update,        "fastbill-automatic/services/update"
      autoload :Delete,        "fastbill-automatic/services/delete"
      autoload :DeleteItem,    "fastbill-automatic/services/delete_item"
      autoload :Cancel,        "fastbill-automatic/services/cancel"
      autoload :Changearticle, "fastbill-automatic/services/changearticle"
      autoload :Complete,      "fastbill-automatic/services/complete"
      autoload :Sign,          "fastbill-automatic/services/sign"
      autoload :Sendbyemail,   "fastbill-automatic/services/sendbyemail"
      autoload :Sendbypost,    "fastbill-automatic/services/sendbypost"
      autoload :Setaddon,      "fastbill-automatic/services/setaddon"
      autoload :Setpaid,       "fastbill-automatic/services/setpaid"
      autoload :Setusagedata,  "fastbill-automatic/services/setusagedata"
    end

    module Request
      autoload :Base,       "fastbill-automatic/request/base"
      autoload :Connection, "fastbill-automatic/request/connection"
      autoload :Info,       "fastbill-automatic/request/info"
      autoload :Validator,  "fastbill-automatic/request/validator"
    end

    class FastbillError < StandardError; end
    class AuthenticationError < FastbillError; end
    class APIError < FastbillError; end

    def self.api_key
      @@api_key
    end

    def self.api_key=(api_key)
      @@api_key = api_key
    end

    def self.email
      @@email
    end

    def self.email=(email)
      @@email = email
    end

    def self.request(service, data)
      info = Request::Info.new(service, data)
      Request::Base.new(info).perform
    end
  end
end


text:
package com.clescot.webappender.jee;

import com.clescot.webappender.HttpBridge;
import com.google.common.collect.Maps;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.*;

public class JEEHttpBridge implements HttpBridge {
    private final HttpServletRequest httpServletRequest;
    private final HttpServletResponse httpServletResponse;

    public JEEHttpBridge(HttpServletRequest httpServletRequest,HttpServletResponse httpServletResponse) {
        this.httpServletRequest = httpServletRequest;
        this.httpServletResponse = httpServletResponse;
    }

    @Override
    public void start() {

    }

    @Override
    public void finish() {

    }

    @Override
    public void serializeLogs(String key, String value) {
        httpServletResponse.addHeader(key, value);
    }

    public Map<String, List<String>> getHeadersAsMap() {

        Map<String, List<String>> map = Maps.newHashMap();

        Enumeration headerNames = httpServletRequest.getHeaderNames();
        while (headerNames.hasMoreElements()) {
            String key = ((String) headerNames.nextElement()).toLowerCase();
            ArrayList<String> value = Collections.list(httpServletRequest.getHeaders(key));
            map.put(key, value);
        }
        return map;
    }

}


text:
using System;
using System.Collections.Generic;
using System.Linq;

using Nucleo.Presentation.Caching;
using Nucleo.Presentation.Creation;
using Nucleo.Presentation.Discovery;

namespace Nucleo.Core.Options
{
	public static class DefaultBuilder
	{
		#region " Methods "

		public static FrameworkConfiguration Create()
		{
			return new FrameworkConfiguration
			{
				Creator = new DefaultPresenterCreator(),
				DiscoveryStrategy = new DefaultPresentationDiscoveryStrategy(),
				Cache = null
			};
		}

		#endregion
	}
}


text:
The API Component implements the API for *infraboxcli* and the running *jobs*.

## Run tests
```bash
infrabox run ib # Only required once
infrabox run ib/test/api
```

## Start with dummy data
For development purposes you may want to start the API with some dummy data. Make sure you have setup  your development environment like described in [our developer guide](/docs/dev.md).

First start `postgres` and `minio` with some [dummy data](/infrabox/utils/storage):

```bash
./ib.py services start storage
```

Now start the API:

```bash
./ib.py services start api
```

The API Server starts up on port 8080.

## API Docs
After you have started the API you can access the docs at http://localhost:8080/doc


text:
// Load user page data
function loadUserData() {
	var doc = document.documentElement;
	doc.setAttribute('data-useragent', navigator.userAgent);

	$.ajax({
		dataType: "json",
		url: "users"
	})
	.done(updateUser);
}

function updateUser(data) {
	var username = $('#mainBody').attr('username');

	var userList = data['logins'];
	for (n=0; n<userList.length; n++) {
		var user = userList[n];
		// Add a new div and load the user details template into it
		$('#users').append('

');
		loadSection('user','user_'+n,user,null);
	}
}


text:
#import <Foundation/Foundation.h>

#import <XCTWebDriverAgentLib/FBCommandHandler.h>

@interface FBElementCommands : NSObject <FBCommandHandler>

@end


text:
\hypertarget{dir_7be2258519cc979331b9f3e3e2ddfff3}{\section{devel/lib/python2.7/dist-\/packages/nubot\-\_\-common/msg Directory Reference}
\label{dir_7be2258519cc979331b9f3e3e2ddfff3}\index{devel/lib/python2.\-7/dist-\/packages/nubot\-\_\-common/msg Directory Reference@{devel/lib/python2.\-7/dist-\/packages/nubot\-\_\-common/msg Directory Reference}}
}
\subsection*{Files}
\begin{DoxyCompactItemize}
\item
file \hyperlink{nubot__common_2msg_2____init_____8py}{\-\_\-\-\_\-init\-\_\-\-\_\-.\-py}
\item
file \hyperlink{__VelCmd_8py}{\-\_\-\-Vel\-Cmd.\-py}
\end{DoxyCompactItemize}


text:
define(['../lang/isDate', './isLeapYear'], function (isDate, isLeapYear) {

    var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

    /**
     * returns the total amount of days in the month (considering leap years)
     */
    function totalDaysInMonth(fullYear, monthIndex){
	if (isDate(fullYear)) {
	    var date = fullYear;
	    year = date.getFullYear();
	    monthIndex = date.getMonth();
	}

	if (monthIndex === 1 && isLeapYear(fullYear)) {
	    return 29;
	} else {
	    return DAYS_IN_MONTH[monthIndex];
	}
    }

    return totalDaysInMonth;

});