branch_name stringclasses 149 values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38 values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine
{
public class Bitboard
{
public ulong Value { get; set; }
public Bitboard() { Value = 0; }
public Bitboard(ulong value) { Value = value; }
public void SetBit(Square position)
{
int sq64 = Board.Sq64((int)position);
if (sq64 < 0 || sq64 > 63) throw new IndexOutOfRangeException("Bitboard has indexes of range [0..63], provided: " + sq64);
Value |= SetMask[sq64];
}
public void ClearBit(Square position)
{
int sq64 = Board.Sq64((int)position);
if (sq64 < 0 || sq64 > 63) throw new IndexOutOfRangeException("Bitboard has indexes of range [0..63], provided: " + sq64);
Value &= ClearMask[sq64];
}
public int CountBit()
{
ulong val = Value;
int count = 0;
while (val > 0) { count++; val &= val - 1; }
return count;
}
public bool IsSet(int position)
{
if (position < 0 || position > 63) throw new IndexOutOfRangeException("Bitboard has indexes of range [0..63], provided: " + position);
return (Value & SetMask[position]) > 0;
}
public override string ToString()
{
StringBuilder sb = new StringBuilder(Environment.NewLine + "Bitboard: " + Environment.NewLine + Environment.NewLine);
ulong mask = 1;
int sq120 = 0;
int sq64 = 0;
for (Rank r = Rank.Rank8; r >= Rank.Rank1; --r)
{
for (File f = File.FileA; f <= File.FileH; ++f)
{
sq120 = Board.ConvertToSq120(f, r);
sq64 = Board.Sq64(sq120);
if (((mask << sq64) & Value) != 0) sb.Append("X");
else sb.Append("-");
}
sb.Append(Environment.NewLine);
}
sb.Append(Environment.NewLine + Environment.NewLine);
return sb.ToString();
}
private static ulong[] SetMask { get; set; }
private static ulong[] ClearMask { get; set; }
static Bitboard()
{
SetMask = new ulong[64];
ClearMask = new ulong[64];
for (int i = 0; i < 64; i++)
{
SetMask[i] |= ((ulong)1 << i);
ClearMask[i] = ~SetMask[i];
}
}
}
}
<file_sep>using Assets.Project.ChessEngine.Exceptions;
using System;
namespace Assets.Project.ChessEngine.Pieces
{
public abstract class Piece
{
public Color Color { get; set; }
public Square Square { get; set; }
public int Value { get; set; }
public abstract char Label { get; }
public abstract int Index { get; }
public Piece(Color color, Square square, int value)
{
Color = color;
Square = square;
Value = value;
}
public abstract bool IsBig();
public abstract bool IsMajor();
public abstract bool IsMinor();
public static char GetLabel(Color color) { return '-'; }
public static int GetIndex(Color color) { return -1; }
private static Piece CreatePiece(Type pieceType, Color color, Square square)
{
return (Piece)Activator.CreateInstance(pieceType, new object[] { color, square });
}
public static Piece CreatePiece(int pieceIndex, Square square)
{
Type pieceType = GetTypeFromPieceIndex(pieceIndex);
Color color = GetColorFromPieceIndex(pieceIndex);
return CreatePiece(pieceType, color, square);
}
public static Color GetColorFromPieceIndex(int pieceIndex)
{
if (pieceIndex >= 1 && pieceIndex <= 6) return Color.White;
else if (pieceIndex >= 7 && pieceIndex <= 12) return Color.Black;
throw new IllegalArgumentException("Illegal PieceIndex provided = " + pieceIndex);
}
public static Type GetTypeFromPieceIndex(int pieceIndex)
{
switch (pieceIndex)
{
case 1: case 7: return typeof(Pawn);
case 2: case 8: return typeof(Knight);
case 3: case 9: return typeof(Bishop);
case 4: case 10: return typeof(Rook);
case 5: case 11: return typeof(Queen);
case 6: case 12: return typeof(King);
default: throw new IllegalArgumentException();
}
}
public static char GetLabelFromPieceIndex(int pieceIndex)
{
switch (pieceIndex)
{
case 1: return 'P';
case 2: return 'N';
case 3: return 'B';
case 4: return 'R';
case 5: return 'Q';
case 6: return 'K';
case 7: return 'p';
case 8: return 'n';
case 9: return 'b';
case 10: return 'r';
case 11: return 'q';
case 12: return 'k';
default: throw new IllegalArgumentException();
}
}
public static int GetIndexFromPieceLabel(char pieceLabel)
{
switch (pieceLabel)
{
case 'P': return 1;
case 'N': return 2;
case 'B': return 3;
case 'R': return 4;
case 'Q': return 5;
case 'K': return 6;
case 'p': return 7;
case 'n': return 8;
case 'b': return 9;
case 'r': return 10;
case 'q': return 11;
case 'k': return 12;
default: throw new IllegalArgumentException();
}
}
}
}
<file_sep>using Assets.Project.Chess3D.Pieces;
using Assets.Project.ChessEngine;
using Assets.Project.ChessEngine.Pieces;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Assets.Project.Chess3D
{
public class Spawner: MonoBehaviour
{
public List<Transform> piecePrefabs;
public GameObject Pieces;
public GameController gc;
void Start()
{
}
public void DoMove(Move move)
{
if (move.IsEnPassant)
{
if (gc.Board.OnTurn == ChessEngine.Color.White)
{
DestroyPiece(gc.Board.Pieces[(int)move.ToSq - 10]);
}
else
{
DestroyPiece(gc.Board.Pieces[(int)move.ToSq + 10]);
}
}
else if (move.IsCastle)
{
switch (move.ToSq)
{
case Square.C1:
MovePiece(gc.Board.Pieces[(int)Square.A1], Board.Sq64((int)Square.D1));
break;
case Square.C8:
MovePiece(gc.Board.Pieces[(int)Square.A8], Board.Sq64((int)Square.D8));
break;
case Square.G1:
MovePiece(gc.Board.Pieces[(int)Square.H1], Board.Sq64((int)Square.F1));
break;
case Square.G8:
MovePiece(gc.Board.Pieces[(int)Square.H8], Board.Sq64((int)Square.F8));
break;
}
}
if (move.CapturedPiece != null)
{
DestroyPiece(gc.Board.Pieces[(int)move.ToSq]);
}
if (move.PromotedPiece.HasValue)
{
DestroyPiece(gc.Board.Pieces[(int)move.FromSq]);
}
else MovePiece(gc.Board.Pieces[(int)move.FromSq], Board.Sq64((int)move.ToSq));
}
public PieceWrapper SpawnPiece(Piece piece)
{
Vector3 worldPoint = ToWorldPoint(Board.Sq64((int)piece.Square));
Transform transform = Instantiate(piecePrefabs[piece.Index]);
transform.position = new Vector3(worldPoint.x, transform.position.y, worldPoint.z);
transform.parent = Pieces.transform;
PieceWrapper wrapper = transform.GetComponent<PieceWrapper>();
wrapper.Square = piece.Square;
return wrapper;
}
public void DestroyPiece(Piece piece)
{
try
{
PieceWrapper wrapper = FindPieceWrapper(piece);
Destroy(wrapper.gameObject);
}
catch (Exception e)
{
Debug.Log(gc.Board.ToString());
throw e;
}
}
public void MovePiece(Piece piece, int sq64)
{
Vector3 worldPoint = ToWorldPoint(sq64);
PieceWrapper wrapper = FindPieceWrapper(piece);
wrapper.Square = (Square)Board.Sq120(sq64);
wrapper.transform.position = new Vector3(worldPoint.x, wrapper.transform.position.y, worldPoint.z);
}
public PieceWrapper FindPieceWrapper(Piece piece)
{
foreach (Transform child in Pieces.transform)
{
PieceWrapper current = child.GetComponent<PieceWrapper>();
if (current.Square == piece.Square) return current;
}
return null;
}
private Vector3 ToWorldPoint(int cellNumber)
{
int j = cellNumber % 8;
int i = cellNumber / 8;
return new Vector3(i * -4 + 14, 1, j * 4 - 14);
}
}
}
<file_sep>using Assets.Project.ChessEngine.Exceptions;
using Assets.Project.ChessEngine.Pieces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine
{
/*
0000 0000 0000 0000 0000 0111 1111 -> FromSq
0000 0000 0000 0011 1111 1000 0000 -> ToSq
0000 0000 0011 1100 0000 0000 0000 -> CapturedPiece
0000 0000 0100 0000 0000 0000 0000 -> IsEnPassant
0000 0000 1000 0000 0000 0000 0000 -> IsPawnStart
0000 1111 0000 0000 0000 0000 0000 -> PromotedPiece
0001 0000 0000 0000 0000 0000 0000 -> IsCastle
*/
public class Move
{
private static readonly int fromSqMask = 0x7F;
private static readonly int toSqMask = 0x7F;
private static readonly int capturedPieceMask = 0xF;
private static readonly int isEnPassantMask = 0x40000;
private static readonly int isPawnStartMask = 0x80000;
private static readonly int promotedPieceMask = 0xF;
private static readonly int isCastleMask = 0x1000000;
public int Value { get; private set; }
public int Score { get; set; }
public Square FromSq
{
get { return (Square)(Value & fromSqMask); }
set
{
if ((int)value < 0 || (int)value > 127) throw new IllegalArgumentException("Invalid argument provided for FromSq property. Expected [0-127].");
Value |= (int)value;
}
}
public Square ToSq
{
get { return (Square)((Value >> 7) & toSqMask); }
set
{
if ((int)value < 0 || (int)value > 127) throw new IllegalArgumentException("Invalid argument provided for ToSq property. Expected [0-127].");
Value |= ((int)value << 7);
}
}
public int? CapturedPiece
{
get
{
int val = (Value >> 14) & capturedPieceMask;
if (val > 0) return val;
return null;
}
set
{
if (value.HasValue)
{
Value &= (~(capturedPieceMask << 14));
Value |= (value.Value << 14);
}
else Value &= (~(capturedPieceMask << 14)); // set null
}
}
public int? PromotedPiece
{
get
{
int val = (Value >> 20) & promotedPieceMask;
if (val > 0) return val;
return null;
}
set
{
if (value.HasValue)
{
Value &= (~(promotedPieceMask << 20));
Value |= (value.Value << 20);
}
else Value &= (~(promotedPieceMask << 20)); // set null
}
}
public bool IsEnPassant
{
get { return (Value & isEnPassantMask) != 0; }
set
{
if (value)
{
Value |= isEnPassantMask;
}
else
{
Value &= ~(1 << 19);
}
}
}
public bool IsPawnStart
{
get { return (Value & isPawnStartMask) != 0; }
set
{
if (value)
{
Value |= isPawnStartMask;
}
else
{
Value &= ~(1 << 20);
}
}
}
public bool IsCastle
{
get { return (Value & isCastleMask) != 0; }
set
{
if (value)
{
Value |= isCastleMask;
}
else
{
Value &= ~(1 << 25);
}
}
}
public override bool Equals(Object obj)
{
//Check for null and compare run-time types.
if ((obj == null) || !GetType().Equals(obj.GetType()))
{
return false;
}
else
{
Move other = (Move)obj;
return Value == other.Value;
}
}
public override int GetHashCode()
{
var hashCode = 1200616606;
hashCode = hashCode * -1521134295 + Value.GetHashCode();
hashCode = hashCode * -1521134295 + Score.GetHashCode();
hashCode = hashCode * -1521134295 + FromSq.GetHashCode();
hashCode = hashCode * -1521134295 + ToSq.GetHashCode();
hashCode = hashCode * -1521134295 + EqualityComparer<int?>.Default.GetHashCode(CapturedPiece);
hashCode = hashCode * -1521134295 + EqualityComparer<int?>.Default.GetHashCode(PromotedPiece);
hashCode = hashCode * -1521134295 + IsEnPassant.GetHashCode();
hashCode = hashCode * -1521134295 + IsPawnStart.GetHashCode();
hashCode = hashCode * -1521134295 + IsCastle.GetHashCode();
return hashCode;
}
public override string ToString()
{
StringBuilder sb = new StringBuilder();
string fromSq = FromSq.GetLabel();
string toSq = ToSq.GetLabel();
sb.Append(fromSq + toSq);
if (PromotedPiece.HasValue)
{
sb.Append(char.ToLower(Piece.GetLabelFromPieceIndex(PromotedPiece.Value)));
}
return sb.ToString();
}
}
}
<file_sep>using System;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
namespace Assets.Project.Chess3D
{
public class GameUiController : MonoBehaviour
{
public Text ErrorText;
public Text InputInfoText;
public Text SearchInfoText;
public Button EndButton;
private void Start()
{
EndButton.onClick.AddListener(OnEndClicked);
}
public void ShowErrorText(string text)
{
ErrorText.text = text;
}
public void HideErrorText()
{
ErrorText.text = string.Empty;
}
public void ShowInputInfoText(string text)
{
InputInfoText.text = text;
}
public void HideInputInfoText()
{
InputInfoText.text = string.Empty;
}
public void ShowSearchInfoText(string text)
{
SearchInfoText.text = text;
}
public void HideSearchInfoText()
{
SearchInfoText.text = string.Empty;
}
public void EndGame(string winnerText)
{
InputInfoText.text = winnerText;
ErrorText.text = string.Empty;
SearchInfoText.text = string.Empty;
}
public void ClearAll()
{
InputInfoText.text = string.Empty;
ErrorText.text = string.Empty;
}
public void OnEndClicked()
{
SceneManager.LoadScene("Menu");
}
}
}
<file_sep>namespace Assets.Project.ChessEngine.Pieces
{
/* Dummy piece for out of bounds check */
public sealed class OffLimits : Piece
{
public static OffLimits Instance { get; private set; }
static OffLimits()
{
Instance = new OffLimits();
}
public override char Label
{
get
{
return 'X';
}
}
public override int Index
{
get
{
return -1;
}
}
private OffLimits() : base(Color.Both, Square.None, 0)
{
}
public override bool IsBig()
{
return true;
}
public override bool IsMajor()
{
return true;
}
public override bool IsMinor()
{
return false;
}
public static new char GetLabel(Color color)
{
return 'X';
}
public static new int GetIndex(Color color)
{
return -1;
}
}
}
<file_sep>using Assets.Project.ChessEngine;
using Assets.Project.ChessEngine.Pieces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace Assets.Project.Chess3D.Pieces
{
public class PieceWrapper : MonoBehaviour
{
public Square Square;
}
}
<file_sep># Chess3D
3D chess game playable in a PvP or PvE mode.
Developed decent AI player for amateur gameplay.
Implemented bug free chess engine. PERFT tested.
Implemented in C#, Unity Engine.

<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine.Exceptions
{
public class IllegalArgumentException : Exception
{
public IllegalArgumentException() {}
public IllegalArgumentException(string message) : base(message) {}
public IllegalArgumentException(string message, Exception inner) : base(message, inner) {}
}
}
<file_sep>namespace Assets.Project.ChessEngine.Pieces
{
public class Bishop : Piece
{
public override char Label
{
get
{
if (Color == Color.White) return 'B';
else return 'b';
}
}
public override int Index
{
get
{
if (Color == Color.White) return 3;
else return 9;
}
}
public Bishop(Color color, Square square) : base(color, square, 325)
{
}
public override bool IsBig()
{
return true;
}
public override bool IsMajor()
{
return false;
}
public override bool IsMinor()
{
return true;
}
public new static char GetLabel(Color color)
{
if (color == Color.White) return 'B';
else return 'b';
}
public new static int GetIndex(Color color)
{
if (color == Color.White) return 3;
else return 9;
}
}
}<file_sep>namespace Assets.Project.ChessEngine.Pieces
{
public class Queen : Piece
{
public override char Label
{
get
{
if (Color == Color.White) return 'Q';
else return 'q';
}
}
public override int Index
{
get
{
if (Color == Color.White) return 5;
else return 11;
}
}
public Queen(Color color, Square square) : base(color, square, 1000)
{
}
public override bool IsBig()
{
return true;
}
public override bool IsMajor()
{
return true;
}
public override bool IsMinor()
{
return false;
}
public new static char GetLabel(Color color)
{
if (color == Color.White) return 'Q';
else return 'q';
}
public new static int GetIndex(Color color)
{
if (color == Color.White) return 5;
else return 11;
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine
{
public class SearchInfo
{
public Stopwatch Stopwatch { get; set; }
public int DepthLimit { get; set; }
public int TimeLimit { get; set; }
public bool Infinite { get; set; }
public long NodesVisited { get; set; }
public bool Quit { get; set; }
public bool Stopped { get; set; }
public SearchInfo()
{
Stopwatch = new Stopwatch();
}
}
}
<file_sep>namespace Chess3D.Dependency
{
public static class SceneLoading
{
public static InjectionContext Context { get; } = new InjectionContext();
public static class Parameters
{
public static readonly string WhiteChoice = "#WHITE_CHOICE";
public static readonly string BlackChoice = "#BLACK_CHOICE";
public static readonly string WhiteDepth = "#WHITE_DEPTH";
public static readonly string BlackDepth = "#BLACK_DEPTH";
public static readonly string Fen = "#FEN";
public static readonly string Board = "#BOARD";
}
}
}
<file_sep>namespace Assets.Project.ChessEngine.Pieces
{
public class Rook : Piece
{
public override char Label
{
get
{
if (Color == Color.White) return 'R';
else return 'r';
}
}
public override int Index
{
get
{
if (Color == Color.White) return 4;
else return 10;
}
}
public Rook(Color color, Square square) : base(color, square, 550)
{
}
public override bool IsBig()
{
return true;
}
public override bool IsMajor()
{
return true;
}
public override bool IsMinor()
{
return false;
}
public new static char GetLabel(Color color)
{
if (color == Color.White) return 'R';
else return 'r';
}
public new static int GetIndex(Color color)
{
if (color == Color.White) return 4;
else return 10;
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine
{
public class UndoMove
{
public Move Move { get; set; }
public int CastlePerm { get; set; }
public Square EnPassant { get; set; }
public int FiftyMove { get; set; }
public ulong StateKey { get; set; }
}
}
<file_sep>using Assets.Project.ChessEngine.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine.Pieces
{
public class PieceFactory
{
private Queue<Piece>[] pieces;
public PieceFactory()
{
pieces = new Queue<Piece>[Constants.PieceTypeCount];
for(int i = 0; i < Constants.PieceTypeCount; ++i)
{
pieces[i] = new Queue<Piece>();
}
}
public Piece CreatePiece(int pieceIndex, Square square)
{
Piece piece;
Queue<Piece> queue = pieces[pieceIndex];
if (queue.Count > 0)
{
piece = queue.Dequeue();
}
else
{
piece = Piece.CreatePiece(pieceIndex, square);
}
piece.Square = square;
return piece;
}
public void DeletePiece(Piece piece)
{
if (piece != null)
{
Queue<Piece> queue = pieces[piece.Index];
queue.Enqueue(piece);
}
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine.Exceptions
{
public class FENFormatException : Exception
{
public FENFormatException() {}
public FENFormatException(string message) : base(message) {}
public FENFormatException(string message, Exception inner) : base(message, inner) {}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine.Exceptions
{
public class BoardIntegrityException : Exception
{
public BoardIntegrityException() {}
public BoardIntegrityException(string message) : base(message) {}
public BoardIntegrityException(string message, Exception inner) : base(message, inner) {}
}
}
<file_sep>using Assets.Project.Chess3D.Pieces;
using Assets.Project.ChessEngine;
using Assets.Project.ChessEngine.Pieces;
using UnityEngine;
using Chess3D.Dependency;
using Assets.Project.ChessEngine.Exceptions;
using UnityEngine.SceneManagement;
using System.Threading;
using System.Threading.Tasks;
namespace Assets.Project.Chess3D
{
public class GameController : MonoBehaviour
{
public EventManager EventManager;
public Spawner Spawner;
public Visualizer Visualizer;
public GameUiController UiController;
public Board Board { get; private set; }
public Piece SelectedPiece { get; set; }
public IPlayer[] Players { get; private set; }
public IPlayer OnTurn { get; private set; }
void Start()
{
Board = SceneLoading.Context.Resolve<Board>(SceneLoading.Parameters.Board);
Players = new IPlayer[2];
var wc = SceneLoading.Context.Resolve<string>(SceneLoading.Parameters.WhiteChoice);
var bc = SceneLoading.Context.Resolve<string>(SceneLoading.Parameters.BlackChoice);
var wd = SceneLoading.Context.Resolve<int>(SceneLoading.Parameters.WhiteDepth);
var bd = SceneLoading.Context.Resolve<int>(SceneLoading.Parameters.BlackDepth);
if (wc.Equals("Human"))
{
OnTurn = Players[0] = new Human(this, "White player");
}
else
{
OnTurn = Players[0] = new Bot(this, "White player", wd);
}
if (bc.Equals("Human"))
{
Players[1] = new Human(this, "Black player");
}
else
{
Players[1] = new Bot(this, "Black player", bd);
}
SetupPieces();
StartGame();
}
private void SetupPieces()
{
foreach (Piece piece in Board.Pieces)
{
if (piece == null || piece is OffLimits) continue;
Spawner.SpawnPiece(piece);
}
}
private async void StartGame()
{
while (true)
{
OnTurn = Players[(int)Board.OnTurn];
if (NoPossibleMoves()) break;
Move move = await OnTurn.CalculateNextMove();
if (OnTurn is Bot)
{
Bot bot = OnTurn as Bot;
UiController.ShowSearchInfoText(bot.LastSearchResult);
SelectPiece((int)move.FromSq);
DoMove((int)move.ToSq);
}
else
{
await OnTurn.SelectPiece();
if (SelectedPiece == null) continue;
await OnTurn.DoMove();
}
}
EndGame();
}
private void EndGame()
{
IPlayer winner = Players[(int)Board.OnTurn ^ 1];
UiController.EndGame(winner.Id + " wins.");
EventManager.BlockEvents();
}
private bool NoPossibleMoves()
{
MoveList moveList = Board.GenerateAllMoves();
foreach (Move move in moveList)
{
if (Board.DoMove(move))
{
Board.UndoMove();
return false;
}
}
return true;
}
private void ReleaseHumanSemaphore()
{
Human human = OnTurn as Human;
if (human != null)
{
if (human.Semaphore.CurrentCount == 0) human.Semaphore.Release();
}
}
public void SelectPiece(int sq120)
{
if (Board.Pieces[sq120].Color != Board.OnTurn)
{
UiController.ShowErrorText("You must select piece of your color.");
return;
}
if (SelectedPiece != null) Visualizer.RemoveHighlightFromPiece(SelectedPiece);
if (Board.Pieces[sq120] == null) return;
SelectedPiece = Board.Pieces[sq120];
Visualizer.HighlightPiece(SelectedPiece);
ReleaseHumanSemaphore();
UiController.HideErrorText();
}
public void DoMove(int sq120)
{
if (SelectedPiece.Square == (Square)sq120)
{
Visualizer.RemoveHighlightFromPiece(SelectedPiece);
SelectedPiece = null;
ReleaseHumanSemaphore();
return;
}
Move foundMove = null;
MoveList moveList = Board.GenerateAllMoves();
foreach (Move move in moveList)
{
if (move.FromSq == SelectedPiece.Square && move.ToSq == (Square)sq120)
{
foundMove = move;
break;
}
}
Visualizer.RemoveHighlightFromPiece(SelectedPiece);
var IllegalMovePiece = SelectedPiece;
SelectedPiece = null;
if (Board.MoveExists(foundMove))
{
Spawner.DoMove(foundMove);
Board.DoMove(foundMove);
if (foundMove.PromotedPiece.HasValue)
{
Spawner.SpawnPiece(Board.Pieces[(int)foundMove.ToSq]);
}
}
else
{
UiController.ShowErrorText("Illegal move attempted: (" + IllegalMovePiece.Label + ") " + IllegalMovePiece.Square.GetLabel() + " -> " + ((Square)sq120).GetLabel());
}
ReleaseHumanSemaphore();
}
public string GetCellString(int cellNumber)
{
int j = cellNumber % 8;
int i = cellNumber / 8;
return char.ConvertFromUtf32(j + 65) + "" + (i + 1);
}
public Vector3 ToWorldPoint(int cellNumber)
{
int j = cellNumber % 8;
int i = cellNumber / 8;
return new Vector3(i * -4 + 14, 1, j * 4 - 14);
}
public bool IsValidCell(int cellNumber)
{
return cellNumber >= 0 && cellNumber <= 63;
}
}
}
<file_sep>using System.Collections.Generic;
namespace Chess3D.Dependency
{
public class InjectionContext
{
protected Dictionary<string, object> context = new Dictionary<string, object>();
public void Inject<T>(string name, T value)
{
context.Add(name, value);
}
public T Resolve<T>(string name)
{
return (T)context[name];
}
public void Clear()
{
context.Clear();
}
}
}
<file_sep>namespace Assets.Project.ChessEngine
{
public enum File { FileA, FileB, FileC, FileD, FileE, FileF, FileG, FileH };
public enum Rank { Rank1, Rank2, Rank3, Rank4, Rank5, Rank6, Rank7, Rank8 };
public enum Color { White, Black, Both };
public enum Square
{
A1 = 21, B1, C1, D1, E1, F1, G1, H1,
A2 = 31, B2, C2, D2, E2, F2, G2, H2,
A3 = 41, B3, C3, D3, E3, F3, G3, H3,
A4 = 51, B4, C4, D4, E4, F4, G4, H4,
A5 = 61, B5, C5, D5, E5, F5, G5, H5,
A6 = 71, B6, C6, D6, E6, F6, G6, H6,
A7 = 81, B7, C7, D7, E7, F7, G7, H7,
A8 = 91, B8, C8, D8, E8, F8, G8, H8, None = 99,
};
public enum CastlingPermit { WhiteKingCastling = 1, WhiteQueenCastling = 2, BlackKingCastling = 4, BlackQueenCastling = 8 };
public static class Constants
{
public static readonly int BoardSquareCount = 120; // 120 square board representation style
public static readonly int ColorWBB = 3; // keeping track of white, black and both
public static readonly int ColorWB = 2; // keeping track of both white and black
public static readonly int PieceTypeCount = 13; // 1..12 PieceType (6*W, 6*B)
public static readonly int MaxSamePieceCount = 10; // 8 pawns can upgrade to same figure, plus max 2 same figures on board
public static readonly int Infinity = 100000;
public static readonly int MaxSearchDepth = 128;
public static readonly int IsMate = Infinity - MaxSearchDepth;
}
public static class FileMethods
{
public static string FileLabels = "abcdefgh";
public static string GetLabel(this File f) { return FileLabels[(int)f].ToString(); }
}
public static class RankMethods
{
public static string RankLabels = "12345678";
public static string GetLabel(this Rank r) { return RankLabels[(int)r].ToString(); }
}
public static class SquareMethods
{
public static string FileLabels = "abcdefgh";
public static string RankLabels = "12345678";
public static string GetLabel(this Square sq)
{
int val = (int)sq;
if (val == 99) return "-";
else
{
int file = (val - 21) % 10;
int rank = (val - 21) / 10;
return "" + FileLabels[file] + RankLabels[rank];
}
}
}
public static class ColorMethods
{
public static string ColorLabels = "wb-";
public static string GetLabel(this Color s) { return ColorLabels[(int)s].ToString(); }
}
}<file_sep>using Assets.Project.ChessEngine.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine.Pieces
{
public class PieceList
{
private readonly int[] pieceCount;
private readonly Piece[,] pieceList;
public PieceList()
{
pieceCount = new int[Constants.PieceTypeCount];
pieceList = new Piece[Constants.PieceTypeCount, Constants.MaxSamePieceCount];
}
public IEnumerable<Piece> GetList(int pieceIndex)
{
for (int i = 0; i < pieceCount[pieceIndex]; ++i)
{
yield return pieceList[pieceIndex, i];
}
}
public void AddPiece(Piece piece)
{
pieceList[piece.Index, pieceCount[piece.Index]++] = piece;
}
public void RemovePiece(Piece piece)
{
int indexOfRemovedPiece = -1;
for (int i = 0; i < pieceCount[piece.Index]; ++i)
{
if (pieceList[piece.Index, i] == piece)
{
indexOfRemovedPiece = i;
break;
}
}
--pieceCount[piece.Index];
pieceList[piece.Index, indexOfRemovedPiece] = pieceList[piece.Index, pieceCount[piece.Index]];
}
public int GetPieceCount(int pieceIndex)
{
return pieceCount[pieceIndex];
}
}
}
<file_sep>using System.Collections.Generic;
namespace Assets.Project.ChessEngine
{
public class PvTableValue
{
public Move Move { get; set; }
public int Score { get; set; }
public int Depth { get; set; }
public ulong StateKey { get; set; }
};
public class PvTable
{
private static readonly ulong MaxEntries = 10000000;
private PvTableValue[] values = new PvTableValue[MaxEntries];
public void Clear()
{
for (ulong i = 0; i < MaxEntries; ++i) values[i] = null;
}
public bool ProbeHashEntry(Board board, ref Move move, ref int score, int depth, int alpha, int beta)
{
PvTableValue value;
if (TryGetValue(board.StateKey, out value))
{
move = value.Move;
if (value.Depth >= depth)
{
score = value.Score;
if (score > Constants.IsMate) score += board.Ply;
else if (score < -Constants.IsMate) score -= board.Ply;
}
}
return false;
}
public void StoreHashEntry(Board board, Move move, int score, int depth)
{
if (score > Constants.IsMate) score += board.Ply;
else if (score < -Constants.IsMate) score -= board.Ply;
ulong key = board.StateKey % MaxEntries;
values[key] = new PvTableValue() { Move = move, Score = score, Depth = depth, StateKey = board.StateKey };
}
public bool TryGetValue(ulong StateKey, out PvTableValue value)
{
ulong key = StateKey % MaxEntries;
value = values[key];
if (value == null || value.StateKey != StateKey)
{
value = null;
return false;
}
return true;
}
}
}
<file_sep>using System;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using Chess3D.Dependency;
using Assets.Project.ChessEngine;
using Assets.Project.ChessEngine.Exceptions;
public class MenuUiController : MonoBehaviour
{
public Dropdown WhiteChoice;
public Dropdown BlackChoice;
public Dropdown WhiteDepth;
public Dropdown BlackDepth;
public InputField Fen;
public Button StartButton;
public Button ExitButton;
public Text ErrorText;
private readonly string StartFen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
void Start()
{
ErrorText.text = string.Empty;
WhiteChoice.onValueChanged.AddListener(OnWhiteChoiceChanged);
BlackChoice.onValueChanged.AddListener(OnBlackChoiceChanged);
WhiteDepth.transform.localScale = new Vector3(1, 0, 1);
BlackDepth.transform.localScale = new Vector3(1, 0, 1);
StartButton.onClick.AddListener(OnStartClicked);
ExitButton.onClick.AddListener(OnExitClicked);
}
private void OnWhiteChoiceChanged(int index)
{
WhiteDepth.transform.localScale = new Vector3(1, index, 1);
}
private void OnBlackChoiceChanged(int index)
{
BlackDepth.transform.localScale = new Vector3(1, index, 1);
}
private void OnStartClicked()
{
SceneLoading.Context.Clear();
SceneLoading.Context.Inject(SceneLoading.Parameters.WhiteChoice, WhiteChoice.options[WhiteChoice.value].text);
SceneLoading.Context.Inject(SceneLoading.Parameters.BlackChoice, BlackChoice.options[BlackChoice.value].text);
SceneLoading.Context.Inject(SceneLoading.Parameters.WhiteDepth, Convert.ToInt32(WhiteDepth.options[WhiteDepth.value].text));
SceneLoading.Context.Inject(SceneLoading.Parameters.BlackDepth, Convert.ToInt32(BlackDepth.options[BlackDepth.value].text));
SceneLoading.Context.Inject(SceneLoading.Parameters.Fen, Fen.text);
try
{
Board board;
if (!string.IsNullOrEmpty(Fen.text)) board = new Board(Fen.text);
else board = new Board(StartFen);
SceneLoading.Context.Inject(SceneLoading.Parameters.Board, board);
SceneManager.LoadScene("Game");
}
catch (Exception)
{
ErrorText.text = "Invalid FEN format. Try again.";
}
}
private void OnExitClicked()
{
Application.Quit();
}
}
<file_sep>using Assets.Project.ChessEngine.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine
{
public class Perft
{
private long leafNodes;
public long CountLeafNodes(Board board, int depth)
{
if (depth < 1) throw new IllegalArgumentException("Perft testing depth should be at least 1. Provided: " + depth);
//board.CheckIntegrity();
leafNodes = 0;
MoveList moveList = board.GenerateAllMoves();
foreach (Move move in moveList)
{
if (!board.DoMove(move)) continue;
RecursivePerft(board, depth - 1);
board.UndoMove();
}
return leafNodes;
}
private void RecursivePerft(Board board, int depth)
{
//board.CheckIntegrity();
if (depth == 0)
{
++leafNodes;
return;
}
MoveList moveList = board.GenerateAllMoves();
foreach (Move move in moveList)
{
if (!board.DoMove(move)) continue;
RecursivePerft(board, depth - 1);
board.UndoMove();
}
}
}
}
<file_sep>using Assets.Project.Chess3D;
using Assets.Project.ChessEngine;
using Assets.Project.ChessEngine.Pieces;
using UnityEngine;
public class EventManager : MonoBehaviour
{
public GameController gc;
private bool blocked = false;
void Start()
{
gc = GameObject.Find("GameController").transform.GetComponent<GameController>();
}
void FixedUpdate()
{
if (blocked) return;
if (!(gc.OnTurn is Human)) return;
if (Input.GetMouseButtonDown(0))
{
RaycastHit hit;
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
LayerMask mask = LayerMask.GetMask("Pieces");
int sq64, sq120;
if (Physics.Raycast(ray, out hit, 100, mask) && gc.SelectedPiece == null)
{
sq64 = RaycastCell(ray);
sq120 = Board.Sq120(sq64);
gc.SelectPiece(sq120);
return;
}
else if (gc.SelectedPiece != null)
{
sq64 = RaycastCell(ray);
if (gc.IsValidCell(sq64))
{
sq120 = Board.Sq120(sq64);
gc.DoMove(sq120);
}
}
}
}
private int RaycastCell(Ray ray)
{
RaycastHit hit;
if (Physics.Raycast(ray, out hit, 100))
{
Vector3 point = hit.point + new Vector3(-16, 0, 16);
int i = (int)-point.x / 4;
int j = (int)point.z / 4;
return i * 8 + j;
}
return -1;
}
public void BlockEvents()
{
blocked = true;
}
}
<file_sep>using Assets.Project.ChessEngine.Pieces;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Project.ChessEngine
{
public class MoveList : IEnumerable
{
private readonly int maxMoves = 256;
public Move[] Moves { get; set; }
public int Count { get; set; }
public Move this[int index]
{
get
{
return Moves[index];
}
set
{
Moves[index] = value;
}
}
public MoveList()
{
Moves = new Move[maxMoves];
Count = 0;
}
public Move PickNextMove(int moveIndex)
{
int bestScore = 0, bestIndex = moveIndex;
for (int i = moveIndex; i < Count; ++i)
{
if (Moves[i].Score > bestScore)
{
bestScore = Moves[i].Score;
bestIndex = i;
}
}
Swap(moveIndex, bestIndex);
return Moves[moveIndex];
}
public void AddQuietMove(Move move)
{
move.Score = 0;
Add(move);
}
public void AddCaptureMove(Board board, Move move)
{
int vic = move.CapturedPiece.Value;
int att = board.Pieces[(int)move.FromSq].Index;
move.Score = Board.MvvLvaScores[vic, att];
Add(move);
}
public void AddEnPassantMove(Move move)
{
move.Score = 105;
Add(move);
}
public void AddPawnCaptureMove(Board board, Color onTurn, Square fromSq, Square toSq, int capturedPiece)
{
if (onTurn == Color.White)
{
if (Board.GetRank(fromSq) == Rank.Rank7)
{
AddCaptureMove(board, new Move
{
FromSq = fromSq,
ToSq = toSq,
CapturedPiece = capturedPiece,
PromotedPiece = Queen.GetIndex(Color.White)
});
AddCaptureMove(board, new Move
{
FromSq = fromSq,
ToSq = toSq,
CapturedPiece = capturedPiece,
PromotedPiece = Rook.GetIndex(Color.White)
});
AddCaptureMove(board, new Move
{
FromSq = fromSq,
ToSq = toSq,
CapturedPiece = capturedPiece,
PromotedPiece = Bishop.GetIndex(Color.White)
});
AddCaptureMove(board, new Move
{
FromSq = fromSq,
ToSq = toSq,
CapturedPiece = capturedPiece,
PromotedPiece = Knight.GetIndex(Color.White)
});
}
else
{
AddCaptureMove(board, new Move
{
FromSq = fromSq,
ToSq = toSq,
CapturedPiece = capturedPiece
});
}
}
else
{
if (Board.GetRank(fromSq) == Rank.Rank2)
{
AddCaptureMove(board, new Move
{
FromSq = fromSq,
ToSq = toSq,
CapturedPiece = capturedPiece,
PromotedPiece = Queen.GetIndex(Color.Black)
});
AddCaptureMove(board, new Move
{
FromSq = fromSq,
ToSq = toSq,
CapturedPiece = capturedPiece,
PromotedPiece = Rook.GetIndex(Color.Black)
});
AddCaptureMove(board, new Move
{
FromSq = fromSq,
ToSq = toSq,
CapturedPiece = capturedPiece,
PromotedPiece = Bishop.GetIndex(Color.Black)
});
AddCaptureMove(board, new Move
{
FromSq = fromSq,
ToSq = toSq,
CapturedPiece = capturedPiece,
PromotedPiece = Knight.GetIndex(Color.Black)
});
}
else
{
AddCaptureMove(board, new Move
{
FromSq = fromSq,
ToSq = toSq,
CapturedPiece = capturedPiece
});
}
}
}
public void AddPawnQuietMove(Color onTurn, Square fromSq, Square toSq)
{
if (onTurn == Color.White)
{
if (Board.GetRank(fromSq) == Rank.Rank7)
{
AddQuietMove(new Move
{
FromSq = fromSq,
ToSq = toSq,
PromotedPiece = Queen.GetIndex(Color.White)
});
AddQuietMove(new Move
{
FromSq = fromSq,
ToSq = toSq,
PromotedPiece = Rook.GetIndex(Color.White)
});
AddQuietMove(new Move
{
FromSq = fromSq,
ToSq = toSq,
PromotedPiece = Bishop.GetIndex(Color.White)
});
AddQuietMove(new Move
{
FromSq = fromSq,
ToSq = toSq,
PromotedPiece = Knight.GetIndex(Color.White)
});
}
else
{
AddQuietMove(new Move
{
FromSq = fromSq,
ToSq = toSq
});
}
}
else
{
if (Board.GetRank(fromSq) == Rank.Rank2)
{
AddQuietMove(new Move
{
FromSq = fromSq,
ToSq = toSq,
PromotedPiece = Queen.GetIndex(Color.Black)
});
AddQuietMove(new Move
{
FromSq = fromSq,
ToSq = toSq,
PromotedPiece = Rook.GetIndex(Color.Black)
});
AddQuietMove(new Move
{
FromSq = fromSq,
ToSq = toSq,
PromotedPiece = Bishop.GetIndex(Color.Black)
});
AddQuietMove(new Move
{
FromSq = fromSq,
ToSq = toSq,
PromotedPiece = Knight.GetIndex(Color.Black)
});
}
else
{
AddQuietMove(new Move
{
FromSq = fromSq,
ToSq = toSq
});
}
}
}
private void Swap(int i, int j)
{
Move temp = Moves[i];
Moves[i] = Moves[j];
Moves[j] = temp;
}
private IEnumerable<Move> GetMoves()
{
for (int i = 0; i < Count; ++i) yield return Moves[i];
}
public IEnumerator<Move> GetEnumerator()
{
return GetMoves().GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
private void Add(Move move)
{
Moves[Count++] = move;
}
}
}
| 6ce6a65e9f6f685e47372da7d90368d57141f9cc | [
"Markdown",
"C#"
] | 27 | C# | pedjamitrovic/Chess3D | 6e1142cff0946afd2e9efb5cc35603a21b08074c | 1d9bce92e3d94f0d82d009e0dae63281bfe998dd |
refs/heads/master | <file_sep>//convert node list to array
let card_array = [].slice.call(document.querySelectorAll(".card"));
let deck = document.querySelector('.deck');
//For modal
let modal = document.querySelector('#completeModal');
let start_again = document.querySelector('.start_again');
let star_rating_modal = document.querySelector('.star_rating');
let stars = '';
//For counting moves
let move = document.querySelector(".moves");
let move_counter = 0;
//For display time
let timer = document.querySelector('.timer');
let time_interval;
//For restarting the game
let restart = document.querySelector(".restart");
let list_open_cards = [];
let match_counter = 0;
let star_rating_board = document.querySelector('.stars');
// Shuffle function from http://stackoverflow.com/a/2450976
function shuffle(array) {
var currentIndex = array.length, temporaryValue, randomIndex;
while (currentIndex !== 0) {
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex -= 1;
temporaryValue = array[currentIndex];
array[currentIndex] = array[randomIndex];
array[randomIndex] = temporaryValue;
}
return array;
}
window.onload = init();
//function for starting game
function init() {
var shuffle_cards = shuffle(card_array);
for (var i = 0; i < shuffle_cards.length; i++) {
var li = shuffle_cards[i]
var icon = shuffle_cards[i].querySelector('i');
li.id = icon.classList[1];
deck.appendChild(li);
shuffle_cards[i].classList.remove("show", "open", "match", "disabled");
}
star_rating_board.innerHTML = '';
for(var j = 0; j < 3; j++){
var li = document.createElement("li");
var i = document.createElement("i");
i.setAttribute("class", "fa fa-star");
li.appendChild(i);
star_rating_board.appendChild(li);
}
list_open_cards = [];
move_counter = 0;
match_counter = 0;
move.innerHTML = move_counter;
sec = 0;
timer.innerHTML = 'time';
clearInterval(time_interval);
}
//function for checking if card matches or not
function openCard() {
if(list_open_cards.length < 2 ){
displayCard(this);
moveCounter();
if(list_open_cards.length === 0){
list_open_cards.push(this);
}else if(list_open_cards.length === 1){
list_open_cards.push(this);
if(list_open_cards[0].id === list_open_cards[1].id){
match_counter+=2;
matched();
if(match_counter === card_array.length){
clearInterval(time_interval);
complete();
}
}else{
unmatched();
}
}
}
}
//function for displaying clicked card
function displayCard(card){
card.classList.toggle('show');
card.classList.toggle('open');
card.classList.add('disabled');
}
//function for adding classes to matched card
function matched(){
list_open_cards[0].classList.add("match", "disabled");
list_open_cards[1].classList.add("match", "disabled");
list_open_cards = [];
}
//function for adding and removing classes to cards that do not match
function unmatched(){
list_open_cards[0].classList.add("unmatched");
list_open_cards[1].classList.add("unmatched");
setTimeout(function(){
list_open_cards[0].classList.remove("show", "open", "unmatched","disabled");
list_open_cards[1].classList.remove("show", "open", "unmatched","disabled");
list_open_cards = [];
},1100);
}
//function for counting moves
function moveCounter(){
move_counter++;
if(move_counter === 1){
displayTimer();
}
move.innerHTML = move_counter;
if(move_counter > 16 && move_counter <= 24){
stars = '<span class="star_style"><i class="fa fa-star"></i></span>'+'<span class="star_style"><i class="fa fa-star"></i></span>';
star_rating_board.innerHTML = stars;
}
if(move_counter > 24){
stars = '<span class="star_style"><i class="fa fa-star"></i></span>';
star_rating_board.innerHTML = stars;
}
}
//function for timer - how many seconds
function displayTimer(){
time_interval = setInterval(function(){
sec++;
timer.innerHTML = sec+"secs";
},1000);
}
//function for displaying modal when game is completed
function complete(){
document.getElementById("totalMove").innerHTML = move_counter;
document.getElementById("totalTime").innerHTML = timer.innerHTML;
star_rating_modal.innerHTML = "Rating "+ stars;
star_rating_board.innerHTML = "Rating "+ stars;
modal.style.display = "block";
match_counter = 0;
clearInterval(time_interval);
}
//function for closing modal
function close(){
modal.style.display = "none";
init();
}
start_again.addEventListener('click', close);
restart.addEventListener('click', init);
for (var i = 0; i < card_array.length; i++) {
card_array[i].addEventListener('click', openCard);
}<file_sep># Memory Game Project
This project is part of Udacity Front-End Web Developer Nanodegree Program.
This is written in HTML,CSS and Javascript.
## How To Play
The game board consists of randomly placed 8 different pairs of face down cards.
* Click on a card to reveal the card.
* Click on another card to reveal it as well.
* If two cards match,they will remain revealed otherwise they will be face down again.
* Once all the cards are matched, game ends and pop up window appears with information of how many moves you took to complete the game and your rating aka your bragging rights.
| 8479033e02613fe53de8adddd7546b07eda60853 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | NadimRai/udacity_memory_game | 48889846a0890c47559886227d6753084ea7cdc7 | 478b2891792058e3c341baed3520030b2c01a736 |
refs/heads/master | <file_sep><h1>remrem-semantics</h1>
<file_sep>allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
apply plugin: 'java'
repositories {
maven { url "https://jitpack.io" }
maven {
url "https://eiffel.lmera.ericsson.se/nexus/service/local/repositories/releases/content"
}
jcenter()
flatDir {
dirs 'libs'
}
}
// In this section you declare the dependencies for your production and test code
dependencies {
compile group: 'com.ericsson.duraci', name: 'messaging', version:'35.0.3'
compile 'com.github.Ericsson:eiffel-remrem-shared:0.1'
compile group: 'com.google.code.gson', name: 'gson', version: '1.7.2'
testCompile 'junit:junit:4.12'
}
<file_sep>import com.ericsson.eiffel.remrem.message.services.MsgService;
import java.util.Map;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
public class Library implements MsgService{
final String JSON_DOMAIN_ID = "domainId";
final String JSON_TYPE = "type";
private Gson gson = new Gson();
private static final String FILLER = "filler";
@Override
public String generateMsg(String msgType, JsonObject msgNodes, Map<String, String> eventParams){
String domainId = msgNodes.get(JSON_DOMAIN_ID).getAsString();
String type = eventParams.get(JSON_TYPE);
Message.Meta meta = new Message.Meta(domainId, FILLER, type, FILLER, FILLER);
Message.Data data = new Message.Data(FILLER, FILLER, new Message.Trigger(FILLER, FILLER),FILLER);
Message message = new Message(meta, data, null);
return gson.toJson(message);
}
}
| 128c8a5ae89b584ac5f709f66b926770d290f4b5 | [
"Markdown",
"Java",
"Gradle"
] | 3 | Markdown | clara-kang/remrem-semantics | 5588e6434669bd5860d0a911ec2c7b99aadfdfc8 | 84fe42c8bb61f72f82a621661412fffe85fa8886 |
refs/heads/master | <file_sep>
{
function DES(valueIn,chek){
var textBit = []; //массив готовых 64-битных частей текста
function hexEnter(inHex){
var a = inHex;
var arr4Text = [], j = 0;
for(var i = 0; i < a.length; i = i+7){
arr4Text[j] = a.charAt(i) + a.charAt(i+1) + a.charAt(i+2) + a.charAt(i+3) + a.charAt(i+4) + a.charAt(i+5) + a.charAt(i+6);
j++;
}
var bitIN = '';
for(var i = 0, j = 0; i < arr4Text.length; i++){
var m = parseInt(arr4Text[i++],36).toString(2);
var n = parseInt(arr4Text[i],36).toString(2);
if(m.length>32)m=10101010101010101010101010101010;
if(n.length>32)m=10101010101010101010101010101010;
while(m.length < 32 || n.length <32){ // проверяем имеет ли кааждый символ 16 бит
m.length < 32 ? m = '0' + m : n = '0' + n;
}
textBit[j++] = m+n;
}
}
if(chek){
if(valueIn.length%14)return 'error; контрольная сумма неверна';
hexEnter(valueIn);
}else{
var a = valueIn;
var arr4Text = [], j = 0;
for(var i = 0; i < a.length; i = i+4){
arr4Text[j] = a.charAt(i) + a.charAt(i+1) + a.charAt(i+2) + a.charAt(i+3);
j++;
}
//вызывает ф-ию преобразования
for(var i = 0; i<arr4Text.length; i++){
textBit[i] = textForUni(arr4Text[i]);
//document.writeln(textBit[i] + ' входящий набор бит <br>')
}
//ф-ция преобразования в биты
function textForUni(elem){
var b, arr = [], Bit = '';
for(var i = 0; i < elem.length; i++){
var b = elem.charCodeAt(i); //берем каждый символ ключа, юникод
arr[i] = b.toString(2); //перевод ключа в биты
while(arr[i].length != 16){ // проверяем имеет ли кааждый символ 16 бит
arr[i] = '0' + arr[i];
}
Bit += arr[i]; //запись в ключ каждый символ в битах
}
return Bit;
}
}//конец ифа
//функция проверки последнего набора символов на длинну
function last(l){
while(l.length != 64){
l += '0';
}
return l;
}
// берем последний набор символов
textBit[textBit.length-1] = last(textBit[textBit.length-1]);
// задаем P-бокс расширения в i-м раунде
var pPosition =
[32, 1, 2, 3, 4, 5,
4, 5, 6, 7, 8, 9,
8, 9, 10, 11, 12, 13,
12, 13, 14, 15, 16, 17,
16, 17, 18, 19, 20, 21,
20, 21, 22, 23, 24, 25,
24, 25, 26, 27, 28, 29,
28, 29, 30, 31, 32, 1];
var encryptedArr = [];
for(var k = 0; k < textBit.length; k++)
{
// начальная перестановка
var permutationS = '';
for(var i = 0; i < 64; i++){
permutationS = textBit[k].charAt(63-(permutationStart[i]-1)) + permutationS;
}
ro(permutationS);
function ro(text){
var left='', right='', leftDop='';
for(var q = 0; q<16; q++ ){
if (q == 0){round0(text);}
leftDop = left; // для конечной операции xor
left = right;
function round0(bit64text){
//разбиение на лев прав
left = bit64text.substring(0,32);
right = bit64text.substring(32,64);
}
function expansion(right){
//расширение правой части ключа до 48 бит
var rightPlus = '';
for(var i = 0; i < pPosition.length; i++){
rightPlus = right.charAt(31 - (pPosition[i]-1)) + rightPlus;
}
return rightPlus;
}
//операция xor
var round = expansion(right); // расширяем правую часть до 48 бит
var keyI = (chek)? 16-q : q+1;
var sBox48 = '';
for(var i = 0; i < 48; i++){ // xor ключа и расширенной правой части
sBox48 += (round.charAt(i)^key['k'+keyI].charAt(i));
}
//document.writeln(sBox48 + ' после XOR с ключем ' + parseInt(sBox48, 2) + '<br>')
//расбиение 48битного на 8 по 6
var sBoxArr = []; // массив для 8 на 6
for(var i = 0, j = 0; i < 48; i = i+6){
sBoxArr[j++] = sBox48.substring(i,i+6);
}
//прохождение через s-box
var sBoxReturn = sBox(sBoxArr);
right = [];
//document.writeln(sBoxReturn + '<br>');
for(var i = 0; i < sBoxReturn.length; i++ ){
right[i] = sBoxReturn[i].toString(2);
while(right[i].length !=4){
right[i] = '0' + right[i];
}
}
right = right.join('');
//document.writeln(right + ' уменьшин до 32 бит s-box ' + parseInt(right, 2) + '<br>');
right = pBoxFunc(right); //P-бокс прямой в i-м раунде
//document.writeln(right + ' переставлен P-box ' + parseInt(right, 2) + '<br>');
//document.writeln(leftDop + ' левая часть для XOR ' + parseInt(leftDop, 2) + '<br>');
var rightXORleft = '';
for(var i = 0; i < 32; i++){ // xor левой и правой части после сбокса
rightXORleft += (right.charAt(i)^leftDop.charAt(i));
}
right = rightXORleft;
//document.writeln(right + ' результат leftXORright ' + parseInt(right, 2) + '<br>');
if(q==15){
var encrypted = right + left;
//document.writeln(encrypted+ ' конечний результат без перестановки'+'<br>'+parseInt(encrypted, 2) + '<br>');
var permutationE = '';
for(var i = 0; i < 64; i++){
permutationE = encrypted.charAt(63 - (permutationEnd[i]-1)) + permutationE;
}
encryptedArr[k] = permutationE;
}
}//конец цыкла раундов
}//конец ф-ции раундов
}//конец для всех частeй текста
//разбиение 64 битных ключей по 16 бит каждый
var j = 0;
var numArrBy16 = [];
var numArr = [];
for(var i = 0; i < encryptedArr.length; i++){
numArrBy16[j++] = encryptedArr[i].substring(0,16);
numArrBy16[j++] = encryptedArr[i].substring(16,32);
numArrBy16[j++] = encryptedArr[i].substring(32,48);
numArrBy16[j++] = encryptedArr[i].substring(48,64);
}
var out = chek ? line(numArrBy16) : code36(numArrBy16);
//перевод бит в слово
function line(arr16){
var str = '';
for(var i = 0; i < arr16.length; i++){
numArr[i] = parseInt(arr16[i], 2);
if(numArr[i]!=0)str += String.fromCharCode(numArr[i]);
//перевод юникод в текст
}
return str;
}
function code36(arr16){
var hex36 = '', inspection;
for(var i = 0; i < arr16.length; i++){
inspection = arr16[i++]+arr16[i];
inspection = parseInt(inspection, 2);
inspection = inspection.toString(36);
while(inspection.length != 7){
inspection = '0' + inspection;
}
hex36 += inspection;
//перевод юникод в текст
}
return hex36;
}
return out;
}//конец функции DES
}<file_sep>{
var key;
function topKey(tKey){
//проверка длинны ключа
function inspectionKey(val){
if(val=="")return '123456789';
var i = 0;
while(val.length < 9){
val += val.charAt(i++);
}
return val;
}
var a = inspectionKey(tKey);
var keyBit = 0; //сюда запишем начальный ключ в битах
var keyArr = []; // массив юникода
for(var i = 0; i<a.length; i++){
var b = a.charCodeAt(i); //берем каждый символ ключа, юникод
keyArr[i] = b.toString(2); //перевод ключа в биты
while(keyArr[i].length<7){
keyArr[i] = '0' + keyArr[i];// проверка длинны символа в битах
}
keyBit += keyArr[i]; //запись в ключ каждый символ в битах
}
//document.writeln(keyBit+keyBit.length+'<br>');
// Делим ключ на два блока C0 и D0
var c0Position = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36];
var d0Position = [63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4];
// p блок нумерация
var keyPosition = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32];
// получаем С0
var c0 = [];
for(var i = 0; i < c0Position.length; i++){
c0.unshift(keyBit.charAt(63 - (c0Position[i]-1)));
}
//получаем D0
var d0 = [];
for(var i = 0; i < d0Position.length; i++){
d0.unshift(keyBit.charAt(63 - (d0Position[i]-1)));
}
// сдвиг влево
function shiftLeft(cd0){
cd0.push(cd0.shift());
return cd0;
}
//функция сдвигов и записи в массив окончательных 16-ти ключей по 48 бит
function makeKey (c0,d0){
var keyNum = {}, intermediateValueC = c0, intermediateValueD = d0;
for(var i = 1; i < 17; i++){
intermediateValueC = shiftLeft(intermediateValueC);
intermediateValueD = shiftLeft(intermediateValueD);
if(i == 1 || i == 2 || i == 9 || i == 16){
} else{
intermediateValueC = shiftLeft(intermediateValueC);
intermediateValueD = shiftLeft(intermediateValueD);
}
keyNum['k'+i] = intermediateValueC.join('') + intermediateValueD.join('');
}
return keyNum;
}
key = makeKey(c0,d0);
//P бокс
var xxx = [];
for(var j in key){
for(var i = 0; i < keyPosition.length; i++){
xxx.unshift(key[j].charAt(i));
}
key[j] = xxx.join('');
xxx.length = 0;
}
}//функцич KEY
} | 299a531f08e6e6701450da5503f0bc3af7baf8ee | [
"JavaScript"
] | 2 | JavaScript | biboukat/description | 742549b881ec668f03131697dfafd1eb8a077dc2 | 6e22d7cddefa634b2ef411b43a6211fb646a576f |
refs/heads/master | <file_sep>package com.wiki.poc.rest.services.account;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.Random;
@Path("ministmt")
public class MiniStatementService {
@GET
@Produces(MediaType.APPLICATION_XML)
public String msg() {
Random r = new Random();
String retVal = "<xml><stmt>"
+ "<msg><name>LIDL</name><amt>£" + r.nextInt(200) + "</amt><time>16-Apr-2016 10AM</time><transtype>Debit</transtype></msg>"
+ "<msg><name>Tesco</name><amt>£" + r.nextInt(250) + "</amt><time>16-Apr-2016 11AM</time><transtype>Debit</transtype></msg>"
+ "<msg><name>ATM</name><amt>£200</amt><time>17-Apr-2016 5PM</time><transtype>Debit</transtype></msg>"
+ "<msg><name>FPS Transfer</name><amt>£" + r.nextInt(2000) + "</amt><time>17-Apr-2016 8PM</time><transtype>Credit</transtype></msg>"
+ "<msg><name>ATM</name><amt>£300</amt><time>18-Apr-2016 8AM</time><transtype>Debit</transtype></msg>"
+ "<msg><name>ATM</name><amt>£20</amt><time>18-Apr-2016 5PM</time><transtype>Debit</transtype></msg>"
+ "<msg><name>TFL</name><amt>£4.8</amt><time>18-Apr-2016 8PM</time><transtype>Debit</transtype></msg>"
+ "<msg><name>FPS Transfer</name><amt>£" + r.nextInt(400) + "</amt><time>18-Apr-2016 9PM</time><transtype>Credit</transtype></msg>"
+ "<msg><name>Cineworld</name><amt>£12.8</amt><time>18-Apr-2016 8PM</time><transtype>Debit</transtype></msg>"
+ "<msg><name><NAME></name><amt>£" + r.nextInt(300) + "</amt><time>19-Apr-2016 11AM</time><transtype>Debit</transtype></msg>"
+ "</stmt></xml>";
return retVal;
}
}
<file_sep>var collegedata = {"colleges":[
{
"CollegeName": "Bishop Auckland College",
"Town": "Bishop Auckland",
"Postcode": "DL14 6JZ"
},
{
"CollegeName": "Bishop Burton College",
"Town": "Beverley",
"Postcode": "HU17 8QG"
},
{
"CollegeName": "Blackburn College",
"Town": "Blackburn",
"Postcode": "BB2 1LH"
},
{
"CollegeName": "Blackpool and the Fylde College",
"Town": "Blackpool",
"Postcode": "FY2 0HB"
},
{
"CollegeName": "The Blackpool Sixth Form College",
"Town": "Blackpool",
"Postcode": "FY3 7LR"
},
{
"CollegeName": "Bolton College",
"Town": "Bolton",
"Postcode": "BL3 5BG"
},
{
"CollegeName": "Bolton Sixth Form College",
"Town": "Bolton",
"Postcode": "BL3 5BU"
},
{
"CollegeName": "Boston College",
"Town": "Boston",
"Postcode": "PE21 6JF"
},
{
"CollegeName": "The Bournemouth and Poole College",
"Town": "Poole",
"Postcode": "BH14 0LS"
},
{
"CollegeName": "Bournville College of Further Education",
"Town": "Birmingham",
"Postcode": "B31 2AJ"
},
{
"CollegeName": "Bracknell and Wokingham College",
"Town": "Bracknell",
"Postcode": "RG12 1DJ"
},
{
"CollegeName": "Bradford College",
"Town": "Bradford",
"Postcode": "BD7 1AY"
},
{
"CollegeName": "Bridgwater and Taunton College",
"Town": "Bridgwater",
"Postcode": "TA6 4PZ"
},
{
"CollegeName": "Brighton Hove and Sussex Sixth Form College",
"Town": "Hove",
"Postcode": "BN3 6EG"
},
{
"CollegeName": "Brockenhurst College",
"Town": "Brockenhurst",
"Postcode": "SO42 7ZE"
},
{
"CollegeName": "The Brooke House Sixth Form College",
"Town": "London",
"Postcode": "E5 8BP"
},
{
"CollegeName": "Brooklands College",
"Town": "Weybridge",
"Postcode": "KT13 8TT"
},
{
"CollegeName": "Brooksby Melton College",
"Town": "Melton Mowbray",
"Postcode": "LE14 2LJ"
},
{
"CollegeName": "Burnley College",
"Town": "Burnley",
"Postcode": "BB12 0AN"
},
{
"CollegeName": "Burton and South Derbyshire College",
"Town": "Burton-on-Trent",
"Postcode": "DE14 3RL"
},
{
"CollegeName": "Bury College",
"Town": "Bury",
"Postcode": "BL9 0BG"
},
{
"CollegeName": "Cadbury Sixth Form College",
"Town": "Birmingham",
"Postcode": "B38 8QT"
},
{
"CollegeName": "Calderdale College",
"Town": "Halifax",
"Postcode": "HX1 3UZ"
},
{
"CollegeName": "Cambridge Regional College",
"Town": "Cambridge",
"Postcode": "CB4 2QT"
},
{
"CollegeName": "Canterbury College",
"Town": "Canterbury",
"Postcode": "CT1 3AJ"
},
{
"CollegeName": "16-19 Abingdon",
"Town": "",
"Postcode": ""
},
{
"CollegeName": "Abingdon and Witney College",
"Town": "Abingdon",
"Postcode": "OX14 1GG"
},
{
"CollegeName": "Accrington and Rossendale College",
"Town": "Accrington",
"Postcode": "BB5 2AW"
},
{
"CollegeName": "Activate Learning",
"Town": "Oxford",
"Postcode": "OX1 1SA"
},
{
"CollegeName": "Ada National College for Digital Skills",
"Town": "London",
"Postcode": "N15 4AG"
},
{
"CollegeName": "Alton College",
"Town": "Alton",
"Postcode": "GU34 2LX"
},
{
"CollegeName": "Amersham and Wycombe College",
"Town": "Amersham",
"Postcode": "HP7 9HN"
},
{
"CollegeName": "Aquinas College",
"Town": "Stockport",
"Postcode": "SK2 6TH"
},
{
"CollegeName": "Ashton Sixth Form College",
"Town": "Ashton-under-Lyne",
"Postcode": "OL6 9RL"
},
{
"CollegeName": "Askham Bryan College",
"Town": "York",
"Postcode": "YO23 3FR"
},
{
"CollegeName": "Aylesbury College",
"Town": "Aylesbury",
"Postcode": "HP21 8PD"
},
{
"CollegeName": "Barking and Dagenham College",
"Town": "Romford",
"Postcode": "RM7 0XU"
},
{
"CollegeName": "Barnet and Southgate College",
"Town": "Barnet",
"Postcode": "EN5 4AZ"
},
{
"CollegeName": "Barnfield College",
"Town": "Luton",
"Postcode": "LU2 7BF"
},
{
"CollegeName": "Barnsley College",
"Town": "Barnsley",
"Postcode": "S70 2YW"
},
{
"CollegeName": "Barton Peveril Sixth Form College",
"Town": "Eastleigh",
"Postcode": "SO50 5ZA"
},
{
"CollegeName": "Basingstoke College of Technology",
"Town": "Basingstoke",
"Postcode": "RG21 8TN"
},
{
"CollegeName": "Bath College",
"Town": "Bath",
"Postcode": "BA1 1UP"
},
{
"CollegeName": "Bedford College",
"Town": "Bedford",
"Postcode": "MK42 9AH"
},
{
"CollegeName": "Berkshire College of Agriculture",
"Town": "Maidenhead",
"Postcode": "SL6 6QR"
},
{
"CollegeName": "Beverley Joint Sixth",
"Town": "",
"Postcode": ""
},
{
"CollegeName": "Bexhill College",
"Town": "Bexhill-on-Sea",
"Postcode": "TN40 2JG"
},
{
"CollegeName": "Bilborough College",
"Town": "Nottingham",
"Postcode": "NG8 4DQ"
},
{
"CollegeName": "Birkenhead Sixth Form College",
"Town": "Wirral",
"Postcode": "CH43 8SQ"
},
{
"CollegeName": "Birmingham Metropolitan College",
"Town": "Birmingham",
"Postcode": "B4 7PS"
},
{
"CollegeName": "Capel Manor College",
"Town": "Enfield",
"Postcode": "EN1 4RQ"
},
{
"CollegeName": "Cardinal Newman College",
"Town": "Preston",
"Postcode": "PR1 4HD"
},
{
"CollegeName": "Carlisle College",
"Town": "Carlisle",
"Postcode": "CA1 1HS"
},
{
"CollegeName": "Carmel College",
"Town": "St Helens",
"Postcode": "WA10 3AG"
},
{
"CollegeName": "Carshalton College",
"Town": "Carshalton",
"Postcode": "SM5 2EJ"
},
{
"CollegeName": "Central Bedfordshire College",
"Town": "Dunstable",
"Postcode": "LU5 4HG"
},
{
"CollegeName": "Central College Nottingham",
"Town": "Nottingham",
"Postcode": "NG1 6AB"
},
{
"CollegeName": "Central Learning Partnership",
"Town": "Wolverhampton",
"Postcode": "WV11 1RD"
},
{
"CollegeName": "Central Sussex College",
"Town": "Crawley",
"Postcode": "RH10 1NR"
},
{
"CollegeName": "Cheadle and Marple Sixth Form College",
"Town": "Stockport",
"Postcode": "SK8 5HA"
},
{
"CollegeName": "Chelmsford College",
"Town": "Chelmsford",
"Postcode": "CM2 0JQ"
},
{
"CollegeName": "Chesterfield College",
"Town": "Chesterfield",
"Postcode": "S41 7NG"
},
{
"CollegeName": "Chichester College",
"Town": "Chichester",
"Postcode": "PO19 1SB"
},
{
"CollegeName": "Chichester High Schools Sixth Form",
"Town": "Chichester",
"Postcode": "PO19 8AE"
},
{
"CollegeName": "Christ The King Sixth Form College",
"Town": "London",
"Postcode": "SE13 5GE"
},
{
"CollegeName": "Cirencester College",
"Town": "Cirencester",
"Postcode": "GL7 1XA"
},
{
"CollegeName": "City College Brighton and Hove",
"Town": "Brighton",
"Postcode": "BN1 4FA"
},
{
"CollegeName": "City College Coventry",
"Town": "Coventry",
"Postcode": "CV1 5DG"
},
{
"CollegeName": "City College Plymouth",
"Town": "Plymouth",
"Postcode": "PL1 5QG"
},
{
"CollegeName": "City Lit",
"Town": "London",
"Postcode": "WC2B 4BA"
},
{
"CollegeName": "City of Bristol College",
"Town": "Bristol",
"Postcode": "BS1 5UA"
},
{
"CollegeName": "The City of Liverpool College",
"Town": "Liverpool",
"Postcode": "L3 5TP"
},
{
"CollegeName": "City of Stoke-on-Trent Sixth Form College",
"Town": "Stoke-on-Trent",
"Postcode": "ST4 2RU"
},
{
"CollegeName": "City of Sunderland College",
"Town": "Sunderland",
"Postcode": "SR3 4AH"
},
{
"CollegeName": "City of Westminster College",
"Town": "London",
"Postcode": "W2 1NB"
},
{
"CollegeName": "City of Wolverhampton College",
"Town": "Wolverhampton",
"Postcode": "WV6 0DU"
},
{
"CollegeName": "Cleveland College of Art and Design",
"Town": "Middlesbrough",
"Postcode": "TS5 7RJ"
},
{
"CollegeName": "Colchester Institute",
"Town": "Colchester",
"Postcode": "CO3 3LL"
},
{
"CollegeName": "The College of Haringey, Enfield and North East London",
"Town": "London",
"Postcode": "N15 4RU"
},
{
"CollegeName": "The College of North West London",
"Town": "London",
"Postcode": "NW10 2XD"
},
{
"CollegeName": "The College of Richard Collyer In Horsham",
"Town": "Horsham",
"Postcode": "RH12 2EJ"
},
{
"CollegeName": "The College of West Anglia",
"Town": "King's Lynn",
"Postcode": "PE30 2QW"
},
{
"CollegeName": "Cornwall College",
"Town": "St Austell",
"Postcode": "PL25 4DJ"
},
{
"CollegeName": "Coulsdon Sixth Form College",
"Town": "Coulsdon",
"Postcode": "CR5 1YA"
},
{
"CollegeName": "Craven College",
"Town": "Skipton",
"Postcode": "BD23 1US"
},
{
"CollegeName": "Croydon College",
"Town": "Croydon",
"Postcode": "CR9 1DX"
},
{
"CollegeName": "Darlington College",
"Town": "Darlington",
"Postcode": "DL1 1DR"
},
{
"CollegeName": "Dearne Valley College",
"Town": "Rotherham",
"Postcode": "S63 7EW"
},
{
"CollegeName": "Derby College",
"Town": "Derby",
"Postcode": "DE24 8JE"
},
{
"CollegeName": "Dereham Sixth Form College",
"Town": "Dereham",
"Postcode": "NR20 4AG"
},
{
"CollegeName": "Derwentside College",
"Town": "Consett",
"Postcode": "DH8 5EE"
},
{
"CollegeName": "Didcot Sixth Form College",
"Town": "",
"Postcode": ""
},
{
"CollegeName": "Doncaster College",
"Town": "Doncaster",
"Postcode": "DN1 2RF"
},
{
"CollegeName": "Dudley College of Technology",
"Town": "Dudley",
"Postcode": "DY1 4AS"
},
{
"CollegeName": "Ealing, Hammersmith and West London College",
"Town": "London",
"Postcode": "W14 9BL"
},
{
"CollegeName": "East Berkshire College",
"Town": "Slough",
"Postcode": "SL3 8BY"
},
{
"CollegeName": "East Durham College",
"Town": "Peterlee",
"Postcode": "SR8 2RN"
},
{
"CollegeName": "East Kent College",
"Town": "Broadstairs",
"Postcode": "CT10 1PN"
},
{
"CollegeName": "East Norfolk Sixth Form College",
"Town": "Great Yarmouth",
"Postcode": "NR31 7BQ"
},
{
"CollegeName": "East Riding College",
"Town": "Beverley",
"Postcode": "HU17 0GH"
},
{
"CollegeName": "East Surrey College",
"Town": "Redhill",
"Postcode": "RH1 2JX"
},
{
"CollegeName": "Eastleigh College",
"Town": "Eastleigh",
"Postcode": "SO50 5FS"
},
{
"CollegeName": "Easton & Otley College",
"Town": "Norwich",
"Postcode": "NR9 5DX"
},
{
"CollegeName": "Epping Forest College",
"Town": "Loughton",
"Postcode": "IG10 3SA"
},
{
"CollegeName": "Esher College",
"Town": "Thames Ditton",
"Postcode": "KT7 0JB"
},
{
"CollegeName": "Exeter College",
"Town": "Exeter",
"Postcode": "EX4 4JS"
},
{
"CollegeName": "Fareham College",
"Town": "Fareham",
"Postcode": "PO14 1NH"
},
{
"CollegeName": "Farnborough College of Technology",
"Town": "Farnborough",
"Postcode": "GU14 6SB"
},
{
"CollegeName": "Fircroft College of Adult Education",
"Town": "Birmingham",
"Postcode": "B29 6LH"
},
{
"CollegeName": "Franklin College",
"Town": "Grimsby",
"Postcode": "DN34 5BY"
},
{
"CollegeName": "Furness College",
"Town": "Barrow-in-Furness",
"Postcode": "LA14 2PJ"
},
{
"CollegeName": "Gateshead College",
"Town": "Gateshead",
"Postcode": "NE8 3BE"
},
{
"CollegeName": "Gateway Sixth Form College",
"Town": "Leicester",
"Postcode": "LE5 1GA"
},
{
"CollegeName": "Gloucestershire College",
"Town": "Cheltenham",
"Postcode": "GL51 7SJ"
},
{
"CollegeName": "Godalming College",
"Town": "Godalming",
"Postcode": "GU7 1RS"
},
{
"CollegeName": "Grantham College",
"Town": "Grantham",
"Postcode": "NG31 9AP"
},
{
"CollegeName": "Great Yarmouth College",
"Town": "Great Yarmouth",
"Postcode": "NR31 0ED"
},
{
"CollegeName": "Greenhead College",
"Town": "Huddersfield",
"Postcode": "HD1 4ES"
},
{
"CollegeName": "Grimsby Institute of Further and Higher Education",
"Town": "Grimsby",
"Postcode": "DN34 5BQ"
},
{
"CollegeName": "Guildford College of Further and Higher Education",
"Town": "Guildford",
"Postcode": "GU1 1EZ"
},
{
"CollegeName": "Hadlow College",
"Town": "Tonbridge",
"Postcode": "TN11 0AL"
},
{
"CollegeName": "Halesowen College",
"Town": "Halesowen",
"Postcode": "B63 3NA"
},
{
"CollegeName": "Harlow College",
"Town": "Harlow",
"Postcode": "CM20 3LH"
},
{
"CollegeName": "Harris Federation Post 16",
"Town": "Croydon",
"Postcode": "CR0 1LH"
},
{
"CollegeName": "Harrow College",
"Town": "Harrow",
"Postcode": "HA3 6RR"
},
{
"CollegeName": "Harrow Collegiate",
"Town": "Harrow",
"Postcode": "HA3 5PQ"
},
{
"CollegeName": "Hartlepool College of Further Education",
"Town": "Hartlepool",
"Postcode": "TS24 7NT"
},
{
"CollegeName": "Hartlepool Sixth Form College",
"Town": "Hartlepool",
"Postcode": "TS25 5PF"
},
{
"CollegeName": "Hartpury College",
"Town": "Gloucester",
"Postcode": "GL19 3BE"
},
{
"CollegeName": "Havant College",
"Town": "Havant",
"Postcode": "PO9 1QL"
},
{
"CollegeName": "Havering College of Further and Higher Education",
"Town": "Hornchurch",
"Postcode": "RM11 2LL"
},
{
"CollegeName": "Havering Sixth Form College",
"Town": "Hornchurch",
"Postcode": "RM11 3TB"
},
{
"CollegeName": "Heart of Worcestershire College",
"Town": "Redditch",
"Postcode": "B97 4DE"
},
{
"CollegeName": "The Henley College",
"Town": "Henley-on-Thames",
"Postcode": "RG9 1UH"
},
{
"CollegeName": "Henley College Coventry",
"Town": "Coventry",
"Postcode": "CV2 1ED"
},
{
"CollegeName": "Hereford College of Arts",
"Town": "Hereford",
"Postcode": "HR1 1LT"
},
{
"CollegeName": "Herefordshire & Ludlow College",
"Town": "Hereford",
"Postcode": "HR1 1LS"
},
{
"CollegeName": "Hereward College of Further Education",
"Town": "Coventry",
"Postcode": "CV4 9SW"
},
{
"CollegeName": "Hertford Regional College",
"Town": "Ware",
"Postcode": "SG12 9JF"
},
{
"CollegeName": "Highbury College",
"Town": "Portsmouth",
"Postcode": "PO6 2SA"
},
{
"CollegeName": "Hilderstone College",
"Town": "Broadstairs",
"Postcode": "CT10 2JW"
},
{
"CollegeName": "Hillcroft College",
"Town": "Surbiton",
"Postcode": "KT6 6DF"
},
{
"CollegeName": "Hills Road Sixth Form College",
"Town": "Cambridge",
"Postcode": "CB2 8PE"
},
{
"CollegeName": "Holy Cross College",
"Town": "Bury",
"Postcode": "BL9 9BB"
},
{
"CollegeName": "Hopwood Hall College",
"Town": "Manchester",
"Postcode": "M24 6XH"
},
{
"CollegeName": "Huddersfield New College",
"Town": "Huddersfield",
"Postcode": "HD3 4GL"
},
{
"CollegeName": "Hugh Baird College",
"Town": "Bootle",
"Postcode": "L20 7EW"
},
{
"CollegeName": "Hull College",
"Town": "Kingston-upon-Hull",
"Postcode": "HU1 3DG"
},
{
"CollegeName": "Huntingdonshire Regional College",
"Town": "Huntingdon",
"Postcode": "PE29 1BL"
},
{
"CollegeName": "The Isle of Wight College",
"Town": "Newport",
"Postcode": "PO30 5TA"
},
{
"CollegeName": "Islington Sixth Form Consortium",
"Town": "London",
"Postcode": "EC2A 4SH"
},
{
"CollegeName": "Itchen College",
"Town": "Southampton",
"Postcode": "SO19 7TB"
},
{
"CollegeName": "<NAME> Sixth Form College",
"Town": "Scunthorpe",
"Postcode": "DN17 1DS"
},
{
"CollegeName": "<NAME>kin College",
"Town": "South Croydon",
"Postcode": "CR2 8JJ"
},
{
"CollegeName": "Joseph Chamberlain Sixth Form College",
"Town": "Birmingham",
"Postcode": "B12 9FF"
},
{
"CollegeName": "Kendal College",
"Town": "Kendal",
"Postcode": "LA9 5AY"
},
{
"CollegeName": "Kensington and Chelsea College",
"Town": "London",
"Postcode": "SW10 0QS"
},
{
"CollegeName": "Kidderminster College",
"Town": "Kidderminster",
"Postcode": "DY10 1AB"
},
{
"CollegeName": "King Edward VI College Nuneaton",
"Town": "Nuneaton",
"Postcode": "CV11 4BE"
},
{
"CollegeName": "King Edward VI College Stourbridge",
"Town": "Stourbridge",
"Postcode": "DY8 1TD"
},
{
"CollegeName": "King George V College",
"Town": "Southport",
"Postcode": "PR8 6LR"
},
{
"CollegeName": "Kingston College",
"Town": "Kingston upon Thames",
"Postcode": "KT1 2AQ"
},
{
"CollegeName": "Kingston Maurward College",
"Town": "Dorchester",
"Postcode": "DT2 8PY"
},
{
"CollegeName": "Kirklees College",
"Town": "Huddersfield",
"Postcode": "HD1 3LD"
},
{
"CollegeName": "Knowsley Community College",
"Town": "Liverpool",
"Postcode": "L36 9TD"
},
{
"CollegeName": "Lakes College - West Cumbria",
"Town": "Workington",
"Postcode": "CA14 4JN"
},
{
"CollegeName": "Lambeth College",
"Town": "London",
"Postcode": "SW4 9BL"
},
{
"CollegeName": "Lancaster and Morecambe College",
"Town": "Lancaster",
"Postcode": "LA1 2TY"
},
{
"CollegeName": "LaSWAP Sixth Form",
"Town": "London",
"Postcode": "NW5 1RN"
},
{
"CollegeName": "Leeds City College",
"Town": "Leeds",
"Postcode": "LS3 1AA"
},
{
"CollegeName": "Leeds College of Building",
"Town": "Leeds",
"Postcode": "LS2 7QT"
},
{
"CollegeName": "Leicester College co Freemen's Park Campus",
"Town": "Leicester",
"Postcode": "LE2 7LW"
},
{
"CollegeName": "LeSoCo",
"Town": "London",
"Postcode": "SE4 1UT"
},
{
"CollegeName": "Leyton Sixth Form College",
"Town": "London",
"Postcode": "E10 6EQ"
},
{
"CollegeName": "Lincoln College",
"Town": "Lincoln",
"Postcode": "LN2 5HQ"
},
{
"CollegeName": "London South East Colleges",
"Town": "Bromley",
"Postcode": "BR2 8HE"
},
{
"CollegeName": "Long Road Sixth Form College",
"Town": "Cambridge",
"Postcode": "CB2 8PX"
},
{
"CollegeName": "Longley Park Sixth Form College",
"Town": "Sheffield",
"Postcode": "S5 6SG"
},
{
"CollegeName": "Loreto College",
"Town": "Manchester",
"Postcode": "M15 5PB"
},
{
"CollegeName": "Loughborough College",
"Town": "Loughborough",
"Postcode": "LE11 3BT"
},
{
"CollegeName": "Lowestoft College",
"Town": "Lowestoft",
"Postcode": "NR32 2NB"
},
{
"CollegeName": "Lowestoft Sixth Form College",
"Town": "Lowestoft",
"Postcode": "NR32 2PJ"
},
{
"CollegeName": "Luton Sixth Form College",
"Town": "Luton",
"Postcode": "LU2 7EW"
},
{
"CollegeName": "Macclesfield College",
"Town": "Macclesfield",
"Postcode": "SK11 8LF"
},
{
"CollegeName": "The Manchester College",
"Town": "Manchester",
"Postcode": "M11 2WH"
},
{
"CollegeName": "The Marine Society College of the Sea",
"Town": "London",
"Postcode": "SE1 7JW"
},
{
"CollegeName": "The Mary Ward Centre (AE Centre)",
"Town": "London",
"Postcode": "WC1N 3AQ"
},
{
"CollegeName": "Mid-Cheshire College of Further Education",
"Town": "Northwich",
"Postcode": "CW8 1LJ"
},
{
"CollegeName": "Middlesbrough College",
"Town": "Middlesbrough",
"Postcode": "TS2 1AD"
},
{
"CollegeName": "MidKent College",
"Town": "Gillingham",
"Postcode": "ME7 1FN"
},
{
"CollegeName": "Milton Keynes College",
"Town": "Milton Keynes",
"Postcode": "MK6 5LP"
},
{
"CollegeName": "The Moorlands Sixth Form College",
"Town": "Stoke-on-Trent",
"Postcode": "ST10 1LL"
},
{
"CollegeName": "Morley College",
"Town": "London",
"Postcode": "SE1 7HT"
},
{
"CollegeName": "Moulton College",
"Town": "Northampton",
"Postcode": "NN3 7RR"
},
{
"CollegeName": "Myerscough College",
"Town": "Preston",
"Postcode": "PR3 0RY"
},
{
"CollegeName": "NCG",
"Town": "Newcastle-upon-Tyne",
"Postcode": "NE4 7SA"
},
{
"CollegeName": "Nelson and Colne College",
"Town": "Nelson",
"Postcode": "BB9 7YT"
},
{
"CollegeName": "New City College",
"Town": "London",
"Postcode": "E14 0AF"
},
{
"CollegeName": "New College Durham",
"Town": "Durham",
"Postcode": "DH1 5ES"
},
{
"CollegeName": "New College Nottingham",
"Town": "Nottingham",
"Postcode": "NG1 1NG"
},
{
"CollegeName": "New College Pontefract",
"Town": "Pontefract",
"Postcode": "WF8 4QR"
},
{
"CollegeName": "New College Stamford",
"Town": "Stamford",
"Postcode": "PE9 1XA"
},
{
"CollegeName": "New College Swindon",
"Town": "Swindon",
"Postcode": "SN3 1AH"
},
{
"CollegeName": "New College Telford",
"Town": "Telford",
"Postcode": "TF1 1NY"
},
{
"CollegeName": "Newbury College",
"Town": "Newbury",
"Postcode": "RG14 7TD"
},
{
"CollegeName": "Newcastle and Stafford Colleges Group",
"Town": "Newcastle-under-Lyme",
"Postcode": "ST5 2GB"
},
{
"CollegeName": "Newcastle College",
"Town": "Newcastle-upon-Tyne",
"Postcode": "NE4 7SA"
},
{
"CollegeName": "Newcastle Sixth Form College",
"Town": "Newcastle-upon-Tyne",
"Postcode": "NE4 7SA"
},
{
"CollegeName": "Newham College of Further Education",
"Town": "London",
"Postcode": "E6 6ER"
},
{
"CollegeName": "Newham Sixth Form College",
"Town": "London",
"Postcode": "E13 8SG"
},
{
"CollegeName": "North Bristol Post 16 Centre",
"Town": "Bristol",
"Postcode": "BS6 6BU"
},
{
"CollegeName": "North East Surrey College of Technology",
"Town": "Epsom",
"Postcode": "KT17 3DS"
},
{
"CollegeName": "North Hertfordshire College",
"Town": "Letchworth",
"Postcode": "SG6 3PF"
},
{
"CollegeName": "North Hykeham Joint Sixth Form",
"Town": "Lincoln",
"Postcode": "LN6 9AG"
},
{
"CollegeName": "North Kent College",
"Town": "Dartford",
"Postcode": "DA1 2JT"
},
{
"CollegeName": "North Lindsey College",
"Town": "Scunthorpe",
"Postcode": "DN17 1AJ"
},
{
"CollegeName": "North Shropshire College",
"Town": "Oswestry",
"Postcode": "SY11 4QB"
},
{
"CollegeName": "North Warwickshire and South Leicestershire College",
"Town": "Nuneaton",
"Postcode": "CV11 6BH"
},
{
"CollegeName": "Northampton College",
"Town": "Northampton",
"Postcode": "NN3 3RF"
},
{
"CollegeName": "Northbrook College, Sussex",
"Town": "Worthing",
"Postcode": "BN12 6NU"
},
{
"CollegeName": "Northern College for Residential Adult Education Limited",
"Town": "Barnsley",
"Postcode": "S75 3ET"
},
{
"CollegeName": "Northumberland College",
"Town": "Ashington",
"Postcode": "NE63 9RG"
},
{
"CollegeName": "Norwich City College of Further and Higher Education",
"Town": "Norwich",
"Postcode": "NR2 2LJ"
},
{
"CollegeName": "Notre Dame Catholic Sixth Form College",
"Town": "Leeds",
"Postcode": "LS2 9BL"
},
{
"CollegeName": "Oaklands College",
"Town": "St Albans",
"Postcode": "AL4 0JA"
},
{
"CollegeName": "The Oldham College",
"Town": "Oldham",
"Postcode": "OL9 6AA"
},
{
"CollegeName": "Oldham Sixth Form College",
"Town": "Oldham",
"Postcode": "OL8 1XU"
},
{
"CollegeName": "Palmer's College",
"Town": "Grays",
"Postcode": "RM17 5TD"
},
{
"CollegeName": "Paston Sixth Form College",
"Town": "North Walsham",
"Postcode": "NR28 9JL"
},
{
"CollegeName": "Peter Symonds College",
"Town": "Winchester",
"Postcode": "SO22 6RX"
},
{
"CollegeName": "Peterborough Regional College",
"Town": "Peterborough",
"Postcode": "PE1 4DZ"
},
{
"CollegeName": "Petroc",
"Town": "Barnstaple",
"Postcode": "EX31 2BQ"
},
{
"CollegeName": "PGW Partnership of Greenacre and Walderslade",
"Town": "Chatham",
"Postcode": "ME5 0LE"
},
{
"CollegeName": "Plumpton College",
"Town": "Lewes",
"Postcode": "BN7 3AE"
},
{
"CollegeName": "Portsmouth College",
"Town": "Portsmouth",
"Postcode": "PO3 6PZ"
},
{
"CollegeName": "Preston College",
"Town": "Preston",
"Postcode": "PR2 8UR"
},
{
"CollegeName": "Priestley College",
"Town": "Warrington",
"Postcode": "WA4 6RD"
},
{
"CollegeName": "Prior Pursglove and Stockton Sixth Form College",
"Town": "Guisborough",
"Postcode": "TS14 6BU"
},
{
"CollegeName": "Prospects College of Advanced Technology",
"Town": "Basildon",
"Postcode": "SS14 3AY"
},
{
"CollegeName": "Queen Elizabeth Sixth Form College",
"Town": "Darlington",
"Postcode": "DL3 7AU"
},
{
"CollegeName": "Queen Mary's College",
"Town": "Basingstoke",
"Postcode": "RG21 3HF"
},
{
"CollegeName": "Reaseheath College",
"Town": "Nantwich",
"Postcode": "CW5 6DF"
},
{
"CollegeName": "Redbridge College",
"Town": "Romford",
"Postcode": "RM6 4XT"
},
{
"CollegeName": "Redcar & Cleveland College",
"Town": "Redcar",
"Postcode": "TS10 1EZ"
},
{
"CollegeName": "Regent College",
"Town": "Leicester",
"Postcode": "LE1 7LW"
},
{
"CollegeName": "Reigate College",
"Town": "Reigate",
"Postcode": "RH2 0SD"
},
{
"CollegeName": "<NAME> College",
"Town": "Taunton",
"Postcode": "TA1 3DZ"
},
{
"CollegeName": "<NAME>on Sixth Form College",
"Town": "Southampton",
"Postcode": "SO15 5RL"
},
{
"CollegeName": "Richmond Adult Community College",
"Town": "Richmond",
"Postcode": "TW9 2RE"
},
{
"CollegeName": "Richmond-upon-Thames College",
"Town": "Twickenham",
"Postcode": "TW2 7SJ"
},
{
"CollegeName": "Riverside College Halton",
"Town": "Widnes",
"Postcode": "WA8 7QQ"
},
{
"CollegeName": "RNN Group",
"Town": "Rotherham",
"Postcode": "S65 1EG"
},
{
"CollegeName": "Rochdale Sixth Form College",
"Town": "Rochdale",
"Postcode": "OL12 6HY"
},
{
"CollegeName": "RR6",
"Town": "London",
"Postcode": "SW19 7HB"
},
{
"CollegeName": "Runshaw College",
"Town": "Leyland",
"Postcode": "PR25 3DQ"
},
{
"CollegeName": "Ruskin College",
"Town": "Oxford",
"Postcode": "OX3 9BZ"
},
{
"CollegeName": "St Aidans and St John Fisher Associated Sixth Form",
"Town": "",
"Postcode": ""
},
{
"CollegeName": "St Brendan's Sixth Form College",
"Town": "Bristol",
"Postcode": "BS4 5RQ"
},
{
"CollegeName": "St Charles Catholic Sixth Form College",
"Town": "London",
"Postcode": "W10 6EY"
},
{
"CollegeName": "St Dominic's Sixth Form College",
"Town": "Harrow-on-the-Hill",
"Postcode": "HA1 3HX"
},
{
"CollegeName": "St <NAME>avier Sixth Form College",
"Town": "London",
"Postcode": "SW12 8EN"
},
{
"CollegeName": "St Helens College",
"Town": "St Helens",
"Postcode": "WA10 1PP"
},
{
"CollegeName": "St John Rigby RC Sixth Form College",
"Town": "Wigan",
"Postcode": "WN5 0LJ"
},
{
"CollegeName": "St Mary's College",
"Town": "Blackburn",
"Postcode": "BB1 8DX"
},
{
"CollegeName": "St Vincent College",
"Town": "Gosport",
"Postcode": "PO12 4QA"
},
{
"CollegeName": "Salford City College",
"Town": "Salford",
"Postcode": "M50 3SR"
},
{
"CollegeName": "Sandwell College",
"Town": "West Bromwich",
"Postcode": "B70 6AW"
},
{
"CollegeName": "Scarborough Sixth Form College",
"Town": "Scarborough",
"Postcode": "YO12 5LF"
},
{
"CollegeName": "SEEVIC College",
"Town": "Benfleet",
"Postcode": "SS7 1TW"
},
{
"CollegeName": "Selby College",
"Town": "Selby",
"Postcode": "YO8 8AT"
},
{
"CollegeName": "The Sheffield College",
"Town": "Sheffield",
"Postcode": "S2 2RL"
},
{
"CollegeName": "Shipley College",
"Town": "Saltaire",
"Postcode": "BD18 3JW"
},
{
"CollegeName": "Shrewsbury Colleges Group",
"Town": "Shrewsbury",
"Postcode": "SY1 1RX"
},
{
"CollegeName": "Sir George Monoux College",
"Town": "London",
"Postcode": "E17 5AA"
},
{
"CollegeName": "S<NAME>'s College",
"Town": "Northwich",
"Postcode": "CW9 8AF"
},
{
"CollegeName": "The Sixth Form College Colchester",
"Town": "Colchester",
"Postcode": "CO1 1SN"
},
{
"CollegeName": "The Sixth Form College Farnborough",
"Town": "Farnborough",
"Postcode": "GU14 8JX"
},
{
"CollegeName": "The Sixth Form College, Solihull",
"Town": "Solihull",
"Postcode": "B91 3WR"
},
{
"CollegeName": "Sleaford Joint Sixth Form",
"Town": "Sleaford",
"Postcode": "NG34 7PS"
},
{
"CollegeName": "Solihull College",
"Town": "Solihull",
"Postcode": "B91 1SB"
},
{
"CollegeName": "South and City College Birmingham",
"Town": "Birmingham",
"Postcode": "B5 5SU"
},
{
"CollegeName": "South Cheshire College",
"Town": "Crewe",
"Postcode": "CW2 8AB"
},
{
"CollegeName": "South Devon College",
"Town": "Paignton",
"Postcode": "TQ4 7EJ"
},
{
"CollegeName": "The South Downs College",
"Town": "Waterlooville",
"Postcode": "PO7 8AA"
},
{
"CollegeName": "South Essex College of Further and Higher Education",
"Town": "Southend-on-Sea",
"Postcode": "SS1 1ND"
},
{
"CollegeName": "South Gloucestershire and Stroud College",
"Town": "Bristol",
"Postcode": "BS34 7AT"
},
{
"CollegeName": "South Staffordshire College",
"Town": "Cannock",
"Postcode": "WS11 1UE"
},
{
"CollegeName": "South Thames College",
"Town": "London",
"Postcode": "SW18 2PP"
},
{
"CollegeName": "South Tyneside College",
"Town": "South Shields",
"Postcode": "NE34 6ET"
},
{
"CollegeName": "Southampton City College",
"Town": "Southampton",
"Postcode": "SO14 1AR"
},
{
"CollegeName": "Southern Consortium Sixth Form",
"Town": "Dagenham",
"Postcode": "RM9 5QT"
},
{
"CollegeName": "Southport College",
"Town": "Southport",
"Postcode": "PR9 0TT"
},
{
"CollegeName": "Sparsholt College Hampshire",
"Town": "Winchester",
"Postcode": "SO21 2NF"
},
{
"CollegeName": "Stanmore College",
"Town": "Stanmore",
"Postcode": "HA7 4BQ"
},
{
"CollegeName": "Stephenson College",
"Town": "Coalville",
"Postcode": "LE67 3TN"
},
{
"CollegeName": "Stockport College",
"Town": "Stockport",
"Postcode": "SK1 3UQ"
},
{
"CollegeName": "Stockton Riverside College",
"Town": "Stockton-on-Tees",
"Postcode": "TS17 6FB"
},
{
"CollegeName": "Stoke-on-Trent College",
"Town": "Stoke-on-Trent",
"Postcode": "ST4 2DG"
},
{
"CollegeName": "Stratford-upon-Avon College",
"Town": "Stratford-upon-Avon",
"Postcode": "CV37 9QR"
},
{
"CollegeName": "Strode College",
"Town": "Street",
"Postcode": "BA16 0AB"
},
{
"CollegeName": "Strode's College",
"Town": "Egham",
"Postcode": "TW20 9DR"
},
{
"CollegeName": "Suffolk New College",
"Town": "Ipswich",
"Postcode": "IP4 1LT"
},
{
"CollegeName": "Sussex Coast College Hastings",
"Town": "Hastings",
"Postcode": "TN34 1BA"
},
{
"CollegeName": "Sussex Downs College",
"Town": "Eastbourne",
"Postcode": "BN21 2UF"
},
{
"CollegeName": "Swindon College",
"Town": "Swindon",
"Postcode": "SN2 1DY"
},
{
"CollegeName": "Sydenham and Forest Hill Sixth Form",
"Town": "",
"Postcode": ""
},
{
"CollegeName": "Tameside College",
"Town": "Ashton-under-Lyne",
"Postcode": "OL6 6NX"
},
{
"CollegeName": "Telford College of Arts and Technology",
"Town": "Telford",
"Postcode": "TF1 2NP"
},
{
"CollegeName": "Thomas Rotherham College",
"Town": "Rotherham",
"Postcode": "S60 2BE"
},
{
"CollegeName": "Totton College (Part of Nacro)",
"Town": "Southampton",
"Postcode": "SO40 3ZX"
},
{
"CollegeName": "Trafford College",
"Town": "Manchester",
"Postcode": "M32 0XH"
},
{
"CollegeName": "Tresham College of Further and Higher Education",
"Town": "Kettering",
"Postcode": "NN15 6ER"
},
{
"CollegeName": "Truro and Penwith College",
"Town": "Truro",
"Postcode": "TR1 3XX"
},
{
"CollegeName": "Tyne Metropolitan College",
"Town": "Wallsend",
"Postcode": "NE28 9NL"
},
{
"CollegeName": "Uxbridge College",
"Town": "Uxbridge",
"Postcode": "UB8 1NQ"
},
{
"CollegeName": "Varndean College",
"Town": "Brighton",
"Postcode": "BN1 6WQ"
},
{
"CollegeName": "Vision West Nottinghamshire College",
"Town": "Mansfield",
"Postcode": "NG18 5BH"
},
{
"CollegeName": "Wakefield College",
"Town": "Wakefield",
"Postcode": "WF1 2DH"
},
{
"CollegeName": "Walsall College",
"Town": "Walsall",
"Postcode": "WS2 8ES"
},
{
"CollegeName": "Waltham Forest College",
"Town": "London",
"Postcode": "E17 4JB"
},
{
"CollegeName": "Warrington Collegiate",
"Town": "Warrington",
"Postcode": "WA2 8QA"
},
{
"CollegeName": "Warwickshire College Group",
"Town": "Royal Leamington Spa",
"Postcode": "CV32 5JE"
},
{
"CollegeName": "West Cheshire College",
"Town": "Ellesmere Port",
"Postcode": "CH65 7BF"
},
{
"CollegeName": "West Herts College",
"Town": "Watford",
"Postcode": "WD17 3EZ"
},
{
"CollegeName": "West Kent and Ashford College",
"Town": "Tonbridge",
"Postcode": "TN9 2PW"
},
{
"CollegeName": "West Lancashire College",
"Town": "Skelmersdale",
"Postcode": "WN8 6DX"
},
{
"CollegeName": "West Suffolk College",
"Town": "Bury St Edmunds",
"Postcode": "IP33 3RL"
},
{
"CollegeName": "West Thames College",
"Town": "Isleworth",
"Postcode": "TW7 4HS"
},
{
"CollegeName": "Weston College",
"Town": "Weston-Super-Mare",
"Postcode": "BS23 2AL"
},
{
"CollegeName": "Weymouth College",
"Town": "Weymouth",
"Postcode": "DT4 7LQ"
},
{
"CollegeName": "Wigan and Leigh College",
"Town": "Wigan",
"Postcode": "WN1 1RS"
},
{
"CollegeName": "Wilberforce College",
"Town": "Kingston-upon-Hull",
"Postcode": "HU8 9HD"
},
{
"CollegeName": "Wiltshire College",
"Town": "Chippenham",
"Postcode": "SN15 3QD"
},
{
"CollegeName": "Winstanley College",
"Town": "Wigan",
"Postcode": "WN5 7XF"
},
{
"CollegeName": "Wirral Metropolitan College",
"Town": "Birkenhead",
"Postcode": "CH41 4NT"
},
{
"CollegeName": "The WKCIC Group",
"Town": "London",
"Postcode": "WC1X 8RA"
},
{
"CollegeName": "Woking College",
"Town": "Woking",
"Postcode": "GU22 9DL"
},
{
"CollegeName": "Woodhouse College",
"Town": "London",
"Postcode": "N12 9EY"
},
{
"CollegeName": "Worcester Sixth Form College",
"Town": "Worcester",
"Postcode": "WR5 2LU"
},
{
"CollegeName": "Workers' Educational Association",
"Town": "London",
"Postcode": "EC2A 4XW"
},
{
"CollegeName": "The Working Men's College",
"Town": "London",
"Postcode": "NW1 1TR"
},
{
"CollegeName": "Worthing College",
"Town": "Worthing",
"Postcode": "BN14 9FD"
},
{
"CollegeName": "Wyggeston and Queen Elizabeth I College",
"Town": "Leicester",
"Postcode": "LE1 7RJ"
},
{
"CollegeName": "Wyke Sixth Form College",
"Town": "Hull",
"Postcode": "HU5 4NT"
},
{
"CollegeName": "Xaverian College",
"Town": "Manchester",
"Postcode": "M14 5RB"
},
{
"CollegeName": "Yeovil College",
"Town": "Yeovil",
"Postcode": "BA21 4DR"
},
{
"CollegeName": "York College",
"Town": "York",
"Postcode": "YO23 2BB"
}
]
};<file_sep># Binary builds
Please see the releases section of GitHub for access to pre-built binaries of the RPC Agent and Dev Client apps.
Supported platforms are Windows, Linux, Mac OS and Linux (ARM)
Please see the examples in the Java, Node.JS and .NET wrappers.
<file_sep>var universitydata = {"university":[
{
"UniversityName": "University of West London",
"Town": "London",
"Postcode": "W5 5RF"
},
{
"UniversityName": "University of Westminster",
"Town": "London",
"Postcode": "W1B 2UW"
},
{
"UniversityName": "University of Winchester",
"Town": "Winchester",
"Postcode": "SO22 4NR"
},
{
"UniversityName": "University of Wolverhampton",
"Town": "Wolverhampton",
"Postcode": "WV1 1LY"
},
{
"UniversityName": "University of Worcester",
"Town": "Worcester",
"Postcode": "WR2 6AJ"
},
{
"UniversityName": "University of York",
"Town": "York",
"Postcode": "YO10 5DD"
},
{
"UniversityName": "Writtle University College",
"Town": "Chelmsford",
"Postcode": "CM1 3RR"
},
{
"UniversityName": "York St John University",
"Town": "York",
"Postcode": "YO31 7EX"
},
{
"UniversityName": "University of Kent",
"Town": "Canterbury",
"Postcode": "CT2 7NZ"
},
{
"UniversityName": "University of Lancaster",
"Town": "Lancaster",
"Postcode": "LA1 4YW"
},
{
"UniversityName": "University of Leeds",
"Town": "Leeds",
"Postcode": "LS2 9JT"
},
{
"UniversityName": "University of Leicester",
"Town": "Leicester",
"Postcode": "LE1 7RH"
},
{
"UniversityName": "University of Lincoln",
"Town": "Lincoln",
"Postcode": "LN6 7TS"
},
{
"UniversityName": "University of Liverpool",
"Town": "Liverpool",
"Postcode": "L69 7ZX"
},
{
"UniversityName": "University of London",
"Town": "London",
"Postcode": "WC1E 7HU"
},
{
"UniversityName": "University of Manchester",
"Town": "Manchester",
"Postcode": "M13 9PL"
},
{
"UniversityName": "University of Newcastle Upon Tyne",
"Town": "Newcastle-upon-Tyne",
"Postcode": "NE1 7RU"
},
{
"UniversityName": "University of Northampton",
"Town": "Northampton",
"Postcode": "NN2 7AL"
},
{
"UniversityName": "University of Northumbria At Newcastle",
"Town": "Newcastle-upon-Tyne",
"Postcode": "NE1 8ST"
},
{
"UniversityName": "University of Nottingham",
"Town": "Nottingham",
"Postcode": "NG7 2RD"
},
{
"UniversityName": "University of Oxford",
"Town": "Oxford",
"Postcode": "OX1 2JD"
},
{
"UniversityName": "University of Plymouth",
"Town": "Plymouth",
"Postcode": "PL4 8AA"
},
{
"UniversityName": "University of Portsmouth",
"Town": "Portsmouth",
"Postcode": "PO1 2UP"
},
{
"UniversityName": "University of Reading",
"Town": "Reading",
"Postcode": "RG6 6UR"
},
{
"UniversityName": "University of Salford",
"Town": "Salford",
"Postcode": "M5 4WT"
},
{
"UniversityName": "University of Sheffield",
"Town": "Sheffield",
"Postcode": "S10 2TN"
},
{
"UniversityName": "University of Southampton",
"Town": "Southampton",
"Postcode": "SO17 1BJ"
},
{
"UniversityName": "University of Sunderland",
"Town": "Sunderland",
"Postcode": "SR1 3SD"
},
{
"UniversityName": "University of Surrey",
"Town": "Guildford",
"Postcode": "GU2 7XH"
},
{
"UniversityName": "University of Sussex",
"Town": "Brighton",
"Postcode": "BN1 9RH"
},
{
"UniversityName": "University of the Arts London",
"Town": "London",
"Postcode": "WC1V 7EY"
},
{
"UniversityName": "University of the West of England, Bristol",
"Town": "Bristol",
"Postcode": "BS16 1QY"
},
{
"UniversityName": "University of Warwick",
"Town": "Coventry",
"Postcode": "CV4 8UW"
},
{
"UniversityName": "University of Bath",
"Town": "Bath",
"Postcode": "BA2 7AY"
},
{
"UniversityName": "University of Bedfordshire",
"Town": "Luton",
"Postcode": "LU1 3JU"
},
{
"UniversityName": "University of Birmingham",
"Town": "Birmingham",
"Postcode": "B15 2TT"
},
{
"UniversityName": "University of Bolton",
"Town": "Bolton",
"Postcode": "BL3 5AB"
},
{
"UniversityName": "University of Bradford",
"Town": "Bradford",
"Postcode": "BD7 1DP"
},
{
"UniversityName": "University of Brighton",
"Town": "Brighton",
"Postcode": "BN2 4AT"
},
{
"UniversityName": "University of Bristol",
"Town": "Bristol",
"Postcode": "BS8 1TH"
},
{
"UniversityName": "University of Buckingham",
"Town": "Buckingham",
"Postcode": "MK18 1EG"
},
{
"UniversityName": "University of Cambridge",
"Town": "Cambridge",
"Postcode": "CB2 1TN"
},
{
"UniversityName": "University of Central Lancashire",
"Town": "Preston",
"Postcode": "PR1 2HE"
},
{
"UniversityName": "University of Chester",
"Town": "Chester",
"Postcode": "CH1 4BJ"
},
{
"UniversityName": "University of Chichester",
"Town": "Chichester",
"Postcode": "PO19 6PE"
},
{
"UniversityName": "University of Cumbria",
"Town": "Carlisle",
"Postcode": "CA3 8TB"
},
{
"UniversityName": "University of Derby",
"Town": "Derby",
"Postcode": "DE22 1GB"
},
{
"UniversityName": "University of Durham",
"Town": "Durham",
"Postcode": "DH1 3HP"
},
{
"UniversityName": "University of East Anglia",
"Town": "Norwich",
"Postcode": "NR4 7TJ"
},
{
"UniversityName": "University of East London",
"Town": "London",
"Postcode": "E16 2RD"
},
{
"UniversityName": "University of Essex",
"Town": "Colchester",
"Postcode": "CO4 3SQ"
},
{
"UniversityName": "University of Exeter",
"Town": "Exeter",
"Postcode": "EX4 4QJ"
},
{
"UniversityName": "University of Gloucestershire",
"Town": "Cheltenham",
"Postcode": "GL50 2RH"
},
{
"UniversityName": "University of Greenwich",
"Town": "London",
"Postcode": "SE10 9LS"
},
{
"UniversityName": "University of Hertfordshire",
"Town": "Hatfield",
"Postcode": "AL10 9AB"
},
{
"UniversityName": "University of Huddersfield",
"Town": "Huddersfield",
"Postcode": "HD1 3DH"
},
{
"UniversityName": "University of Hull",
"Town": "Kingston-upon-Hull",
"Postcode": "HU6 7RX"
},
{
"UniversityName": "University of Keele",
"Town": "Keele",
"Postcode": "ST5 5BG"
},
{
"UniversityName": "Oxford Brookes University",
"Town": "Oxford",
"Postcode": "OX3 0BP"
},
{
"UniversityName": "Plymouth College of Art",
"Town": "Plymouth",
"Postcode": "PL4 8AT"
},
{
"UniversityName": "Queen Mary and Westfield College",
"Town": "London",
"Postcode": "E1 4NS"
},
{
"UniversityName": "Ravensbourne",
"Town": "London",
"Postcode": "SE10 0EW"
},
{
"UniversityName": "Roehampton University",
"Town": "London",
"Postcode": "SW15 5PJ"
},
{
"UniversityName": "Rose Bruford College",
"Town": "Sidcup",
"Postcode": "DA15 9DF"
},
{
"UniversityName": "Royal Academy of Music",
"Town": "London",
"Postcode": "NW1 5HT"
},
{
"UniversityName": "Royal Agricultural University",
"Town": "Cirencester",
"Postcode": "GL7 6JS"
},
{
"UniversityName": "Royal College of Art",
"Town": "London",
"Postcode": "SW7 2EU"
},
{
"UniversityName": "Royal College of Music",
"Town": "London",
"Postcode": "SW7 2BS"
},
{
"UniversityName": "The Royal College of Nursing",
"Town": "London",
"Postcode": "W1G 0RN"
},
{
"UniversityName": "Royal Holloway and Bedford New College",
"Town": "Egham",
"Postcode": "TW20 0EX"
},
{
"UniversityName": "Royal Northern College of Music",
"Town": "Manchester",
"Postcode": "M13 9RD"
},
{
"UniversityName": "The Royal Veterinary College",
"Town": "London",
"Postcode": "NW1 0TU"
},
{
"UniversityName": "St George's Hospital Medical School",
"Town": "London",
"Postcode": "SW17 0RE"
},
{
"UniversityName": "St Mary's University, Twickenham",
"Town": "Twickenham",
"Postcode": "TW1 4SX"
},
{
"UniversityName": "School of Oriental and African Studies",
"Town": "London",
"Postcode": "WC1H 0XG"
},
{
"UniversityName": "Sheffield Hallam University",
"Town": "Sheffield",
"Postcode": "S1 1WB"
},
{
"UniversityName": "Southampton Solent University",
"Town": "Southampton",
"Postcode": "SO14 0YN"
},
{
"UniversityName": "Staffordshire University",
"Town": "Stafford",
"Postcode": "ST18 0AD"
},
{
"UniversityName": "Teesside University",
"Town": "Middlesbrough",
"Postcode": "TS1 3BA"
},
{
"UniversityName": "Trinity Laban",
"Town": "Deptford",
"Postcode": "SE8 3DZ"
},
{
"UniversityName": "University College Birmingham",
"Town": "Birmingham",
"Postcode": "B3 1JB"
},
{
"UniversityName": "University College for the Creative Arts",
"Town": "Farnham",
"Postcode": "GU9 7DS"
},
{
"UniversityName": "University College London",
"Town": "London",
"Postcode": "WC1E 6BT"
},
{
"UniversityName": "Imperial College of Science, Technology and Medicine",
"Town": "London",
"Postcode": "SW7 2AZ"
},
{
"UniversityName": "Institute of Cancer Research",
"Town": "London",
"Postcode": "SW3 6JB"
},
{
"UniversityName": "Institute of Education",
"Town": "London",
"Postcode": "WC1H 0AL"
},
{
"UniversityName": "King's College London",
"Town": "London",
"Postcode": "SE1 8WA"
},
{
"UniversityName": "Kingston University",
"Town": "Kingston upon Thames",
"Postcode": "KT1 1LQ"
},
{
"UniversityName": "Leeds Beckett University",
"Town": "Leeds",
"Postcode": "LS6 3QS"
},
{
"UniversityName": "Leeds College of Art",
"Town": "Leeds",
"Postcode": "LS2 9AQ"
},
{
"UniversityName": "Leeds College of Music",
"Town": "Leeds",
"Postcode": "LS2 7PD"
},
{
"UniversityName": "Leeds Trinity University",
"Town": "Leeds",
"Postcode": "LS18 5HD"
},
{
"UniversityName": "Liverpool Hope University",
"Town": "Liverpool",
"Postcode": "L16 9JD"
},
{
"UniversityName": "Liverpool Institute of Performing Arts",
"Town": "Liverpool",
"Postcode": "L1 9HF"
},
{
"UniversityName": "Liverpool John Moores University",
"Town": "Liverpool",
"Postcode": "L3 5UX"
},
{
"UniversityName": "London Business School",
"Town": "London",
"Postcode": "NW1 4SA"
},
{
"UniversityName": "London Metropolitan University",
"Town": "London",
"Postcode": "N7 8DB"
},
{
"UniversityName": "London School of Economics and Political Science",
"Town": "London",
"Postcode": "WC2A 2AE"
},
{
"UniversityName": "London School of Hygiene & Tropical Medicine",
"Town": "London",
"Postcode": "WC1E 7HT"
},
{
"UniversityName": "London South Bank University",
"Town": "London",
"Postcode": "SE1 0AA"
},
{
"UniversityName": "Loughborough University",
"Town": "Loughborough",
"Postcode": "LE11 3TU"
},
{
"UniversityName": "The Manchester Metropolitan University",
"Town": "Manchester",
"Postcode": "M15 6BH"
},
{
"UniversityName": "Middlesex University",
"Town": "London",
"Postcode": "N14 4YZ"
},
{
"UniversityName": "Newman University College",
"Town": "Birmingham",
"Postcode": "B32 3NT"
},
{
"UniversityName": "Northern School of Contemporary Dance",
"Town": "Leeds",
"Postcode": "LS7 4BH"
},
{
"UniversityName": "Norwich University of the Arts",
"Town": "Norwich",
"Postcode": "NR2 4SN"
},
{
"UniversityName": "The Nottingham Trent University",
"Town": "Nottingham",
"Postcode": "NG1 4BU"
},
{
"UniversityName": "The Open University",
"Town": "Milton Keynes",
"Postcode": "MK7 6AA"
},
{
"UniversityName": "Anglia Ruskin University",
"Town": "Chelmsford",
"Postcode": "CM1 1SQ"
},
{
"UniversityName": "The Arts University College At Bournemouth",
"Town": "Poole",
"Postcode": "BH12 5HH"
},
{
"UniversityName": "Aston University",
"Town": "Birmingham",
"Postcode": "B4 7ET"
},
{
"UniversityName": "Bath Spa University",
"Town": "Bath",
"Postcode": "BA2 9BN"
},
{
"UniversityName": "Birkbeck College",
"Town": "London",
"Postcode": "WC1E 7HX"
},
{
"UniversityName": "Birmingham City University",
"Town": "Birmingham",
"Postcode": "B42 2SU"
},
{
"UniversityName": "Bishop Grosseteste University College Lincoln",
"Town": "Lincoln",
"Postcode": "LN1 3DY"
},
{
"UniversityName": "Bournemouth University",
"Town": "Poole",
"Postcode": "BH12 5BB"
},
{
"UniversityName": "Brunel University",
"Town": "Uxbridge",
"Postcode": "UB8 3PH"
},
{
"UniversityName": "Buckinghamshire New University",
"Town": "High Wycombe",
"Postcode": "HP11 2JZ"
},
{
"UniversityName": "Canterbury Christ Church University",
"Town": "Canterbury",
"Postcode": "CT1 1QU"
},
{
"UniversityName": "Central School of Speech and Drama",
"Town": "London",
"Postcode": "NW3 3HY"
},
{
"UniversityName": "City University",
"Town": "London",
"Postcode": "EC1V 0HB"
},
{
"UniversityName": "College of St Mark & St John",
"Town": "Plymouth",
"Postcode": "PL6 8BH"
},
{
"UniversityName": "Conservatoire for Dance and Drama",
"Town": "London",
"Postcode": "WC1H 0JJ"
},
{
"UniversityName": "Courtauld Institute of Art",
"Town": "London",
"Postcode": "WC2R 0RN"
},
{
"UniversityName": "Coventry University",
"Town": "Coventry",
"Postcode": "CV1 5FB"
},
{
"UniversityName": "Cranfield University",
"Town": "Cranfield",
"Postcode": "MK43 0AL"
},
{
"UniversityName": "De Montfort University",
"Town": "Leicester",
"Postcode": "LE1 9BH"
},
{
"UniversityName": "Edge Hill University",
"Town": "Ormskirk",
"Postcode": "L39 4QP"
},
{
"UniversityName": "Falmouth University",
"Town": "Falmouth",
"Postcode": "TR11 4RH"
},
{
"UniversityName": "Goldsmiths College, University of London",
"Town": "London",
"Postcode": "SE14 6NW"
},
{
"UniversityName": "Guildhall School of Music and Drama",
"Town": "London",
"Postcode": "EC2Y 8DT"
},
{
"UniversityName": "Harper Adams University",
"Town": "Newport",
"Postcode": "TF10 8NB"
},
{
"UniversityName": "Heythrop College",
"Town": "London",
"Postcode": "W8 5HQ"
}
]
};<file_sep>currentPage = {};
currentPage.init = function()
{
alert("Hello init");
console.log("Search :: init");
};
currentPage.search = function()
{
alert("Hello Search");
console.log("Search :: Search");
};<file_sep>var collegedata = {"colleges":
[
{
"CollegeName": "Bishop Auckland College",
"Town": "Bishop Auckland",
"Postcode": "DL146JZ"
},
{
"CollegeName": "Bishop Burton College",
"Town": "Beverley",
"Postcode": "HU178QG"
},
{
"CollegeName": "Blackburn College",
"Town": "Blackburn",
"Postcode": "BB21LH"
},
{
"CollegeName": "Blackpool and the Fylde College",
"Town": "Blackpool",
"Postcode": "FY20HB"
},
{
"CollegeName": "The Blackpool Sixth Form College",
"Town": "Blackpool",
"Postcode": "FY37LR"
},
{
"CollegeName": "Bolton College",
"Town": "Bolton",
"Postcode": "BL35BG"
},
{
"CollegeName": "Bolton Sixth Form College",
"Town": "Bolton",
"Postcode": "BL35BU"
},
{
"CollegeName": "Boston College",
"Town": "Boston",
"Postcode": "PE216JF"
},
{
"CollegeName": "The Bournemouth and Poole College",
"Town": "Poole",
"Postcode": "BH140LS"
},
{
"CollegeName": "Bournville College of Further Education",
"Town": "Birmingham",
"Postcode": "B312AJ"
},
{
"CollegeName": "Bracknell and Wokingham College",
"Town": "Bracknell",
"Postcode": "RG121DJ"
},
{
"CollegeName": "Bradford College",
"Town": "Bradford",
"Postcode": "BD71AY"
},
{
"CollegeName": "Bridgwater and Taunton College",
"Town": "Bridgwater",
"Postcode": "TA64PZ"
},
{
"CollegeName": "Brighton Hove and Sussex Sixth Form College",
"Town": "Hove",
"Postcode": "BN36EG"
},
{
"CollegeName": "Brockenhurst College",
"Town": "Brockenhurst",
"Postcode": "SO427ZE"
},
{
"CollegeName": "The Brooke House Sixth Form College",
"Town": "London",
"Postcode": "E58BP"
},
{
"CollegeName": "Brooklands College",
"Town": "Weybridge",
"Postcode": "KT138TT"
},
{
"CollegeName": "Brooksby Melton College",
"Town": "Melton Mowbray",
"Postcode": "LE142LJ"
},
{
"CollegeName": "Burnley College",
"Town": "Burnley",
"Postcode": "BB120AN"
},
{
"CollegeName": "Burton and South Derbyshire College",
"Town": "Burton-on-Trent",
"Postcode": "DE143RL"
},
{
"CollegeName": "Bury College",
"Town": "Bury",
"Postcode": "BL90BG"
},
{
"CollegeName": "Cadbury Sixth Form College",
"Town": "Birmingham",
"Postcode": "B388QT"
},
{
"CollegeName": "Calderdale College",
"Town": "Halifax",
"Postcode": "HX13UZ"
},
{
"CollegeName": "Cambridge Regional College",
"Town": "Cambridge",
"Postcode": "CB42QT"
},
{
"CollegeName": "Canterbury College",
"Town": "Canterbury",
"Postcode": "CT13AJ"
},
{
"CollegeName": "16-19 Abingdon",
"Town": "",
"Postcode": ""
},
{
"CollegeName": "Abingdon and Witney College",
"Town": "Abingdon",
"Postcode": "OX141GG"
},
{
"CollegeName": "Accrington and Rossendale College",
"Town": "Accrington",
"Postcode": "BB52AW"
},
{
"CollegeName": "Activate Learning",
"Town": "Oxford",
"Postcode": "OX11SA"
},
{
"CollegeName": "Ada National College for Digital Skills",
"Town": "London",
"Postcode": "N154AG"
},
{
"CollegeName": "Alton College",
"Town": "Alton",
"Postcode": "GU342LX"
},
{
"CollegeName": "Amersham and Wycombe College",
"Town": "Amersham",
"Postcode": "HP79HN"
},
{
"CollegeName": "Aquinas College",
"Town": "Stockport",
"Postcode": "SK26TH"
},
{
"CollegeName": "Ashton Sixth Form College",
"Town": "Ashton-under-Lyne",
"Postcode": "OL69RL"
},
{
"CollegeName": "Askham Bryan College",
"Town": "York",
"Postcode": "YO233FR"
},
{
"CollegeName": "Aylesbury College",
"Town": "Aylesbury",
"Postcode": "HP218PD"
},
{
"CollegeName": "Barking and Dagenham College",
"Town": "Romford",
"Postcode": "RM70XU"
},
{
"CollegeName": "Barnet and Southgate College",
"Town": "Barnet",
"Postcode": "EN54AZ"
},
{
"CollegeName": "Barnfield College",
"Town": "Luton",
"Postcode": "LU27BF"
},
{
"CollegeName": "Barnsley College",
"Town": "Barnsley",
"Postcode": "S702YW"
},
{
"CollegeName": "Barton Peveril Sixth Form College",
"Town": "Eastleigh",
"Postcode": "SO505ZA"
},
{
"CollegeName": "Basingstoke College of Technology",
"Town": "Basingstoke",
"Postcode": "RG218TN"
},
{
"CollegeName": "Bath College",
"Town": "Bath",
"Postcode": "BA11UP"
},
{
"CollegeName": "Bedford College",
"Town": "Bedford",
"Postcode": "MK429AH"
},
{
"CollegeName": "Berkshire College of Agriculture",
"Town": "Maidenhead",
"Postcode": "SL66QR"
},
{
"CollegeName": "Beverley Joint Sixth",
"Town": "",
"Postcode": ""
},
{
"CollegeName": "Bexhill College",
"Town": "Bexhill-on-Sea",
"Postcode": "TN402JG"
},
{
"CollegeName": "Bilborough College",
"Town": "Nottingham",
"Postcode": "NG84DQ"
},
{
"CollegeName": "Birkenhead Sixth Form College",
"Town": "Wirral",
"Postcode": "CH438SQ"
},
{
"CollegeName": "Birmingham Metropolitan College",
"Town": "Birmingham",
"Postcode": "B47PS"
},
{
"CollegeName": "Capel Manor College",
"Town": "Enfield",
"Postcode": "EN14RQ"
},
{
"CollegeName": "Cardinal Newman College",
"Town": "Preston",
"Postcode": "PR14HD"
},
{
"CollegeName": "Carlisle College",
"Town": "Carlisle",
"Postcode": "CA11HS"
},
{
"CollegeName": "Carmel College",
"Town": "St Helens",
"Postcode": "WA103AG"
},
{
"CollegeName": "Carshalton College",
"Town": "Carshalton",
"Postcode": "SM52EJ"
},
{
"CollegeName": "Central Bedfordshire College",
"Town": "Dunstable",
"Postcode": "LU54HG"
},
{
"CollegeName": "Central College Nottingham",
"Town": "Nottingham",
"Postcode": "NG16AB"
},
{
"CollegeName": "Central Learning Partnership",
"Town": "Wolverhampton",
"Postcode": "WV111RD"
},
{
"CollegeName": "Central Sussex College",
"Town": "Crawley",
"Postcode": "RH101NR"
},
{
"CollegeName": "Cheadle and Marple Sixth Form College",
"Town": "Stockport",
"Postcode": "SK85HA"
},
{
"CollegeName": "Chelmsford College",
"Town": "Chelmsford",
"Postcode": "CM20JQ"
},
{
"CollegeName": "Chesterfield College",
"Town": "Chesterfield",
"Postcode": "S417NG"
},
{
"CollegeName": "Chichester College",
"Town": "Chichester",
"Postcode": "PO191SB"
},
{
"CollegeName": "Chichester High Schools Sixth Form",
"Town": "Chichester",
"Postcode": "PO198AE"
},
{
"CollegeName": "Christ The King Sixth Form College",
"Town": "London",
"Postcode": "SE135GE"
},
{
"CollegeName": "Cirencester College",
"Town": "Cirencester",
"Postcode": "GL71XA"
},
{
"CollegeName": "City College Brighton and Hove",
"Town": "Brighton",
"Postcode": "BN14FA"
},
{
"CollegeName": "City College Coventry",
"Town": "Coventry",
"Postcode": "CV15DG"
},
{
"CollegeName": "City College Plymouth",
"Town": "Plymouth",
"Postcode": "PL15QG"
},
{
"CollegeName": "City Lit",
"Town": "London",
"Postcode": "WC2B4BA"
},
{
"CollegeName": "City of Bristol College",
"Town": "Bristol",
"Postcode": "BS15UA"
},
{
"CollegeName": "The City of Liverpool College",
"Town": "Liverpool",
"Postcode": "L35TP"
},
{
"CollegeName": "City of Stoke-on-Trent Sixth Form College",
"Town": "Stoke-on-Trent",
"Postcode": "ST42RU"
},
{
"CollegeName": "City of Sunderland College",
"Town": "Sunderland",
"Postcode": "SR34AH"
},
{
"CollegeName": "City of Westminster College",
"Town": "London",
"Postcode": "W21NB"
},
{
"CollegeName": "City of Wolverhampton College",
"Town": "Wolverhampton",
"Postcode": "WV60DU"
},
{
"CollegeName": "Cleveland College of Art and Design",
"Town": "Middlesbrough",
"Postcode": "TS57RJ"
},
{
"CollegeName": "Colchester Institute",
"Town": "Colchester",
"Postcode": "CO33LL"
},
{
"CollegeName": "The College of Haringey, Enfield and North East London",
"Town": "London",
"Postcode": "N154RU"
},
{
"CollegeName": "The College of North West London",
"Town": "London",
"Postcode": "NW102XD"
},
{
"CollegeName": "The College of Richard Collyer In Horsham",
"Town": "Horsham",
"Postcode": "RH122EJ"
},
{
"CollegeName": "The College of West Anglia",
"Town": "King's Lynn",
"Postcode": "PE302QW"
},
{
"CollegeName": "Cornwall College",
"Town": "St Austell",
"Postcode": "PL254DJ"
},
{
"CollegeName": "Coulsdon Sixth Form College",
"Town": "Coulsdon",
"Postcode": "CR51YA"
},
{
"CollegeName": "Craven College",
"Town": "Skipton",
"Postcode": "BD231US"
},
{
"CollegeName": "Croydon College",
"Town": "Croydon",
"Postcode": "CR91DX"
},
{
"CollegeName": "Darlington College",
"Town": "Darlington",
"Postcode": "DL11DR"
},
{
"CollegeName": "Dearne Valley College",
"Town": "Rotherham",
"Postcode": "S637EW"
},
{
"CollegeName": "Derby College",
"Town": "Derby",
"Postcode": "DE248JE"
},
{
"CollegeName": "Dereham Sixth Form College",
"Town": "Dereham",
"Postcode": "NR204AG"
},
{
"CollegeName": "Derwentside College",
"Town": "Consett",
"Postcode": "DH85EE"
},
{
"CollegeName": "Didcot Sixth Form College",
"Town": "",
"Postcode": ""
},
{
"CollegeName": "Doncaster College",
"Town": "Doncaster",
"Postcode": "DN12RF"
},
{
"CollegeName": "Dudley College of Technology",
"Town": "Dudley",
"Postcode": "DY14AS"
},
{
"CollegeName": "Ealing, Hammersmith and West London College",
"Town": "London",
"Postcode": "W149BL"
},
{
"CollegeName": "East Berkshire College",
"Town": "Slough",
"Postcode": "SL38BY"
},
{
"CollegeName": "East Durham College",
"Town": "Peterlee",
"Postcode": "SR82RN"
},
{
"CollegeName": "East Kent College",
"Town": "Broadstairs",
"Postcode": "CT101PN"
},
{
"CollegeName": "East Norfolk Sixth Form College",
"Town": "Great Yarmouth",
"Postcode": "NR317BQ"
},
{
"CollegeName": "East Riding College",
"Town": "Beverley",
"Postcode": "HU170GH"
},
{
"CollegeName": "East Surrey College",
"Town": "Redhill",
"Postcode": "RH12JX"
},
{
"CollegeName": "Eastleigh College",
"Town": "Eastleigh",
"Postcode": "SO505FS"
},
{
"CollegeName": "Easton & Otley College",
"Town": "Norwich",
"Postcode": "NR95DX"
},
{
"CollegeName": "Epping Forest College",
"Town": "Loughton",
"Postcode": "IG103SA"
},
{
"CollegeName": "Esher College",
"Town": "Thames Ditton",
"Postcode": "KT70JB"
},
{
"CollegeName": "Exeter College",
"Town": "Exeter",
"Postcode": "EX44JS"
},
{
"CollegeName": "Fareham College",
"Town": "Fareham",
"Postcode": "PO141NH"
},
{
"CollegeName": "Farnborough College of Technology",
"Town": "Farnborough",
"Postcode": "GU146SB"
},
{
"CollegeName": "Fircroft College of Adult Education",
"Town": "Birmingham",
"Postcode": "B296LH"
},
{
"CollegeName": "Franklin College",
"Town": "Grimsby",
"Postcode": "DN345BY"
},
{
"CollegeName": "Furness College",
"Town": "Barrow-in-Furness",
"Postcode": "LA142PJ"
},
{
"CollegeName": "Gateshead College",
"Town": "Gateshead",
"Postcode": "NE83BE"
},
{
"CollegeName": "Gateway Sixth Form College",
"Town": "Leicester",
"Postcode": "LE51GA"
},
{
"CollegeName": "Gloucestershire College",
"Town": "Cheltenham",
"Postcode": "GL517SJ"
},
{
"CollegeName": "Godalming College",
"Town": "Godalming",
"Postcode": "GU71RS"
},
{
"CollegeName": "Grantham College",
"Town": "Grantham",
"Postcode": "NG319AP"
},
{
"CollegeName": "Great Yarmouth College",
"Town": "Great Yarmouth",
"Postcode": "NR310ED"
},
{
"CollegeName": "Greenhead College",
"Town": "Huddersfield",
"Postcode": "HD14ES"
},
{
"CollegeName": "Grimsby Institute of Further and Higher Education",
"Town": "Grimsby",
"Postcode": "DN345BQ"
},
{
"CollegeName": "Guildford College of Further and Higher Education",
"Town": "Guildford",
"Postcode": "GU11EZ"
},
{
"CollegeName": "Hadlow College",
"Town": "Tonbridge",
"Postcode": "TN110AL"
},
{
"CollegeName": "Halesowen College",
"Town": "Halesowen",
"Postcode": "B633NA"
},
{
"CollegeName": "Harlow College",
"Town": "Harlow",
"Postcode": "CM203LH"
},
{
"CollegeName": "Harris Federation Post 16",
"Town": "Croydon",
"Postcode": "CR01LH"
},
{
"CollegeName": "Harrow College",
"Town": "Harrow",
"Postcode": "HA36RR"
},
{
"CollegeName": "Harrow Collegiate",
"Town": "Harrow",
"Postcode": "HA35PQ"
},
{
"CollegeName": "Hartlepool College of Further Education",
"Town": "Hartlepool",
"Postcode": "TS247NT"
},
{
"CollegeName": "Hartlepool Sixth Form College",
"Town": "Hartlepool",
"Postcode": "TS255PF"
},
{
"CollegeName": "Hartpury College",
"Town": "Gloucester",
"Postcode": "GL193BE"
},
{
"CollegeName": "Havant College",
"Town": "Havant",
"Postcode": "PO91QL"
},
{
"CollegeName": "Havering College of Further and Higher Education",
"Town": "Hornchurch",
"Postcode": "RM112LL"
},
{
"CollegeName": "Havering Sixth Form College",
"Town": "Hornchurch",
"Postcode": "RM113TB"
},
{
"CollegeName": "Heart of Worcestershire College",
"Town": "Redditch",
"Postcode": "B974DE"
},
{
"CollegeName": "The Henley College",
"Town": "Henley-on-Thames",
"Postcode": "RG91UH"
},
{
"CollegeName": "Henley College Coventry",
"Town": "Coventry",
"Postcode": "CV21ED"
},
{
"CollegeName": "Hereford College of Arts",
"Town": "Hereford",
"Postcode": "HR11LT"
},
{
"CollegeName": "Herefordshire & Ludlow College",
"Town": "Hereford",
"Postcode": "HR11LS"
},
{
"CollegeName": "Hereward College of Further Education",
"Town": "Coventry",
"Postcode": "CV49SW"
},
{
"CollegeName": "Hertford Regional College",
"Town": "Ware",
"Postcode": "SG129JF"
},
{
"CollegeName": "Highbury College",
"Town": "Portsmouth",
"Postcode": "PO62SA"
},
{
"CollegeName": "Hilderstone College",
"Town": "Broadstairs",
"Postcode": "CT102JW"
},
{
"CollegeName": "Hillcroft College",
"Town": "Surbiton",
"Postcode": "KT66DF"
},
{
"CollegeName": "Hills Road Sixth Form College",
"Town": "Cambridge",
"Postcode": "CB28PE"
},
{
"CollegeName": "Holy Cross College",
"Town": "Bury",
"Postcode": "BL99BB"
},
{
"CollegeName": "Hopwood Hall College",
"Town": "Manchester",
"Postcode": "M246XH"
},
{
"CollegeName": "Huddersfield New College",
"Town": "Huddersfield",
"Postcode": "HD34GL"
},
{
"CollegeName": "Hugh Baird College",
"Town": "Bootle",
"Postcode": "L207EW"
},
{
"CollegeName": "Hull College",
"Town": "Kingston-upon-Hull",
"Postcode": "HU13DG"
},
{
"CollegeName": "Huntingdonshire Regional College",
"Town": "Huntingdon",
"Postcode": "PE291BL"
},
{
"CollegeName": "The Isle of Wight College",
"Town": "Newport",
"Postcode": "PO305TA"
},
{
"CollegeName": "Islington Sixth Form Consortium",
"Town": "London",
"Postcode": "EC2A4SH"
},
{
"CollegeName": "Itchen College",
"Town": "Southampton",
"Postcode": "SO197TB"
},
{
"CollegeName": "<NAME>t Sixth Form College",
"Town": "Scunthorpe",
"Postcode": "DN171DS"
},
{
"CollegeName": "<NAME> College",
"Town": "South Croydon",
"Postcode": "CR28JJ"
},
{
"CollegeName": "Joseph Chamberlain Sixth Form College",
"Town": "Birmingham",
"Postcode": "B129FF"
},
{
"CollegeName": "Kendal College",
"Town": "Kendal",
"Postcode": "LA95AY"
},
{
"CollegeName": "Kensington and Chelsea College",
"Town": "London",
"Postcode": "SW100QS"
},
{
"CollegeName": "Kidderminster College",
"Town": "Kidderminster",
"Postcode": "DY101AB"
},
{
"CollegeName": "King Edward VI College Nuneaton",
"Town": "Nuneaton",
"Postcode": "CV114BE"
},
{
"CollegeName": "King Edward VI College Stourbridge",
"Town": "Stourbridge",
"Postcode": "DY81TD"
},
{
"CollegeName": "King George V College",
"Town": "Southport",
"Postcode": "PR86LR"
},
{
"CollegeName": "Kingston College",
"Town": "Kingston upon Thames",
"Postcode": "KT12AQ"
},
{
"CollegeName": "Kingston Maurward College",
"Town": "Dorchester",
"Postcode": "DT28PY"
},
{
"CollegeName": "Kirklees College",
"Town": "Huddersfield",
"Postcode": "HD13LD"
},
{
"CollegeName": "Knowsley Community College",
"Town": "Liverpool",
"Postcode": "L369TD"
},
{
"CollegeName": "Lakes College - West Cumbria",
"Town": "Workington",
"Postcode": "CA144JN"
},
{
"CollegeName": "Lambeth College",
"Town": "London",
"Postcode": "SW49BL"
},
{
"CollegeName": "Lancaster and Morecambe College",
"Town": "Lancaster",
"Postcode": "LA12TY"
},
{
"CollegeName": "LaSWAP Sixth Form",
"Town": "London",
"Postcode": "NW51RN"
},
{
"CollegeName": "Leeds City College",
"Town": "Leeds",
"Postcode": "LS31AA"
},
{
"CollegeName": "Leeds College of Building",
"Town": "Leeds",
"Postcode": "LS27QT"
},
{
"CollegeName": "Leicester College co Freemen's Park Campus",
"Town": "Leicester",
"Postcode": "LE27LW"
},
{
"CollegeName": "LeSoCo",
"Town": "London",
"Postcode": "SE41UT"
},
{
"CollegeName": "Leyton Sixth Form College",
"Town": "London",
"Postcode": "E106EQ"
},
{
"CollegeName": "Lincoln College",
"Town": "Lincoln",
"Postcode": "LN25HQ"
},
{
"CollegeName": "London South East Colleges",
"Town": "Bromley",
"Postcode": "BR28HE"
},
{
"CollegeName": "Long Road Sixth Form College",
"Town": "Cambridge",
"Postcode": "CB28PX"
},
{
"CollegeName": "Longley Park Sixth Form College",
"Town": "Sheffield",
"Postcode": "S56SG"
},
{
"CollegeName": "Loreto College",
"Town": "Manchester",
"Postcode": "M155PB"
},
{
"CollegeName": "Loughborough College",
"Town": "Loughborough",
"Postcode": "LE113BT"
},
{
"CollegeName": "Lowestoft College",
"Town": "Lowestoft",
"Postcode": "NR322NB"
},
{
"CollegeName": "Lowestoft Sixth Form College",
"Town": "Lowestoft",
"Postcode": "NR322PJ"
},
{
"CollegeName": "Luton Sixth Form College",
"Town": "Luton",
"Postcode": "LU27EW"
},
{
"CollegeName": "Macclesfield College",
"Town": "Macclesfield",
"Postcode": "SK118LF"
},
{
"CollegeName": "The Manchester College",
"Town": "Manchester",
"Postcode": "M112WH"
},
{
"CollegeName": "The Marine Society College of the Sea",
"Town": "London",
"Postcode": "SE17JW"
},
{
"CollegeName": "The Mary Ward Centre (AE Centre)",
"Town": "London",
"Postcode": "WC1N3AQ"
},
{
"CollegeName": "Mid-Cheshire College of Further Education",
"Town": "Northwich",
"Postcode": "CW81LJ"
},
{
"CollegeName": "Middlesbrough College",
"Town": "Middlesbrough",
"Postcode": "TS21AD"
},
{
"CollegeName": "MidKent College",
"Town": "Gillingham",
"Postcode": "ME71FN"
},
{
"CollegeName": "Milton Keynes College",
"Town": "Milton Keynes",
"Postcode": "MK65LP"
},
{
"CollegeName": "The Moorlands Sixth Form College",
"Town": "Stoke-on-Trent",
"Postcode": "ST101LL"
},
{
"CollegeName": "Morley College",
"Town": "London",
"Postcode": "SE17HT"
},
{
"CollegeName": "Moulton College",
"Town": "Northampton",
"Postcode": "NN37RR"
},
{
"CollegeName": "Myerscough College",
"Town": "Preston",
"Postcode": "PR30RY"
},
{
"CollegeName": "NCG",
"Town": "Newcastle-upon-Tyne",
"Postcode": "NE47SA"
},
{
"CollegeName": "Nelson and Colne College",
"Town": "Nelson",
"Postcode": "BB97YT"
},
{
"CollegeName": "New City College",
"Town": "London",
"Postcode": "E140AF"
},
{
"CollegeName": "New College Durham",
"Town": "Durham",
"Postcode": "DH15ES"
},
{
"CollegeName": "New College Nottingham",
"Town": "Nottingham",
"Postcode": "NG11NG"
},
{
"CollegeName": "New College Pontefract",
"Town": "Pontefract",
"Postcode": "WF84QR"
},
{
"CollegeName": "New College Stamford",
"Town": "Stamford",
"Postcode": "PE91XA"
},
{
"CollegeName": "New College Swindon",
"Town": "Swindon",
"Postcode": "SN31AH"
},
{
"CollegeName": "New College Telford",
"Town": "Telford",
"Postcode": "TF11NY"
},
{
"CollegeName": "Newbury College",
"Town": "Newbury",
"Postcode": "RG147TD"
},
{
"CollegeName": "Newcastle and Stafford Colleges Group",
"Town": "Newcastle-under-Lyme",
"Postcode": "ST52GB"
},
{
"CollegeName": "Newcastle College",
"Town": "Newcastle-upon-Tyne",
"Postcode": "NE47SA"
},
{
"CollegeName": "Newcastle Sixth Form College",
"Town": "Newcastle-upon-Tyne",
"Postcode": "NE47SA"
},
{
"CollegeName": "Newham College of Further Education",
"Town": "London",
"Postcode": "E66ER"
},
{
"CollegeName": "Newham Sixth Form College",
"Town": "London",
"Postcode": "E138SG"
},
{
"CollegeName": "North Bristol Post 16 Centre",
"Town": "Bristol",
"Postcode": "BS66BU"
},
{
"CollegeName": "North East Surrey College of Technology",
"Town": "Epsom",
"Postcode": "KT173DS"
},
{
"CollegeName": "North Hertfordshire College",
"Town": "Letchworth",
"Postcode": "SG63PF"
},
{
"CollegeName": "North Hykeham Joint Sixth Form",
"Town": "Lincoln",
"Postcode": "LN69AG"
},
{
"CollegeName": "North Kent College",
"Town": "Dartford",
"Postcode": "DA12JT"
},
{
"CollegeName": "North Lindsey College",
"Town": "Scunthorpe",
"Postcode": "DN171AJ"
},
{
"CollegeName": "North Shropshire College",
"Town": "Oswestry",
"Postcode": "SY114QB"
},
{
"CollegeName": "North Warwickshire and South Leicestershire College",
"Town": "Nuneaton",
"Postcode": "CV116BH"
},
{
"CollegeName": "Northampton College",
"Town": "Northampton",
"Postcode": "NN33RF"
},
{
"CollegeName": "Northbrook College, Sussex",
"Town": "Worthing",
"Postcode": "BN126NU"
},
{
"CollegeName": "Northern College for Residential Adult Education Limited",
"Town": "Barnsley",
"Postcode": "S753ET"
},
{
"CollegeName": "Northumberland College",
"Town": "Ashington",
"Postcode": "NE639RG"
},
{
"CollegeName": "Norwich City College of Further and Higher Education",
"Town": "Norwich",
"Postcode": "NR22LJ"
},
{
"CollegeName": "Notre Dame Catholic Sixth Form College",
"Town": "Leeds",
"Postcode": "LS29BL"
},
{
"CollegeName": "Oaklands College",
"Town": "St Albans",
"Postcode": "AL40JA"
},
{
"CollegeName": "The Oldham College",
"Town": "Oldham",
"Postcode": "OL96AA"
},
{
"CollegeName": "Oldham Sixth Form College",
"Town": "Oldham",
"Postcode": "OL81XU"
},
{
"CollegeName": "Palmer's College",
"Town": "Grays",
"Postcode": "RM175TD"
},
{
"CollegeName": "Paston Sixth Form College",
"Town": "North Walsham",
"Postcode": "NR289JL"
},
{
"CollegeName": "Peter Symonds College",
"Town": "Winchester",
"Postcode": "SO226RX"
},
{
"CollegeName": "Peterborough Regional College",
"Town": "Peterborough",
"Postcode": "PE14DZ"
},
{
"CollegeName": "Petroc",
"Town": "Barnstaple",
"Postcode": "EX312BQ"
},
{
"CollegeName": "PGW Partnership of Greenacre and Walderslade",
"Town": "Chatham",
"Postcode": "ME50LE"
},
{
"CollegeName": "Plumpton College",
"Town": "Lewes",
"Postcode": "BN73AE"
},
{
"CollegeName": "Portsmouth College",
"Town": "Portsmouth",
"Postcode": "PO36PZ"
},
{
"CollegeName": "Preston College",
"Town": "Preston",
"Postcode": "PR28UR"
},
{
"CollegeName": "Priestley College",
"Town": "Warrington",
"Postcode": "WA46RD"
},
{
"CollegeName": "Prior Pursglove and Stockton Sixth Form College",
"Town": "Guisborough",
"Postcode": "TS146BU"
},
{
"CollegeName": "Prospects College of Advanced Technology",
"Town": "Basildon",
"Postcode": "SS143AY"
},
{
"CollegeName": "Queen Elizabeth Sixth Form College",
"Town": "Darlington",
"Postcode": "DL37AU"
},
{
"CollegeName": "Queen Mary's College",
"Town": "Basingstoke",
"Postcode": "RG213HF"
},
{
"CollegeName": "Reaseheath College",
"Town": "Nantwich",
"Postcode": "CW56DF"
},
{
"CollegeName": "Redbridge College",
"Town": "Romford",
"Postcode": "RM64XT"
},
{
"CollegeName": "Redcar & Cleveland College",
"Town": "Redcar",
"Postcode": "TS101EZ"
},
{
"CollegeName": "Regent College",
"Town": "Leicester",
"Postcode": "LE17LW"
},
{
"CollegeName": "Reigate College",
"Town": "Reigate",
"Postcode": "RH20SD"
},
{
"CollegeName": "Richard Huish College",
"Town": "Taunton",
"Postcode": "TA13DZ"
},
{
"CollegeName": "Richard Taunton Sixth Form College",
"Town": "Southampton",
"Postcode": "SO155RL"
},
{
"CollegeName": "Richmond Adult Community College",
"Town": "Richmond",
"Postcode": "TW92RE"
},
{
"CollegeName": "Richmond-upon-Thames College",
"Town": "Twickenham",
"Postcode": "TW27SJ"
},
{
"CollegeName": "Riverside College Halton",
"Town": "Widnes",
"Postcode": "WA87QQ"
},
{
"CollegeName": "RNN Group",
"Town": "Rotherham",
"Postcode": "S651EG"
},
{
"CollegeName": "Rochdale Sixth Form College",
"Town": "Rochdale",
"Postcode": "OL126HY"
},
{
"CollegeName": "RR6",
"Town": "London",
"Postcode": "SW197HB"
},
{
"CollegeName": "Runshaw College",
"Town": "Leyland",
"Postcode": "PR253DQ"
},
{
"CollegeName": "Ruskin College",
"Town": "Oxford",
"Postcode": "OX39BZ"
},
{
"CollegeName": "St Aidans and St John Fisher Associated Sixth Form",
"Town": "",
"Postcode": ""
},
{
"CollegeName": "St Brendan's Sixth Form College",
"Town": "Bristol",
"Postcode": "BS45RQ"
},
{
"CollegeName": "St Charles Catholic Sixth Form College",
"Town": "London",
"Postcode": "W106EY"
},
{
"CollegeName": "St Dominic's Sixth Form College",
"Town": "Harrow-on-the-Hill",
"Postcode": "HA13HX"
},
{
"CollegeName": "St Francis Xavier Sixth Form College",
"Town": "London",
"Postcode": "SW128EN"
},
{
"CollegeName": "St Helens College",
"Town": "St Helens",
"Postcode": "WA101PP"
},
{
"CollegeName": "St <NAME>by RC Sixth Form College",
"Town": "Wigan",
"Postcode": "WN50LJ"
},
{
"CollegeName": "St Mary's College",
"Town": "Blackburn",
"Postcode": "BB18DX"
},
{
"CollegeName": "St Vincent College",
"Town": "Gosport",
"Postcode": "PO124QA"
},
{
"CollegeName": "Salford City College",
"Town": "Salford",
"Postcode": "M503SR"
},
{
"CollegeName": "Sandwell College",
"Town": "West Bromwich",
"Postcode": "B706AW"
},
{
"CollegeName": "Scarborough Sixth Form College",
"Town": "Scarborough",
"Postcode": "YO125LF"
},
{
"CollegeName": "SEEVIC College",
"Town": "Benfleet",
"Postcode": "SS71TW"
},
{
"CollegeName": "Selby College",
"Town": "Selby",
"Postcode": "YO88AT"
},
{
"CollegeName": "The Sheffield College",
"Town": "Sheffield",
"Postcode": "S22RL"
},
{
"CollegeName": "Shipley College",
"Town": "Saltaire",
"Postcode": "BD183JW"
},
{
"CollegeName": "Shrewsbury Colleges Group",
"Town": "Shrewsbury",
"Postcode": "SY11RX"
},
{
"CollegeName": "Sir George Monoux College",
"Town": "London",
"Postcode": "E175AA"
},
{
"CollegeName": "Sir John Deane's College",
"Town": "Northwich",
"Postcode": "CW98AF"
},
{
"CollegeName": "The Sixth Form College Colchester",
"Town": "Colchester",
"Postcode": "CO11SN"
},
{
"CollegeName": "The Sixth Form College Farnborough",
"Town": "Farnborough",
"Postcode": "GU148JX"
},
{
"CollegeName": "The Sixth Form College, Solihull",
"Town": "Solihull",
"Postcode": "B913WR"
},
{
"CollegeName": "Sleaford Joint Sixth Form",
"Town": "Sleaford",
"Postcode": "NG347PS"
},
{
"CollegeName": "Solihull College",
"Town": "Solihull",
"Postcode": "B911SB"
},
{
"CollegeName": "South and City College Birmingham",
"Town": "Birmingham",
"Postcode": "B55SU"
},
{
"CollegeName": "South Cheshire College",
"Town": "Crewe",
"Postcode": "CW28AB"
},
{
"CollegeName": "South Devon College",
"Town": "Paignton",
"Postcode": "TQ47EJ"
},
{
"CollegeName": "The South Downs College",
"Town": "Waterlooville",
"Postcode": "PO78AA"
},
{
"CollegeName": "South Essex College of Further and Higher Education",
"Town": "Southend-on-Sea",
"Postcode": "SS11ND"
},
{
"CollegeName": "South Gloucestershire and Stroud College",
"Town": "Bristol",
"Postcode": "BS347AT"
},
{
"CollegeName": "South Staffordshire College",
"Town": "Cannock",
"Postcode": "WS111UE"
},
{
"CollegeName": "South Thames College",
"Town": "London",
"Postcode": "SW182PP"
},
{
"CollegeName": "South Tyneside College",
"Town": "South Shields",
"Postcode": "NE346ET"
},
{
"CollegeName": "Southampton City College",
"Town": "Southampton",
"Postcode": "SO141AR"
},
{
"CollegeName": "Southern Consortium Sixth Form",
"Town": "Dagenham",
"Postcode": "RM95QT"
},
{
"CollegeName": "Southport College",
"Town": "Southport",
"Postcode": "PR90TT"
},
{
"CollegeName": "Sparsholt College Hampshire",
"Town": "Winchester",
"Postcode": "SO212NF"
},
{
"CollegeName": "Stanmore College",
"Town": "Stanmore",
"Postcode": "HA74BQ"
},
{
"CollegeName": "Stephenson College",
"Town": "Coalville",
"Postcode": "LE673TN"
},
{
"CollegeName": "Stockport College",
"Town": "Stockport",
"Postcode": "SK13UQ"
},
{
"CollegeName": "Stockton Riverside College",
"Town": "Stockton-on-Tees",
"Postcode": "TS176FB"
},
{
"CollegeName": "Stoke-on-Trent College",
"Town": "Stoke-on-Trent",
"Postcode": "ST42DG"
},
{
"CollegeName": "Stratford-upon-Avon College",
"Town": "Stratford-upon-Avon",
"Postcode": "CV379QR"
},
{
"CollegeName": "Strode College",
"Town": "Street",
"Postcode": "BA160AB"
},
{
"CollegeName": "Strode's College",
"Town": "Egham",
"Postcode": "TW209DR"
},
{
"CollegeName": "Suffolk New College",
"Town": "Ipswich",
"Postcode": "IP41LT"
},
{
"CollegeName": "Sussex Coast College Hastings",
"Town": "Hastings",
"Postcode": "TN341BA"
},
{
"CollegeName": "Sussex Downs College",
"Town": "Eastbourne",
"Postcode": "BN212UF"
},
{
"CollegeName": "Swindon College",
"Town": "Swindon",
"Postcode": "SN21DY"
},
{
"CollegeName": "Sydenham and Forest Hill Sixth Form",
"Town": "",
"Postcode": ""
},
{
"CollegeName": "Tameside College",
"Town": "Ashton-under-Lyne",
"Postcode": "OL66NX"
},
{
"CollegeName": "Telford College of Arts and Technology",
"Town": "Telford",
"Postcode": "TF12NP"
},
{
"CollegeName": "Thomas Rotherham College",
"Town": "Rotherham",
"Postcode": "S602BE"
},
{
"CollegeName": "Totton College (Part of Nacro)",
"Town": "Southampton",
"Postcode": "SO403ZX"
},
{
"CollegeName": "Trafford College",
"Town": "Manchester",
"Postcode": "M320XH"
},
{
"CollegeName": "Tresham College of Further and Higher Education",
"Town": "Kettering",
"Postcode": "NN156ER"
},
{
"CollegeName": "Truro and Penwith College",
"Town": "Truro",
"Postcode": "TR13XX"
},
{
"CollegeName": "Tyne Metropolitan College",
"Town": "Wallsend",
"Postcode": "NE289NL"
},
{
"CollegeName": "Uxbridge College",
"Town": "Uxbridge",
"Postcode": "UB81NQ"
},
{
"CollegeName": "Varndean College",
"Town": "Brighton",
"Postcode": "BN16WQ"
},
{
"CollegeName": "Vision West Nottinghamshire College",
"Town": "Mansfield",
"Postcode": "NG185BH"
},
{
"CollegeName": "Wakefield College",
"Town": "Wakefield",
"Postcode": "WF12DH"
},
{
"CollegeName": "Walsall College",
"Town": "Walsall",
"Postcode": "WS28ES"
},
{
"CollegeName": "Waltham Forest College",
"Town": "London",
"Postcode": "E174JB"
},
{
"CollegeName": "<NAME>",
"Town": "Warrington",
"Postcode": "WA28QA"
},
{
"CollegeName": "Warwickshire College Group",
"Town": "Royal Leamington Spa",
"Postcode": "CV325JE"
},
{
"CollegeName": "West Cheshire College",
"Town": "Ellesmere Port",
"Postcode": "CH657BF"
},
{
"CollegeName": "West Herts College",
"Town": "Watford",
"Postcode": "WD173EZ"
},
{
"CollegeName": "West Kent and Ashford College",
"Town": "Tonbridge",
"Postcode": "TN92PW"
},
{
"CollegeName": "West Lancashire College",
"Town": "Skelmersdale",
"Postcode": "WN86DX"
},
{
"CollegeName": "West Suffolk College",
"Town": "Bury St Edmunds",
"Postcode": "IP333RL"
},
{
"CollegeName": "West Thames College",
"Town": "Isleworth",
"Postcode": "TW74HS"
},
{
"CollegeName": "Weston College",
"Town": "Weston-Super-Mare",
"Postcode": "BS232AL"
},
{
"CollegeName": "Weymouth College",
"Town": "Weymouth",
"Postcode": "DT47LQ"
},
{
"CollegeName": "Wigan and Leigh College",
"Town": "Wigan",
"Postcode": "WN11RS"
},
{
"CollegeName": "Wilberforce College",
"Town": "Kingston-upon-Hull",
"Postcode": "HU89HD"
},
{
"CollegeName": "Wiltshire College",
"Town": "Chippenham",
"Postcode": "SN153QD"
},
{
"CollegeName": "Winstanley College",
"Town": "Wigan",
"Postcode": "WN57XF"
},
{
"CollegeName": "Wirral Metropolitan College",
"Town": "Birkenhead",
"Postcode": "CH414NT"
},
{
"CollegeName": "The WKCIC Group",
"Town": "London",
"Postcode": "WC1X8RA"
},
{
"CollegeName": "Woking College",
"Town": "Woking",
"Postcode": "GU229DL"
},
{
"CollegeName": "Woodhouse College",
"Town": "London",
"Postcode": "N129EY"
},
{
"CollegeName": "Worcester Sixth Form College",
"Town": "Worcester",
"Postcode": "WR52LU"
},
{
"CollegeName": "Workers' Educational Association",
"Town": "London",
"Postcode": "EC2A4XW"
},
{
"CollegeName": "The Working Men's College",
"Town": "London",
"Postcode": "NW11TR"
},
{
"CollegeName": "Worthing College",
"Town": "Worthing",
"Postcode": "BN149FD"
},
{
"CollegeName": "Wyggeston and Queen Elizabeth I College",
"Town": "Leicester",
"Postcode": "LE17RJ"
},
{
"CollegeName": "Wyke Sixth Form College",
"Town": "Hull",
"Postcode": "HU54NT"
},
{
"CollegeName": "Xaverian College",
"Town": "Manchester",
"Postcode": "M145RB"
},
{
"CollegeName": "Yeovil College",
"Town": "Yeovil",
"Postcode": "BA214DR"
},
{
"CollegeName": "York College",
"Town": "York",
"Postcode": "YO232BB"
}
]
};<file_sep>package com.wiki.poc.rest.services.mortgage;
import com.wiki.poc.util.StringUtil;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("findAvailableBanks")
public class FindAvailableBanks {
@GET
@Produces(MediaType.APPLICATION_JSON)
public String jsonMsg() {
String retval = null;
//retval = "[{\"name\":\"HSBC\",\"amt\":\"890\"},{\"name\":\"SBI\",\"amt\":\"500\"}]";
retval = "[{\"name\":\"HSBC\",\"amt\":\""
+ StringUtil.getTestMsg(999999)
+ "\"},{\"name\":\"LBG\",\"amt\":\""
+ StringUtil.getTestMsg(999999)
+ "\"}]";
System.out.println("JSON Message >> " + retval);
return retval;
}
}
<file_sep>package com.wiki.poc;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.HttpClients;
import org.apache.log4j.Logger;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URLEncoder;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
/**
* Created by vjain143 on 2/4/17.
*/
public class SSBOT
{
private static String botURL = "https://api.telegram.org/bot306134193:AAFMnaVbj7jVWa6liZ2rG9LP-mMrZI99oX8";
private static final Logger log = Logger.getLogger(SSBOT.class);
private static int oldCount = 50;
private static int newCount = 0;
private HttpClient client;
private HttpGet request;
private HttpResponse response;
public static void main(String args[])
{
SSBOT ssbot = new SSBOT();
ssbot.startBot();
}
public void startBot()
{
client = HttpClients.createDefault();
request = new HttpGet(botURL+"/getUpdates");
try {
response = client.execute(request);
log.debug("SSBOT :: Response Code :: " + response.getStatusLine().getStatusCode());
BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
StringBuffer result = new StringBuffer();
String line = "";
while ((line = rd.readLine()) != null)
{
result.append(line);
}
System.out.println("Result :: "+result.toString());
JSONParser parser = new JSONParser();
Object obj = parser.parse(result.toString());
JSONObject data = (JSONObject) obj;
JSONArray resultArray = (JSONArray) data.get("result");
resultArray.size();
newCount = resultArray.size();
log.info(oldCount + "::" + newCount);
if (oldCount < newCount)
{
for (int i = oldCount; i < newCount; i++)
{
JSONObject message = (JSONObject) resultArray.get(i);
JSONObject msg = (JSONObject) message.get("message");
JSONObject chat = (JSONObject) msg.get("chat");
log.info(message.toString());
String id = chat.get("id").toString();
String name = (String) chat.get("username");
String text = (String) msg.get("text");
log.info("Reply to -->" + text);
if (name == null || "".equals(name))
{
name = (String) chat.get("first_name");
}
//Thread.sleep(1000);
//log.info(name);
execute(id, name, text.toLowerCase());
}
}
oldCount = newCount;
Thread.sleep(2000);
startBot();
}
catch (Exception e)
{
e.printStackTrace();
}
}
public void execute(String id, String name, String text) throws IOException
{
String res = reply(text);
String url = botURL+"/sendMessage?chat_id="+ id + "&text="+URLEncoder.encode(res, "UTF-8");
HttpClient clientReply = HttpClients.createDefault();
HttpGet httpGetReply = new HttpGet(url);
HttpResponse httpResponseReply = clientReply.execute(httpGetReply);
log.info("Sending message " + res + " >>>>Response Code : " + httpResponseReply.getStatusLine().getStatusCode());
}
public String reply(String input)
{
String retval = " Please try asking some questions ..";
try
{
input = input.trim();
if (input.equalsIgnoreCase("hello") || input.equalsIgnoreCase("hi"))
{
retval = "Hello User";
}
else if (input.equalsIgnoreCase("I'm tired all the time"))
{
retval = "That must be very difficult for you";
}
else if (input.equalsIgnoreCase("I hate my life"))
{
retval = "Believe in yourself! Have faith in your abilities!";
}
else if (input.equalsIgnoreCase("I always feel so alone"))
{
retval = "Adopt A Cute Pet";
}
else if (input.equalsIgnoreCase("Sick of just being hurt"))
{
retval = "Yes, I understand why things had to happen this way. I understand his reason for causing me pain. But mere understanding does not chase away the hurt. It does not call upon the sun when dark clouds have loomed over me. Let the rain come then if it must come! And let it wash away the dust that hurt my eyes!";
}
else if (input.equalsIgnoreCase("I can't let anyone know"))
{
retval = "It's OK to think about what I need";
}
else if (input.equalsIgnoreCase("Feeling Sad"))
{
retval = "Everyone gets sad at times, but you can feel better";
}
else if (input.equalsIgnoreCase("Feeling Happy"))
{
retval = "Share Your Happiness with others";
}
else if (input.equalsIgnoreCase("Feeling lonely"))
{
retval = "Adopt A Cute Pet";
}
else if(input.equalsIgnoreCase("i have many problems"))
{
retval = "Problems are not stop signs, they are guidelines.";
}
else
{
retval = "❤";
}
}
catch (Exception e)
{
retval = " Error ..";
e.printStackTrace();
}
return retval;
}
}<file_sep>package com.wiki.poc.rest.services.account;
import com.wiki.poc.util.StringUtil;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("debit")
public class DebitService {
@GET
@Produces(MediaType.TEXT_PLAIN)
public String getBalance() {
String retVal = "";
int r = StringUtil.getTestMsg(2000);
System.out.println(DebitService.class + ": DebitService instruction executed : =>" + r);
retVal = "Your Bank account is debited with £8000 and available balance is £" + r;
return retVal;
}
}
<file_sep>var universitydata = {"university":
[
{
"UniversityName": "University of West London",
"Town": "London",
"Postcode": "W55RF"
},
{
"UniversityName": "University of Westminster",
"Town": "London",
"Postcode": "W1B2UW"
},
{
"UniversityName": "University of Winchester",
"Town": "Winchester",
"Postcode": "SO224NR"
},
{
"UniversityName": "University of Wolverhampton",
"Town": "Wolverhampton",
"Postcode": "WV11LY"
},
{
"UniversityName": "University of Worcester",
"Town": "Worcester",
"Postcode": "WR26AJ"
},
{
"UniversityName": "University of York",
"Town": "York",
"Postcode": "YO105DD"
},
{
"UniversityName": "Writtle University College",
"Town": "Chelmsford",
"Postcode": "CM13RR"
},
{
"UniversityName": "York St John University",
"Town": "York",
"Postcode": "YO317EX"
},
{
"UniversityName": "University of Kent",
"Town": "Canterbury",
"Postcode": "CT27NZ"
},
{
"UniversityName": "University of Lancaster",
"Town": "Lancaster",
"Postcode": "LA14YW"
},
{
"UniversityName": "University of Leeds",
"Town": "Leeds",
"Postcode": "LS29JT"
},
{
"UniversityName": "University of Leicester",
"Town": "Leicester",
"Postcode": "LE17RH"
},
{
"UniversityName": "University of Lincoln",
"Town": "Lincoln",
"Postcode": "LN67TS"
},
{
"UniversityName": "University of Liverpool",
"Town": "Liverpool",
"Postcode": "L697ZX"
},
{
"UniversityName": "University of London",
"Town": "London",
"Postcode": "WC1E7HU"
},
{
"UniversityName": "University of Manchester",
"Town": "Manchester",
"Postcode": "M139PL"
},
{
"UniversityName": "University of Newcastle Upon Tyne",
"Town": "Newcastle-upon-Tyne",
"Postcode": "NE17RU"
},
{
"UniversityName": "University of Northampton",
"Town": "Northampton",
"Postcode": "NN27AL"
},
{
"UniversityName": "University of Northumbria At Newcastle",
"Town": "Newcastle-upon-Tyne",
"Postcode": "NE18ST"
},
{
"UniversityName": "University of Nottingham",
"Town": "Nottingham",
"Postcode": "NG72RD"
},
{
"UniversityName": "University of Oxford",
"Town": "Oxford",
"Postcode": "OX12JD"
},
{
"UniversityName": "University of Plymouth",
"Town": "Plymouth",
"Postcode": "PL48AA"
},
{
"UniversityName": "University of Portsmouth",
"Town": "Portsmouth",
"Postcode": "PO12UP"
},
{
"UniversityName": "University of Reading",
"Town": "Reading",
"Postcode": "RG66UR"
},
{
"UniversityName": "University of Salford",
"Town": "Salford",
"Postcode": "M54WT"
},
{
"UniversityName": "University of Sheffield",
"Town": "Sheffield",
"Postcode": "S102TN"
},
{
"UniversityName": "University of Southampton",
"Town": "Southampton",
"Postcode": "SO171BJ"
},
{
"UniversityName": "University of Sunderland",
"Town": "Sunderland",
"Postcode": "SR13SD"
},
{
"UniversityName": "University of Surrey",
"Town": "Guildford",
"Postcode": "GU27XH"
},
{
"UniversityName": "University of Sussex",
"Town": "Brighton",
"Postcode": "BN19RH"
},
{
"UniversityName": "University of the Arts London",
"Town": "London",
"Postcode": "WC1V7EY"
},
{
"UniversityName": "University of the West of England, Bristol",
"Town": "Bristol",
"Postcode": "BS161QY"
},
{
"UniversityName": "University of Warwick",
"Town": "Coventry",
"Postcode": "CV48UW"
},
{
"UniversityName": "University of Bath",
"Town": "Bath",
"Postcode": "BA27AY"
},
{
"UniversityName": "University of Bedfordshire",
"Town": "Luton",
"Postcode": "LU13JU"
},
{
"UniversityName": "University of Birmingham",
"Town": "Birmingham",
"Postcode": "B152TT"
},
{
"UniversityName": "University of Bolton",
"Town": "Bolton",
"Postcode": "BL35AB"
},
{
"UniversityName": "University of Bradford",
"Town": "Bradford",
"Postcode": "BD71DP"
},
{
"UniversityName": "University of Brighton",
"Town": "Brighton",
"Postcode": "BN24AT"
},
{
"UniversityName": "University of Bristol",
"Town": "Bristol",
"Postcode": "BS81TH"
},
{
"UniversityName": "University of Buckingham",
"Town": "Buckingham",
"Postcode": "MK181EG"
},
{
"UniversityName": "University of Cambridge",
"Town": "Cambridge",
"Postcode": "CB21TN"
},
{
"UniversityName": "University of Central Lancashire",
"Town": "Preston",
"Postcode": "PR12HE"
},
{
"UniversityName": "University of Chester",
"Town": "Chester",
"Postcode": "CH14BJ"
},
{
"UniversityName": "University of Chichester",
"Town": "Chichester",
"Postcode": "PO196PE"
},
{
"UniversityName": "University of Cumbria",
"Town": "Carlisle",
"Postcode": "CA38TB"
},
{
"UniversityName": "University of Derby",
"Town": "Derby",
"Postcode": "DE221GB"
},
{
"UniversityName": "University of Durham",
"Town": "Durham",
"Postcode": "DH13HP"
},
{
"UniversityName": "University of East Anglia",
"Town": "Norwich",
"Postcode": "NR47TJ"
},
{
"UniversityName": "University of East London",
"Town": "London",
"Postcode": "E162RD"
},
{
"UniversityName": "University of Essex",
"Town": "Colchester",
"Postcode": "CO43SQ"
},
{
"UniversityName": "University of Exeter",
"Town": "Exeter",
"Postcode": "EX44QJ"
},
{
"UniversityName": "University of Gloucestershire",
"Town": "Cheltenham",
"Postcode": "GL502RH"
},
{
"UniversityName": "University of Greenwich",
"Town": "London",
"Postcode": "SE109LS"
},
{
"UniversityName": "University of Hertfordshire",
"Town": "Hatfield",
"Postcode": "AL109AB"
},
{
"UniversityName": "University of Huddersfield",
"Town": "Huddersfield",
"Postcode": "HD13DH"
},
{
"UniversityName": "University of Hull",
"Town": "Kingston-upon-Hull",
"Postcode": "HU67RX"
},
{
"UniversityName": "University of Keele",
"Town": "Keele",
"Postcode": "ST55BG"
},
{
"UniversityName": "Oxford Brookes University",
"Town": "Oxford",
"Postcode": "OX30BP"
},
{
"UniversityName": "Plymouth College of Art",
"Town": "Plymouth",
"Postcode": "PL48AT"
},
{
"UniversityName": "<NAME> and Westfield College",
"Town": "London",
"Postcode": "E14NS"
},
{
"UniversityName": "Ravensbourne",
"Town": "London",
"Postcode": "SE100EW"
},
{
"UniversityName": "Roehampton University",
"Town": "London",
"Postcode": "SW155PJ"
},
{
"UniversityName": "<NAME> College",
"Town": "Sidcup",
"Postcode": "DA159DF"
},
{
"UniversityName": "Royal Academy of Music",
"Town": "London",
"Postcode": "NW15HT"
},
{
"UniversityName": "Royal Agricultural University",
"Town": "Cirencester",
"Postcode": "GL76JS"
},
{
"UniversityName": "Royal College of Art",
"Town": "London",
"Postcode": "SW72EU"
},
{
"UniversityName": "Royal College of Music",
"Town": "London",
"Postcode": "SW72BS"
},
{
"UniversityName": "The Royal College of Nursing",
"Town": "London",
"Postcode": "W1G0RN"
},
{
"UniversityName": "Royal Holloway and Bedford New College",
"Town": "Egham",
"Postcode": "TW200EX"
},
{
"UniversityName": "Royal Northern College of Music",
"Town": "Manchester",
"Postcode": "M139RD"
},
{
"UniversityName": "The Royal Veterinary College",
"Town": "London",
"Postcode": "NW10TU"
},
{
"UniversityName": "St George's Hospital Medical School",
"Town": "London",
"Postcode": "SW170RE"
},
{
"UniversityName": "St Mary's University, Twickenham",
"Town": "Twickenham",
"Postcode": "TW14SX"
},
{
"UniversityName": "School of Oriental and African Studies",
"Town": "London",
"Postcode": "WC1H0XG"
},
{
"UniversityName": "Sheffield Hallam University",
"Town": "Sheffield",
"Postcode": "S11WB"
},
{
"UniversityName": "Southampton Solent University",
"Town": "Southampton",
"Postcode": "SO140YN"
},
{
"UniversityName": "Staffordshire University",
"Town": "Stafford",
"Postcode": "ST180AD"
},
{
"UniversityName": "Teesside University",
"Town": "Middlesbrough",
"Postcode": "TS13BA"
},
{
"UniversityName": "Trinity Laban",
"Town": "Deptford",
"Postcode": "SE83DZ"
},
{
"UniversityName": "University College Birmingham",
"Town": "Birmingham",
"Postcode": "B31JB"
},
{
"UniversityName": "University College for the Creative Arts",
"Town": "Farnham",
"Postcode": "GU97DS"
},
{
"UniversityName": "University College London",
"Town": "London",
"Postcode": "WC1E6BT"
},
{
"UniversityName": "Imperial College of Science, Technology and Medicine",
"Town": "London",
"Postcode": "SW72AZ"
},
{
"UniversityName": "Institute of Cancer Research",
"Town": "London",
"Postcode": "SW36JB"
},
{
"UniversityName": "Institute of Education",
"Town": "London",
"Postcode": "WC1H0AL"
},
{
"UniversityName": "King's College London",
"Town": "London",
"Postcode": "SE18WA"
},
{
"UniversityName": "Kingston University",
"Town": "Kingston upon Thames",
"Postcode": "KT11LQ"
},
{
"UniversityName": "Leeds Beckett University",
"Town": "Leeds",
"Postcode": "LS63QS"
},
{
"UniversityName": "Leeds College of Art",
"Town": "Leeds",
"Postcode": "LS29AQ"
},
{
"UniversityName": "Leeds College of Music",
"Town": "Leeds",
"Postcode": "LS27PD"
},
{
"UniversityName": "Leeds Trinity University",
"Town": "Leeds",
"Postcode": "LS185HD"
},
{
"UniversityName": "Liverpool Hope University",
"Town": "Liverpool",
"Postcode": "L169JD"
},
{
"UniversityName": "Liverpool Institute of Performing Arts",
"Town": "Liverpool",
"Postcode": "L19HF"
},
{
"UniversityName": "Liverpool John Moores University",
"Town": "Liverpool",
"Postcode": "L35UX"
},
{
"UniversityName": "London Business School",
"Town": "London",
"Postcode": "NW14SA"
},
{
"UniversityName": "London Metropolitan University",
"Town": "London",
"Postcode": "N78DB"
},
{
"UniversityName": "London School of Economics and Political Science",
"Town": "London",
"Postcode": "WC2A2AE"
},
{
"UniversityName": "London School of Hygiene & Tropical Medicine",
"Town": "London",
"Postcode": "WC1E7HT"
},
{
"UniversityName": "London South Bank University",
"Town": "London",
"Postcode": "SE10AA"
},
{
"UniversityName": "Loughborough University",
"Town": "Loughborough",
"Postcode": "LE113TU"
},
{
"UniversityName": "The Manchester Metropolitan University",
"Town": "Manchester",
"Postcode": "M156BH"
},
{
"UniversityName": "Middlesex University",
"Town": "London",
"Postcode": "N144YZ"
},
{
"UniversityName": "Newman University College",
"Town": "Birmingham",
"Postcode": "B323NT"
},
{
"UniversityName": "Northern School of Contemporary Dance",
"Town": "Leeds",
"Postcode": "LS74BH"
},
{
"UniversityName": "Norwich University of the Arts",
"Town": "Norwich",
"Postcode": "NR24SN"
},
{
"UniversityName": "The Nottingham Trent University",
"Town": "Nottingham",
"Postcode": "NG14BU"
},
{
"UniversityName": "The Open University",
"Town": "Milton Keynes",
"Postcode": "MK76AA"
},
{
"UniversityName": "Anglia Ruskin University",
"Town": "Chelmsford",
"Postcode": "CM11SQ"
},
{
"UniversityName": "The Arts University College At Bournemouth",
"Town": "Poole",
"Postcode": "BH125HH"
},
{
"UniversityName": "Aston University",
"Town": "Birmingham",
"Postcode": "B47ET"
},
{
"UniversityName": "Bath Spa University",
"Town": "Bath",
"Postcode": "BA29BN"
},
{
"UniversityName": "Birkbeck College",
"Town": "London",
"Postcode": "WC1E7HX"
},
{
"UniversityName": "Birmingham City University",
"Town": "Birmingham",
"Postcode": "B422SU"
},
{
"UniversityName": "Bishop Grosseteste University College Lincoln",
"Town": "Lincoln",
"Postcode": "LN13DY"
},
{
"UniversityName": "Bournemouth University",
"Town": "Poole",
"Postcode": "BH125BB"
},
{
"UniversityName": "Brunel University",
"Town": "Uxbridge",
"Postcode": "UB83PH"
},
{
"UniversityName": "Buckinghamshire New University",
"Town": "High Wycombe",
"Postcode": "HP112JZ"
},
{
"UniversityName": "Canterbury Christ Church University",
"Town": "Canterbury",
"Postcode": "CT11QU"
},
{
"UniversityName": "Central School of Speech and Drama",
"Town": "London",
"Postcode": "NW33HY"
},
{
"UniversityName": "City University",
"Town": "London",
"Postcode": "EC1V0HB"
},
{
"UniversityName": "College of St Mark & St John",
"Town": "Plymouth",
"Postcode": "PL68BH"
},
{
"UniversityName": "Conservatoire for Dance and Drama",
"Town": "London",
"Postcode": "WC1H0JJ"
},
{
"UniversityName": "Courtauld Institute of Art",
"Town": "London",
"Postcode": "WC2R0RN"
},
{
"UniversityName": "Coventry University",
"Town": "Coventry",
"Postcode": "CV15FB"
},
{
"UniversityName": "Cranfield University",
"Town": "Cranfield",
"Postcode": "MK430AL"
},
{
"UniversityName": "De Montfort University",
"Town": "Leicester",
"Postcode": "LE19BH"
},
{
"UniversityName": "Edge Hill University",
"Town": "Ormskirk",
"Postcode": "L394QP"
},
{
"UniversityName": "Falmouth University",
"Town": "Falmouth",
"Postcode": "TR114RH"
},
{
"UniversityName": "Goldsmiths College, University of London",
"Town": "London",
"Postcode": "SE146NW"
},
{
"UniversityName": "Guildhall School of Music and Drama",
"Town": "London",
"Postcode": "EC2Y8DT"
},
{
"UniversityName": "Harper Adams University",
"Town": "Newport",
"Postcode": "TF108NB"
},
{
"UniversityName": "Heythrop College",
"Town": "London",
"Postcode": "W85HQ"
}
]
};<file_sep># Human Library
https://ebenezerodubanjoeo.wixsite.com/mysite
<file_sep>var schooldata = {"schools":
[
{
"SchoolName": "<NAME>'s Foundation Primary School",
"Postcode": "EC3A5DE"
},
{
"SchoolName": "City of London School for Girls",
"Postcode": "EC2Y8BB"
},
{
"SchoolName": "St Paul's Cathedral School",
"Postcode": "EC4M9AD"
},
{
"SchoolName": "City of London School",
"Postcode": "EC4V3AL"
},
{
"SchoolName": "<NAME>am Centre",
"Postcode": "WC1N2NY"
},
{
"SchoolName": "CCfL Key Stage 4 PRU",
"Postcode": "NW32NY"
},
{
"SchoolName": "Camden Primary Pupil Referral Unit",
"Postcode": "NW13EX"
},
{
"SchoolName": "Argyle Primary School",
"Postcode": "WC1H9EG"
},
{
"SchoolName": "Beckford Primary School",
"Postcode": "NW61QL"
},
{
"SchoolName": "Brecknock Primary School",
"Postcode": "NW19AL"
},
{
"SchoolName": "Brookfield Primary School",
"Postcode": "N195DH"
},
{
"SchoolName": "Carlton Primary School",
"Postcode": "NW54AX"
},
{
"SchoolName": "Edith Neville Primary School",
"Postcode": "NW11DN"
},
{
"SchoolName": "Fleet Primary School",
"Postcode": "NW32QT"
},
{
"SchoolName": "Hawley Primary School",
"Postcode": "NW18NJ"
},
{
"SchoolName": "Netley Primary School & Centre for Autism",
"Postcode": "NW13EX"
},
{
"SchoolName": "New End Primary School",
"Postcode": "NW31HU"
},
{
"SchoolName": "Primrose Hill School",
"Postcode": "NW18JL"
},
{
"SchoolName": "Rhyl Primary School",
"Postcode": "NW53HB"
},
{
"SchoolName": "Richard Cobden Primary School",
"Postcode": "NW10LL"
},
{
"SchoolName": "Torriano Primary School",
"Postcode": "NW52SJ"
},
{
"SchoolName": "Gospel Oak Primary School",
"Postcode": "NW32JB"
},
{
"SchoolName": "Fitzjohn's Primary School",
"Postcode": "NW36NP"
},
{
"SchoolName": "Eleanor Palmer Primary School",
"Postcode": "NW52JA"
},
{
"SchoolName": "Christ Church Primary School, Hampstead",
"Postcode": "NW31JH"
},
{
"SchoolName": "Christ Church School",
"Postcode": "NW14BD"
},
{
"SchoolName": "Emmanuel Church of England Primary School",
"Postcode": "NW61TF"
},
{
"SchoolName": "Hampstead Parochial Church of England Primary School",
"Postcode": "NW36TX"
},
{
"SchoolName": "Holy Trinity CofE Primary School, NW3",
"Postcode": "NW35SQ"
},
{
"SchoolName": "Holy Trinity and Saint Silas CofE Primary School, NW1",
"Postcode": "NW18DE"
},
{
"SchoolName": "Kentish Town Church of England Primary School",
"Postcode": "NW52TU"
},
{
"SchoolName": "Rosary Roman Catholic Primary School",
"Postcode": "NW32AE"
},
{
"SchoolName": "St Alban's Church of England Primary School",
"Postcode": "EC1N7SD"
},
{
"SchoolName": "St Aloysius Catholic Primary School",
"Postcode": "NW11PS"
},
{
"SchoolName": "St Dominic's Catholic Primary School",
"Postcode": "NW54JS"
},
{
"SchoolName": "St George the Martyr Church of England Primary School",
"Postcode": "WC1N2NX"
},
{
"SchoolName": "St Josephs Primary School",
"Postcode": "WC2B5NA"
},
{
"SchoolName": "St Mary's Kilburn Church of England Primary School",
"Postcode": "NW64PG"
},
{
"SchoolName": "St Mary and St Pancras Church of England Primary School",
"Postcode": "NW11QP"
},
{
"SchoolName": "St Michael's Church of England Primary School",
"Postcode": "NW10JA"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "NW53AH"
},
{
"SchoolName": "St Paul's Church of England Primary School",
"Postcode": "NW33DS"
},
{
"SchoolName": "St Eugene de Mazenod Roman Catholic Primary School",
"Postcode": "NW64LS"
},
{
"SchoolName": "Our Lady Roman Catholic Primary School",
"Postcode": "NW10DP"
},
{
"SchoolName": "Haverstock School",
"Postcode": "NW32BQ"
},
{
"SchoolName": "Parliament Hill School",
"Postcode": "NW51RL"
},
{
"SchoolName": "Regent High School",
"Postcode": "NW11RX"
},
{
"SchoolName": "Hampstead School",
"Postcode": "NW23RT"
},
{
"SchoolName": "Acland Burghley School",
"Postcode": "NW51UJ"
},
{
"SchoolName": "The Camden School for Girls",
"Postcode": "NW52DB"
},
{
"SchoolName": "<NAME>lis Roman Catholic Convent School FCJ",
"Postcode": "NW11TA"
},
{
"SchoolName": "William Ellis School",
"Postcode": "NW51RN"
},
{
"SchoolName": "La Sainte Union Catholic Secondary School",
"Postcode": "NW51RP"
},
{
"SchoolName": "Children's Hospital School at Gt Ormond Street and UCH",
"Postcode": "WC1N3JH"
},
{
"SchoolName": "St Christopher's School",
"Postcode": "NW35AE"
},
{
"SchoolName": "St Margaret's School",
"Postcode": "NW37SR"
},
{
"SchoolName": "Sarum Hall School",
"Postcode": "NW33EL"
},
{
"SchoolName": "The Hall School",
"Postcode": "NW34NU"
},
{
"SchoolName": "University College School",
"Postcode": "NW36XH"
},
{
"SchoolName": "The Cavendish School",
"Postcode": "NW17HB"
},
{
"SchoolName": "St Mary's School",
"Postcode": "NW36PG"
},
{
"SchoolName": "North Bridge House Pre-Prep School",
"Postcode": "NW35RR"
},
{
"SchoolName": "Hereward House School",
"Postcode": "NW34NY"
},
{
"SchoolName": "St Anthony's Preparatory School",
"Postcode": "NW36NP"
},
{
"SchoolName": "North Bridge Nursery School",
"Postcode": "NW35JY"
},
{
"SchoolName": "Lyndhurst House Preparatory School",
"Postcode": "NW35NW"
},
{
"SchoolName": "Hampstead Hill School",
"Postcode": "NW32PP"
},
{
"SchoolName": "North Bridge House Senior School",
"Postcode": "NW35UD"
},
{
"SchoolName": "Trevor-Roberts School",
"Postcode": "NW33ET"
},
{
"SchoolName": "South Hampstead High School",
"Postcode": "NW35SS"
},
{
"SchoolName": "The Village School",
"Postcode": "NW32YN"
},
{
"SchoolName": "Heathside Preparatory School",
"Postcode": "NW31JA"
},
{
"SchoolName": "Devonshire House Preparatory School",
"Postcode": "NW36AE"
},
{
"SchoolName": "Broadhurst School",
"Postcode": "NW63LP"
},
{
"SchoolName": "College Francais Bilingue De Londres",
"Postcode": "NW53AX"
},
{
"SchoolName": "Fine Arts College",
"Postcode": "NW34YD"
},
{
"SchoolName": "Rainbow Montessori School",
"Postcode": "NW63PL"
},
{
"SchoolName": "The Mulberry House School",
"Postcode": "NW23XL"
},
{
"SchoolName": "UCS Pre-Prep",
"Postcode": "NW35LF"
},
{
"SchoolName": "Southbank International School",
"Postcode": "NW35TH"
},
{
"SchoolName": "Frank Barnes School for Deaf Children",
"Postcode": "N1C4BT"
},
{
"SchoolName": "Camden Centre for Learning (CCfL) Special School",
"Postcode": "NW18DP"
},
{
"SchoolName": "Royal Free Hospital Children's School",
"Postcode": "NW32QG"
},
{
"SchoolName": "Swiss Cottage School - Development & Research Centre",
"Postcode": "NW86HX"
},
{
"SchoolName": "Rachel McMillan Nursery School and Children's Centre",
"Postcode": "SE83EH"
},
{
"SchoolName": "Pound Park Nursery School",
"Postcode": "SE78AF"
},
{
"SchoolName": "Abbey Wood Nursery School",
"Postcode": "SE20SX"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "SE100EA"
},
{
"SchoolName": "Newhaven Pupil Referral Unit",
"Postcode": "SE96HR"
},
{
"SchoolName": "Bannockburn Primary School",
"Postcode": "SE181HE"
},
{
"SchoolName": "Morden Mount Primary School",
"Postcode": "SE137QP"
},
{
"SchoolName": "Cherry Orchard Primary School",
"Postcode": "SE77DG"
},
{
"SchoolName": "Ealdham Primary School",
"Postcode": "SE96BP"
},
{
"SchoolName": "Fossdene Primary School",
"Postcode": "SE77NQ"
},
{
"SchoolName": "Gallions Mount Primary School",
"Postcode": "SE181JR"
},
{
"SchoolName": "Gordon Primary School",
"Postcode": "SE91QG"
},
{
"SchoolName": "Greenacres Primary School and Language Impairment Unit",
"Postcode": "SE93JN"
},
{
"SchoolName": "Haimo Primary School",
"Postcode": "SE96DY"
},
{
"SchoolName": "Henwick Primary School",
"Postcode": "SE96NZ"
},
{
"SchoolName": "Invicta Primary School",
"Postcode": "SE37HE"
},
{
"SchoolName": "Kidbrooke Park Primary School",
"Postcode": "SE38HS"
},
{
"SchoolName": "Meridian Primary School",
"Postcode": "SE109NY"
},
{
"SchoolName": "Plumcroft Primary School",
"Postcode": "SE183HW"
},
{
"SchoolName": "Sherington Primary School",
"Postcode": "SE77JP"
},
{
"SchoolName": "Thorntree Primary School",
"Postcode": "SE78AE"
},
{
"SchoolName": "Wyborne Primary School",
"Postcode": "SE92EH"
},
{
"SchoolName": "Montbelle Primary School",
"Postcode": "SE93EY"
},
{
"SchoolName": "Boxgrove Primary School",
"Postcode": "SE29JP"
},
{
"SchoolName": "De Lucy Primary School",
"Postcode": "SE29PD"
},
{
"SchoolName": "Wingfield Primary School",
"Postcode": "SE39XU"
},
{
"SchoolName": "Cardwell Primary School",
"Postcode": "SE185LP"
},
{
"SchoolName": "Heronsgate Primary School",
"Postcode": "SE280EA"
},
{
"SchoolName": "Linton Mead Primary School",
"Postcode": "SE288DT"
},
{
"SchoolName": "Nightingale Primary School",
"Postcode": "SE187JJ"
},
{
"SchoolName": "Greenslade Primary School",
"Postcode": "SE182QQ"
},
{
"SchoolName": "Mulgrave Primary School",
"Postcode": "SE185DL"
},
{
"SchoolName": "Charlton Manor Primary School",
"Postcode": "SE77EF"
},
{
"SchoolName": "Christ Church Church of England Primary School",
"Postcode": "SE100DZ"
},
{
"SchoolName": "Christ Church Church of England Primary School, Shooters Hill",
"Postcode": "SE183RS"
},
{
"SchoolName": "Eltham Church of England Primary School",
"Postcode": "SE91TR"
},
{
"SchoolName": "Our Lady of Grace Catholic Primary School",
"Postcode": "SE77HR"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "SE109AN"
},
{
"SchoolName": "St Margaret's Church of England Primary School",
"Postcode": "SE187RL"
},
{
"SchoolName": "Saint Mary Magdalene Church of England All Through School",
"Postcode": ""
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "SE187QG"
},
{
"SchoolName": "St Alfege with St Peter's Church of England Primary School",
"Postcode": "SE109RB"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "SE187BN"
},
{
"SchoolName": "St Thomas More Catholic Primary School",
"Postcode": "SE96NS"
},
{
"SchoolName": "St Thomas A Becket Roman Catholic Primary School",
"Postcode": "SE29LY"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "SE39YX"
},
{
"SchoolName": "Notre Dame Catholic Primary School",
"Postcode": "SE183SJ"
},
{
"SchoolName": "St Margaret Clitherow Catholic Primary School",
"Postcode": "SE288GB"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "SE288LW"
},
{
"SchoolName": "Eltham Hill School",
"Postcode": "SE95EE"
},
{
"SchoolName": "Plumstead Manor School",
"Postcode": "SE181QF"
},
{
"SchoolName": "Thomas Tallis School",
"Postcode": "SE39PX"
},
{
"SchoolName": "The John Roan School",
"Postcode": "SE37QR"
},
{
"SchoolName": "St Ursula's Convent School",
"Postcode": "SE108HN"
},
{
"SchoolName": "Hawksmoor School",
"Postcode": "SE288AS"
},
{
"SchoolName": "The Pointer School",
"Postcode": "SE37TH"
},
{
"SchoolName": "Blackheath Preparatory School",
"Postcode": "SE30NJ"
},
{
"SchoolName": "Riverston School",
"Postcode": "SE128UF"
},
{
"SchoolName": "St Olave's Prep School",
"Postcode": "SE93QS"
},
{
"SchoolName": "Colfe's School",
"Postcode": "SE128AW"
},
{
"SchoolName": "Heath House Preparatory School",
"Postcode": "SE30TG"
},
{
"SchoolName": "Moatbridge School",
"Postcode": "SE95LX"
},
{
"SchoolName": "Wentworth Nursery School and Children's Centre",
"Postcode": "E95BY"
},
{
"SchoolName": "Comet Nursery School and Children's Centre",
"Postcode": "N15RF"
},
{
"SchoolName": "Berger Primary School",
"Postcode": "E96HB"
},
{
"SchoolName": "Colvestone Primary School",
"Postcode": "E82LG"
},
{
"SchoolName": "Daubeney Primary School",
"Postcode": "E50EG"
},
{
"SchoolName": "De Beauvoir Primary School",
"Postcode": "N14BZ"
},
{
"SchoolName": "Gainsborough Primary School",
"Postcode": "E95ND"
},
{
"SchoolName": "Lauriston School",
"Postcode": "E97JS"
},
{
"SchoolName": "London Fields Primary School",
"Postcode": "E83RL"
},
{
"SchoolName": "Millfields Community School",
"Postcode": "E50SH"
},
{
"SchoolName": "Morningside Primary School",
"Postcode": "E96LL"
},
{
"SchoolName": "Orchard Primary School",
"Postcode": "E97BB"
},
{
"SchoolName": "Queensbridge Primary School",
"Postcode": "E84ET"
},
{
"SchoolName": "Randal Cremer Primary School",
"Postcode": "E28JG"
},
{
"SchoolName": "Princess May Primary School",
"Postcode": "N168DF"
},
{
"SchoolName": "Sebright School",
"Postcode": "E28QH"
},
{
"SchoolName": "Shacklewell Primary School",
"Postcode": "E82EA"
},
{
"SchoolName": "Southwold Primary School",
"Postcode": "E59NL"
},
{
"SchoolName": "<NAME>child Community School",
"Postcode": "N17HA"
},
{
"SchoolName": "Tyssen Community Primary School",
"Postcode": "N166QA"
},
{
"SchoolName": "Shoreditch Park Primary School",
"Postcode": "N15JN"
},
{
"SchoolName": "Woodberry Down Community Primary School",
"Postcode": "N41SY"
},
{
"SchoolName": "Kingsmead Primary School",
"Postcode": "E95PP"
},
{
"SchoolName": "<NAME>ney School",
"Postcode": "N165ED"
},
{
"SchoolName": "Grasmere Primary School",
"Postcode": "N169PD"
},
{
"SchoolName": "Jubilee Primary School",
"Postcode": "N166NR"
},
{
"SchoolName": "Nightingale Primary School",
"Postcode": "E58PH"
},
{
"SchoolName": "Baden-Powell School",
"Postcode": "E58DN"
},
{
"SchoolName": "Harrington Hill Primary School",
"Postcode": "E59EY"
},
{
"SchoolName": "Holmleigh Primary School",
"Postcode": "N165PU"
},
{
"SchoolName": "Grazebrook Primary School",
"Postcode": "N160QP"
},
{
"SchoolName": "Parkwood Primary School",
"Postcode": "N42HQ"
},
{
"SchoolName": "Benthal Primary School",
"Postcode": "N167AU"
},
{
"SchoolName": "Mandeville Primary School",
"Postcode": "E50BT"
},
{
"SchoolName": "Holy Trinity Church of England Primary School",
"Postcode": "E83DY"
},
{
"SchoolName": "Our Lady and St Joseph Catholic Primary School",
"Postcode": "N14DG"
},
{
"SchoolName": "St John the Baptist Voluntary Aided Church of England Primary School",
"Postcode": "N16JG"
},
{
"SchoolName": "St Matthias Church of England Primary School",
"Postcode": "N168DD"
},
{
"SchoolName": "St Monica's Roman Catholic Primary School",
"Postcode": "N16QN"
},
{
"SchoolName": "St Paul's with St Michael's Primary School",
"Postcode": "E84PB"
},
{
"SchoolName": "St John of Jerusalem Church of England Primary School",
"Postcode": "E97JF"
},
{
"SchoolName": "St Mary's Church of England Primary School, Stoke Newington",
"Postcode": "N160JT"
},
{
"SchoolName": "St Scholastica's Catholic Primary School",
"Postcode": "E58BS"
},
{
"SchoolName": "<NAME>ewish Primary School",
"Postcode": "N166PD"
},
{
"SchoolName": "Haggerston School",
"Postcode": "E28LS"
},
{
"SchoolName": "Stoke Newington School and Sixth Form",
"Postcode": "N169EX"
},
{
"SchoolName": "Our Lady's Convent Roman Catholic High School",
"Postcode": "N165AF"
},
{
"SchoolName": "The Urswick School - A Church of England Secondary School",
"Postcode": "E96NR"
},
{
"SchoolName": "Cardinal Pole Roman Catholic School",
"Postcode": "E96LG"
},
{
"SchoolName": "Yesodey Hatorah School",
"Postcode": "N165AE"
},
{
"SchoolName": "<NAME>",
"Postcode": "N166AX"
},
{
"SchoolName": "<NAME>ls School",
"Postcode": "N165DL"
},
{
"SchoolName": "Beis Rochel d'Satmar Girls' School",
"Postcode": "N165DL"
},
{
"SchoolName": "Talmud Torah Machzikei Hadass School",
"Postcode": "E59SN"
},
{
"SchoolName": "Beis Malka Girls' School",
"Postcode": "N166XD"
},
{
"SchoolName": "<NAME>irim Wiznitz School",
"Postcode": "N166XB"
},
{
"SchoolName": "<NAME> Bobov Primary School",
"Postcode": "N166UE"
},
{
"SchoolName": "T T T Y Y School",
"Postcode": "N165NH"
},
{
"SchoolName": "Tayyibah Girls' School",
"Postcode": "N166JJ"
},
{
"SchoolName": "Paragon Christian Academy",
"Postcode": "E50JP"
},
{
"SchoolName": "River House Montessori School",
"Postcode": "E149XP"
},
{
"SchoolName": "Stormont House School",
"Postcode": "E58NP"
},
{
"SchoolName": "The Garden School",
"Postcode": "N168BZ"
},
{
"SchoolName": "Ickburgh School",
"Postcode": "E95RB"
},
{
"SchoolName": "<NAME> Early Years Centre",
"Postcode": "W127PH"
},
{
"SchoolName": "Vanessa Nursery School",
"Postcode": "W129JA"
},
{
"SchoolName": "James Lee Nursery School",
"Postcode": "W149BH"
},
{
"SchoolName": "Bayonne Nursery School",
"Postcode": "W68PF"
},
{
"SchoolName": "Addison Primary School",
"Postcode": "W140DT"
},
{
"SchoolName": "Avonmore Primary School",
"Postcode": "W148SH"
},
{
"SchoolName": "Brackenbury Primary School",
"Postcode": "W60BA"
},
{
"SchoolName": "Miles Coverdale Primary School",
"Postcode": "W128JJ"
},
{
"SchoolName": "Flora Gardens Primary School",
"Postcode": "W60UD"
},
{
"SchoolName": "Kenmont Primary School",
"Postcode": "NW106AL"
},
{
"SchoolName": "Melcombe Primary School",
"Postcode": "W69ER"
},
{
"SchoolName": "Old Oak Primary School",
"Postcode": "W120AS"
},
{
"SchoolName": "<NAME>illie Primary School",
"Postcode": "SW67LN"
},
{
"SchoolName": "Wendell Park Primary School",
"Postcode": "W129LB"
},
{
"SchoolName": "Wormholt Park Primary School",
"Postcode": "W120SR"
},
{
"SchoolName": "All Saints CofE Primary School",
"Postcode": "SW66ED"
},
{
"SchoolName": "Holy Cross RC School",
"Postcode": "SW64BL"
},
{
"SchoolName": "John Betts Primary School",
"Postcode": "W60UA"
},
{
"SchoolName": "St Augustine's RC Primary School",
"Postcode": "W68QE"
},
{
"SchoolName": "St Johns Walham Green Church of England Primary School",
"Postcode": "SW66AS"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "W140LT"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "W69BP"
},
{
"SchoolName": "St Peter's Primary School",
"Postcode": "W69BA"
},
{
"SchoolName": "St Stephen's CofE Primary School",
"Postcode": "W128LH"
},
{
"SchoolName": "Good Shepherd RC Primary School",
"Postcode": "W129BY"
},
{
"SchoolName": "St John XXIII Catholic Primary School",
"Postcode": "W127QT"
},
{
"SchoolName": "St Thomas of Canterbury Catholic Primary School",
"Postcode": "SW67HB"
},
{
"SchoolName": "St Paul's Girls' School",
"Postcode": "W67BS"
},
{
"SchoolName": "Bute House Preparatory School",
"Postcode": "W67EA"
},
{
"SchoolName": "The Godolphin and Latymer School",
"Postcode": "W60PG"
},
{
"SchoolName": "Latymer Upper School",
"Postcode": "W69LR"
},
{
"SchoolName": "<NAME>",
"Postcode": "W67BE"
},
{
"SchoolName": "Al-Muntada Islamic School",
"Postcode": "SW64HW"
},
{
"SchoolName": "Ravenscourt Park Preparatory School",
"Postcode": "W60SL"
},
{
"SchoolName": "Sinclair House School",
"Postcode": "SW66DA"
},
{
"SchoolName": "L'Ecole des Petits School",
"Postcode": "SW62NB"
},
{
"SchoolName": "Le Herisson School",
"Postcode": "W69JT"
},
{
"SchoolName": "Queensmill School",
"Postcode": "W120NW"
},
{
"SchoolName": "Woodlane High School",
"Postcode": "W120TN"
},
{
"SchoolName": "Jack Tizard School",
"Postcode": "W127PA"
},
{
"SchoolName": "Cambridge School",
"Postcode": "W120SP"
},
{
"SchoolName": "M<NAME>an Nursery School",
"Postcode": "N193SF"
},
{
"SchoolName": "<NAME> Nursery School and Children's Centre",
"Postcode": "N10UH"
},
{
"SchoolName": "North Islington Nursery School",
"Postcode": "N43RB"
},
{
"SchoolName": "New River College Primary",
"Postcode": "EC1Y0TZ"
},
{
"SchoolName": "New River College Secondary",
"Postcode": "N78RH"
},
{
"SchoolName": "Ambler Primary School and Children's Centre",
"Postcode": "N42DR"
},
{
"SchoolName": "Copenhagen Primary School",
"Postcode": "N10WF"
},
{
"SchoolName": "Drayton Park Primary School",
"Postcode": "N51PJ"
},
{
"SchoolName": "Duncombe Primary School",
"Postcode": "N194JA"
},
{
"SchoolName": "Gillespie Primary School",
"Postcode": "N51LH"
},
{
"SchoolName": "Grafton Primary School",
"Postcode": "N76AR"
},
{
"SchoolName": "Hanover Primary School",
"Postcode": "N18BD"
},
{
"SchoolName": "Hargrave Park Primary School",
"Postcode": "N195BS"
},
{
"SchoolName": "Laycock Primary School",
"Postcode": "N11SW"
},
{
"SchoolName": "Moreland Primary School",
"Postcode": "EC1V8BB"
},
{
"SchoolName": "Pakeman Primary School",
"Postcode": "N76DU"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "N79QJ"
},
{
"SchoolName": "Thornhill Primary School",
"Postcode": "N11HX"
},
{
"SchoolName": "Vittoria Primary School",
"Postcode": "N10TJ"
},
{
"SchoolName": "Winton Primary School",
"Postcode": "N19AZ"
},
{
"SchoolName": "Yerbury Primary School",
"Postcode": "N194RR"
},
{
"SchoolName": "Tufnell Park Primary School",
"Postcode": "N70HJ"
},
{
"SchoolName": "Highbury Quadrant Primary School",
"Postcode": "N52DP"
},
{
"SchoolName": "Ashmount Primary School",
"Postcode": "N89EG"
},
{
"SchoolName": "Prior Weston Primary School and Children's Centre",
"Postcode": "EC1Y8JA"
},
{
"SchoolName": "Hungerford Primary School and Children's Centre",
"Postcode": "N79LF"
},
{
"SchoolName": "Clerkenwell Parochial CofE Primary School",
"Postcode": "EC1R1UN"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "N78JN"
},
{
"SchoolName": "St John Evangelist RC Primary School",
"Postcode": "N18BL"
},
{
"SchoolName": "St John's Upper Holloway CofE Primary School",
"Postcode": "N195RR"
},
{
"SchoolName": "St John's Highbury Vale CofE Primary School",
"Postcode": "N51DL"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "N195NE"
},
{
"SchoolName": "St Jude and St Paul's CofE Primary School",
"Postcode": "N14AZ"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "EC1V3SJ"
},
{
"SchoolName": "St Mark's CofE Primary School",
"Postcode": "N194JF"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "N12EP"
},
{
"SchoolName": "St Peter and St Paul RC Primary School",
"Postcode": "EC1V0EU"
},
{
"SchoolName": "St Andrew's (Barnsbury) Church of England Primary School",
"Postcode": "N10LB"
},
{
"SchoolName": "St Joan of Arc RC Primary School",
"Postcode": "N52UX"
},
{
"SchoolName": "Christ The King RC Primary School",
"Postcode": "N43QW"
},
{
"SchoolName": "Blessed Sacrament RC Primary School",
"Postcode": "N10UF"
},
{
"SchoolName": "Highbury Grove School",
"Postcode": "N52EQ"
},
{
"SchoolName": "Holloway School",
"Postcode": "N70JG"
},
{
"SchoolName": "Highbury Fields School",
"Postcode": "N51AR"
},
{
"SchoolName": "<NAME> School",
"Postcode": "N19QG"
},
{
"SchoolName": "Central Foundation Boys' School",
"Postcode": "EC2A4SH"
},
{
"SchoolName": "St Aloysius RC College",
"Postcode": "N65LY"
},
{
"SchoolName": "Mount Carmel Catholic College for Girls",
"Postcode": "N193EU"
},
{
"SchoolName": "Italia Conti Academy of Theatre Arts",
"Postcode": "EC1M7AJ"
},
{
"SchoolName": "Dallington School",
"Postcode": "EC1V0BW"
},
{
"SchoolName": "Charterhouse Square School",
"Postcode": "EC1M6EA"
},
{
"SchoolName": "<NAME>ley School",
"Postcode": "N18RE"
},
{
"SchoolName": "<NAME> MLD School",
"Postcode": "N52EG"
},
{
"SchoolName": "Golborne Children's Centre",
"Postcode": "W105TN"
},
{
"SchoolName": "St Anne's Nursery School",
"Postcode": "W114EE"
},
{
"SchoolName": "Chelsea Open Air Nursery School and Children's Centre",
"Postcode": "SW35JE"
},
{
"SchoolName": "<NAME>sery School",
"Postcode": "W105TN"
},
{
"SchoolName": "Ashburnham Community School",
"Postcode": "SW100DT"
},
{
"SchoolName": "Barlby Primary School",
"Postcode": "W106BH"
},
{
"SchoolName": "Bevington Primary School",
"Postcode": "W105TW"
},
{
"SchoolName": "Bousfield Primary School",
"Postcode": "SW50DJ"
},
{
"SchoolName": "Colville Primary School",
"Postcode": "W112DF"
},
{
"SchoolName": "Fox Primary School",
"Postcode": "W87PP"
},
{
"SchoolName": "Marlborough Primary School",
"Postcode": "SW33AP"
},
{
"SchoolName": "Oxford Gardens Primary School",
"Postcode": "W106NF"
},
{
"SchoolName": "Park Walk Primary School",
"Postcode": "SW100AY"
},
{
"SchoolName": "Avondale Park Primary School",
"Postcode": "W114EE"
},
{
"SchoolName": "Thomas Jones Primary School",
"Postcode": "W111RQ"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "SW34AA"
},
{
"SchoolName": "Holy Trinity CofE Primary School",
"Postcode": "SW1X9DE"
},
{
"SchoolName": "Oratory Roman Catholic Primary School",
"Postcode": "SW36QH"
},
{
"SchoolName": "St Thomas' CofE Primary School",
"Postcode": "W105EF"
},
{
"SchoolName": "St Barnabas and St Philip's CofE Primary School",
"Postcode": "W86EJ"
},
{
"SchoolName": "Saint Francis of Assisi Catholic Primary School",
"Postcode": "W114BJ"
},
{
"SchoolName": "St Clement and St James CofE Primary School",
"Postcode": "W114PG"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "SW32QT"
},
{
"SchoolName": "St <NAME>bots CofE Primary School",
"Postcode": "W84SP"
},
{
"SchoolName": "St Cuthbert with St Matthias CofE Primary School",
"Postcode": "SW59UE"
},
{
"SchoolName": "Saint Mary's Catholic Primary School",
"Postcode": "W105AW"
},
{
"SchoolName": "Servite RC Primary School",
"Postcode": "SW109NA"
},
{
"SchoolName": "Saint Thomas More Language College",
"Postcode": "SW32QS"
},
{
"SchoolName": "Sion-Manning Catholic Girls' School",
"Postcode": "W106EL"
},
{
"SchoolName": "Our Lady of Victories RC Primary School",
"Postcode": "SW75AQ"
},
{
"SchoolName": "St Charles Catholic Primary School",
"Postcode": "W106EB"
},
{
"SchoolName": "Redcliffe School",
"Postcode": "SW109JH"
},
{
"SchoolName": "Glendower Preparatory School",
"Postcode": "SW75JX"
},
{
"SchoolName": "Kensington Prep School",
"Postcode": "SW65PA"
},
{
"SchoolName": "Norland Place School",
"Postcode": "W114UH"
},
{
"SchoolName": "Queen's Gate School",
"Postcode": "SW75LE"
},
{
"SchoolName": "Bassett House School",
"Postcode": "W106JP"
},
{
"SchoolName": "Sussex House School",
"Postcode": "SW1X0EA"
},
{
"SchoolName": "St Philip's School",
"Postcode": "SW74NE"
},
{
"SchoolName": "Hill House International Junior School",
"Postcode": "SW1X0EP"
},
{
"SchoolName": "Wetherby School",
"Postcode": "W24ED"
},
{
"SchoolName": "Falkner House",
"Postcode": "SW74QB"
},
{
"SchoolName": "More House School",
"Postcode": "SW1X0AA"
},
{
"SchoolName": "Garden House School",
"Postcode": "SW34TW"
},
{
"SchoolName": "The Falcons School for Boys",
"Postcode": "W43DT"
},
{
"SchoolName": "Eaton House The Vale School",
"Postcode": "SW75QH"
},
{
"SchoolName": "Duff Miller College",
"Postcode": "SW75JP"
},
{
"SchoolName": "St James Senior Girls' School",
"Postcode": "W148SH"
},
{
"SchoolName": "St James Senior Boys' School",
"Postcode": "TW153DZ"
},
{
"SchoolName": "DLD College London",
"Postcode": "SE17RW"
},
{
"SchoolName": "<NAME>",
"Postcode": "SW113JB"
},
{
"SchoolName": "Pembridge Hall School",
"Postcode": "W24EH"
},
{
"SchoolName": "Instituto Espanol Canada Blanch",
"Postcode": "W105SZ"
},
{
"SchoolName": "Knightsbridge School",
"Postcode": "SW1X0BD"
},
{
"SchoolName": "<NAME>",
"Postcode": "W85PR"
},
{
"SchoolName": "Lansdowne College",
"Postcode": "W24AT"
},
{
"SchoolName": "Ashbourne Independent School",
"Postcode": "W84PL"
},
{
"SchoolName": "Cameron House School",
"Postcode": "SW36AH"
},
{
"SchoolName": "Collingham",
"Postcode": "SW50HL"
},
{
"SchoolName": "M<NAME>man Woodward School",
"Postcode": "SW75AB"
},
{
"SchoolName": "Portland Place School",
"Postcode": "W1B1NJ"
},
{
"SchoolName": "Southbank International School Kensington",
"Postcode": "W113BU"
},
{
"SchoolName": "St Nicholas Preparatory School",
"Postcode": "SW71PT"
},
{
"SchoolName": "David Game College",
"Postcode": "W113JS"
},
{
"SchoolName": "La Petite Ecole Francaise",
"Postcode": "W106EJ"
},
{
"SchoolName": "<NAME> <NAME>",
"Postcode": "SW72DG"
},
{
"SchoolName": "Chelsea Community Hospital School",
"Postcode": "SW109NH"
},
{
"SchoolName": "Triangle Nursery School",
"Postcode": "SW47JQ"
},
{
"SchoolName": "Effra Nursery School and Early Years Centre",
"Postcode": "SW21PL"
},
{
"SchoolName": "Ethelred Nursery School and Children's Centre",
"Postcode": "SE114UG"
},
{
"SchoolName": "Maytree Nursery School",
"Postcode": "SW48LN"
},
{
"SchoolName": "Holmewood Nursery School",
"Postcode": "SW22RW"
},
{
"SchoolName": "Ashmole Primary School",
"Postcode": "SW81NT"
},
{
"SchoolName": "Clapham Manor Primary School",
"Postcode": "SW40BZ"
},
{
"SchoolName": "Granton Primary School",
"Postcode": "SW165AN"
},
{
"SchoolName": "Heathbrook Primary School",
"Postcode": "SW83EH"
},
{
"SchoolName": "Henry Cavendish Primary School",
"Postcode": "SW120JA"
},
{
"SchoolName": "Jessop Primary School",
"Postcode": "SE240BJ"
},
{
"SchoolName": "Lark Hall Primary School (Including Lark Hall Centre for Pupils with Autism)",
"Postcode": "SW46PH"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SW24JP"
},
{
"SchoolName": "Stockwell Primary School",
"Postcode": "SW99TG"
},
{
"SchoolName": "Sudbourne Primary School",
"Postcode": "SW25AP"
},
{
"SchoolName": "Sunnyhill Primary School",
"Postcode": "SW162UW"
},
{
"SchoolName": "Telferscot Primary School",
"Postcode": "SW120HW"
},
{
"SchoolName": "Vauxhall Primary School",
"Postcode": "SE115LG"
},
{
"SchoolName": "Walnut Tree Walk Primary School",
"Postcode": "SE116DS"
},
{
"SchoolName": "Woodmansterne School",
"Postcode": "SW165XE"
},
{
"SchoolName": "Wyvil Primary School and Centres for Children With Speech and Language Impairment and Autism",
"Postcode": "SW82TJ"
},
{
"SchoolName": "Crown Lane Primary School",
"Postcode": "SW163HX"
},
{
"SchoolName": "Allen Edwards Primary School",
"Postcode": "SW46RP"
},
{
"SchoolName": "Julian's School",
"Postcode": "SE270JF"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SW82HP"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SW23NJ"
},
{
"SchoolName": "Archbishop Sumner Church of England Primary School",
"Postcode": "SE114PH"
},
{
"SchoolName": "Christ Church Primary SW9",
"Postcode": "SW96HN"
},
{
"SchoolName": "<NAME> , Streatham Church of England Primary School",
"Postcode": "SW23NF"
},
{
"SchoolName": "Macaulay Church of England Primary School",
"Postcode": "SW40NU"
},
{
"SchoolName": "St Andrew's Church of England Primary School",
"Postcode": "SW99DE"
},
{
"SchoolName": "St John the Divine Church of England Primary School",
"Postcode": "SE50SX"
},
{
"SchoolName": "St John's Angell Town Church of England Primary School",
"Postcode": "SW97HH"
},
{
"SchoolName": "St Jude's Church of England Primary School",
"Postcode": "SE240EL"
},
{
"SchoolName": "St Leonard's Church of England Primary School",
"Postcode": "SW166NP"
},
{
"SchoolName": "St Luke's Church of England Primary School",
"Postcode": "SE270DZ"
},
{
"SchoolName": "St Mark's Church of England Primary School",
"Postcode": "SE115SL"
},
{
"SchoolName": "St Saviour's Church of England Primary School",
"Postcode": "SE240AY"
},
{
"SchoolName": "St Stephen's Church of England Primary School",
"Postcode": "SW81EJ"
},
{
"SchoolName": "Holy Trinity Church of England Primary School",
"Postcode": "SW22RL"
},
{
"SchoolName": "St Helen's Catholic School",
"Postcode": "SW90TQ"
},
{
"SchoolName": "Norwood School",
"Postcode": "SE193NY"
},
{
"SchoolName": "Lilian Baylis Technology School",
"Postcode": "SE115QY"
},
{
"SchoolName": "Saint Gabriel's College",
"Postcode": "SE59RF"
},
{
"SchoolName": "St Bernadette Catholic Junior School",
"Postcode": "SW120AB"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "SE115JA"
},
{
"SchoolName": "St Bede's Catholic Infant School",
"Postcode": "SW120LF"
},
{
"SchoolName": "St Andrew's Catholic Primary School",
"Postcode": "SW162ET"
},
{
"SchoolName": "Immanuel and St Andrew Church of England Primary School",
"Postcode": "SW165SL"
},
{
"SchoolName": "Reay Primary School",
"Postcode": "SW90EN"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School",
"Postcode": "SW49QJ"
},
{
"SchoolName": "La Retraite Roman Catholic Girls' School",
"Postcode": "SW120AB"
},
{
"SchoolName": "Bishop Thomas Grant Catholic Secondary School",
"Postcode": "SW162HY"
},
{
"SchoolName": "Archbishop Tenison's School",
"Postcode": "SE115SR"
},
{
"SchoolName": "London Nautical School",
"Postcode": "SE19NA"
},
{
"SchoolName": "Turney Primary and Secondary Special School",
"Postcode": "SE218LX"
},
{
"SchoolName": "Oakfield Preparatory School",
"Postcode": "SE218HP"
},
{
"SchoolName": "Rosemead Preparatory School",
"Postcode": "SE218HZ"
},
{
"SchoolName": "Streatham and Clapham High School",
"Postcode": "SW161AW"
},
{
"SchoolName": "The White House Preparatory School & Woodentops Kindergarten",
"Postcode": "SW120LF"
},
{
"SchoolName": "Lansdowne School",
"Postcode": "SW99QL"
},
{
"SchoolName": "Elm Court School",
"Postcode": "SW22EF"
},
{
"SchoolName": "Clyde Early Childhood Centre",
"Postcode": "SE85NH"
},
{
"SchoolName": "Chelwood Nursery School",
"Postcode": "SE42QQ"
},
{
"SchoolName": "Adamsrill Primary School",
"Postcode": "SE264AQ"
},
{
"SchoolName": "Athelney Primary School",
"Postcode": "SE63LD"
},
{
"SchoolName": "Baring Primary School",
"Postcode": "SE120NB"
},
{
"SchoolName": "Beecroft Garden Primary",
"Postcode": "SE42BS"
},
{
"SchoolName": "Childeric Primary School",
"Postcode": "SE146DG"
},
{
"SchoolName": "Cooper's Lane Primary School",
"Postcode": "SE120LF"
},
{
"SchoolName": "Dalmain Primary School",
"Postcode": "SE231AS"
},
{
"SchoolName": "Deptford Park Primary School",
"Postcode": "SE85RJ"
},
{
"SchoolName": "Downderry Primary School",
"Postcode": "BR15QL"
},
{
"SchoolName": "<NAME>er Primary School",
"Postcode": "SE145LY"
},
{
"SchoolName": "Elfrida Primary School",
"Postcode": "SE63EN"
},
{
"SchoolName": "Forster Park Primary School",
"Postcode": "SE61PQ"
},
{
"SchoolName": "Gordonbrock Primary School",
"Postcode": "SE41HQ"
},
{
"SchoolName": "Grinling Gibbons Primary School",
"Postcode": "SE85LW"
},
{
"SchoolName": "Haseltine Primary School",
"Postcode": "SE265AD"
},
{
"SchoolName": "Brindishe Green School",
"Postcode": "SE136EH"
},
{
"SchoolName": "Holbeach Primary School",
"Postcode": "SE64TP"
},
{
"SchoolName": "<NAME> Community Primary School",
"Postcode": "SE42DY"
},
{
"SchoolName": "Kelvin Grove Primary School",
"Postcode": "SE266BB"
},
{
"SchoolName": "Kender Primary School",
"Postcode": "SE145JA"
},
{
"SchoolName": "Launcelot Primary School",
"Postcode": "BR15EA"
},
{
"SchoolName": "Brindishe Manor School",
"Postcode": "SE135LS"
},
{
"SchoolName": "Lucas Vale Primary School",
"Postcode": "SE84QB"
},
{
"SchoolName": "Marvels Lane Primary School",
"Postcode": "SE129RA"
},
{
"SchoolName": "Rangefield Primary School",
"Postcode": "BR14RP"
},
{
"SchoolName": "Rathfern Primary School",
"Postcode": "SE64NL"
},
{
"SchoolName": "Rushey Green Primary School",
"Postcode": "SE62LA"
},
{
"SchoolName": "Sandhurst Junior School",
"Postcode": "SE61NW"
},
{
"SchoolName": "Sandhurst Infant and Nursery School",
"Postcode": "SE61NW"
},
{
"SchoolName": "Stillness Junior School",
"Postcode": "SE231NH"
},
{
"SchoolName": "Stillness Infant School",
"Postcode": "SE231NH"
},
{
"SchoolName": "Torridon Junior School",
"Postcode": "SE61TG"
},
{
"SchoolName": "Torridon Infant School",
"Postcode": "SE61TG"
},
{
"SchoolName": "John Ball Primary School",
"Postcode": "SE30TP"
},
{
"SchoolName": "Fairlawn Primary School",
"Postcode": "SE233SB"
},
{
"SchoolName": "Eliot Bank Primary School",
"Postcode": "SE264BU"
},
{
"SchoolName": "Sir Francis Drake Primary School",
"Postcode": "SE85AE"
},
{
"SchoolName": "Myatt Garden Primary School",
"Postcode": "SE41DF"
},
{
"SchoolName": "Horniman Primary School",
"Postcode": "SE233BP"
},
{
"SchoolName": "Perrymount Primary School",
"Postcode": "SE232PX"
},
{
"SchoolName": "Ashmead Primary School",
"Postcode": "SE84DX"
},
{
"SchoolName": "Brindishe Lee School",
"Postcode": "SE128NA"
},
{
"SchoolName": "Kilmorie Primary School",
"Postcode": "SE232SP"
},
{
"SchoolName": "All Saints' Church of England Primary School",
"Postcode": "SE30TX"
},
{
"SchoolName": "St Mary Magdalen's Catholic Primary School",
"Postcode": "SE42BB"
},
{
"SchoolName": "St George's CofE Primary School",
"Postcode": "SE232NE"
},
{
"SchoolName": "Good Shepherd RC School",
"Postcode": "BR15EP"
},
{
"SchoolName": "Holy Trinity Church of England Primary School",
"Postcode": "SE233HZ"
},
{
"SchoolName": "St Margaret's Lee CofE Primary School",
"Postcode": "SE135SG"
},
{
"SchoolName": "St Augustine's Catholic Primary School and Nursery",
"Postcode": "SE63RD"
},
{
"SchoolName": "St Bartholomews's Church of England Primary School",
"Postcode": "SE264LJ"
},
{
"SchoolName": "St James's Hatcham Church of England Primary School",
"Postcode": "SE146AD"
},
{
"SchoolName": "St John Baptist Southend Church of England Primary School",
"Postcode": "BR15RL"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "SE83PH"
},
{
"SchoolName": "St Mary's Lewisham Church of England Primary School",
"Postcode": "SE136NX"
},
{
"SchoolName": "St Michael's Church of England Primary School",
"Postcode": "SE264HH"
},
{
"SchoolName": "Our Lady and St Philip Neri Roman Catholic Primary School",
"Postcode": "SE265SE"
},
{
"SchoolName": "St Saviour's Catholic Primary School",
"Postcode": "SE136AL"
},
{
"SchoolName": "St Stephen's Church of England Primary School",
"Postcode": "SE84ED"
},
{
"SchoolName": "St William of York Catholic Primary School",
"Postcode": "SE231PS"
},
{
"SchoolName": "Holy Cross Catholic Primary School",
"Postcode": "SE62LD"
},
{
"SchoolName": "Deptford Green School",
"Postcode": "SE146AN"
},
{
"SchoolName": "Sydenham School",
"Postcode": "SE264RD"
},
{
"SchoolName": "Conisborough College",
"Postcode": "SE62SE"
},
{
"SchoolName": "Sedgehill School",
"Postcode": "SE63QW"
},
{
"SchoolName": "Forest Hill School",
"Postcode": "SE232XN"
},
{
"SchoolName": "Prendergast Ladywell School",
"Postcode": "SE41SA"
},
{
"SchoolName": "Addey and Stanhope School",
"Postcode": "SE146TJ"
},
{
"SchoolName": "Trinity Church of England School, Lewisham",
"Postcode": "SE128PD"
},
{
"SchoolName": "Prendergast School",
"Postcode": "SE41LE"
},
{
"SchoolName": "Bonus Pastor Catholic College",
"Postcode": "BR15PZ"
},
{
"SchoolName": "Turnham Primary Foundation School",
"Postcode": "SE42HH"
},
{
"SchoolName": "St Dunstan's College",
"Postcode": "SE64TY"
},
{
"SchoolName": "Blackheath High School",
"Postcode": "SE37AG"
},
{
"SchoolName": "Sydenham High School GDST",
"Postcode": "SE266BL"
},
{
"SchoolName": "Brent Knoll School",
"Postcode": "SE232QU"
},
{
"SchoolName": "New Woodlands School",
"Postcode": "BR15PD"
},
{
"SchoolName": "Greenvale School",
"Postcode": "SE61UF"
},
{
"SchoolName": "Watergate School",
"Postcode": "SE63WG"
},
{
"SchoolName": "Kintore Way Nursery School and Children's Centre",
"Postcode": "SE13BW"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "SE156DT"
},
{
"SchoolName": "Dulwich Wood Nursery School",
"Postcode": "SE218QS"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "SE152TT"
},
{
"SchoolName": "Grove Children & Family Centre",
"Postcode": "SE156BY"
},
{
"SchoolName": "Albion Primary School",
"Postcode": "SE167JD"
},
{
"SchoolName": "Bellenden Primary School",
"Postcode": "SE154PF"
},
{
"SchoolName": "Camelot Primary School",
"Postcode": "SE151QP"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SE11AF"
},
{
"SchoolName": "Cobourg Primary School",
"Postcode": "SE50JD"
},
{
"SchoolName": "Comber Grove School",
"Postcode": "SE50LQ"
},
{
"SchoolName": "Crampton School",
"Postcode": "SE173LE"
},
{
"SchoolName": "Dog Kennel Hill School",
"Postcode": "SE228AB"
},
{
"SchoolName": "Goodrich Community Primary School",
"Postcode": "SE220EP"
},
{
"SchoolName": "Grange Primary School",
"Postcode": "SE14RP"
},
{
"SchoolName": "Heber Primary School",
"Postcode": "SE229LA"
},
{
"SchoolName": "Hollydale Primary School",
"Postcode": "SE152AR"
},
{
"SchoolName": "Ivydale Primary School",
"Postcode": "SE153BU"
},
{
"SchoolName": "<NAME>kin Primary School and Language Classes",
"Postcode": "SE50PQ"
},
{
"SchoolName": "Keyworth Primary School",
"Postcode": "SE173TR"
},
{
"SchoolName": "Dulwich Wood Primary School",
"Postcode": "SE218NS"
},
{
"SchoolName": "Lyndhurst Primary School",
"Postcode": "SE58SN"
},
{
"SchoolName": "Michael Faraday School",
"Postcode": "SE172HR"
},
{
"SchoolName": "Riverside Primary School",
"Postcode": "SE164PS"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SE171DQ"
},
{
"SchoolName": "Rotherhithe Primary School",
"Postcode": "SE162PL"
},
{
"SchoolName": "Snowsfields Primary School",
"Postcode": "SE13TD"
},
{
"SchoolName": "Southwark Park School",
"Postcode": "SE162JH"
},
{
"SchoolName": "Tower Bridge Primary School",
"Postcode": "SE12AE"
},
{
"SchoolName": "Townsend Primary School",
"Postcode": "SE171HJ"
},
{
"SchoolName": "Victory School",
"Postcode": "SE171PT"
},
{
"SchoolName": "Charlotte Sharman Primary School",
"Postcode": "SE114SN"
},
{
"SchoolName": "Pilgrims' Way Primary School",
"Postcode": "SE151EF"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SE167LP"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SE58UH"
},
{
"SchoolName": "Boutcher Church of England Primary School",
"Postcode": "SE13BW"
},
{
"SchoolName": "Dulwich Village Church of England Infants' School",
"Postcode": "SE217AL"
},
{
"SchoolName": "English Martyrs Roman Catholic Primary School",
"Postcode": "SE171QD"
},
{
"SchoolName": "St James the Great Roman Catholic Primary School",
"Postcode": "SE155LP"
},
{
"SchoolName": "St Francis RC Primary School",
"Postcode": "SE151RQ"
},
{
"SchoolName": "St George's Church of England Primary School",
"Postcode": "SE57TF"
},
{
"SchoolName": "St George's Cathedral Catholic Primary School",
"Postcode": "SE17JB"
},
{
"SchoolName": "St James' Church of England Primary School",
"Postcode": "SE164SU"
},
{
"SchoolName": "St Johns' and St Clements Church of England Primary School",
"Postcode": "SE154DY"
},
{
"SchoolName": "St John's Walworth Church of England Primary School",
"Postcode": "SE171NQ"
},
{
"SchoolName": "St Joseph's Roman Catholic Primary School",
"Postcode": "SE164UP"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "SE162TY"
},
{
"SchoolName": "Saint Joseph's Catholic Primary School, the Borough",
"Postcode": "SE11NJ"
},
{
"SchoolName": "St Jude's Church of England Primary School",
"Postcode": "SE16HA"
},
{
"SchoolName": "St Mary Magdalene Church of England Primary School",
"Postcode": "SE153RA"
},
{
"SchoolName": "<NAME> with St Mary's and St Paul's CofE Primary School",
"Postcode": "SE165ED"
},
{
"SchoolName": "St Paul's Church of England Primary School, Walworth",
"Postcode": "SE173DT"
},
{
"SchoolName": "St Peter's Church of England Primary School",
"Postcode": "SE172HH"
},
{
"SchoolName": "The Cathedral School of St Saviour and St <NAME>very",
"Postcode": "SE11HG"
},
{
"SchoolName": "St John's Roman Catholic Primary School",
"Postcode": "SE166SD"
},
{
"SchoolName": "St Saviour's and St Olave's Church of England School",
"Postcode": "SE14AN"
},
{
"SchoolName": "St Francesca Cabrini Primary School",
"Postcode": "SE233LE"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "SE220LA"
},
{
"SchoolName": "St Joseph's Catholic Junior School",
"Postcode": "SE50TS"
},
{
"SchoolName": "St Joseph's Catholic Infants School",
"Postcode": "SE50TS"
},
{
"SchoolName": "Friars Primary Foundation School",
"Postcode": "SE10RF"
},
{
"SchoolName": "The St Thomas the Apostle College",
"Postcode": "SE152EB"
},
{
"SchoolName": "Notre Dame Roman Catholic Girls' School",
"Postcode": "SE16EX"
},
{
"SchoolName": "Dulwich College",
"Postcode": "SE217LD"
},
{
"SchoolName": "Dulwich Prep London",
"Postcode": "SE217AA"
},
{
"SchoolName": "<NAME>'s Girls' School",
"Postcode": "SE228TE"
},
{
"SchoolName": "Alleyn's School",
"Postcode": "SE228SU"
},
{
"SchoolName": "Herne Hill School",
"Postcode": "SE249LY"
},
{
"SchoolName": "Highshore School",
"Postcode": "SE50TW"
},
{
"SchoolName": "Spa School",
"Postcode": "SE15RN"
},
{
"SchoolName": "Evelina Hospital School",
"Postcode": "SE17EH"
},
{
"SchoolName": "Bethlem and Maudsley Hospital School",
"Postcode": "BR33BX"
},
{
"SchoolName": "Haymerle School",
"Postcode": "SE156SY"
},
{
"SchoolName": "Beormund Primary School",
"Postcode": "SE13PS"
},
{
"SchoolName": "Tuke School",
"Postcode": "SE156ER"
},
{
"SchoolName": "Cherry Garden School",
"Postcode": "SE163XU"
},
{
"SchoolName": "Childrens House Nursery School",
"Postcode": "E33HL"
},
{
"SchoolName": "Columbia Market Nursery School",
"Postcode": "E27PG"
},
{
"SchoolName": "Old Church Nursery School",
"Postcode": "E10RJ"
},
{
"SchoolName": "Rachel Keeling Nursery School",
"Postcode": "E20PS"
},
{
"SchoolName": "Alice Model Nursery School",
"Postcode": "E14NQ"
},
{
"SchoolName": "Harry Roberts Nursery School",
"Postcode": "E14PZ"
},
{
"SchoolName": "Tower Hamlets PRU",
"Postcode": "E14EE"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "E14PZ"
},
{
"SchoolName": "Bonner Primary School",
"Postcode": "E20NF"
},
{
"SchoolName": "Old Palace Primary School",
"Postcode": "E33BT"
},
{
"SchoolName": "Canon Barnett Primary School",
"Postcode": "E17RQ"
},
{
"SchoolName": "Cayley Primary School",
"Postcode": "E147NG"
},
{
"SchoolName": "Blue Gate Fields Junior School",
"Postcode": "E10EH"
},
{
"SchoolName": "Chisenhale Primary School",
"Postcode": "E35QY"
},
{
"SchoolName": "Columbia Primary School",
"Postcode": "E27RG"
},
{
"SchoolName": "Cubitt Town Junior School",
"Postcode": "E143NE"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "E148HH"
},
{
"SchoolName": "The Clara Grant Primary School",
"Postcode": "E34BU"
},
{
"SchoolName": "Globe Primary School",
"Postcode": "E20JH"
},
{
"SchoolName": "Hague Primary School",
"Postcode": "E20BP"
},
{
"SchoolName": "Harbinger Primary School",
"Postcode": "E143QP"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "E14AX"
},
{
"SchoolName": "Lawdale Junior School",
"Postcode": "E26LS"
},
{
"SchoolName": "Elizabeth Selby Infants' School",
"Postcode": "E26PP"
},
{
"SchoolName": "<NAME>son Primary School",
"Postcode": "E10QF"
},
{
"SchoolName": "Marner Primary School",
"Postcode": "E33LL"
},
{
"SchoolName": "Mayflower Primary School",
"Postcode": "E146DU"
},
{
"SchoolName": "Mowlem Primary School",
"Postcode": "E29HE"
},
{
"SchoolName": "Blue Gate Fields Infants' School",
"Postcode": "E10EH"
},
{
"SchoolName": "Olga Primary School",
"Postcode": "E35DN"
},
{
"SchoolName": "Redlands Primary School",
"Postcode": "E13AQ"
},
{
"SchoolName": "Manorfield Primary School",
"Postcode": "E146QD"
},
{
"SchoolName": "Stewart Headlam Primary School",
"Postcode": "E15RE"
},
{
"SchoolName": "Virginia Primary School",
"Postcode": "E27NQ"
},
{
"SchoolName": "Wellington Primary School",
"Postcode": "E34NE"
},
{
"SchoolName": "Woolmore Primary School",
"Postcode": "E140EW"
},
{
"SchoolName": "Thomas Buxton Primary School",
"Postcode": "E15AR"
},
{
"SchoolName": "Seven Mills Primary School",
"Postcode": "E148LY"
},
{
"SchoolName": "Cubitt Town Infants' School",
"Postcode": "E143NE"
},
{
"SchoolName": "Osmani Primary School",
"Postcode": "E15AD"
},
{
"SchoolName": "Shapla Primary School",
"Postcode": "E18HY"
},
{
"SchoolName": "Hermitage Primary School",
"Postcode": "E1W2PT"
},
{
"SchoolName": "Bangabandhu Primary School",
"Postcode": "E20LB"
},
{
"SchoolName": "Halley Primary School",
"Postcode": "E147SS"
},
{
"SchoolName": "Bigland Green Primary School",
"Postcode": "E12ND"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "E11JP"
},
{
"SchoolName": "Smithy Street School",
"Postcode": "E13BW"
},
{
"SchoolName": "William Davis Primary School",
"Postcode": "E26ET"
},
{
"SchoolName": "Christ Church CofE School",
"Postcode": "E16PU"
},
{
"SchoolName": "Guardian Angels Roman Catholic Primary School",
"Postcode": "E34RB"
},
{
"SchoolName": "Stepney Greencoat Church of England Primary School",
"Postcode": "E147TF"
},
{
"SchoolName": "St Agnes RC Primary School",
"Postcode": "E33ER"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "E15AW"
},
{
"SchoolName": "St Edmund's Catholic School",
"Postcode": "E143RS"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "E29LR"
},
{
"SchoolName": "St Luke's Church of England Primary School",
"Postcode": "E143EB"
},
{
"SchoolName": "St Matthias Church of England Primary School",
"Postcode": "E26DY"
},
{
"SchoolName": "St Paul with St Luke CofE Primary School",
"Postcode": "E34LA"
},
{
"SchoolName": "St Paul's Whitechapel Church of England Primary School",
"Postcode": "E18HY"
},
{
"SchoolName": "St Peter's London Docks CofE Primary School",
"Postcode": "E1W3QT"
},
{
"SchoolName": "St Saviour's Church of England Primary School",
"Postcode": "E146BB"
},
{
"SchoolName": "English Martyrs Roman Catholic Primary School",
"Postcode": "E18DJ"
},
{
"SchoolName": "Bow School",
"Postcode": "E33QW"
},
{
"SchoolName": "Langdon Park Community School",
"Postcode": "E140RZ"
},
{
"SchoolName": "Morpeth School",
"Postcode": "E20PX"
},
{
"SchoolName": "Stepney Green Mathematics and Computing College",
"Postcode": "E14SD"
},
{
"SchoolName": "Oaklands School",
"Postcode": "E26PR"
},
{
"SchoolName": "Swanlea School",
"Postcode": "E15DJ"
},
{
"SchoolName": "George Green's School",
"Postcode": "E143DW"
},
{
"SchoolName": "Central Foundation Girls' School",
"Postcode": "E32AE"
},
{
"SchoolName": "Sir John Cass Foundation and Redcoat Church of England Secondary School",
"Postcode": "E10RH"
},
{
"SchoolName": "Bishop Challoner Catholic Federations of Girls School",
"Postcode": "E10LB"
},
{
"SchoolName": "Raine's Foundation School",
"Postcode": "E29LY"
},
{
"SchoolName": "Gatehouse School",
"Postcode": "E29JG"
},
{
"SchoolName": "Madani Secondary Girls' School",
"Postcode": "E11HL"
},
{
"SchoolName": "Bowden House School",
"Postcode": "BN252JB"
},
{
"SchoolName": "Phoenix School",
"Postcode": "E32AD"
},
{
"SchoolName": "Beatrice Tate School",
"Postcode": "E34PX"
},
{
"SchoolName": "Balham Nursery School & Children's Centre",
"Postcode": "SW128JL"
},
{
"SchoolName": "Eastwood Nursery School",
"Postcode": "SW154EU"
},
{
"SchoolName": "Somerset Nursery School and Children's Centre",
"Postcode": "SW113ND"
},
{
"SchoolName": "Francis Barber Pupil Referral Unit",
"Postcode": "SW178HE"
},
{
"SchoolName": "Alderbrook Primary School",
"Postcode": "SW128PP"
},
{
"SchoolName": "Allfarthing Primary School",
"Postcode": "SW182LR"
},
{
"SchoolName": "Beatrix Potter Primary School",
"Postcode": "SW183ER"
},
{
"SchoolName": "Brandlehow Primary School",
"Postcode": "SW152ED"
},
{
"SchoolName": "Broadwater Primary School",
"Postcode": "SW170DZ"
},
{
"SchoolName": "Chesterton Primary School",
"Postcode": "SW115DT"
},
{
"SchoolName": "Eardley School",
"Postcode": "SW166DS"
},
{
"SchoolName": "Earlsfield Primary School",
"Postcode": "SW183QQ"
},
{
"SchoolName": "Falconbrook Primary School",
"Postcode": "SW112LX"
},
{
"SchoolName": "Fircroft Primary School",
"Postcode": "SW177PP"
},
{
"SchoolName": "Franciscan Primary School",
"Postcode": "SW178HQ"
},
{
"SchoolName": "Furzedown Primary School",
"Postcode": "SW179TJ"
},
{
"SchoolName": "High View Primary School",
"Postcode": "SW112AA"
},
{
"SchoolName": "Honeywell Junior School",
"Postcode": "SW116EF"
},
{
"SchoolName": "Honeywell Infant School",
"Postcode": "SW116EF"
},
{
"SchoolName": "Hotham Primary School",
"Postcode": "SW151PN"
},
{
"SchoolName": "John Burns Primary School",
"Postcode": "SW115QR"
},
{
"SchoolName": "Penwortham Primary School",
"Postcode": "SW166RJ"
},
{
"SchoolName": "Ravenstone Primary School",
"Postcode": "SW129SS"
},
{
"SchoolName": "Riversdale Primary School",
"Postcode": "SW185JP"
},
{
"SchoolName": "Sellincourt Primary School",
"Postcode": "SW179SA"
},
{
"SchoolName": "Shaftesbury Park Primary School",
"Postcode": "SW115UW"
},
{
"SchoolName": "Smallwood Primary School and Language Unit",
"Postcode": "SW170TW"
},
{
"SchoolName": "Swaffield Primary School",
"Postcode": "SW182SA"
},
{
"SchoolName": "West Hill Primary School",
"Postcode": "SW185ST"
},
{
"SchoolName": "Wix Primary School",
"Postcode": "SW40AJ"
},
{
"SchoolName": "Sheringdale Primary School",
"Postcode": "SW185TR"
},
{
"SchoolName": "Southmead Primary School",
"Postcode": "SW196QT"
},
{
"SchoolName": "Granard Primary School",
"Postcode": "SW156XA"
},
{
"SchoolName": "Heathmere Primary School",
"Postcode": "SW154LJ"
},
{
"SchoolName": "Ronald Ross Primary School",
"Postcode": "SW196RW"
},
{
"SchoolName": "Albemarle Primary School",
"Postcode": "SW196JP"
},
{
"SchoolName": "The Alton School",
"Postcode": "SW154PD"
},
{
"SchoolName": "All Saints' CofE Primary School, Putney",
"Postcode": "SW151HL"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "SW112TH"
},
{
"SchoolName": "Holy Ghost Catholic Primary School",
"Postcode": "SW128QJ"
},
{
"SchoolName": "Our Lady of Victories Catholic Primary School",
"Postcode": "SW151AW"
},
{
"SchoolName": "Roehampton CofE Primary School",
"Postcode": "SW154AA"
},
{
"SchoolName": "St Anne's CofE Primary School",
"Postcode": "SW182RU"
},
{
"SchoolName": "St Boniface RC Primary School",
"Postcode": "SW178PP"
},
{
"SchoolName": "St Faith's CofE Primary School",
"Postcode": "SW181AE"
},
{
"SchoolName": "St George's CofE Primary School",
"Postcode": "SW84JS"
},
{
"SchoolName": "St Joseph's RC Primary School",
"Postcode": "SW152QD"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "SW151BA"
},
{
"SchoolName": "Trinity St Mary's CofE Primary School",
"Postcode": "SW128DR"
},
{
"SchoolName": "St Mary's RC Voluntary Aided Primary School",
"Postcode": "SW84BE"
},
{
"SchoolName": "St Michael's CofE Primary School",
"Postcode": "SW185SQ"
},
{
"SchoolName": "Sacred Heart Catholic Primary School, Roehampton",
"Postcode": "SW155NX"
},
{
"SchoolName": "Our Lady Queen of Heaven RC School",
"Postcode": "SW196AD"
},
{
"SchoolName": "St Anselm's Catholic Primary School",
"Postcode": "SW178BS"
},
{
"SchoolName": "Ernest Bevin College",
"Postcode": "SW177DF"
},
{
"SchoolName": "Hillbrook School",
"Postcode": "SW178SG"
},
{
"SchoolName": "Ibstock Place School",
"Postcode": "SW155PY"
},
{
"SchoolName": "Merlin School",
"Postcode": "SW152BZ"
},
{
"SchoolName": "Hurlingham School",
"Postcode": "SW152NQ"
},
{
"SchoolName": "Willington School",
"Postcode": "SW197QQ"
},
{
"SchoolName": "Emanuel School",
"Postcode": "SW111HS"
},
{
"SchoolName": "Putney High School",
"Postcode": "SW156BH"
},
{
"SchoolName": "London Steiner School",
"Postcode": "SW120LT"
},
{
"SchoolName": "Broomwood Hall School",
"Postcode": "SW128NR"
},
{
"SchoolName": "The Roche School",
"Postcode": "SW181HW"
},
{
"SchoolName": "Finton House School",
"Postcode": "SW177HL"
},
{
"SchoolName": "The Dominie School Limited",
"Postcode": "SW114DX"
},
{
"SchoolName": "Hornsby House School",
"Postcode": "SW128RS"
},
{
"SchoolName": "Eveline Day School",
"Postcode": "SW177BQ"
},
{
"SchoolName": "Prospect House School",
"Postcode": "SW153NT"
},
{
"SchoolName": "Newton Preparatory School",
"Postcode": "SW84BX"
},
{
"SchoolName": "Dolphin School (Incorporating Noahs Ark Nursery Schools)",
"Postcode": "SW116QW"
},
{
"SchoolName": "Hall School Wimbledon",
"Postcode": "SW153EQ"
},
{
"SchoolName": "Lion House School",
"Postcode": "SW156EH"
},
{
"SchoolName": "Eaton House the Manor School",
"Postcode": "SW49RU"
},
{
"SchoolName": "Northcote Lodge School",
"Postcode": "SW116EL"
},
{
"SchoolName": "Al-Risalah",
"Postcode": "SW177TJ"
},
{
"SchoolName": "Parkgate House School",
"Postcode": "SW49SD"
},
{
"SchoolName": "Linden Lodge School",
"Postcode": "SW196JB"
},
{
"SchoolName": "Oak Lodge School",
"Postcode": "SW128NA"
},
{
"SchoolName": "Bradstow School",
"Postcode": "CT101BY"
},
{
"SchoolName": "Greenmead School",
"Postcode": "SW156HL"
},
{
"SchoolName": "Paddock School",
"Postcode": "SW155RT"
},
{
"SchoolName": "Garratt Park School",
"Postcode": "SW183TB"
},
{
"SchoolName": "Tachbrook Nursery School",
"Postcode": "SW1V3RT"
},
{
"SchoolName": "Dorothy Gardner Centre",
"Postcode": "W93JY"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "W93DS"
},
{
"SchoolName": "Barrow Hill Junior School",
"Postcode": "NW87AL"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "W25TL"
},
{
"SchoolName": "Essendine Primary School",
"Postcode": "W92LR"
},
{
"SchoolName": "George Eliot Primary School",
"Postcode": "NW80NH"
},
{
"SchoolName": "Hallfield Primary School",
"Postcode": "W26JJ"
},
{
"SchoolName": "Robinsfield Infant School",
"Postcode": "NW86PX"
},
{
"SchoolName": "Queen's Park Primary School",
"Postcode": "W104DQ"
},
{
"SchoolName": "All Souls CofE Primary School",
"Postcode": "W1W7JJ"
},
{
"SchoolName": "Burdett-Coutts and Townshend Foundation CofE Primary School",
"Postcode": "SW1P2QQ"
},
{
"SchoolName": "Hampden Gurney CofE Primary School",
"Postcode": "W1H5HA"
},
{
"SchoolName": "Our Lady of Dolours RC Primary School",
"Postcode": "W25SR"
},
{
"SchoolName": "St Augustine's CofE Primary School",
"Postcode": "NW65XA"
},
{
"SchoolName": "St Barnabas' CofE Primary School",
"Postcode": "SW1W8PF"
},
{
"SchoolName": "St Clement Danes CofE Primary School",
"Postcode": "WC2B5SU"
},
{
"SchoolName": "St Edward's Catholic Primary School",
"Postcode": "NW16LH"
},
{
"SchoolName": "St Gabriel's CofE Primary School",
"Postcode": "SW1V3AG"
},
{
"SchoolName": "St George's Hanover Square CofE Primary School",
"Postcode": "W1K2XH"
},
{
"SchoolName": "Soho Parish CofE Primary School",
"Postcode": "W1D7LF"
},
{
"SchoolName": "St James & St John Church of England Primary School",
"Postcode": "W23QD"
},
{
"SchoolName": "St Joseph's RC Primary School",
"Postcode": "W91DF"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "W93EJ"
},
{
"SchoolName": "St Mary Magdalene CofE Primary School",
"Postcode": "W25TF"
},
{
"SchoolName": "St Mary's Bryanston Square CofE School",
"Postcode": "W1H1DL"
},
{
"SchoolName": "St Mary of the Angels RC Primary School",
"Postcode": "W25PR"
},
{
"SchoolName": "St Matthew's School, Westminster",
"Postcode": "SW1P2DG"
},
{
"SchoolName": "St Peter's CofE School",
"Postcode": "W92AN"
},
{
"SchoolName": "St Peter's Eaton Square CofE Primary School",
"Postcode": "SW1W0NL"
},
{
"SchoolName": "St Saviour's CofE Primary School",
"Postcode": "W92JD"
},
{
"SchoolName": "St Stephen's CofE Primary School",
"Postcode": "W25QH"
},
{
"SchoolName": "St Vincent's Catholic Primary School",
"Postcode": "W1U4DF"
},
{
"SchoolName": "St Vincent de Paul RC Primary School",
"Postcode": "SW1P1EP"
},
{
"SchoolName": "Westminster Cathedral RC Primary School",
"Postcode": "SW1V3SE"
},
{
"SchoolName": "Christ Church Bentinck CofE Primary School",
"Postcode": "NW15NS"
},
{
"SchoolName": "St Augustine's CofE High School",
"Postcode": "NW65SN"
},
{
"SchoolName": "Arnold House School",
"Postcode": "NW80LH"
},
{
"SchoolName": "Queen's College London",
"Postcode": "W1G8BT"
},
{
"SchoolName": "Francis Holland School",
"Postcode": "NW16XR"
},
{
"SchoolName": "Westminster Abbey Choir School",
"Postcode": "SW1P3NY"
},
{
"SchoolName": "Eaton House School",
"Postcode": "SW1W9BA"
},
{
"SchoolName": "Francis Holland School",
"Postcode": "SW1W8JF"
},
{
"SchoolName": "Westminster School",
"Postcode": "SW1P3PF"
},
{
"SchoolName": "The Hampshire School, Chelsea",
"Postcode": "SW36NB"
},
{
"SchoolName": "Connaught House School",
"Postcode": "W22HL"
},
{
"SchoolName": "Westminster Under School",
"Postcode": "SW1P2NN"
},
{
"SchoolName": "Westminster Cathedral Choir School",
"Postcode": "SW1P1QH"
},
{
"SchoolName": "The American School in London",
"Postcode": "NW80NP"
},
{
"SchoolName": "St Christina's School",
"Postcode": "NW87PY"
},
{
"SchoolName": "International Community School",
"Postcode": "NW14PT"
},
{
"SchoolName": "The Sylvia Young Theatre School",
"Postcode": "W1H5YZ"
},
{
"SchoolName": "Fairley House School",
"Postcode": "SW1P4AU"
},
{
"SchoolName": "St John's Wood Pre-Preparatory School",
"Postcode": "NW87NE"
},
{
"SchoolName": "Centre Academy London",
"Postcode": "SW111SH"
},
{
"SchoolName": "Naima Jewish Preparatory School",
"Postcode": "NW65ED"
},
{
"SchoolName": "Abercorn School",
"Postcode": "NW89XP"
},
{
"SchoolName": "Eaton Square School",
"Postcode": "SW1V1PP"
},
{
"SchoolName": "Bales College",
"Postcode": "W104AA"
},
{
"SchoolName": "College Park School",
"Postcode": "W24PH"
},
{
"SchoolName": "Queen Elizabeth II Jubilee School",
"Postcode": "W93LG"
},
{
"SchoolName": "Dorothy Barley Infants' School",
"Postcode": "RM82LL"
},
{
"SchoolName": "Manor Junior School",
"Postcode": "IG119AG"
},
{
"SchoolName": "Manor Infants' School/Manor Longbridge",
"Postcode": "IG119AG"
},
{
"SchoolName": "Northbury Primary School",
"Postcode": "IG118JA"
},
{
"SchoolName": "Ripple Primary School",
"Postcode": "IG117QS"
},
{
"SchoolName": "Beam Primary School",
"Postcode": "RM109ED"
},
{
"SchoolName": "Furze Infants' School",
"Postcode": "RM66ES"
},
{
"SchoolName": "Grafton Primary School",
"Postcode": "RM83EX"
},
{
"SchoolName": "Marks Gate Infants' School",
"Postcode": "RM65LL"
},
{
"SchoolName": "Marsh Green Primary School",
"Postcode": "RM109NJ"
},
{
"SchoolName": "Rush Green Primary School",
"Postcode": "RM70RL"
},
{
"SchoolName": "The Leys Primary School",
"Postcode": "RM109YR"
},
{
"SchoolName": "Warren Junior School",
"Postcode": "RM66DA"
},
{
"SchoolName": "Thomas Arnold Primary School",
"Postcode": "RM96NH"
},
{
"SchoolName": "Valence Primary School",
"Postcode": "RM83AR"
},
{
"SchoolName": "Village Infants' School",
"Postcode": "RM109JS"
},
{
"SchoolName": "Marks Gate Junior School",
"Postcode": "RM65NJ"
},
{
"SchoolName": "William Bellamy Primary School",
"Postcode": "RM107HX"
},
{
"SchoolName": "Parsloes Primary School",
"Postcode": "RM95RH"
},
{
"SchoolName": "Five Elms Primary School",
"Postcode": "RM95TB"
},
{
"SchoolName": "Henry Green Primary School",
"Postcode": "RM81UR"
},
{
"SchoolName": "Roding Primary School",
"Postcode": "RM82XS"
},
{
"SchoolName": "Becontree Primary School",
"Postcode": "RM82QR"
},
{
"SchoolName": "John Perry Primary School",
"Postcode": "RM108UR"
},
{
"SchoolName": "William Ford CofE Primary School",
"Postcode": "RM109JS"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "IG117AR"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "RM95UL"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "RM96UU"
},
{
"SchoolName": "The St Teresa Catholic Primary School",
"Postcode": "RM82XJ"
},
{
"SchoolName": "St Vincent's Catholic Primary School",
"Postcode": "RM82JN"
},
{
"SchoolName": "Barking Abbey School, A Specialist Sports and Humanities College",
"Postcode": "IG119AG"
},
{
"SchoolName": "Eastbrook School",
"Postcode": "RM107UR"
},
{
"SchoolName": "Eastbury Community School",
"Postcode": "IG119UW"
},
{
"SchoolName": "<NAME>",
"Postcode": "RM81JU"
},
{
"SchoolName": "All Saints Catholic School and Technology College",
"Postcode": "RM81JT"
},
{
"SchoolName": "Brookhill Nursery School",
"Postcode": "EN48SD"
},
{
"SchoolName": "Hampden Way Nursery School",
"Postcode": "N145DJ"
},
{
"SchoolName": "Moss Hall Nursery School",
"Postcode": "N31NR"
},
{
"SchoolName": "St Margaret's Nursery School",
"Postcode": "EN49NT"
},
{
"SchoolName": "Pavilion Study Centre",
"Postcode": "N209DX"
},
{
"SchoolName": "Barnfield Primary School",
"Postcode": "HA80DA"
},
{
"SchoolName": "Bell Lane Primary School",
"Postcode": "NW42AS"
},
{
"SchoolName": "Brookland Junior School",
"Postcode": "NW116EJ"
},
{
"SchoolName": "Brookland Infant and Nursery School",
"Postcode": "NW116EJ"
},
{
"SchoolName": "Brunswick Park Primary and Nursery School",
"Postcode": "N145DU"
},
{
"SchoolName": "Childs Hill School",
"Postcode": "NW21SL"
},
{
"SchoolName": "Church Hill School",
"Postcode": "EN48NN"
},
{
"SchoolName": "Colindale Primary School",
"Postcode": "NW96DT"
},
{
"SchoolName": "Coppetts Wood Primary School",
"Postcode": "N101JS"
},
{
"SchoolName": "Courtland School",
"Postcode": "NW73BG"
},
{
"SchoolName": "Cromer Road Primary School",
"Postcode": "EN55HT"
},
{
"SchoolName": "Deansbrook Infant School",
"Postcode": "NW73ED"
},
{
"SchoolName": "Dollis Infant School",
"Postcode": "NW72BU"
},
{
"SchoolName": "Edgware Primary School",
"Postcode": "HA89AB"
},
{
"SchoolName": "Fairway Primary School and Children's Centre",
"Postcode": "NW73HS"
},
{
"SchoolName": "Foulds School",
"Postcode": "EN54NR"
},
{
"SchoolName": "Frith Manor Primary School",
"Postcode": "N127BN"
},
{
"SchoolName": "Garden Suburb Junior School",
"Postcode": "NW116XU"
},
{
"SchoolName": "Garden Suburb Infant School",
"Postcode": "NW116XU"
},
{
"SchoolName": "Goldbeaters Primary School",
"Postcode": "HA80HA"
},
{
"SchoolName": "Hollickwood Primary School",
"Postcode": "N102NL"
},
{
"SchoolName": "Holly Park Primary School",
"Postcode": "N113HG"
},
{
"SchoolName": "Livingstone Primary and Nursery School",
"Postcode": "EN49BU"
},
{
"SchoolName": "Manorside Primary School",
"Postcode": "N32AB"
},
{
"SchoolName": "Monkfrith Primary School",
"Postcode": "N145NG"
},
{
"SchoolName": "Moss Hall Junior School",
"Postcode": "N31NR"
},
{
"SchoolName": "Moss Hall Infant School",
"Postcode": "N128PE"
},
{
"SchoolName": "Northside Primary School",
"Postcode": "N128JP"
},
{
"SchoolName": "Summerside Primary School",
"Postcode": "N120QU"
},
{
"SchoolName": "Woodridge Primary School",
"Postcode": "N127HE"
},
{
"SchoolName": "Tudor Primary School",
"Postcode": "N32AG"
},
{
"SchoolName": "Underhill School",
"Postcode": "EN52LZ"
},
{
"SchoolName": "Whitings Hill Primary School",
"Postcode": "EN52QY"
},
{
"SchoolName": "Chalgrove Primary School",
"Postcode": "N33PL"
},
{
"SchoolName": "Sunnyfields Primary School",
"Postcode": "NW44JH"
},
{
"SchoolName": "Queenswell Infant & Nursery School",
"Postcode": "N200NQ"
},
{
"SchoolName": "Queenswell Junior School",
"Postcode": "N200NQ"
},
{
"SchoolName": "Danegrove Primary School",
"Postcode": "EN48UD"
},
{
"SchoolName": "All Saints' CofE Primary School NW2",
"Postcode": "NW22TH"
},
{
"SchoolName": "Christ Church Primary School",
"Postcode": "EN54NS"
},
{
"SchoolName": "Holy Trinity CofE Primary School",
"Postcode": "N28GA"
},
{
"SchoolName": "Monken Hadley CofE Primary School",
"Postcode": "EN40NJ"
},
{
"SchoolName": "St John's CofE Junior Mixed and Infant School",
"Postcode": "N113LB"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "N200PL"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "N31BT"
},
{
"SchoolName": "St Mary's CofE Primary School, East Barnet",
"Postcode": "EN48SR"
},
{
"SchoolName": "St Paul's CofE Primary School N11",
"Postcode": "N111NQ"
},
{
"SchoolName": "St Paul's CofE Primary School NW7",
"Postcode": "NW71QU"
},
{
"SchoolName": "St Andrew's CofE Voluntary Aided Primary School, Totteridge",
"Postcode": "N208NX"
},
{
"SchoolName": "Trent CofE Primary School",
"Postcode": "EN49JH"
},
{
"SchoolName": "All Saints' CofE Primary School N20",
"Postcode": "N209EZ"
},
{
"SchoolName": "The Annunciation Catholic Infant School",
"Postcode": "HA80HQ"
},
{
"SchoolName": "Our Lady of Lourdes RC School",
"Postcode": "N120JP"
},
{
"SchoolName": "St Agnes RC School",
"Postcode": "NW21RG"
},
{
"SchoolName": "St Catherine's RC School",
"Postcode": "EN52ED"
},
{
"SchoolName": "St Vincent's Catholic Primary School",
"Postcode": "NW71EJ"
},
{
"SchoolName": "St Theresa's Catholic Primary School",
"Postcode": "N32TD"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "NW44TY"
},
{
"SchoolName": "Sacred Heart Roman Catholic Primary School",
"Postcode": "N209JU"
},
{
"SchoolName": "Blessed Dominic Catholic Primary School",
"Postcode": "NW95FN"
},
{
"SchoolName": "<NAME>ah Primary School",
"Postcode": "HA88TE"
},
{
"SchoolName": "Menorah Primary School",
"Postcode": "NW119SP"
},
{
"SchoolName": "The Annunciation RC Junior School",
"Postcode": "HA89HQ"
},
{
"SchoolName": "Friern Barnet School",
"Postcode": "N113LS"
},
{
"SchoolName": "Dollis Junior School",
"Postcode": "NW72BU"
},
{
"SchoolName": "Osidge Primary School",
"Postcode": "N145HD"
},
{
"SchoolName": "St Michael's Catholic Grammar School",
"Postcode": "N127NJ"
},
{
"SchoolName": "Finchley Catholic High School",
"Postcode": "N128TA"
},
{
"SchoolName": "St James' Catholic High School",
"Postcode": "NW95PE"
},
{
"SchoolName": "Mill Hill School Foundation",
"Postcode": "NW71QS"
},
{
"SchoolName": "Hendon Preparatory School",
"Postcode": "NW41TD"
},
{
"SchoolName": "The King Alfred School",
"Postcode": "NW117HY"
},
{
"SchoolName": "Lyonsdown School",
"Postcode": "EN51SA"
},
{
"SchoolName": "St Martha's School",
"Postcode": "EN40NJ"
},
{
"SchoolName": "Annemount School",
"Postcode": "N20QN"
},
{
"SchoolName": "<NAME>-Kennedy Jewish Primary School",
"Postcode": "NW73RT"
},
{
"SchoolName": "Golders Hill School",
"Postcode": "NW117NT"
},
{
"SchoolName": "Goodwyn School",
"Postcode": "NW74DB"
},
{
"SchoolName": "Holland House School",
"Postcode": "HA88TP"
},
{
"SchoolName": "Kerem School",
"Postcode": "N20RE"
},
{
"SchoolName": "St Martin's School",
"Postcode": "NW73RG"
},
{
"SchoolName": "Pardes House Grammar School",
"Postcode": "N31SA"
},
{
"SchoolName": "Kisharon School",
"Postcode": "NW117HB"
},
{
"SchoolName": "Menorah Grammar School",
"Postcode": "HA80QS"
},
{
"SchoolName": "Beth Jacob Grammar School for Girls",
"Postcode": "NW42AT"
},
{
"SchoolName": "Dwight School London",
"Postcode": "N113LX"
},
{
"SchoolName": "Brampton College",
"Postcode": "NW44DQ"
},
{
"SchoolName": "Northway School",
"Postcode": "NW73HS"
},
{
"SchoolName": "Oakleigh School & Acorn Assessment Centre",
"Postcode": "N200DH"
},
{
"SchoolName": "Mapledown School",
"Postcode": "NW21TR"
},
{
"SchoolName": "Crook Log Primary School",
"Postcode": "DA68EQ"
},
{
"SchoolName": "Danson Primary School",
"Postcode": "DA162BH"
},
{
"SchoolName": "Gravel Hill Primary School",
"Postcode": "DA67QJ"
},
{
"SchoolName": "Hook Lane Primary School",
"Postcode": "DA162ET"
},
{
"SchoolName": "Upton Primary School",
"Postcode": "DA51HH"
},
{
"SchoolName": "Belmont Primary School",
"Postcode": "DA81LE"
},
{
"SchoolName": "Birkbeck Primary School",
"Postcode": "DA144ED"
},
{
"SchoolName": "Longlands Primary School",
"Postcode": "DA157JG"
},
{
"SchoolName": "Slade Green Primary School",
"Postcode": "DA82HX"
},
{
"SchoolName": "Dulverton Primary School",
"Postcode": "SE93RH"
},
{
"SchoolName": "Parkway Primary School",
"Postcode": "DA184DP"
},
{
"SchoolName": "Belvedere Infant School",
"Postcode": "DA176AA"
},
{
"SchoolName": "Jubilee Primary School",
"Postcode": "SE288JB"
},
{
"SchoolName": "Northwood Primary School",
"Postcode": "DA184HN"
},
{
"SchoolName": "Castilion Primary School",
"Postcode": "SE288QA"
},
{
"SchoolName": "Foster's Primary School",
"Postcode": "DA161PN"
},
{
"SchoolName": "St Stephen's Catholic Primary School",
"Postcode": "DA163QG"
},
{
"SchoolName": "Our Lady of the Rosary Catholic Primary School",
"Postcode": "DA158QW"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "DA14DZ"
},
{
"SchoolName": "St Fidelis Catholic Primary School",
"Postcode": "DA83HQ"
},
{
"SchoolName": "St <NAME> Catholic Primary School",
"Postcode": "DA74PH"
},
{
"SchoolName": "St <NAME> Catholic Primary School",
"Postcode": "DA184BA"
},
{
"SchoolName": "St <NAME> Catholic Primary School",
"Postcode": "DA145ED"
},
{
"SchoolName": "St Michael's East Wickham Church of England Voluntary Aided Primary School",
"Postcode": "DA161LS"
},
{
"SchoolName": "West Lodge School",
"Postcode": "DA157DU"
},
{
"SchoolName": "Merton Court School",
"Postcode": "DA144QU"
},
{
"SchoolName": "Benedict House Preparatory School",
"Postcode": "DA157HD"
},
{
"SchoolName": "Woodside School",
"Postcode": "DA83PB"
},
{
"SchoolName": "Westbrooke School",
"Postcode": "DA161JB"
},
{
"SchoolName": "Curzon Crescent Nursery School",
"Postcode": "NW109SD"
},
{
"SchoolName": "Fawood Children's Centre",
"Postcode": "NW108RF"
},
{
"SchoolName": "College Green School and Services",
"Postcode": "NW103PH"
},
{
"SchoolName": "Granville Plus Nursery School",
"Postcode": "NW65RA"
},
{
"SchoolName": "Foundry College",
"Postcode": "RG401PX"
},
{
"SchoolName": "Peel Park Primary School",
"Postcode": "BD24PR"
},
{
"SchoolName": "Anson Primary School",
"Postcode": "NW24AB"
},
{
"SchoolName": "Brentfield Primary School",
"Postcode": "NW100SL"
},
{
"SchoolName": "Byron Court Primary School",
"Postcode": "HA03SF"
},
{
"SchoolName": "Carlton Vale Infant School",
"Postcode": "NW65PX"
},
{
"SchoolName": "Harlesden Primary School",
"Postcode": "NW108UT"
},
{
"SchoolName": "Mount Stewart Junior School",
"Postcode": "HA30JX"
},
{
"SchoolName": "Mount Stewart Infant School",
"Postcode": "HA30JX"
},
{
"SchoolName": "Uxendon Manor Primary School",
"Postcode": "HA30UX"
},
{
"SchoolName": "Kingsbury Green Primary School",
"Postcode": "NW99ND"
},
{
"SchoolName": "Leopold Primary School",
"Postcode": "NW109UR"
},
{
"SchoolName": "Lyon Park Primary School",
"Postcode": "HA04HH"
},
{
"SchoolName": "Malorees Infant School",
"Postcode": "NW67PB"
},
{
"SchoolName": "Northview Junior and Infant School",
"Postcode": "NW101RD"
},
{
"SchoolName": "Park Lane Primary School",
"Postcode": "HA97RY"
},
{
"SchoolName": "Preston Park Primary School",
"Postcode": "HA98RJ"
},
{
"SchoolName": "Roe Green Junior School",
"Postcode": "NW99JL"
},
{
"SchoolName": "Roe Green Infant School",
"Postcode": "NW99JL"
},
{
"SchoolName": "Barham Primary School",
"Postcode": "HA04RQ"
},
{
"SchoolName": "Wykeham Primary School",
"Postcode": "NW100EX"
},
{
"SchoolName": "Elsley Primary School",
"Postcode": "HA96HT"
},
{
"SchoolName": "Donnington Primary School",
"Postcode": "NW103TL"
},
{
"SchoolName": "The Stonebridge School",
"Postcode": "NW108NG"
},
{
"SchoolName": "Newfield Primary School",
"Postcode": "NW103UD"
},
{
"SchoolName": "Mitchell Brook Primary School",
"Postcode": "NW109BX"
},
{
"SchoolName": "Chalkhill Primary School",
"Postcode": "HA99YP"
},
{
"SchoolName": "Salusbury Primary School",
"Postcode": "NW66RG"
},
{
"SchoolName": "Oliver Goldsmith Primary School",
"Postcode": "NW90BD"
},
{
"SchoolName": "Mora Primary School",
"Postcode": "NW26TD"
},
{
"SchoolName": "Fryent Primary School",
"Postcode": "NW98JD"
},
{
"SchoolName": "Braintcroft Primary School",
"Postcode": "NW27LL"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "NW67TE"
},
{
"SchoolName": "John Keble CofE Primary School",
"Postcode": "NW104DR"
},
{
"SchoolName": "Princess Frederica CofE Primary School",
"Postcode": "NW105TP"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "NW109JA"
},
{
"SchoolName": "Our Lady of Grace Catholic Junior School",
"Postcode": "NW26HS"
},
{
"SchoolName": "St Joseph RC Junior School",
"Postcode": "HA96BE"
},
{
"SchoolName": "St Mary Magdalen's Catholic Junior School",
"Postcode": "NW25BB"
},
{
"SchoolName": "St Robert Southwell RC Primary School",
"Postcode": "NW98YD"
},
{
"SchoolName": "Convent of Jesus and Mary RC Infant School",
"Postcode": "NW25AN"
},
{
"SchoolName": "Our Lady of Lourdes RC Primary School",
"Postcode": "NW108PP"
},
{
"SchoolName": "St Joseph's RC Infant School",
"Postcode": "HA96TA"
},
{
"SchoolName": "Our Lady of Grace RC Infant and Nursery School",
"Postcode": "NW26EU"
},
{
"SchoolName": "St Margaret Clitherow RC Primary School",
"Postcode": "NW100BG"
},
{
"SchoolName": "Sinai Jewish Primary School",
"Postcode": "HA39UD"
},
{
"SchoolName": "Malorees Junior School",
"Postcode": "NW67PB"
},
{
"SchoolName": "St Joseph's Roman Catholic Primary School",
"Postcode": "NW109LS"
},
{
"SchoolName": "The Kilburn Park School Foundation",
"Postcode": "NW65RG"
},
{
"SchoolName": "Newman Catholic College",
"Postcode": "NW103RN"
},
{
"SchoolName": "Buckingham Preparatory School",
"Postcode": "HA55DT"
},
{
"SchoolName": "Buxlow Preparatory School",
"Postcode": "HA97QJ"
},
{
"SchoolName": "St Christopher's School",
"Postcode": "HA98HE"
},
{
"SchoolName": "St Nicholas School",
"Postcode": "NW98PN"
},
{
"SchoolName": "Ysgol Gymraeg Llundain, London Welsh School",
"Postcode": "W71PD"
},
{
"SchoolName": "Islamia Primary School",
"Postcode": "NW66PE"
},
{
"SchoolName": "Islamia School for Girls'",
"Postcode": "NW66PE"
},
{
"SchoolName": "Al-Sadiq and Al-Zahra Schools",
"Postcode": "NW66PF"
},
{
"SchoolName": "The Swaminarayan School",
"Postcode": "NW108HE"
},
{
"SchoolName": "Phoenix Arch School",
"Postcode": "NW100NQ"
},
{
"SchoolName": "The Village School",
"Postcode": "NW90JY"
},
{
"SchoolName": "Churchfields Primary School",
"Postcode": "BR34QY"
},
{
"SchoolName": "Southborough Primary School",
"Postcode": "BR28AA"
},
{
"SchoolName": "Downe Primary School",
"Postcode": "BR67JN"
},
{
"SchoolName": "Edgebury Primary School",
"Postcode": "BR76BL"
},
{
"SchoolName": "Poverest Primary School",
"Postcode": "BR52JD"
},
{
"SchoolName": "St Paul's Cray Church of England Primary School",
"Postcode": "BR53WD"
},
{
"SchoolName": "St Anthony's Roman Catholic Primary School",
"Postcode": "SE208ES"
},
{
"SchoolName": "St Olave's and St Saviour's Grammar School",
"Postcode": "BR69SH"
},
{
"SchoolName": "Babington House School",
"Postcode": "BR75ES"
},
{
"SchoolName": "Bickley Park School",
"Postcode": "BR12DS"
},
{
"SchoolName": "Bishop Challoner School",
"Postcode": "BR20BS"
},
{
"SchoolName": "Breaside Preparatory School",
"Postcode": "BR12PR"
},
{
"SchoolName": "Farringtons School",
"Postcode": "BR76LR"
},
{
"SchoolName": "St Christophers The Hall School",
"Postcode": "BR35PA"
},
{
"SchoolName": "St David's College",
"Postcode": "BR40QS"
},
{
"SchoolName": "Bromley High School",
"Postcode": "BR12TW"
},
{
"SchoolName": "Eltham College",
"Postcode": "SE94QF"
},
{
"SchoolName": "Ashgrove School Ltd",
"Postcode": "BR13BE"
},
{
"SchoolName": "<NAME>",
"Postcode": "BR76SD"
},
{
"SchoolName": "Marjorie McClure School",
"Postcode": "BR75PS"
},
{
"SchoolName": "Glebe School",
"Postcode": "BR49AE"
},
{
"SchoolName": "Crosfield Nursery School",
"Postcode": "SE255BD"
},
{
"SchoolName": "Coulsdon Nursery School",
"Postcode": "CR53BT"
},
{
"SchoolName": "Purley Nursery School",
"Postcode": "CR82NE"
},
{
"SchoolName": "Tunstall Nursery School",
"Postcode": "CR06TY"
},
{
"SchoolName": "Saffron Valley Collegiate",
"Postcode": "CR01QH"
},
{
"SchoolName": "Beulah Junior School",
"Postcode": "CR78JF"
},
{
"SchoolName": "Cypress Primary School",
"Postcode": "SE254AU"
},
{
"SchoolName": "Elmwood Junior School",
"Postcode": "CR02PL"
},
{
"SchoolName": "Elmwood Infant School",
"Postcode": "CR02PL"
},
{
"SchoolName": "Howard Primary School",
"Postcode": "CR01DT"
},
{
"SchoolName": "Monks Orchard School",
"Postcode": "CR07UF"
},
{
"SchoolName": "Purley Oaks Primary School",
"Postcode": "CR20PR"
},
{
"SchoolName": "Winterbourne Junior Girls' School",
"Postcode": "CR77QT"
},
{
"SchoolName": "Winterbourne Nursery and Infants' School",
"Postcode": "CR77QT"
},
{
"SchoolName": "Wolsey Infant School",
"Postcode": "CR00PA"
},
{
"SchoolName": "Kenley Primary School",
"Postcode": "CR30EX"
},
{
"SchoolName": "Beaumont Primary School",
"Postcode": "CR84DN"
},
{
"SchoolName": "Gresham Primary School",
"Postcode": "CR29EA"
},
{
"SchoolName": "Smitham Primary School",
"Postcode": "CR53DE"
},
{
"SchoolName": "The Hayes Primary School",
"Postcode": "CR85JN"
},
{
"SchoolName": "Park Hill Junior School",
"Postcode": "CR05NS"
},
{
"SchoolName": "Orchard Way Primary School",
"Postcode": "CR07NJ"
},
{
"SchoolName": "Forestdale Primary School",
"Postcode": "CR09JE"
},
{
"SchoolName": "Courtwood Primary School",
"Postcode": "CR09HX"
},
{
"SchoolName": "Heavers Farm Primary School",
"Postcode": "SE256LT"
},
{
"SchoolName": "Downsview Primary and Nursery School",
"Postcode": "SE193XE"
},
{
"SchoolName": "Park Hill Infant School",
"Postcode": "CR05NS"
},
{
"SchoolName": "Greenvale Primary School",
"Postcode": "CR28PR"
},
{
"SchoolName": "Rockmount Primary School",
"Postcode": "SE193ST"
},
{
"SchoolName": "Norbury Manor Primary School",
"Postcode": "SW165QR"
},
{
"SchoolName": "All Saints CofE Primary School",
"Postcode": "SE193LG"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "CR05EL"
},
{
"SchoolName": "The Minster Junior School",
"Postcode": "CR04BH"
},
{
"SchoolName": "The Minster Nursery and Infant School",
"Postcode": "CR04BH"
},
{
"SchoolName": "Coulsdon CofE Primary School",
"Postcode": "CR51ED"
},
{
"SchoolName": "Christ Church CofE Primary School (Purley)",
"Postcode": "CR82QE"
},
{
"SchoolName": "St Joseph's RC Junior School",
"Postcode": "SE193NU"
},
{
"SchoolName": "Margaret Roper Catholic Primary School",
"Postcode": "CR82XP"
},
{
"SchoolName": "Regina Coeli Catholic Primary School",
"Postcode": "CR26DF"
},
{
"SchoolName": "St Joseph's RC Infant School",
"Postcode": "SE193NX"
},
{
"SchoolName": "Archbishop Tenison's CofE High School",
"Postcode": "CR05JQ"
},
{
"SchoolName": "St Andrew's CofE Voluntary Aided High School",
"Postcode": "CR04BH"
},
{
"SchoolName": "St Mary's Catholic High School",
"Postcode": "CR92EE"
},
{
"SchoolName": "Selsdon Primary and Nursery School",
"Postcode": "CR28LQ"
},
{
"SchoolName": "Thomas More Catholic School",
"Postcode": "CR82XP"
},
{
"SchoolName": "Coloma Convent Girls' School",
"Postcode": "CR95AS"
},
{
"SchoolName": "Cumnor House School",
"Postcode": "CR26DA"
},
{
"SchoolName": "Elmhurst School",
"Postcode": "CR27DW"
},
{
"SchoolName": "Henriette Le Forestier Preparatory School",
"Postcode": "SE191RS"
},
{
"SchoolName": "Laleham Lea School",
"Postcode": "CR83JJ"
},
{
"SchoolName": "Royal Russell School",
"Postcode": "CR95BX"
},
{
"SchoolName": "Whitgift School",
"Postcode": "CR26YT"
},
{
"SchoolName": "Reedham Park School Limited",
"Postcode": "CR84DN"
},
{
"SchoolName": "St David's School",
"Postcode": "CR83AL"
},
{
"SchoolName": "Trinity School",
"Postcode": "CR97AT"
},
{
"SchoolName": "Rutherford School",
"Postcode": "CR27HZ"
},
{
"SchoolName": "Croydon High School",
"Postcode": "CR28YB"
},
{
"SchoolName": "Old Palace of John Whitgift School",
"Postcode": "CR01AX"
},
{
"SchoolName": "BRIT School for Performing Arts and Technology",
"Postcode": "CR02HN"
},
{
"SchoolName": "Bensham Manor School",
"Postcode": "CR77BN"
},
{
"SchoolName": "St Giles School",
"Postcode": "CR26DF"
},
{
"SchoolName": "Beckmead School",
"Postcode": "BR33BZ"
},
{
"SchoolName": "St Nicholas School",
"Postcode": "CR84DS"
},
{
"SchoolName": "Red Gates School",
"Postcode": "CR28HD"
},
{
"SchoolName": "Priory School",
"Postcode": "SE193QN"
},
{
"SchoolName": "The Academy of St Francis of Assisi",
"Postcode": "L67UR"
},
{
"SchoolName": "Maples Children's Centre",
"Postcode": "W37LL"
},
{
"SchoolName": "Grove House Children's Centre",
"Postcode": "UB12JG"
},
{
"SchoolName": "South Acton Childrens Centre",
"Postcode": "W38RX"
},
{
"SchoolName": "Greenfields Childrens Centre",
"Postcode": "UB25PF"
},
{
"SchoolName": "Berrymede Junior School",
"Postcode": "W38SJ"
},
{
"SchoolName": "Berrymede Infant School",
"Postcode": "W38RN"
},
{
"SchoolName": "East Acton Primary School",
"Postcode": "W37HA"
},
{
"SchoolName": "Oldfield Primary School",
"Postcode": "UB68PR"
},
{
"SchoolName": "North Ealing Primary School",
"Postcode": "W51RP"
},
{
"SchoolName": "St John's Primary School",
"Postcode": "W130NY"
},
{
"SchoolName": "St Mark's Primary School",
"Postcode": "W72NR"
},
{
"SchoolName": "West Twyford Primary School",
"Postcode": "NW107DN"
},
{
"SchoolName": "West Acton Primary School",
"Postcode": "W30JL"
},
{
"SchoolName": "Mayfield Primary School",
"Postcode": "W73RT"
},
{
"SchoolName": "Beaconsfield Primary and Nursery School",
"Postcode": "UB11DR"
},
{
"SchoolName": "Coston Primary School",
"Postcode": "UB69JU"
},
{
"SchoolName": "Downe Manor Primary School",
"Postcode": "UB56NW"
},
{
"SchoolName": "Drayton Green Primary School",
"Postcode": "W130LA"
},
{
"SchoolName": "North Primary School",
"Postcode": "UB12JE"
},
{
"SchoolName": "Ravenor Primary School",
"Postcode": "UB69TT"
},
{
"SchoolName": "Selborne Primary School",
"Postcode": "UB68JD"
},
{
"SchoolName": "Hambrough Primary School",
"Postcode": "UB11SF"
},
{
"SchoolName": "Hobbayne Primary School",
"Postcode": "W71HA"
},
{
"SchoolName": "John Perryn Primary School",
"Postcode": "W37PD"
},
{
"SchoolName": "Southfield Primary School",
"Postcode": "W41BD"
},
{
"SchoolName": "Allenby Primary School",
"Postcode": "UB12HX"
},
{
"SchoolName": "Blair Peach Primary School",
"Postcode": "UB11DR"
},
{
"SchoolName": "Clifton Primary School",
"Postcode": "UB25QP"
},
{
"SchoolName": "Dairy Meadow Primary School",
"Postcode": "UB24RP"
},
{
"SchoolName": "Derwentwater Primary School",
"Postcode": "W36SA"
},
{
"SchoolName": "Durdans Park Primary School",
"Postcode": "UB12PQ"
},
{
"SchoolName": "Fielding Primary School",
"Postcode": "W139TE"
},
{
"SchoolName": "Gifford Primary School",
"Postcode": "UB56BU"
},
{
"SchoolName": "Greenwood Primary School",
"Postcode": "UB54QG"
},
{
"SchoolName": "Havelock Primary School and Nursery",
"Postcode": "UB24PA"
},
{
"SchoolName": "Horsenden Primary School",
"Postcode": "UB60PB"
},
{
"SchoolName": "Willow Tree Primary School",
"Postcode": "UB55FE"
},
{
"SchoolName": "Lady Margaret Primary School",
"Postcode": "UB12NH"
},
{
"SchoolName": "Little Ealing Primary School",
"Postcode": "W54EA"
},
{
"SchoolName": "Oaklands Primary School",
"Postcode": "W72DP"
},
{
"SchoolName": "Perivale Primary School",
"Postcode": "UB67AP"
},
{
"SchoolName": "Stanhope Primary School",
"Postcode": "UB69EG"
},
{
"SchoolName": "Viking Primary School",
"Postcode": "UB56HW"
},
{
"SchoolName": "Wolf Fields Primary School",
"Postcode": "UB24JS"
},
{
"SchoolName": "Featherstone Primary and Nursery School",
"Postcode": "UB25JT"
},
{
"SchoolName": "Three Bridges Primary School",
"Postcode": "UB24HT"
},
{
"SchoolName": "Montpelier Primary School",
"Postcode": "W52QT"
},
{
"SchoolName": "Tudor Primary School",
"Postcode": "UB11NX"
},
{
"SchoolName": "Vicar's Green Primary School",
"Postcode": "HA01DP"
},
{
"SchoolName": "Mount Carmel Catholic Primary School",
"Postcode": "W54EA"
},
{
"SchoolName": "Our Lady of the Visitation Catholic Primary School",
"Postcode": "UB69AN"
},
{
"SchoolName": "St John Fisher Catholic Primary School",
"Postcode": "UB67AF"
},
{
"SchoolName": "St Anselm's Catholic Primary School",
"Postcode": "UB24BH"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "W51SL"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "W73HU"
},
{
"SchoolName": "St Raphael's Catholic Primary School",
"Postcode": "UB56NL"
},
{
"SchoolName": "St Vincent's Catholic Primary School",
"Postcode": "W39JR"
},
{
"SchoolName": "Ed<NAME>tham Church of England Primary School",
"Postcode": "UB69JU"
},
{
"SchoolName": "Villiers High School",
"Postcode": "UB13BT"
},
{
"SchoolName": "Dormers Wells High School",
"Postcode": "UB13HZ"
},
{
"SchoolName": "Acton High School",
"Postcode": "W38EY"
},
{
"SchoolName": "The Cardinal Wiseman Catholic School",
"Postcode": "UB69AW"
},
{
"SchoolName": "Wood End Infant School",
"Postcode": "UB54LB"
},
{
"SchoolName": "Dormers Wells Junior School",
"Postcode": "UB13HX"
},
{
"SchoolName": "Dormers Wells Infant School",
"Postcode": "UB13HX"
},
{
"SchoolName": "Brentside High School",
"Postcode": "W71JJ"
},
{
"SchoolName": "Greenford High School",
"Postcode": "UB12GU"
},
{
"SchoolName": "The Ellen Wilkinson School for Girls",
"Postcode": "W30HW"
},
{
"SchoolName": "Northolt High School",
"Postcode": "UB54HP"
},
{
"SchoolName": "Durston House School",
"Postcode": "W52DR"
},
{
"SchoolName": "Harvington Prep School",
"Postcode": "W52DS"
},
{
"SchoolName": "St Augustine's Priory",
"Postcode": "W52JL"
},
{
"SchoolName": "St Benedict's School",
"Postcode": "W52ES"
},
{
"SchoolName": "Barbara Speake Stage School",
"Postcode": "W37EG"
},
{
"SchoolName": "The Falcons School for Girls",
"Postcode": "SW156PY"
},
{
"SchoolName": "The Sybil Elgar School",
"Postcode": "UB24NY"
},
{
"SchoolName": "Notting Hill and Ealing High School",
"Postcode": "W138AX"
},
{
"SchoolName": "Clifton Lodge School",
"Postcode": "W55BG"
},
{
"SchoolName": "King Fahad Academy",
"Postcode": "W37HD"
},
{
"SchoolName": "The Japanese School",
"Postcode": "W39PU"
},
{
"SchoolName": "Greek Secondary School of London",
"Postcode": "N228LB"
},
{
"SchoolName": "Orchard House School",
"Postcode": "W41LB"
},
{
"SchoolName": "Avenue House School",
"Postcode": "W138LS"
},
{
"SchoolName": "The Eden School (SDA)",
"Postcode": "W38JY"
},
{
"SchoolName": "Belvue School",
"Postcode": "UB56AG"
},
{
"SchoolName": "Castlebar School",
"Postcode": "W130DH"
},
{
"SchoolName": "Mandeville School",
"Postcode": "UB60PA"
},
{
"SchoolName": "John Chilton School",
"Postcode": "UB55LD"
},
{
"SchoolName": "Springhallow School",
"Postcode": "W130JG"
},
{
"SchoolName": "St Ann's School",
"Postcode": "W73JP"
},
{
"SchoolName": "Enfield Secondary Tuition Centre",
"Postcode": "N98LG"
},
{
"SchoolName": "Capel Manor Primary School",
"Postcode": "EN14RL"
},
{
"SchoolName": "Carterhatch Junior School",
"Postcode": "EN14JY"
},
{
"SchoolName": "Carterhatch Infant School",
"Postcode": "EN14JY"
},
{
"SchoolName": "Chase Side Primary School",
"Postcode": "EN26NS"
},
{
"SchoolName": "Eldon Primary School",
"Postcode": "N98LG"
},
{
"SchoolName": "Firs Farm Primary School",
"Postcode": "N135QP"
},
{
"SchoolName": "Fleecefield Primary School",
"Postcode": "N182ES"
},
{
"SchoolName": "Galliard Primary School",
"Postcode": "N97PE"
},
{
"SchoolName": "Garfield Primary School",
"Postcode": "N111BH"
},
{
"SchoolName": "George Spicer Primary School",
"Postcode": "EN11YF"
},
{
"SchoolName": "Hadley Wood Primary School",
"Postcode": "EN40HT"
},
{
"SchoolName": "Hazelwood Junior School",
"Postcode": "N135HE"
},
{
"SchoolName": "Hazelwood Infant School",
"Postcode": "N135HE"
},
{
"SchoolName": "Honilands Primary School",
"Postcode": "EN14RE"
},
{
"SchoolName": "Merryhills Primary School",
"Postcode": "EN27RE"
},
{
"SchoolName": "Prince of Wales Primary School",
"Postcode": "EN36HG"
},
{
"SchoolName": "The Raglan Junior School",
"Postcode": "EN12RG"
},
{
"SchoolName": "Raglan Infant School",
"Postcode": "EN12NS"
},
{
"SchoolName": "Suffolks Primary School",
"Postcode": "EN13PU"
},
{
"SchoolName": "Tottenhall Infant School",
"Postcode": "N136HX"
},
{
"SchoolName": "Walker Primary School",
"Postcode": "N147EG"
},
{
"SchoolName": "Houndsfield Primary School",
"Postcode": "N97RE"
},
{
"SchoolName": "Alma Primary School",
"Postcode": "EN34UQ"
},
{
"SchoolName": "Wilbury Primary School",
"Postcode": "N181DE"
},
{
"SchoolName": "Southbury Primary School",
"Postcode": "EN34JG"
},
{
"SchoolName": "Grange Park Primary School",
"Postcode": "N211PP"
},
{
"SchoolName": "Eastfield Primary School",
"Postcode": "EN35UX"
},
{
"SchoolName": "Churchfield Primary School",
"Postcode": "N99PL"
},
{
"SchoolName": "Worcesters Primary School",
"Postcode": "EN14UF"
},
{
"SchoolName": "De Bohun Primary School",
"Postcode": "N144AD"
},
{
"SchoolName": "Raynham Primary School",
"Postcode": "N182JQ"
},
{
"SchoolName": "Bush Hill Park Primary School",
"Postcode": "EN11DS"
},
{
"SchoolName": "Eversley Primary School",
"Postcode": "N211PD"
},
{
"SchoolName": "St Michael at Bowes CofE Junior School",
"Postcode": "N136JB"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "EN29BD"
},
{
"SchoolName": "Forty Hill CofE Primary School",
"Postcode": "EN29EY"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "EN13UL"
},
{
"SchoolName": "St Andrew's Southgate Primary School (CE)",
"Postcode": "N146JA"
},
{
"SchoolName": "Freezywater St George's CofE Primary School",
"Postcode": "EN36NR"
},
{
"SchoolName": "St John and St James CofE Primary School",
"Postcode": "N182TL"
},
{
"SchoolName": "St James CofE Primary School",
"Postcode": "EN37HH"
},
{
"SchoolName": "St Michael's CofE Primary School",
"Postcode": "EN20NB"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "N212RA"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "EN37DE"
},
{
"SchoolName": "St Edmunds Catholic Primary School",
"Postcode": "N97HJ"
},
{
"SchoolName": "St George's Catholic Primary School",
"Postcode": "EN20QA"
},
{
"SchoolName": "St Monica's RC Primary School",
"Postcode": "N147HE"
},
{
"SchoolName": "Our Lady of Lourdes Catholic Primary School",
"Postcode": "N111RD"
},
{
"SchoolName": "Latymer All Saints CofE Primary School",
"Postcode": "N99RS"
},
{
"SchoolName": "Wolfson Hillel Primary School",
"Postcode": "N144LG"
},
{
"SchoolName": "Enfield County School",
"Postcode": "EN26QG"
},
{
"SchoolName": "Chace Community School",
"Postcode": "EN13HQ"
},
{
"SchoolName": "<NAME>ford's School",
"Postcode": "EN13PU"
},
{
"SchoolName": "St Anne's Catholic High School for Girls",
"Postcode": "N135TY"
},
{
"SchoolName": "St Matthew's CofE Primary School",
"Postcode": "EN34LA"
},
{
"SchoolName": "The Latymer School",
"Postcode": "N99TN"
},
{
"SchoolName": "Broomfield School",
"Postcode": "N147HY"
},
{
"SchoolName": "St Ignatius College",
"Postcode": "EN14NP"
},
{
"SchoolName": "Keble Preparatory School",
"Postcode": "N211BG"
},
{
"SchoolName": "Palmers Green High School",
"Postcode": "N213LJ"
},
{
"SchoolName": "Grange Park Preparatory School",
"Postcode": "N212EA"
},
{
"SchoolName": "Salcombe School",
"Postcode": "N144PL"
},
{
"SchoolName": "Vita Et Pax School",
"Postcode": "N144AT"
},
{
"SchoolName": "St John's Preparatory and Senior School",
"Postcode": "EN65QT"
},
{
"SchoolName": "Durants School",
"Postcode": "EN35BY"
},
{
"SchoolName": "West Lea School",
"Postcode": "N99TU"
},
{
"SchoolName": "Aylands School",
"Postcode": "EN36NY"
},
{
"SchoolName": "Oaktree School",
"Postcode": "N144HN"
},
{
"SchoolName": "Waverley School",
"Postcode": "EN37DL"
},
{
"SchoolName": "Pembury House Nursery School",
"Postcode": "N179XE"
},
{
"SchoolName": "Rowland Hill Nursery School",
"Postcode": "N177LT"
},
{
"SchoolName": "Woodlands Park Nursery School and Childrens Centre",
"Postcode": "N153SD"
},
{
"SchoolName": "Belmont Junior School",
"Postcode": "N226RA"
},
{
"SchoolName": "Belmont Infant School",
"Postcode": "N226RA"
},
{
"SchoolName": "Bounds Green Junior School",
"Postcode": "N112QG"
},
{
"SchoolName": "Bounds Green Infant School",
"Postcode": "N112QG"
},
{
"SchoolName": "Campsbourne Junior School",
"Postcode": "N87AF"
},
{
"SchoolName": "Campsbourne Infant School",
"Postcode": "N87AF"
},
{
"SchoolName": "The Devonshire Hill Nursery & Primary School",
"Postcode": "N178LB"
},
{
"SchoolName": "Earlsmead Primary School",
"Postcode": "N154PW"
},
{
"SchoolName": "Highgate Primary School",
"Postcode": "N64ED"
},
{
"SchoolName": "Lancasterian Primary School",
"Postcode": "N178NN"
},
{
"SchoolName": "Coldfall Primary School",
"Postcode": "N101HS"
},
{
"SchoolName": "Tetherdown Primary School",
"Postcode": "N103BP"
},
{
"SchoolName": "Rokesly Junior School",
"Postcode": "N88NH"
},
{
"SchoolName": "Rokesly Infant School",
"Postcode": "N88NH"
},
{
"SchoolName": "South Harringay Junior School",
"Postcode": "N41BA"
},
{
"SchoolName": "South Harringay Infant School",
"Postcode": "N41BA"
},
{
"SchoolName": "Stamford Hill Primary School",
"Postcode": "N156HD"
},
{
"SchoolName": "West Green Primary School",
"Postcode": "N153RT"
},
{
"SchoolName": "Tiverton Primary School",
"Postcode": "N156SP"
},
{
"SchoolName": "Coleridge Primary School",
"Postcode": "N88DN"
},
{
"SchoolName": "Welbourne Primary School",
"Postcode": "N154EA"
},
{
"SchoolName": "Lea Valley Primary School",
"Postcode": "N170PT"
},
{
"SchoolName": "Ferry Lane Primary School",
"Postcode": "N179PP"
},
{
"SchoolName": "Rhodes Avenue Primary School",
"Postcode": "N227UT"
},
{
"SchoolName": "Crowland Primary School",
"Postcode": "N156UX"
},
{
"SchoolName": "Weston Park Primary School",
"Postcode": "N89WP"
},
{
"SchoolName": "The Willow Primary School",
"Postcode": "N176HW"
},
{
"SchoolName": "St Aidan's Voluntary Controlled Primary School",
"Postcode": "N44RR"
},
{
"SchoolName": "St Michael's CofE Voluntary Aided Primary School",
"Postcode": "N64BG"
},
{
"SchoolName": "St James Church of England Primary School",
"Postcode": "N103JA"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "N87BU"
},
{
"SchoolName": "Our Lady of Muswell Catholic Primary School",
"Postcode": "N101PS"
},
{
"SchoolName": "St Francis de Sales RC Junior School",
"Postcode": "N178AZ"
},
{
"SchoolName": "St Ignatius RC Primary School",
"Postcode": "N156ND"
},
{
"SchoolName": "St Mary's Priory RC Junior School",
"Postcode": "N155RE"
},
{
"SchoolName": "St Paul's RC Primary School",
"Postcode": "N227SZ"
},
{
"SchoolName": "St Mary's Priory RC Infant School",
"Postcode": "N155RE"
},
{
"SchoolName": "St Peter-in-Chains RC Infant School",
"Postcode": "N89AJ"
},
{
"SchoolName": "St Francis de Sales RC Infant School",
"Postcode": "N178AZ"
},
{
"SchoolName": "St Martin of Porres RC Primary School",
"Postcode": "N112AF"
},
{
"SchoolName": "St Gildas' Catholic Junior School",
"Postcode": "N89EP"
},
{
"SchoolName": "St John Vianney RC Primary School",
"Postcode": "N153HD"
},
{
"SchoolName": "Hornsey School for Girls",
"Postcode": "N89JF"
},
{
"SchoolName": "Highgate Wood Secondary School",
"Postcode": "N88RN"
},
{
"SchoolName": "Northumberland Park Community School",
"Postcode": "N170PG"
},
{
"SchoolName": "Fortismere School",
"Postcode": "N101NE"
},
{
"SchoolName": "Gladesmore Community School",
"Postcode": "N156EB"
},
{
"SchoolName": "Channing School",
"Postcode": "N65HF"
},
{
"SchoolName": "Highgate School",
"Postcode": "N64AY"
},
{
"SchoolName": "Norfolk House School",
"Postcode": "N102EG"
},
{
"SchoolName": "Sunrise Primary School",
"Postcode": "N170EX"
},
{
"SchoolName": "North London Rudolf Steiner School",
"Postcode": "N87PN"
},
{
"SchoolName": "Beis Chinuch Lebonos Girls School",
"Postcode": "N42SH"
},
{
"SchoolName": "The London School for Children With Cerebral Palsy",
"Postcode": "N101JP"
},
{
"SchoolName": "Excelsior College",
"Postcode": "N178JN"
},
{
"SchoolName": "Blanche Nevile School",
"Postcode": "N101NJ"
},
{
"SchoolName": "Vale School",
"Postcode": "N170PG"
},
{
"SchoolName": "The Brook School",
"Postcode": "N176HW"
},
{
"SchoolName": "Riverside School",
"Postcode": "N225QJ"
},
{
"SchoolName": "The Helix Education Centre",
"Postcode": "HA36DH"
},
{
"SchoolName": "Newton Farm Nursery, Infant and Junior School",
"Postcode": "HA29JU"
},
{
"SchoolName": "Roxeth Primary School",
"Postcode": "HA20JA"
},
{
"SchoolName": "Marlborough Primary School",
"Postcode": "HA11UJ"
},
{
"SchoolName": "Grimsdyke School",
"Postcode": "HA54QE"
},
{
"SchoolName": "Camrose Primary With Nursery",
"Postcode": "HA86JH"
},
{
"SchoolName": "Belmont School",
"Postcode": "HA37JT"
},
{
"SchoolName": "Kenmore Park Junior School",
"Postcode": "HA39JA"
},
{
"SchoolName": "Pinner Park Junior School",
"Postcode": "HA55TJ"
},
{
"SchoolName": "Priestmead Primary School and Nursery",
"Postcode": "HA38SZ"
},
{
"SchoolName": "Stag Lane Junior School",
"Postcode": "HA85RU"
},
{
"SchoolName": "Longfield Primary School",
"Postcode": "HA27NZ"
},
{
"SchoolName": "Grange Primary School",
"Postcode": "HA20RY"
},
{
"SchoolName": "Cannon Lane Primary School",
"Postcode": "HA51TS"
},
{
"SchoolName": "Pinner Park Infant and Nursery School",
"Postcode": "HA55TL"
},
{
"SchoolName": "Stag Lane Infant and Nursery School",
"Postcode": "HA85RU"
},
{
"SchoolName": "Elmgrove Primary School & Nursery",
"Postcode": "HA38LU"
},
{
"SchoolName": "Kenmore Park Infant and Nursery School",
"Postcode": "HA39JA"
},
{
"SchoolName": "Roxbourne Primary School",
"Postcode": "HA29QF"
},
{
"SchoolName": "Stanburn Primary School",
"Postcode": "HA72PJ"
},
{
"SchoolName": "Weald Rise Primary School",
"Postcode": "HA37DH"
},
{
"SchoolName": "West Lodge Primary School",
"Postcode": "HA51AF"
},
{
"SchoolName": "Earlsmead Primary School",
"Postcode": "HA28PW"
},
{
"SchoolName": "Welldon Park Primary School",
"Postcode": "HA28LT"
},
{
"SchoolName": "Norbury School",
"Postcode": "HA11QQ"
},
{
"SchoolName": "Vaughan Primary School",
"Postcode": "HA14EL"
},
{
"SchoolName": "Glebe Primary School",
"Postcode": "HA39LF"
},
{
"SchoolName": "St Anselm's Catholic Primary School",
"Postcode": "HA13BE"
},
{
"SchoolName": "St Teresa's Catholic Primary School and Nursery",
"Postcode": "HA36LE"
},
{
"SchoolName": "St John Fisher Catholic Primary School",
"Postcode": "HA55RA"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "HA37LP"
},
{
"SchoolName": "St George's Primary School",
"Postcode": "HA13SB"
},
{
"SchoolName": "Whitmore High School",
"Postcode": "HA20AD"
},
{
"SchoolName": "The Sacred Heart Language College",
"Postcode": "HA37AY"
},
{
"SchoolName": "Harrow School",
"Postcode": "HA13HP"
},
{
"SchoolName": "The John Lyon School",
"Postcode": "HA20HN"
},
{
"SchoolName": "Orley Farm School",
"Postcode": "HA13NU"
},
{
"SchoolName": "Quainton Hall School",
"Postcode": "HA11RX"
},
{
"SchoolName": "Alpha Preparatory School",
"Postcode": "HA11SH"
},
{
"SchoolName": "Reddiford School",
"Postcode": "HA55HH"
},
{
"SchoolName": "Roxeth Mead School",
"Postcode": "HA20HW"
},
{
"SchoolName": "Purcell School",
"Postcode": "WD232TS"
},
{
"SchoolName": "North London Collegiate School",
"Postcode": "HA87RJ"
},
{
"SchoolName": "Shaftesbury High School",
"Postcode": "HA36LE"
},
{
"SchoolName": "The James Oglethorpe Primary School",
"Postcode": "RM143NB"
},
{
"SchoolName": "Harold Wood Primary School",
"Postcode": "RM30TH"
},
{
"SchoolName": "Ardleigh Green Junior School",
"Postcode": "RM112SP"
},
{
"SchoolName": "Ardleigh Green Infant School",
"Postcode": "RM112SP"
},
{
"SchoolName": "Elm Park Primary School",
"Postcode": "RM125UA"
},
{
"SchoolName": "Hylands Primary School",
"Postcode": "RM12RU"
},
{
"SchoolName": "Hacton Primary School",
"Postcode": "RM126AU"
},
{
"SchoolName": "Harold Court Primary School",
"Postcode": "RM30SH"
},
{
"SchoolName": "Langtons Infant School",
"Postcode": "RM113SD"
},
{
"SchoolName": "Scargill Junior School",
"Postcode": "RM137PL"
},
{
"SchoolName": "Scargill Infant School",
"Postcode": "RM137PL"
},
{
"SchoolName": "Suttons Primary School",
"Postcode": "RM126RP"
},
{
"SchoolName": "Whybridge Junior School",
"Postcode": "RM137AH"
},
{
"SchoolName": "Whybridge Infant School",
"Postcode": "RM137AR"
},
{
"SchoolName": "Clockhouse Primary School",
"Postcode": "RM53QR"
},
{
"SchoolName": "Crownfield Junior School",
"Postcode": "RM78JB"
},
{
"SchoolName": "Crownfield Infant School",
"Postcode": "RM78JB"
},
{
"SchoolName": "Parklands Junior School",
"Postcode": "RM14QX"
},
{
"SchoolName": "Parklands Infant School",
"Postcode": "RM14QX"
},
{
"SchoolName": "Squirrels Heath Junior School",
"Postcode": "RM25TP"
},
{
"SchoolName": "Squirrels Heath Infant School",
"Postcode": "RM25TP"
},
{
"SchoolName": "Gidea Park Primary School",
"Postcode": "RM25AJ"
},
{
"SchoolName": "Towers Infant School",
"Postcode": "RM111HP"
},
{
"SchoolName": "Parsonage Farm Primary School",
"Postcode": "RM139JU"
},
{
"SchoolName": "Towers Junior School",
"Postcode": "RM111PD"
},
{
"SchoolName": "Brady Primary School",
"Postcode": "RM139XA"
},
{
"SchoolName": "Scotts Primary School",
"Postcode": "RM126TH"
},
{
"SchoolName": "Broadford Primary School",
"Postcode": "RM38JS"
},
{
"SchoolName": "Newtons Primary School",
"Postcode": "RM138QR"
},
{
"SchoolName": "Nelmes Primary School",
"Postcode": "RM113BX"
},
{
"SchoolName": "Mead Primary School",
"Postcode": "RM39JD"
},
{
"SchoolName": "Rainham Village Primary School",
"Postcode": "RM139AA"
},
{
"SchoolName": "Hilldene Primary School",
"Postcode": "RM37DU"
},
{
"SchoolName": "Dame Tipping Church of England Primary School",
"Postcode": "RM41PS"
},
{
"SchoolName": "St Edward's Church of England Voluntary Aided Primary School",
"Postcode": "RM14BT"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "RM124TL"
},
{
"SchoolName": "La Salette Catholic Primary School",
"Postcode": "RM138SP"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "RM52AP"
},
{
"SchoolName": "St Ursula's Catholic Junior School",
"Postcode": "RM37JS"
},
{
"SchoolName": "St Ursula's Catholic Infant School",
"Postcode": "RM37JS"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "RM142QB"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "RM14JA"
},
{
"SchoolName": "St Alban's Catholic Primary School",
"Postcode": "RM125LN"
},
{
"SchoolName": "Sanders School",
"Postcode": "RM126RT"
},
{
"SchoolName": "Gidea Park College",
"Postcode": "RM25JR"
},
{
"SchoolName": "Goodrington School",
"Postcode": "RM112JT"
},
{
"SchoolName": "St Mary's Hare Park School",
"Postcode": "RM26HH"
},
{
"SchoolName": "Raphael Independent School",
"Postcode": "RM111XY"
},
{
"SchoolName": "Immanuel School",
"Postcode": "RM14HR"
},
{
"SchoolName": "Oakfields Montessori School",
"Postcode": "RM142YG"
},
{
"SchoolName": "Corbets Tey School",
"Postcode": "RM142YQ"
},
{
"SchoolName": "McMillan Nursery School",
"Postcode": "UB32PB"
},
{
"SchoolName": "Bourne Primary School",
"Postcode": "HA46UJ"
},
{
"SchoolName": "The Breakspear School",
"Postcode": "UB108JA"
},
{
"SchoolName": "Colham Manor Primary School",
"Postcode": "UB83PT"
},
{
"SchoolName": "Coteford Infant School",
"Postcode": "HA52HX"
},
{
"SchoolName": "Deanesfield Primary School",
"Postcode": "HA40LR"
},
{
"SchoolName": "Field End Junior School",
"Postcode": "HA49PQ"
},
{
"SchoolName": "Field End Infant School",
"Postcode": "HA49PQ"
},
{
"SchoolName": "Glebe Primary School",
"Postcode": "UB108PH"
},
{
"SchoolName": "Harefield Junior School",
"Postcode": "UB96BJ"
},
{
"SchoolName": "Harefield Infant School",
"Postcode": "UB96BT"
},
{
"SchoolName": "Harlyn Primary School",
"Postcode": "HA52DR"
},
{
"SchoolName": "Harmondsworth Primary School",
"Postcode": "UB70AU"
},
{
"SchoolName": "Heathrow Primary School",
"Postcode": "UB70JQ"
},
{
"SchoolName": "Lady Bankes Junior School",
"Postcode": "HA49SF"
},
{
"SchoolName": "Lady Bankes Infant School",
"Postcode": "HA49SF"
},
{
"SchoolName": "Minet Junior School",
"Postcode": "UB33NR"
},
{
"SchoolName": "Minet Nursery and Infant School",
"Postcode": "UB33NR"
},
{
"SchoolName": "Newnham Junior School",
"Postcode": "HA49RW"
},
{
"SchoolName": "Newnham Infant and Nursery School",
"Postcode": "HA49RW"
},
{
"SchoolName": "West Drayton Primary School",
"Postcode": "UB79EA"
},
{
"SchoolName": "Whitehall Junior School",
"Postcode": "UB82LX"
},
{
"SchoolName": "Whiteheath Junior School",
"Postcode": "HA47PR"
},
{
"SchoolName": "William Byrd School",
"Postcode": "UB35EW"
},
{
"SchoolName": "Yeading Junior School",
"Postcode": "UB40NR"
},
{
"SchoolName": "Yeading Infant and Nursery School",
"Postcode": "UB40NR"
},
{
"SchoolName": "Hermitage Primary School",
"Postcode": "UB81RB"
},
{
"SchoolName": "Highfield Primary School",
"Postcode": "UB100DB"
},
{
"SchoolName": "Rabbsfarm Primary School",
"Postcode": "UB78AH"
},
{
"SchoolName": "Warrender Primary School",
"Postcode": "HA48QG"
},
{
"SchoolName": "Whitehall Infant School",
"Postcode": "UB82LX"
},
{
"SchoolName": "Whiteheath Infant and Nursery School",
"Postcode": "HA47RF"
},
{
"SchoolName": "Frithwood Primary School",
"Postcode": "HA63NJ"
},
{
"SchoolName": "Ruislip Gardens Primary School",
"Postcode": "HA46PD"
},
{
"SchoolName": "Bishop Winnington-Ingram CofE Primary School",
"Postcode": "HA47LW"
},
{
"SchoolName": "Holy Trinity CofE Primary School",
"Postcode": "HA62RH"
},
{
"SchoolName": "Dr Triplett's CofE Primary School",
"Postcode": "UB32JQ"
},
{
"SchoolName": "St Swithun Wells Catholic Primary School",
"Postcode": "HA49HS"
},
{
"SchoolName": "Botwell House Catholic Primary School",
"Postcode": "UB32AB"
},
{
"SchoolName": "St Bernadette Catholic Primary School",
"Postcode": "UB100EH"
},
{
"SchoolName": "St Catherine Catholic Primary School",
"Postcode": "UB77NX"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "UB82UA"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "HA46EZ"
},
{
"SchoolName": "Oak Farm Infant School",
"Postcode": "UB109PD"
},
{
"SchoolName": "Oak Farm Junior School",
"Postcode": "UB109PD"
},
{
"SchoolName": "Grange Park Junior School",
"Postcode": "UB48SF"
},
{
"SchoolName": "Grange Park Infant and Nursery School",
"Postcode": "UB48SF"
},
{
"SchoolName": "Hillside Infant School",
"Postcode": "HA61RX"
},
{
"SchoolName": "Hillside Junior School",
"Postcode": "HA61RX"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "UB82BX"
},
{
"SchoolName": "Hayes Park School",
"Postcode": "UB48BE"
},
{
"SchoolName": "Abbotsfield School",
"Postcode": "UB100EX"
},
{
"SchoolName": "Harlington School",
"Postcode": "UB31PB"
},
{
"SchoolName": "Northwood College for Girls",
"Postcode": "HA62YE"
},
{
"SchoolName": "St Helen's School",
"Postcode": "HA63AS"
},
{
"SchoolName": "St Martin's School",
"Postcode": "HA62DJ"
},
{
"SchoolName": "The Hall School",
"Postcode": "HA62RB"
},
{
"SchoolName": "St Helen's College",
"Postcode": "UB109JX"
},
{
"SchoolName": "St John's School",
"Postcode": "HA63QY"
},
{
"SchoolName": "ACS Hillingdon International School",
"Postcode": "UB100BE"
},
{
"SchoolName": "Meadow High School",
"Postcode": "UB83QU"
},
{
"SchoolName": "RNIB Sunshine House School and Children's Home",
"Postcode": "HA62DD"
},
{
"SchoolName": "Pield Heath House RC School",
"Postcode": "UB83NW"
},
{
"SchoolName": "Hedgewood School",
"Postcode": "UB48NF"
},
{
"SchoolName": "Belmont Primary School",
"Postcode": "W45UL"
},
{
"SchoolName": "Cardinal Road Infant and Nursery School",
"Postcode": "TW135AL"
},
{
"SchoolName": "Cavendish Primary School",
"Postcode": "W42RG"
},
{
"SchoolName": "Feltham Hill Infant and Nursery School",
"Postcode": "TW134LZ"
},
{
"SchoolName": "Grove Park Primary School",
"Postcode": "W43JN"
},
{
"SchoolName": "Victoria Junior School",
"Postcode": "TW134AQ"
},
{
"SchoolName": "Hounslow Heath Junior School",
"Postcode": "TW47BD"
},
{
"SchoolName": "Hounslow Heath Infant and Nursery School",
"Postcode": "TW47HE"
},
{
"SchoolName": "Hounslow Town Primary School",
"Postcode": "TW31SR"
},
{
"SchoolName": "Isleworth Town Primary School",
"Postcode": "TW76AB"
},
{
"SchoolName": "Lionel Primary School",
"Postcode": "TW89QT"
},
{
"SchoolName": "Marlborough Primary School",
"Postcode": "TW75XA"
},
{
"SchoolName": "Norwood Green Infant and Nursery School",
"Postcode": "UB25RN"
},
{
"SchoolName": "Southville Junior School",
"Postcode": "TW149NP"
},
{
"SchoolName": "Southville Infant and Nursery School",
"Postcode": "TW149NP"
},
{
"SchoolName": "Sparrow Farm Infant and Nursery School",
"Postcode": "TW140DB"
},
{
"SchoolName": "Spring Grove Primary School",
"Postcode": "TW74HB"
},
{
"SchoolName": "Springwell Junior School",
"Postcode": "TW50AG"
},
{
"SchoolName": "Springwell Infant and Nursery School",
"Postcode": "TW59EF"
},
{
"SchoolName": "Strand-on-the-Green Junior School",
"Postcode": "W43NX"
},
{
"SchoolName": "Strand-on-the-Green Infant and Nursery School",
"Postcode": "W43NX"
},
{
"SchoolName": "Wellington Primary School",
"Postcode": "TW34LB"
},
{
"SchoolName": "Worple Primary School",
"Postcode": "TW77DB"
},
{
"SchoolName": "Sparrow Farm Junior School",
"Postcode": "TW140DG"
},
{
"SchoolName": "Ivybridge Primary School",
"Postcode": "TW77QB"
},
{
"SchoolName": "Edward Pauling Primary School",
"Postcode": "TW134TQ"
},
{
"SchoolName": "The Smallberry Green Primary School",
"Postcode": "TW75BF"
},
{
"SchoolName": "Grove Road Primary School",
"Postcode": "TW33QQ"
},
{
"SchoolName": "Beavers Community Primary School",
"Postcode": "TW46HR"
},
{
"SchoolName": "The Blue School CofE Primary",
"Postcode": "TW76RQ"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "TW80PN"
},
{
"SchoolName": "Our Lady and St John's Catholic Primary School",
"Postcode": "TW89JF"
},
{
"SchoolName": "St Lawrence RC Primary School",
"Postcode": "TW134FF"
},
{
"SchoolName": "St Mary's Catholic Primary School, Isleworth",
"Postcode": "TW77EE"
},
{
"SchoolName": "St Mary's Catholic Primary School ,Chiswick",
"Postcode": "W42DF"
},
{
"SchoolName": "St Michael and St Martin RC Primary School",
"Postcode": "TW47AG"
},
{
"SchoolName": "The Heathland School",
"Postcode": "TW45JD"
},
{
"SchoolName": "Gunnersbury Catholic School",
"Postcode": "TW89LB"
},
{
"SchoolName": "Ashton House School",
"Postcode": "TW74LW"
},
{
"SchoolName": "Chiswick and Bedford Park Preparatory School",
"Postcode": "W41TX"
},
{
"SchoolName": "International School of London",
"Postcode": "W38LG"
},
{
"SchoolName": "Arts Educational School",
"Postcode": "W41LY"
},
{
"SchoolName": "<NAME> School",
"Postcode": "TW149QZ"
},
{
"SchoolName": "Oaklands School",
"Postcode": "TW76JZ"
},
{
"SchoolName": "Lindon Bennett School",
"Postcode": "TW136ST"
},
{
"SchoolName": "The Cedars Primary School",
"Postcode": "TW59RU"
},
{
"SchoolName": "Surbiton Children's Centre Nursery",
"Postcode": "KT58RS"
},
{
"SchoolName": "Malden Oaks PRU",
"Postcode": "KT25QY"
},
{
"SchoolName": "Burlington Junior School",
"Postcode": "KT34LT"
},
{
"SchoolName": "Burlington Infant and Nursery School",
"Postcode": "KT34LT"
},
{
"SchoolName": "Coombe Hill Infant School",
"Postcode": "KT27DD"
},
{
"SchoolName": "Ellingham Primary School",
"Postcode": "KT92JA"
},
{
"SchoolName": "Green Lane Primary and Nursery School",
"Postcode": "KT48AS"
},
{
"SchoolName": "Robin Hood Primary School",
"Postcode": "SW153QL"
},
{
"SchoolName": "Tolworth Junior School",
"Postcode": "KT67SA"
},
{
"SchoolName": "Tolworth Infant and Nursery School",
"Postcode": "KT67SA"
},
{
"SchoolName": "Coombe Hill Junior School",
"Postcode": "KT27DD"
},
{
"SchoolName": "Maple Infants' School",
"Postcode": "KT64AL"
},
{
"SchoolName": "Alexandra School",
"Postcode": "KT26SE"
},
{
"SchoolName": "King Athelstan Primary School",
"Postcode": "KT13AR"
},
{
"SchoolName": "Grand Avenue Primary and Nursery School",
"Postcode": "KT59HU"
},
{
"SchoolName": "Malden Manor Primary and Nursery School",
"Postcode": "KT35PF"
},
{
"SchoolName": "King's Oak Primary School",
"Postcode": "KT33RZ"
},
{
"SchoolName": "Lovelace Primary School",
"Postcode": "KT92RN"
},
{
"SchoolName": "Christ Church New Malden CofE Primary School",
"Postcode": "KT33HN"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "KT58LJ"
},
{
"SchoolName": "Malden Parochial CofE Primary School",
"Postcode": "KT47LW"
},
{
"SchoolName": "St Andrew's and St Mark's CofE Junior School",
"Postcode": "KT64AL"
},
{
"SchoolName": "St John's C of E Primary School",
"Postcode": "KT12SG"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "KT91AJ"
},
{
"SchoolName": "St Paul's CofE Primary School, Kingston Hill",
"Postcode": "KT26AZ"
},
{
"SchoolName": "St Matthew's CofE Primary School",
"Postcode": "KT66LW"
},
{
"SchoolName": "St Mary's CofE (Aided) Primary School",
"Postcode": "KT92DH"
},
{
"SchoolName": "Corpus Christi Catholic Primary School",
"Postcode": "KT33JU"
},
{
"SchoolName": "Our Lady Immaculate Catholic Primary School",
"Postcode": "KT67DG"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "KT12UP"
},
{
"SchoolName": "Chessington Community College",
"Postcode": "KT92JS"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "KT26EN"
},
{
"SchoolName": "Holy Cross Preparatory School",
"Postcode": "KT27NU"
},
{
"SchoolName": "Shrewsbury House School",
"Postcode": "KT66RL"
},
{
"SchoolName": "Surbiton High School",
"Postcode": "KT12JT"
},
{
"SchoolName": "Rokeby Senior School",
"Postcode": "KT27PB"
},
{
"SchoolName": "Marymount International School",
"Postcode": "KT27PE"
},
{
"SchoolName": "Park Hill School",
"Postcode": "KT27SH"
},
{
"SchoolName": "Study School",
"Postcode": "KT35DP"
},
{
"SchoolName": "Westbury House School",
"Postcode": "KT35AS"
},
{
"SchoolName": "Kingston Grammar School",
"Postcode": "KT26PY"
},
{
"SchoolName": "Canbury School",
"Postcode": "KT27LN"
},
{
"SchoolName": "Bond Primary School",
"Postcode": "CR43HG"
},
{
"SchoolName": "Dundonald Primary School",
"Postcode": "SW193QH"
},
{
"SchoolName": "Garfield Primary School",
"Postcode": "SW198SB"
},
{
"SchoolName": "Hatfeild Primary School",
"Postcode": "SM44SJ"
},
{
"SchoolName": "Hollymount School",
"Postcode": "SW200SQ"
},
{
"SchoolName": "Joseph Hood Primary School",
"Postcode": "SW209NS"
},
{
"SchoolName": "Links Primary School",
"Postcode": "SW179EH"
},
{
"SchoolName": "Lonesome Primary School",
"Postcode": "CR41SD"
},
{
"SchoolName": "Merton Abbey Primary School",
"Postcode": "SW192JY"
},
{
"SchoolName": "Merton Park Primary School",
"Postcode": "SW193HQ"
},
{
"SchoolName": "Morden Primary School",
"Postcode": "SM45PX"
},
{
"SchoolName": "Pelham Primary School",
"Postcode": "SW191NU"
},
{
"SchoolName": "Haslemere Primary School",
"Postcode": "CR43PQ"
},
{
"SchoolName": "Poplar Primary School",
"Postcode": "SW193JZ"
},
{
"SchoolName": "St Mark's Primary School",
"Postcode": "CR42LF"
},
{
"SchoolName": "The Sherwood School",
"Postcode": "CR41JP"
},
{
"SchoolName": "Singlegate Primary School",
"Postcode": "SW192NT"
},
{
"SchoolName": "Wimbledon Park Primary School",
"Postcode": "SW198EJ"
},
{
"SchoolName": "Abbotsbury Primary School",
"Postcode": "SM45JS"
},
{
"SchoolName": "West Wimbledon Primary School",
"Postcode": "SW200BZ"
},
{
"SchoolName": "Cranmer Primary School",
"Postcode": "CR44XU"
},
{
"SchoolName": "Gorringe Park Primary School",
"Postcode": "CR42YA"
},
{
"SchoolName": "Hillcross Primary School",
"Postcode": "SM44EE"
},
{
"SchoolName": "Liberty Primary",
"Postcode": "CR43EB"
},
{
"SchoolName": "Stanford Primary School",
"Postcode": "SW165HB"
},
{
"SchoolName": "William Morris Primary School",
"Postcode": "CR41PJ"
},
{
"SchoolName": "Wimbledon Chase Primary School",
"Postcode": "SW193QB"
},
{
"SchoolName": "All Saints' CofE Primary School",
"Postcode": "SW191AR"
},
{
"SchoolName": "St Matthew's CofE Primary School",
"Postcode": "SW200SX"
},
{
"SchoolName": "Holy Trinity CofE Primary School",
"Postcode": "SW198PW"
},
{
"SchoolName": "Bishop Gilpin CofE Primary School",
"Postcode": "SW197EP"
},
{
"SchoolName": "St Peter and Paul Catholic Primary School",
"Postcode": "CR44LA"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "KT34ND"
},
{
"SchoolName": "St Teresa's Catholic Primary School",
"Postcode": "SM46RL"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "SW191QL"
},
{
"SchoolName": "St John Fisher RC Primary School",
"Postcode": "SW209NA"
},
{
"SchoolName": "The Priory CofE School",
"Postcode": "SW198LX"
},
{
"SchoolName": "Ricards Lodge High School",
"Postcode": "SW197HB"
},
{
"SchoolName": "Raynes Park High School",
"Postcode": "SW200JL"
},
{
"SchoolName": "Rutlish School",
"Postcode": "SW209AD"
},
{
"SchoolName": "Wimbledon College",
"Postcode": "SW194NS"
},
{
"SchoolName": "Ursuline High School Wimbledon",
"Postcode": "SW208HA"
},
{
"SchoolName": "King's College School",
"Postcode": "SW194TT"
},
{
"SchoolName": "The Rowans School",
"Postcode": "SW200EG"
},
{
"SchoolName": "Ursuline Preparatory School",
"Postcode": "SW208HR"
},
{
"SchoolName": "Donhead Preparatory School",
"Postcode": "SW194NP"
},
{
"SchoolName": "The Study Preparatory School",
"Postcode": "SW194UN"
},
{
"SchoolName": "Wimbledon Common Preparatory School",
"Postcode": "SW194TA"
},
{
"SchoolName": "Wimbledon High School",
"Postcode": "SW194AB"
},
{
"SchoolName": "The Norwegian School in London",
"Postcode": "SW208AH"
},
{
"SchoolName": "Blossom House School",
"Postcode": "KT36JJ"
},
{
"SchoolName": "Melrose School",
"Postcode": "CR43BE"
},
{
"SchoolName": "Perseid School",
"Postcode": "SM45LT"
},
{
"SchoolName": "Cricket Green School",
"Postcode": "CR43AF"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "E163PB"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "E70PH"
},
{
"SchoolName": "<NAME> Nursery and Children's Centre",
"Postcode": "E153JT"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "E151JP"
},
{
"SchoolName": "St Stephen's Nursery School",
"Postcode": "E61AS"
},
{
"SchoolName": "Sheringham Nursery School & Children's Centre",
"Postcode": "E125PB"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "E66BU"
},
{
"SchoolName": "Tunmarsh School",
"Postcode": "E139NB"
},
{
"SchoolName": "Altmore Infant School",
"Postcode": "E62BX"
},
{
"SchoolName": "Avenue Primary School",
"Postcode": "E126AR"
},
{
"SchoolName": "Brampton Primary School",
"Postcode": "E63LB"
},
{
"SchoolName": "Carpenters Primary School",
"Postcode": "E152JQ"
},
{
"SchoolName": "Dersingham Primary School",
"Postcode": "E125QJ"
},
{
"SchoolName": "Earlham Primary School",
"Postcode": "E79AW"
},
{
"SchoolName": "Elmhurst Primary School",
"Postcode": "E78JY"
},
{
"SchoolName": "Godwin Junior School",
"Postcode": "E70JW"
},
{
"SchoolName": "Woodgrange Infant School",
"Postcode": "E70NJ"
},
{
"SchoolName": "Grange Primary School",
"Postcode": "E130HE"
},
{
"SchoolName": "Hallsville Primary School",
"Postcode": "E161LN"
},
{
"SchoolName": "Ke<NAME> Primary School",
"Postcode": "E161FZ"
},
{
"SchoolName": "Lathom Junior School",
"Postcode": "E62DU"
},
{
"SchoolName": "Manor Primary School",
"Postcode": "E153BA"
},
{
"SchoolName": "Maryland Primary School",
"Postcode": "E151SL"
},
{
"SchoolName": "Monega Primary School",
"Postcode": "E126TT"
},
{
"SchoolName": "Nelson Primary School",
"Postcode": "E62SE"
},
{
"SchoolName": "New City Primary School",
"Postcode": "E139NE"
},
{
"SchoolName": "Odessa Infant School",
"Postcode": "E79BY"
},
{
"SchoolName": "Park Primary School",
"Postcode": "E154AE"
},
{
"SchoolName": "Roman Road Primary School",
"Postcode": "E63SQ"
},
{
"SchoolName": "Rosetta Primary School",
"Postcode": "E163PB"
},
{
"SchoolName": "Salisbury Primary School",
"Postcode": "E126TH"
},
{
"SchoolName": "Shaftesbury Primary School",
"Postcode": "E78PF"
},
{
"SchoolName": "William Davies Primary School",
"Postcode": "E78NL"
},
{
"SchoolName": "Star Primary School",
"Postcode": "E164NH"
},
{
"SchoolName": "St Stephen's Primary School",
"Postcode": "E61AS"
},
{
"SchoolName": "Winsor Primary School",
"Postcode": "E65NA"
},
{
"SchoolName": "Colegrave Primary School",
"Postcode": "E151JY"
},
{
"SchoolName": "Southern Road Primary School",
"Postcode": "E139JH"
},
{
"SchoolName": "Scott Wilkie Primary School",
"Postcode": "E163HD"
},
{
"SchoolName": "Calverton Primary School",
"Postcode": "E163ET"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "E65UP"
},
{
"SchoolName": "North Beckton Primary School",
"Postcode": "E65XG"
},
{
"SchoolName": "Vicarage Primary School",
"Postcode": "E66AD"
},
{
"SchoolName": "Essex Primary School",
"Postcode": "E126QX"
},
{
"SchoolName": "St James' CofE Junior School",
"Postcode": "E79DA"
},
{
"SchoolName": "West Ham Church Primary School",
"Postcode": "E153QG"
},
{
"SchoolName": "St Luke's Primary School",
"Postcode": "E161JB"
},
{
"SchoolName": "St Edward's Catholic Primary School",
"Postcode": "E139AX"
},
{
"SchoolName": "St Francis' Catholic Primary School",
"Postcode": "E151HD"
},
{
"SchoolName": "St Michael's Catholic Primary School",
"Postcode": "E66EE"
},
{
"SchoolName": "St Winefride's RC Primary School",
"Postcode": "E126HB"
},
{
"SchoolName": "Little Ilford School",
"Postcode": "E126JB"
},
{
"SchoolName": "Plashet School",
"Postcode": "E61DG"
},
{
"SchoolName": "The Cumberland School",
"Postcode": "E138SJ"
},
{
"SchoolName": "Eastlea Community School",
"Postcode": "E164NP"
},
{
"SchoolName": "St Angela's Ursuline School",
"Postcode": "E78HU"
},
{
"SchoolName": "St Bonaventure's RC School",
"Postcode": "E79QD"
},
{
"SchoolName": "Grangewood Independent School",
"Postcode": "E78QT"
},
{
"SchoolName": "The Constance Bridgeman Centre",
"Postcode": "RM64XT"
},
{
"SchoolName": "Manford Primary School",
"Postcode": "IG74BX"
},
{
"SchoolName": "Cleveland Road Primary School",
"Postcode": "IG11EW"
},
{
"SchoolName": "Downshall Primary School",
"Postcode": "IG38UG"
},
{
"SchoolName": "Farnham Green Primary School",
"Postcode": "IG38UY"
},
{
"SchoolName": "Fairlop Primary School",
"Postcode": "IG62LH"
},
{
"SchoolName": "Gilbert Colvin Primary School",
"Postcode": "IG50TL"
},
{
"SchoolName": "Glade Primary School",
"Postcode": "IG50PF"
},
{
"SchoolName": "Goodmayes Primary School",
"Postcode": "IG39RW"
},
{
"SchoolName": "Gordon Primary School",
"Postcode": "IG11SU"
},
{
"SchoolName": "Mossford Green Primary School",
"Postcode": "IG62EW"
},
{
"SchoolName": "Newbury Park Primary School",
"Postcode": "IG27LB"
},
{
"SchoolName": "Uphall Primary School",
"Postcode": "IG12JD"
},
{
"SchoolName": "William Torbitt Primary School",
"Postcode": "IG27SS"
},
{
"SchoolName": "Aldersbrook Primary School",
"Postcode": "E125HL"
},
{
"SchoolName": "Roding Primary School",
"Postcode": "IG88NP"
},
{
"SchoolName": "Wells Primary School",
"Postcode": "IG80PP"
},
{
"SchoolName": "Snaresbrook Primary School",
"Postcode": "E182EN"
},
{
"SchoolName": "Fullwood Primary School",
"Postcode": "IG61ER"
},
{
"SchoolName": "Woodlands Primary School",
"Postcode": "IG12PY"
},
{
"SchoolName": "Grove Primary School",
"Postcode": "RM64XS"
},
{
"SchoolName": "Chadwell Primary School",
"Postcode": "RM64EU"
},
{
"SchoolName": "Coppice Primary School",
"Postcode": "IG74AL"
},
{
"SchoolName": "John Bramston Primary School",
"Postcode": "IG63EE"
},
{
"SchoolName": "Nightingale Primary School",
"Postcode": "E181PL"
},
{
"SchoolName": "Barley Lane Primary School",
"Postcode": "RM64RJ"
},
{
"SchoolName": "Wanstead Church School",
"Postcode": "E112SS"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "IG26RG"
},
{
"SchoolName": "Our Lady of Lourdes RC Primary School",
"Postcode": "E112TA"
},
{
"SchoolName": "St Antony's Catholic Primary School",
"Postcode": "IG80TX"
},
{
"SchoolName": "St Bede's Catholic Primary School",
"Postcode": "RM65RR"
},
{
"SchoolName": "Wohl Ilford Jewish Primary School",
"Postcode": "IG63HB"
},
{
"SchoolName": "SS Peter and Paul's Catholic Primary School",
"Postcode": "IG11SA"
},
{
"SchoolName": "Caterham High School",
"Postcode": "IG50QW"
},
{
"SchoolName": "Ilford County High School",
"Postcode": "IG62JB"
},
{
"SchoolName": "Wanstead High School",
"Postcode": "E112JZ"
},
{
"SchoolName": "Woodford County High School",
"Postcode": "IG89LA"
},
{
"SchoolName": "Woodbridge High School",
"Postcode": "IG87DQ"
},
{
"SchoolName": "Seven Kings School",
"Postcode": "IG27BT"
},
{
"SchoolName": "Valentines High School",
"Postcode": "IG26HX"
},
{
"SchoolName": "Mayfield School",
"Postcode": "RM81XE"
},
{
"SchoolName": "Trinity Catholic High School",
"Postcode": "IG80TP"
},
{
"SchoolName": "Kantor King Solomon High School",
"Postcode": "IG63HB"
},
{
"SchoolName": "St Aubyn's School",
"Postcode": "IG89DU"
},
{
"SchoolName": "St Joseph's Convent School",
"Postcode": "E112PR"
},
{
"SchoolName": "Woodford Green Preparatory School",
"Postcode": "IG80BZ"
},
{
"SchoolName": "Beehive Preparatory School",
"Postcode": "IG45ED"
},
{
"SchoolName": "Eastcourt Independent School",
"Postcode": "IG38UW"
},
{
"SchoolName": "Snaresbrook Preparatory School",
"Postcode": "E182EA"
},
{
"SchoolName": "Avon House School",
"Postcode": "IG80PN"
},
{
"SchoolName": "Park School for Girls",
"Postcode": "IG14RS"
},
{
"SchoolName": "The Ursuline Prep School Ilford",
"Postcode": "IG14QR"
},
{
"SchoolName": "Bancrofts School",
"Postcode": "IG80RF"
},
{
"SchoolName": "Ilford Grammar School",
"Postcode": "IG38RW"
},
{
"SchoolName": "Little Heath School",
"Postcode": "RM65RX"
},
{
"SchoolName": "The New Rush Hall School",
"Postcode": "IG62LB"
},
{
"SchoolName": "Hatton School and Special Needs Centre",
"Postcode": "IG88EU"
},
{
"SchoolName": "Windham Nursery School",
"Postcode": "TW92HP"
},
{
"SchoolName": "Carlisle Infant School",
"Postcode": "TW123AJ"
},
{
"SchoolName": "Darell Primary and Nursery School",
"Postcode": "TW94LH"
},
{
"SchoolName": "East Sheen Primary School",
"Postcode": "SW148ED"
},
{
"SchoolName": "Hampton Hill Junior School",
"Postcode": "TW121HW"
},
{
"SchoolName": "Hampton Junior School",
"Postcode": "TW122LA"
},
{
"SchoolName": "Hampton Infant School and Nursery",
"Postcode": "TW122JH"
},
{
"SchoolName": "Hampton Wick Infant and Nursery School",
"Postcode": "TW119RP"
},
{
"SchoolName": "Heathfield Junior School",
"Postcode": "TW26EN"
},
{
"SchoolName": "Heathfield Infant School",
"Postcode": "TW26EN"
},
{
"SchoolName": "Lowther Primary School",
"Postcode": "SW139AE"
},
{
"SchoolName": "Meadlands Primary School",
"Postcode": "TW107TS"
},
{
"SchoolName": "Orleans Primary School",
"Postcode": "TW13EN"
},
{
"SchoolName": "The Russell Primary School",
"Postcode": "TW107AH"
},
{
"SchoolName": "Sheen Mount Primary School",
"Postcode": "SW147RT"
},
{
"SchoolName": "Stanley Primary School",
"Postcode": "TW118UH"
},
{
"SchoolName": "Trafalgar Junior School",
"Postcode": "TW25EG"
},
{
"SchoolName": "Trafalgar Infant School",
"Postcode": "TW25EH"
},
{
"SchoolName": "Barnes Primary School",
"Postcode": "SW130QQ"
},
{
"SchoolName": "Collis Primary School",
"Postcode": "TW119BS"
},
{
"SchoolName": "Buckingham Primary School",
"Postcode": "TW123LT"
},
{
"SchoolName": "Chase Bridge Primary School",
"Postcode": "TW27DE"
},
{
"SchoolName": "The Vineyard School",
"Postcode": "TW106NE"
},
{
"SchoolName": "St Richard's Church of England Primary School",
"Postcode": "TW107NL"
},
{
"SchoolName": "Holy Trinity Church of England Primary School",
"Postcode": "TW105AA"
},
{
"SchoolName": "St Mary Magdalen's Catholic Primary School",
"Postcode": "SW148HE"
},
{
"SchoolName": "St Elizabeth's Catholic Primary School",
"Postcode": "TW106HN"
},
{
"SchoolName": "St John the Baptist Church of England Junior School",
"Postcode": "KT14HQ"
},
{
"SchoolName": "St Edmund's Catholic Primary School",
"Postcode": "TW27BB"
},
{
"SchoolName": "St James's Roman Catholic Primary School",
"Postcode": "TW25NP"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "TW13HE"
},
{
"SchoolName": "St Stephen's Church of England Primary School",
"Postcode": "TW11LF"
},
{
"SchoolName": "Sacred Heart Roman Catholic Primary School",
"Postcode": "TW119DD"
},
{
"SchoolName": "St Mary's and St Peter's Church of England Primary School",
"Postcode": "TW118RX"
},
{
"SchoolName": "Bishop Perrin Church of England Primary School",
"Postcode": "TW26LF"
},
{
"SchoolName": "St Osmund's Catholic Primary School",
"Postcode": "SW139HQ"
},
{
"SchoolName": "Archdeacon Cambridge's Church of England Primary School",
"Postcode": "TW25TU"
},
{
"SchoolName": "The Queen's Church of England Primary School",
"Postcode": "TW93HJ"
},
{
"SchoolName": "Christ's Church of England Comprehensive Secondary School",
"Postcode": "TW106HW"
},
{
"SchoolName": "King's House School",
"Postcode": "TW106ES"
},
{
"SchoolName": "Lady Eleanor Holles School",
"Postcode": "TW123HF"
},
{
"SchoolName": "The Mall School",
"Postcode": "TW25NQ"
},
{
"SchoolName": "Newland House School",
"Postcode": "TW14TQ"
},
{
"SchoolName": "The Old Vicarage School",
"Postcode": "TW106QX"
},
{
"SchoolName": "St Catherine's School",
"Postcode": "TW14QJ"
},
{
"SchoolName": "Tower House School",
"Postcode": "SW148LF"
},
{
"SchoolName": "Broomfield House School",
"Postcode": "TW93HS"
},
{
"SchoolName": "Jack and Jill School",
"Postcode": "TW123HX"
},
{
"SchoolName": "Kew College",
"Postcode": "TW93HQ"
},
{
"SchoolName": "Athelstan House School",
"Postcode": "TW122LA"
},
{
"SchoolName": "St Paul's School",
"Postcode": "SW139JT"
},
{
"SchoolName": "Twickenham Preparatory School",
"Postcode": "TW122SA"
},
{
"SchoolName": "Unicorn School",
"Postcode": "TW93JX"
},
{
"SchoolName": "The German School",
"Postcode": "TW107AH"
},
{
"SchoolName": "Hampton School",
"Postcode": "TW123HD"
},
{
"SchoolName": "The Royal Ballet School",
"Postcode": "WC2E9DA"
},
{
"SchoolName": "The Swedish School",
"Postcode": "SW139JS"
},
{
"SchoolName": "The Harrodian School",
"Postcode": "SW139QN"
},
{
"SchoolName": "Spencer Nursery School",
"Postcode": "CR44JP"
},
{
"SchoolName": "Thomas Wall Nursery School",
"Postcode": "SM12SF"
},
{
"SchoolName": "The Limes College",
"Postcode": "SM12SD"
},
{
"SchoolName": "Barrow Hedges Primary School",
"Postcode": "SM54LA"
},
{
"SchoolName": "Cheam Common Infants' School",
"Postcode": "KT48SS"
},
{
"SchoolName": "Abbey Primary School",
"Postcode": "SM46NY"
},
{
"SchoolName": "Hackbridge Primary School",
"Postcode": "SM67AX"
},
{
"SchoolName": "High View Primary School",
"Postcode": "SM68JT"
},
{
"SchoolName": "Devonshire Primary School",
"Postcode": "SM25JL"
},
{
"SchoolName": "Manor Park Primary School",
"Postcode": "SM14AW"
},
{
"SchoolName": "Robin Hood Infants' School",
"Postcode": "SM12SF"
},
{
"SchoolName": "Dorchester Primary School",
"Postcode": "KT48PG"
},
{
"SchoolName": "Beddington Infants' School",
"Postcode": "SM67LF"
},
{
"SchoolName": "Robin Hood Junior School",
"Postcode": "SM11RL"
},
{
"SchoolName": "Nonsuch Primary School",
"Postcode": "KT172HQ"
},
{
"SchoolName": "Foresters Primary School",
"Postcode": "SM69DP"
},
{
"SchoolName": "Amy Johnson Primary School",
"Postcode": "SM69JN"
},
{
"SchoolName": "Rushy Meadow Primary School",
"Postcode": "SM52SG"
},
{
"SchoolName": "All Saints Benhilton CofE Primary School",
"Postcode": "SM13DA"
},
{
"SchoolName": "Holy Trinity CofE Junior School",
"Postcode": "SM68BZ"
},
{
"SchoolName": "St Dunstan's Cheam CofE Primary School",
"Postcode": "SM38DF"
},
{
"SchoolName": "St Cecilia's Catholic Primary School",
"Postcode": "SM39DL"
},
{
"SchoolName": "St Mary's RC Junior School",
"Postcode": "SM52PB"
},
{
"SchoolName": "St Mary's RC Infants School",
"Postcode": "SM52PT"
},
{
"SchoolName": "St Elphege's RC Junior School",
"Postcode": "SM69HY"
},
{
"SchoolName": "St Elphege's RC Infants' School",
"Postcode": "SM69HY"
},
{
"SchoolName": "All Saints Carshalton Church of England Primary School",
"Postcode": "SM53DW"
},
{
"SchoolName": "Stanley Park Junior School",
"Postcode": "SM53JL"
},
{
"SchoolName": "Stanley Park Infants' School",
"Postcode": "SM53JL"
},
{
"SchoolName": "The John Fisher School",
"Postcode": "CR83YP"
},
{
"SchoolName": "St Philomena's Catholic High School for Girls",
"Postcode": "SM53PS"
},
{
"SchoolName": "Homefield Preparatory School",
"Postcode": "SM12TE"
},
{
"SchoolName": "Collingwood School",
"Postcode": "SM60BD"
},
{
"SchoolName": "Seaton House School",
"Postcode": "SM25LH"
},
{
"SchoolName": "Sutton High School",
"Postcode": "SM12AX"
},
{
"SchoolName": "Sherwood Park School",
"Postcode": "SM67NP"
},
{
"SchoolName": "Low Hall Nursery School",
"Postcode": "E178BE"
},
{
"SchoolName": "Church Hill Nursery and Childrens Centre",
"Postcode": "E179SB"
},
{
"SchoolName": "<NAME>",
"Postcode": "E113HF"
},
{
"SchoolName": "Chase Lane Primary School",
"Postcode": "E48LA"
},
{
"SchoolName": "Whitehall Primary School",
"Postcode": "E46ES"
},
{
"SchoolName": "Downsell Primary School",
"Postcode": "E152BS"
},
{
"SchoolName": "Newport School",
"Postcode": "E106PJ"
},
{
"SchoolName": "Chapel End Infant School and Early Years Centre",
"Postcode": "E174LN"
},
{
"SchoolName": "Edinburgh Primary School",
"Postcode": "E178QR"
},
{
"SchoolName": "Greenleaf Primary School",
"Postcode": "E176QW"
},
{
"SchoolName": "Handsworth Primary School",
"Postcode": "E49PJ"
},
{
"SchoolName": "Thorpe Hall Primary School",
"Postcode": "E174DP"
},
{
"SchoolName": "The Winns Primary School",
"Postcode": "E175ET"
},
{
"SchoolName": "Woodford Green Primary School",
"Postcode": "IG80ST"
},
{
"SchoolName": "Oakhill Primary School",
"Postcode": "IG89PY"
},
{
"SchoolName": "Henry Maynard Primary School",
"Postcode": "E179JE"
},
{
"SchoolName": "South Grove Primary School",
"Postcode": "E178PW"
},
{
"SchoolName": "Dawlish Primary School",
"Postcode": "E106NN"
},
{
"SchoolName": "Gwyn Jones Primary School",
"Postcode": "E111EU"
},
{
"SchoolName": "George Tomlinson Primary School",
"Postcode": "E114QN"
},
{
"SchoolName": "Mission Grove Primary School",
"Postcode": "E177EJ"
},
{
"SchoolName": "Coppermill Primary School",
"Postcode": "E176PB"
},
{
"SchoolName": "Stoneydown Park School",
"Postcode": "E176JY"
},
{
"SchoolName": "Buxton School",
"Postcode": "E113NN"
},
{
"SchoolName": "Parkside Primary School",
"Postcode": "E46RE"
},
{
"SchoolName": "The Jenny Hammond Primary School",
"Postcode": "E113JH"
},
{
"SchoolName": "Chingford CofE Primary School",
"Postcode": "E47EY"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "E47BJ"
},
{
"SchoolName": "St Joseph's Catholic Junior School",
"Postcode": "E105DX"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "E177DP"
},
{
"SchoolName": "St Joseph's Catholic Infant School",
"Postcode": "E107BL"
},
{
"SchoolName": "Frederick Bremer School",
"Postcode": "E174EY"
},
{
"SchoolName": "George Mitchell School",
"Postcode": "E105DN"
},
{
"SchoolName": "Heathcote School & Science College",
"Postcode": "E46ES"
},
{
"SchoolName": "Willowfield Humanities College",
"Postcode": "E176ND"
},
{
"SchoolName": "Leytonstone School",
"Postcode": "E111JD"
},
{
"SchoolName": "Walthamstow School for Girls",
"Postcode": "E179RZ"
},
{
"SchoolName": "Kelmscott School",
"Postcode": "E178DN"
},
{
"SchoolName": "Holy Family Catholic School",
"Postcode": "E173EA"
},
{
"SchoolName": "Forest School",
"Postcode": "E173PY"
},
{
"SchoolName": "Hyland House School",
"Postcode": "N179AD"
},
{
"SchoolName": "Normanhurst School",
"Postcode": "E47BA"
},
{
"SchoolName": "St Mary's and St John's CofE School",
"Postcode": "NW44QR"
},
{
"SchoolName": "Bordesley Green East Nursery School",
"Postcode": "B338QB"
},
{
"SchoolName": "Brearley Nursery School",
"Postcode": "B193XJ"
},
{
"SchoolName": "Garretts Green Nursery School",
"Postcode": "B262JL"
},
{
"SchoolName": "Perry Beeches Nursery School",
"Postcode": "B422PX"
},
{
"SchoolName": "St Thomas Centre Nursery School",
"Postcode": "B152AF"
},
{
"SchoolName": "Highfield Nursery School",
"Postcode": "B83QU"
},
{
"SchoolName": "Marsh Hill Nursery School",
"Postcode": "B237HG"
},
{
"SchoolName": "West Heath Nursery School",
"Postcode": "B313HB"
},
{
"SchoolName": "Goodway Nursery School",
"Postcode": "B448RL"
},
{
"SchoolName": "Kings Norton Nursery School",
"Postcode": "B388SY"
},
{
"SchoolName": "Allens Croft Nursery School",
"Postcode": "B146RP"
},
{
"SchoolName": "Rubery Nursery School",
"Postcode": "B459PB"
},
{
"SchoolName": "Washwood Heath Nursery School",
"Postcode": "B82SY"
},
{
"SchoolName": "Weoley Castle Nursery School",
"Postcode": "B295QD"
},
{
"SchoolName": "Highters Heath Nursery School",
"Postcode": "B144BH"
},
{
"SchoolName": "Gracelands Nursery School",
"Postcode": "B111ED"
},
{
"SchoolName": "Jakeman Nursery School",
"Postcode": "B129NX"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "B57LX"
},
{
"SchoolName": "Bloomsbury Children's Centre",
"Postcode": "B75BX"
},
{
"SchoolName": "Featherstone Nursery School",
"Postcode": "B236AU"
},
{
"SchoolName": "Adderley Nursery School",
"Postcode": "B81EH"
},
{
"SchoolName": "Newtown Nursery School",
"Postcode": "B192NS"
},
{
"SchoolName": "Shenley Fields Nursery School",
"Postcode": "B311BS"
},
{
"SchoolName": "Castle Vale Nursery School",
"Postcode": "B356DU"
},
{
"SchoolName": "Osborne Nursery School",
"Postcode": "B236UB"
},
{
"SchoolName": "City of Birmingham School",
"Postcode": "B450DS"
},
{
"SchoolName": "Edith Cadbury Nursery School",
"Postcode": "B295LB"
},
{
"SchoolName": "Shaw Hill Primary School",
"Postcode": "B83AN"
},
{
"SchoolName": "Adderley Primary School",
"Postcode": "B81DZ"
},
{
"SchoolName": "Barford Primary School",
"Postcode": "B160EF"
},
{
"SchoolName": "Beeches Junior School",
"Postcode": "B422PY"
},
{
"SchoolName": "Beeches Infant School",
"Postcode": "B422PY"
},
{
"SchoolName": "The Oaks Primary School",
"Postcode": "B145RY"
},
{
"SchoolName": "Birches Green Junior School",
"Postcode": "B249SR"
},
{
"SchoolName": "Birches Green Infant School",
"Postcode": "B249SR"
},
{
"SchoolName": "Bordesley Green Primary School",
"Postcode": "B95XX"
},
{
"SchoolName": "Brookfields Primary School",
"Postcode": "B186PU"
},
{
"SchoolName": "Cherry Orchard Primary School",
"Postcode": "B202LB"
},
{
"SchoolName": "Colmers Farm Primary School",
"Postcode": "B459PB"
},
{
"SchoolName": "Colmore Junior School",
"Postcode": "B146AJ"
},
{
"SchoolName": "Colmore Infant and Nursery School",
"Postcode": "B146AJ"
},
{
"SchoolName": "Cotteridge Primary School",
"Postcode": "B302HT"
},
{
"SchoolName": "Anderton Park Primary School",
"Postcode": "B128BL"
},
{
"SchoolName": "Regents Park Community Primary School",
"Postcode": "B100NJ"
},
{
"SchoolName": "Summerfield Junior and Infant School",
"Postcode": "B184AH"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "B178LE"
},
{
"SchoolName": "Gilbertstone Primary School",
"Postcode": "B261EH"
},
{
"SchoolName": "Grendon Junior and Infant School (NC)",
"Postcode": "B144RB"
},
{
"SchoolName": "Gunter Primary School",
"Postcode": "B240RU"
},
{
"SchoolName": "Hall Green Junior School",
"Postcode": "B289AJ"
},
{
"SchoolName": "Hall Green Infant School",
"Postcode": "B280AR"
},
{
"SchoolName": "Story Wood School and Children's Centre",
"Postcode": "B235AJ"
},
{
"SchoolName": "Hawthorn Primary School",
"Postcode": "B448QR"
},
{
"SchoolName": "Ward End Primary School",
"Postcode": "B82RA"
},
{
"SchoolName": "Kingsland Primary School (NC)",
"Postcode": "B449PU"
},
{
"SchoolName": "Kings Norton Junior and Infant School",
"Postcode": "B303EU"
},
{
"SchoolName": "Lakey Lane Junior and Infant School",
"Postcode": "B288RY"
},
{
"SchoolName": "Lyndon Green Junior School",
"Postcode": "B261LU"
},
{
"SchoolName": "Lyndon Green Infant School",
"Postcode": "B261LZ"
},
{
"SchoolName": "Marlborough Infant School",
"Postcode": "B109NY"
},
{
"SchoolName": "Marsh Hill Primary School",
"Postcode": "B237HY"
},
{
"SchoolName": "Nelson Junior and Infant School",
"Postcode": "B12PJ"
},
{
"SchoolName": "Paget Primary School",
"Postcode": "B240JP"
},
{
"SchoolName": "Park Hill Primary School",
"Postcode": "B138BB"
},
{
"SchoolName": "Allens Croft Primary School",
"Postcode": "B146RP"
},
{
"SchoolName": "Princethorpe Junior School",
"Postcode": "B295QB"
},
{
"SchoolName": "Raddlebarn Primary School",
"Postcode": "B297TD"
},
{
"SchoolName": "Redhill Junior and Infant School",
"Postcode": "B258HQ"
},
{
"SchoolName": "Rednal Hill Junior School",
"Postcode": "B458QY"
},
{
"SchoolName": "Rednal Hill Infant School",
"Postcode": "B458QY"
},
{
"SchoolName": "Severne Junior Infant and Nursery School",
"Postcode": "B277HR"
},
{
"SchoolName": "Sladefield Infant School",
"Postcode": "B82TJ"
},
{
"SchoolName": "Somerville Primary (NC) School",
"Postcode": "B109EN"
},
{
"SchoolName": "Stanville Primary School",
"Postcode": "B263YN"
},
{
"SchoolName": "Starbank School",
"Postcode": "B109LR"
},
{
"SchoolName": "St Benedict's Infant School",
"Postcode": "B109DP"
},
{
"SchoolName": "Stechford Primary School",
"Postcode": "B338SJ"
},
{
"SchoolName": "Colebourne Primary School",
"Postcode": "B346BJ"
},
{
"SchoolName": "Ladypool Primary School",
"Postcode": "B111QT"
},
{
"SchoolName": "Sundridge Primary School",
"Postcode": "B449NY"
},
{
"SchoolName": "Court Farm Primary School",
"Postcode": "B235NS"
},
{
"SchoolName": "Thornton Primary School",
"Postcode": "B82LQ"
},
{
"SchoolName": "World's End Junior School",
"Postcode": "B322SA"
},
{
"SchoolName": "Yardley Wood Community Primary School",
"Postcode": "B144ER"
},
{
"SchoolName": "Yorkmead Junior and Infant School",
"Postcode": "B288BB"
},
{
"SchoolName": "Broadmeadow Junior School",
"Postcode": "B303QJ"
},
{
"SchoolName": "Broadmeadow Infant School",
"Postcode": "B303QJ"
},
{
"SchoolName": "Bellfield Infant School (NC)",
"Postcode": "B311PT"
},
{
"SchoolName": "Bellfield Junior School",
"Postcode": "B311PT"
},
{
"SchoolName": "Welsh House Farm Community School and Special Needs Resources Base",
"Postcode": "B322NG"
},
{
"SchoolName": "The Meadows Primary School",
"Postcode": "B312SW"
},
{
"SchoolName": "Chilcote Primary School",
"Postcode": "B280PB"
},
{
"SchoolName": "Blakesley Hall Primary School",
"Postcode": "B338TH"
},
{
"SchoolName": "Wilkes Green Infant School (NC)",
"Postcode": "B219NT"
},
{
"SchoolName": "Woodgate Primary School",
"Postcode": "B323PN"
},
{
"SchoolName": "Marlborough Junior School",
"Postcode": "B109NY"
},
{
"SchoolName": "Deykin Avenue Junior and Infant School",
"Postcode": "B67BU"
},
{
"SchoolName": "Hollywood Primary School",
"Postcode": "B144TG"
},
{
"SchoolName": "Cofton Primary School",
"Postcode": "B314ST"
},
{
"SchoolName": "Wilkes Green Junior School",
"Postcode": "B219NT"
},
{
"SchoolName": "Featherstone Primary School",
"Postcode": "B236PR"
},
{
"SchoolName": "Glenmead Primary School",
"Postcode": "B448UQ"
},
{
"SchoolName": "Birchfield Community School",
"Postcode": "B66AJ"
},
{
"SchoolName": "Arden Primary School",
"Postcode": "B114SF"
},
{
"SchoolName": "Water Mill Primary School",
"Postcode": "B296TS"
},
{
"SchoolName": "Welford Primary School",
"Postcode": "B202BL"
},
{
"SchoolName": "Chad Vale Primary School",
"Postcode": "B153JU"
},
{
"SchoolName": "Heath Mount Primary School",
"Postcode": "B129SR"
},
{
"SchoolName": "Woodthorpe Junior and Infant School",
"Postcode": "B146ET"
},
{
"SchoolName": "World's End Infant and Nursery School",
"Postcode": "B322SA"
},
{
"SchoolName": "Kitwell Primary School and Nursery Class",
"Postcode": "B324DL"
},
{
"SchoolName": "Boldmere Junior School",
"Postcode": "B735SD"
},
{
"SchoolName": "Boldmere Infant School and Nursery",
"Postcode": "B735SD"
},
{
"SchoolName": "Minworth Junior and Infant School",
"Postcode": "B769BU"
},
{
"SchoolName": "Wylde Green Primary School",
"Postcode": "B735JL"
},
{
"SchoolName": "Moor Hall Primary School",
"Postcode": "B756RE"
},
{
"SchoolName": "Maney Hill Primary School",
"Postcode": "B721JU"
},
{
"SchoolName": "Penns Primary School",
"Postcode": "B721BS"
},
{
"SchoolName": "Holland House Infant School and Nursery",
"Postcode": "B721RE"
},
{
"SchoolName": "Benson Community School",
"Postcode": "B185TD"
},
{
"SchoolName": "Osborne Primary School",
"Postcode": "B236UB"
},
{
"SchoolName": "Highters Heath Community School",
"Postcode": "B144LY"
},
{
"SchoolName": "Kingsthorne Primary School",
"Postcode": "B440BX"
},
{
"SchoolName": "Turves Green Primary School",
"Postcode": "B314BP"
},
{
"SchoolName": "Woodcock Hill Primary School",
"Postcode": "B311BS"
},
{
"SchoolName": "Elms Farm Community Primary School",
"Postcode": "B330PJ"
},
{
"SchoolName": "Bells Farm Primary School",
"Postcode": "B145QP"
},
{
"SchoolName": "Nelson Mandela School",
"Postcode": "B128EH"
},
{
"SchoolName": "Little Sutton Primary School",
"Postcode": "B755NL"
},
{
"SchoolName": "Coppice Primary School",
"Postcode": "B756TJ"
},
{
"SchoolName": "Calshot Primary School",
"Postcode": "B422BY"
},
{
"SchoolName": "Grove School",
"Postcode": "B219HB"
},
{
"SchoolName": "New Hall Primary and Children's Centre",
"Postcode": "B757NQ"
},
{
"SchoolName": "Christ Church CofE Controlled Primary School and Nursery",
"Postcode": "B111LF"
},
{
"SchoolName": "Moseley Church of England Primary School",
"Postcode": "B139EH"
},
{
"SchoolName": "St James Church of England Primary School, Handsworth",
"Postcode": "B218NH"
},
{
"SchoolName": "St Matthew's CofE Primary School",
"Postcode": "B74JR"
},
{
"SchoolName": "St Saviour's C of E Primary School",
"Postcode": "B81JB"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "B296NU"
},
{
"SchoolName": "Saint Barnabas Church of England Primary School",
"Postcode": "B249BY"
},
{
"SchoolName": "St Laurence Church Junior School",
"Postcode": "B312DJ"
},
{
"SchoolName": "St Vincent's Catholic Primary School",
"Postcode": "B74HP"
},
{
"SchoolName": "Guardian Angels Catholic Primary School",
"Postcode": "B347HN"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "B100HT"
},
{
"SchoolName": "Abbey Catholic Primary School",
"Postcode": "B236QL"
},
{
"SchoolName": "Christ The King Catholic Primary School",
"Postcode": "B440QN"
},
{
"SchoolName": "Corpus Christi Catholic Primary School",
"Postcode": "B338BL"
},
{
"SchoolName": "English Martyrs' Catholic Primary School",
"Postcode": "B113JW"
},
{
"SchoolName": "Maryvale Catholic Primary School",
"Postcode": "B449AG"
},
{
"SchoolName": "The Oratory Roman Catholic Primary School",
"Postcode": "B169ER"
},
{
"SchoolName": "The Rosary Catholic Primary School",
"Postcode": "B83SF"
},
{
"SchoolName": "Holy Souls Catholic Primary School",
"Postcode": "B276BN"
},
{
"SchoolName": "Our Lady of Lourdes Catholic Primary School (NC)",
"Postcode": "B130EU"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "B218ED"
},
{
"SchoolName": "St Catherine of Siena Catholic Primary School",
"Postcode": "B152AY"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "B120ER"
},
{
"SchoolName": "St Chad's Catholic Primary School",
"Postcode": "B193XD"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "B75HA"
},
{
"SchoolName": "St Francis Catholic Primary School",
"Postcode": "B191PH"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "B170DN"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "B187QW"
},
{
"SchoolName": "St Edmund's Catholic Primary School",
"Postcode": "B187PA"
},
{
"SchoolName": "St Thomas More Catholic Primary School",
"Postcode": "B263HU"
},
{
"SchoolName": "St Mary and St John Junior and Infant School",
"Postcode": "B237NB"
},
{
"SchoolName": "Our Lady and St Rose of Lima Catholic Primary School",
"Postcode": "B295DY"
},
{
"SchoolName": "King David Junior and Infant School",
"Postcode": "B138EY"
},
{
"SchoolName": "Bournville Junior School",
"Postcode": "B301JY"
},
{
"SchoolName": "Bournville Infant School",
"Postcode": "B301JY"
},
{
"SchoolName": "St Edward's Catholic Primary School",
"Postcode": "B297PN"
},
{
"SchoolName": "Our Lady's Catholic Primary School",
"Postcode": "B330AU"
},
{
"SchoolName": "St Wilfrid's Catholic Junior and Infant School",
"Postcode": "B368LY"
},
{
"SchoolName": "St John Fisher Catholic Primary School",
"Postcode": "B313PN"
},
{
"SchoolName": "St Margaret Mary RC Junior and Infant School",
"Postcode": "B237AB"
},
{
"SchoolName": "St Peter and St Paul RC Junior and Infant School",
"Postcode": "B249ND"
},
{
"SchoolName": "St Dunstan's Catholic Primary School",
"Postcode": "B147LP"
},
{
"SchoolName": "St Teresa's Catholic Primary School",
"Postcode": "B202NY"
},
{
"SchoolName": "St Gerard's RC Junior and Infant School",
"Postcode": "B356LB"
},
{
"SchoolName": "St Laurence Church Infant School",
"Postcode": "B312DJ"
},
{
"SchoolName": "St Bernadette's Catholic Primary School",
"Postcode": "B258QL"
},
{
"SchoolName": "St Bernard's Catholic Primary School",
"Postcode": "B139QE"
},
{
"SchoolName": "St Jude's Catholic Primary School",
"Postcode": "B145PD"
},
{
"SchoolName": "St Ambrose Barlow Catholic Primary School",
"Postcode": "B289JJ"
},
{
"SchoolName": "St Alban's Catholic Primary School",
"Postcode": "B145AL"
},
{
"SchoolName": "St Martin de Porres Catholic Primary School",
"Postcode": "B139DN"
},
{
"SchoolName": "St Mark's Catholic Primary School",
"Postcode": "B421NU"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "B323QD"
},
{
"SchoolName": "St Cuthbert's RC Junior and Infant (NC) School",
"Postcode": "B82PS"
},
{
"SchoolName": "St Clare's Catholic Primary School",
"Postcode": "B203RT"
},
{
"SchoolName": "Sacred Heart Catholic School",
"Postcode": "B203AE"
},
{
"SchoolName": "St John and Monica Catholic Primary School",
"Postcode": "B138DW"
},
{
"SchoolName": "Holly Hill Methodist CofE Infant School",
"Postcode": "B450EU"
},
{
"SchoolName": "Hodge Hill Girls' School",
"Postcode": "B368EY"
},
{
"SchoolName": "Kings Heath Boys",
"Postcode": "B130QP"
},
{
"SchoolName": "Bordesley Green Girls' School & Sixth Form",
"Postcode": "B94TR"
},
{
"SchoolName": "Queensbridge School",
"Postcode": "B138QB"
},
{
"SchoolName": "Selly Park Technology College for Girls",
"Postcode": "B297PH"
},
{
"SchoolName": "Turves Green Girls' School",
"Postcode": "B314BP"
},
{
"SchoolName": "Turves Green Boys' School",
"Postcode": "B314BS"
},
{
"SchoolName": "Wheelers Lane Technology College",
"Postcode": "B130SF"
},
{
"SchoolName": "Hodge Hill College",
"Postcode": "B368HB"
},
{
"SchoolName": "Holte School",
"Postcode": "B192EP"
},
{
"SchoolName": "Swanshurst School",
"Postcode": "B130TW"
},
{
"SchoolName": "Moseley School",
"Postcode": "B139UU"
},
{
"SchoolName": "John Willmott School",
"Postcode": "B757DY"
},
{
"SchoolName": "Balaam Wood School",
"Postcode": "B450EU"
},
{
"SchoolName": "St Paul's School for Girls",
"Postcode": "B169SL"
},
{
"SchoolName": "St John Wall Catholic School",
"Postcode": "B218HH"
},
{
"SchoolName": "St Edmund Campion Catholic School & Sixth Form Centre",
"Postcode": "B235XA"
},
{
"SchoolName": "Holy Trinity Catholic Media Arts College",
"Postcode": "B100AX"
},
{
"SchoolName": "Cardinal Wiseman Catholic Technology College",
"Postcode": "B449SR"
},
{
"SchoolName": "Archbishop Ilsley Catholic School",
"Postcode": "B277XY"
},
{
"SchoolName": "Walmley Junior School",
"Postcode": "B761JB"
},
{
"SchoolName": "Walmley Infant School",
"Postcode": "B761JB"
},
{
"SchoolName": "Small Heath School",
"Postcode": "B109RX"
},
{
"SchoolName": "Bishop Challoner Catholic College",
"Postcode": "B147EG"
},
{
"SchoolName": "King's Norton Boys' School",
"Postcode": "B301DY"
},
{
"SchoolName": "Colmers School and Sixth Form College",
"Postcode": "B459NY"
},
{
"SchoolName": "St George's School Edgbaston",
"Postcode": "B151RX"
},
{
"SchoolName": "The Priory School",
"Postcode": "B152UR"
},
{
"SchoolName": "Edgbaston High School for Girls",
"Postcode": "B153TS"
},
{
"SchoolName": "Hallfield School",
"Postcode": "B153SJ"
},
{
"SchoolName": "Norfolk House School",
"Postcode": "B153PS"
},
{
"SchoolName": "Rosslyn School",
"Postcode": "B289JB"
},
{
"SchoolName": "West House School",
"Postcode": "B152NX"
},
{
"SchoolName": "Highclare School",
"Postcode": "B236QL"
},
{
"SchoolName": "The Shrubbery School",
"Postcode": "B761HY"
},
{
"SchoolName": "The Blue Coat School Birmingham",
"Postcode": "B170HR"
},
{
"SchoolName": "King Edward's School",
"Postcode": "B152UA"
},
{
"SchoolName": "King Edward VI High School for Girls",
"Postcode": "B152UB"
},
{
"SchoolName": "<NAME> Islamic High School",
"Postcode": "B100LL"
},
{
"SchoolName": "M<NAME>man Woodward Independent College",
"Postcode": "B153AU"
},
{
"SchoolName": "National Institute for Conductive Education",
"Postcode": "B138RD"
},
{
"SchoolName": "Birchfield Independent Girls' School",
"Postcode": "B66JU"
},
{
"SchoolName": "Al-Furqan Community College",
"Postcode": "B113EY"
},
{
"SchoolName": "Al Huda Girls' School",
"Postcode": "B81RD"
},
{
"SchoolName": "Prenton Primary School",
"Postcode": "CH430RQ"
},
{
"SchoolName": "Hamilton School",
"Postcode": "B218AH"
},
{
"SchoolName": "Victoria School",
"Postcode": "B311LD"
},
{
"SchoolName": "Longwill A Primary School for Deaf Children",
"Postcode": "B311LD"
},
{
"SchoolName": "Uffculme School",
"Postcode": "B138QB"
},
{
"SchoolName": "Baskerville School",
"Postcode": "B179TS"
},
{
"SchoolName": "Hunters Hill Technology College",
"Postcode": "B601QD"
},
{
"SchoolName": "Braidwood School for the Deaf",
"Postcode": "B368AF"
},
{
"SchoolName": "Selly Oak Trust School",
"Postcode": "B296HZ"
},
{
"SchoolName": "Priestley Smith School",
"Postcode": "B422PY"
},
{
"SchoolName": "The Dame Ellen Pinsent School",
"Postcode": "B130RW"
},
{
"SchoolName": "Queensbury School",
"Postcode": "B248BL"
},
{
"SchoolName": "Skilts School",
"Postcode": "B989ET"
},
{
"SchoolName": "Mayfield School",
"Postcode": "B192EP"
},
{
"SchoolName": "The Pines Special School",
"Postcode": "B237EY"
},
{
"SchoolName": "Springfield House Community Special School",
"Postcode": "B930AJ"
},
{
"SchoolName": "Fox Hollies School and Performing Arts College",
"Postcode": "B138QB"
},
{
"SchoolName": "Cherry Oak School",
"Postcode": "B296PB"
},
{
"SchoolName": "Beaufort School",
"Postcode": "B346BJ"
},
{
"SchoolName": "Oscott Manor School",
"Postcode": "B449SP"
},
{
"SchoolName": "Langley School",
"Postcode": "B756TJ"
},
{
"SchoolName": "Lindsworth School",
"Postcode": "B303QA"
},
{
"SchoolName": "Hillfields Children's Centre and Nursery School",
"Postcode": "CV15GR"
},
{
"SchoolName": "Whitmore Park Annexe",
"Postcode": "CV62HD"
},
{
"SchoolName": "Alderman's Green Community Primary School",
"Postcode": "CV21PP"
},
{
"SchoolName": "Hollyfast Primary School",
"Postcode": "CV62AH"
},
{
"SchoolName": "Earlsdon Primary School",
"Postcode": "CV56FZ"
},
{
"SchoolName": "Edgewick Community Primary School",
"Postcode": "CV65GP"
},
{
"SchoolName": "Gosford Park Primary School",
"Postcode": "CV12SF"
},
{
"SchoolName": "Little Heath Primary School",
"Postcode": "CV67FN"
},
{
"SchoolName": "Longford Park Primary School",
"Postcode": "CV67AT"
},
{
"SchoolName": "St Christopher Primary School",
"Postcode": "CV59JG"
},
{
"SchoolName": "Whitley Abbey Primary School",
"Postcode": "CV34DE"
},
{
"SchoolName": "Allesley Hall Primary School",
"Postcode": "CV59NG"
},
{
"SchoolName": "Ernesford Grange Primary School",
"Postcode": "CV32HN"
},
{
"SchoolName": "Potters Green Primary School",
"Postcode": "CV22GF"
},
{
"SchoolName": "Allesley Primary School",
"Postcode": "CV59FY"
},
{
"SchoolName": "Grangehurst Primary School",
"Postcode": "CV66JN"
},
{
"SchoolName": "Grange Farm Primary School",
"Postcode": "CV36NF"
},
{
"SchoolName": "Eastern Green Junior School",
"Postcode": "CV57EG"
},
{
"SchoolName": "Park Hill Primary School",
"Postcode": "CV57LR"
},
{
"SchoolName": "Cannon Park Primary School",
"Postcode": "CV47PS"
},
{
"SchoolName": "Pearl Hyde Community Primary School",
"Postcode": "CV22NB"
},
{
"SchoolName": "Sowe Valley Primary School",
"Postcode": "CV32QX"
},
{
"SchoolName": "Broad Heath Community Primary School",
"Postcode": "CV65DP"
},
{
"SchoolName": "Joseph Cash Primary School",
"Postcode": "CV63FS"
},
{
"SchoolName": "Whoberley Hall Primary School",
"Postcode": "CV58AJ"
},
{
"SchoolName": "Holbrook Primary School",
"Postcode": "CV66FR"
},
{
"SchoolName": "Stoke Primary School",
"Postcode": "CV24LF"
},
{
"SchoolName": "Coundon Primary School",
"Postcode": "CV61FQ"
},
{
"SchoolName": "Aldermoor Farm Primary School",
"Postcode": "CV31DP"
},
{
"SchoolName": "Ravensdale Primary School",
"Postcode": "CV25GQ"
},
{
"SchoolName": "Stoke Heath Primary School",
"Postcode": "CV24PR"
},
{
"SchoolName": "Whitmore Park Primary School",
"Postcode": "CV62HG"
},
{
"SchoolName": "Stivichall Primary School",
"Postcode": "CV36PY"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "CV14HB"
},
{
"SchoolName": "Manor Park Primary School",
"Postcode": "CV35EZ"
},
{
"SchoolName": "Templars Primary School",
"Postcode": "CV49DA"
},
{
"SchoolName": "Richard Lee Primary School",
"Postcode": "CV25FU"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "CV24QQ"
},
{
"SchoolName": "Wyken Croft Primary School",
"Postcode": "CV23AA"
},
{
"SchoolName": "Moseley Primary School",
"Postcode": "CV61AB"
},
{
"SchoolName": "<NAME> Community Primary School",
"Postcode": "CV64JP"
},
{
"SchoolName": "All Saints Church of England Primary School",
"Postcode": "CV12AF"
},
{
"SchoolName": "St Andrew's Church of England Infant School",
"Postcode": "CV57BX"
},
{
"SchoolName": "Leigh Church of England Primary School",
"Postcode": "CV49RQ"
},
{
"SchoolName": "St Elizabeth's Catholic Primary School, Foleshill",
"Postcode": "CV65BX"
},
{
"SchoolName": "St Osburg's Catholic Primary School",
"Postcode": "CV14AP"
},
{
"SchoolName": "Our Lady of the Assumption Catholic Primary School",
"Postcode": "CV49LB"
},
{
"SchoolName": "St <NAME>ey Catholic Primary School",
"Postcode": "CV57GX"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "CV33AD"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "CV63BL"
},
{
"SchoolName": "St Thomas More Catholic Primary School",
"Postcode": "CV35DE"
},
{
"SchoolName": "All Souls Catholic Primary School",
"Postcode": "CV58ED"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "CV62GU"
},
{
"SchoolName": "Stoke Park School and Community Technology College",
"Postcode": "CV24JW"
},
{
"SchoolName": "Foxford School and Community Arts College",
"Postcode": "CV66BB"
},
{
"SchoolName": "Bishop Ullathorne Catholic School",
"Postcode": "CV36BH"
},
{
"SchoolName": "Cardinal Newman Catholic School A Specialist Arts and Community College",
"Postcode": "CV62FR"
},
{
"SchoolName": "Pattison College",
"Postcode": "CV31FQ"
},
{
"SchoolName": "King Henry VIII School",
"Postcode": "CV36AQ"
},
{
"SchoolName": "Bablake School",
"Postcode": "CV14AU"
},
{
"SchoolName": "Coventry Muslim School",
"Postcode": "CV65JQ"
},
{
"SchoolName": "Bablake Junior School",
"Postcode": "CV14AU"
},
{
"SchoolName": "Sherbourne Fields School",
"Postcode": "CV61PR"
},
{
"SchoolName": "Tiverton School",
"Postcode": "CV61PS"
},
{
"SchoolName": "Baginton Fields School",
"Postcode": "CV34EA"
},
{
"SchoolName": "Netherton Park Nursery School",
"Postcode": "DY29QF"
},
{
"SchoolName": "Cherry Tree Learning Centre",
"Postcode": "DY12NX"
},
{
"SchoolName": "Blowers Green Primary School",
"Postcode": "DY28UZ"
},
{
"SchoolName": "Northfield Road Primary School",
"Postcode": "DY29ER"
},
{
"SchoolName": "Brierley Hill Primary School",
"Postcode": "DY52TD"
},
{
"SchoolName": "Brockmoor Primary School",
"Postcode": "DY53UZ"
},
{
"SchoolName": "Brook Primary School",
"Postcode": "DY85YN"
},
{
"SchoolName": "Maidensbridge Primary School",
"Postcode": "DY60HX"
},
{
"SchoolName": "Mount Pleasant Primary School",
"Postcode": "DY52YN"
},
{
"SchoolName": "Dawley Brook Primary School",
"Postcode": "DY69BP"
},
{
"SchoolName": "Wallbrook Primary School",
"Postcode": "WV148YP"
},
{
"SchoolName": "Red Hall Primary School",
"Postcode": "DY32PA"
},
{
"SchoolName": "Fairhaven Primary School",
"Postcode": "DY85PY"
},
{
"SchoolName": "Thorns Primary School",
"Postcode": "DY52JY"
},
{
"SchoolName": "Foxyards Primary School",
"Postcode": "DY48BH"
},
{
"SchoolName": "Crestwood Park Primary School",
"Postcode": "DY68RP"
},
{
"SchoolName": "Peters Hill Primary School",
"Postcode": "DY52QH"
},
{
"SchoolName": "Blanford Mere Primary School",
"Postcode": "DY67EA"
},
{
"SchoolName": "Greenfield Primary School",
"Postcode": "DY81AL"
},
{
"SchoolName": "Wollescote Primary School",
"Postcode": "DY98YA"
},
{
"SchoolName": "Caslon Primary Community School",
"Postcode": "B632ES"
},
{
"SchoolName": "Huntingtree Primary School",
"Postcode": "B634DZ"
},
{
"SchoolName": "Rufford Primary School",
"Postcode": "DY97NR"
},
{
"SchoolName": "The Ridge Primary School",
"Postcode": "DY83NF"
},
{
"SchoolName": "Amblecote Primary School",
"Postcode": "DY84DQ"
},
{
"SchoolName": "Hurst Green Primary School",
"Postcode": "B629NZ"
},
{
"SchoolName": "Withymoor Primary School",
"Postcode": "DY52BH"
},
{
"SchoolName": "Cotwall End Primary School",
"Postcode": "DY33YG"
},
{
"SchoolName": "Russells Hall Primary School",
"Postcode": "DY12NX"
},
{
"SchoolName": "Howley Grange Primary School",
"Postcode": "B620HS"
},
{
"SchoolName": "Newfield Park Primary School",
"Postcode": "B633TP"
},
{
"SchoolName": "Ashwood Park Primary School",
"Postcode": "DY85DJ"
},
{
"SchoolName": "Bromley Hills Primary School",
"Postcode": "DY68LW"
},
{
"SchoolName": "Hawbush Primary School",
"Postcode": "DY53NH"
},
{
"SchoolName": "Roberts Primary School",
"Postcode": "DY32AZ"
},
{
"SchoolName": "Gig Mill Primary School",
"Postcode": "DY83HL"
},
{
"SchoolName": "Wrens Nest Primary School",
"Postcode": "DY13NX"
},
{
"SchoolName": "Queen Victoria Primary School",
"Postcode": "DY31JB"
},
{
"SchoolName": "Straits Primary School",
"Postcode": "DY33EE"
},
{
"SchoolName": "Belle Vue Primary School",
"Postcode": "DY85BZ"
},
{
"SchoolName": "Dingle Community Primary School",
"Postcode": "DY68PF"
},
{
"SchoolName": "Quarry Bank Primary School",
"Postcode": "DY52AD"
},
{
"SchoolName": "Priory Primary School",
"Postcode": "DY14AQ"
},
{
"SchoolName": "Glynne Primary School",
"Postcode": "DY69TH"
},
{
"SchoolName": "Milking Bank Primary School",
"Postcode": "DY12SL"
},
{
"SchoolName": "Church of the Ascension CofE Primary School",
"Postcode": "DY69AH"
},
{
"SchoolName": "St Mark's CofE Primary School",
"Postcode": "DY54DZ"
},
{
"SchoolName": "St Mary's CofE (VC) Primary School",
"Postcode": "DY67AQ"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "WV148YB"
},
{
"SchoolName": "Oldswinford CofE Primary School",
"Postcode": "DY82JQ"
},
{
"SchoolName": "St Margaret's At Hasbury CofE Primary School",
"Postcode": "B634QD"
},
{
"SchoolName": "Netherton CofE Primary School",
"Postcode": "DY20HU"
},
{
"SchoolName": "Jesson's CofE Primary School (VA)",
"Postcode": "DY12AQ"
},
{
"SchoolName": "Cradley CofE Primary School",
"Postcode": "B632UL"
},
{
"SchoolName": "Halesowen CofE Primary School",
"Postcode": "B633BB"
},
{
"SchoolName": "Pedmore CE Primary School",
"Postcode": "DY90RH"
},
{
"SchoolName": "Our Lady and St Kenelm RC School",
"Postcode": "B634AR"
},
{
"SchoolName": "St James's CofE Primary School",
"Postcode": "DY84RU"
},
{
"SchoolName": "Summerhill School",
"Postcode": "DY69XE"
},
{
"SchoolName": "The Dormston School",
"Postcode": "DY31SN"
},
{
"SchoolName": "The Wordsley School Business & Enterprise & Music College",
"Postcode": "DY85SP"
},
{
"SchoolName": "Pedmore Technology College and Community School",
"Postcode": "DY97HS"
},
{
"SchoolName": "The Hillcrest School and Community College",
"Postcode": "DY20PB"
},
{
"SchoolName": "Castle High School and Visual Arts College",
"Postcode": "DY13JE"
},
{
"SchoolName": "Alder Coppice Primary School",
"Postcode": "DY33PS"
},
{
"SchoolName": "Old Swinford Hospital",
"Postcode": "DY81QX"
},
{
"SchoolName": "Elmfield Rudolf Steiner School Limited",
"Postcode": "DY82EA"
},
{
"SchoolName": "The Sutton School and Specialist College",
"Postcode": "DY12DU"
},
{
"SchoolName": "The Brier School",
"Postcode": "DY68QN"
},
{
"SchoolName": "The Woodsetton School",
"Postcode": "DY31BY"
},
{
"SchoolName": "The Old Park School",
"Postcode": "DY52JY"
},
{
"SchoolName": "Halesbury School",
"Postcode": "B629DR"
},
{
"SchoolName": "Rosewood School",
"Postcode": "WV148XJ"
},
{
"SchoolName": "Pens Meadow School",
"Postcode": "DY85ST"
},
{
"SchoolName": "Whiteheath Education Centre",
"Postcode": "B659AL"
},
{
"SchoolName": "Hamstead Junior School",
"Postcode": "B435BE"
},
{
"SchoolName": "Hamstead Infant School",
"Postcode": "B435AS"
},
{
"SchoolName": "Hargate Primary School",
"Postcode": "B711PG"
},
{
"SchoolName": "Albert Pritchard Infant School",
"Postcode": "WS109QG"
},
{
"SchoolName": "Moorlands Primary School",
"Postcode": "B712NZ"
},
{
"SchoolName": "Old Park Primary School",
"Postcode": "WS109LX"
},
{
"SchoolName": "Park Hill Primary School",
"Postcode": "WS100TJ"
},
{
"SchoolName": "Wood Green Junior School",
"Postcode": "WS109BW"
},
{
"SchoolName": "Burnt Tree Primary School",
"Postcode": "B692LN"
},
{
"SchoolName": "Great Bridge Primary School",
"Postcode": "DY47DE"
},
{
"SchoolName": "Ocker Hill Infant School",
"Postcode": "DY40DS"
},
{
"SchoolName": "Whitecrest Primary School",
"Postcode": "B436HQ"
},
{
"SchoolName": "Eaton Valley Primary School",
"Postcode": "B714BU"
},
{
"SchoolName": "Newtown Primary School",
"Postcode": "B700ES"
},
{
"SchoolName": "Glebefields Primary School",
"Postcode": "DY40SX"
},
{
"SchoolName": "Holyhead Primary School",
"Postcode": "WS107PZ"
},
{
"SchoolName": "Tipton Green Junior School",
"Postcode": "DY48PR"
},
{
"SchoolName": "Abbey Junior School",
"Postcode": "B675LT"
},
{
"SchoolName": "Abbey Infant School",
"Postcode": "B675LR"
},
{
"SchoolName": "Annie Lennard Primary School",
"Postcode": "B676LE"
},
{
"SchoolName": "Bearwood Primary School",
"Postcode": "B664HB"
},
{
"SchoolName": "Bleakhouse Junior School",
"Postcode": "B689DS"
},
{
"SchoolName": "Brickhouse Primary School",
"Postcode": "B658HS"
},
{
"SchoolName": "Cape Primary School",
"Postcode": "B664SH"
},
{
"SchoolName": "Crocketts Community Primary School",
"Postcode": "B677DW"
},
{
"SchoolName": "Grace Mary Primary School",
"Postcode": "B691LD"
},
{
"SchoolName": "Highfields Primary School",
"Postcode": "B650DA"
},
{
"SchoolName": "Lightwoods Primary School",
"Postcode": "B689BG"
},
{
"SchoolName": "Moat Farm Junior School",
"Postcode": "B689QR"
},
{
"SchoolName": "Moat Farm Infant School",
"Postcode": "B689QR"
},
{
"SchoolName": "Oakham Primary School",
"Postcode": "B691SG"
},
{
"SchoolName": "Old Hill Primary School",
"Postcode": "B646DR"
},
{
"SchoolName": "Perryfields Primary School",
"Postcode": "B680QY"
},
{
"SchoolName": "Reddal Hill Primary School",
"Postcode": "B646HT"
},
{
"SchoolName": "Rowley Hall Primary School",
"Postcode": "B659HU"
},
{
"SchoolName": "Temple Meadow Primary School",
"Postcode": "B646RH"
},
{
"SchoolName": "Tividale Hall Primary School",
"Postcode": "B691TR"
},
{
"SchoolName": "Warley Infant School",
"Postcode": "B689DS"
},
{
"SchoolName": "Lyng Primary School",
"Postcode": "B707SQ"
},
{
"SchoolName": "Lodge Primary School",
"Postcode": "B708PN"
},
{
"SchoolName": "Joseph Turner Primary School",
"Postcode": "DY40RN"
},
{
"SchoolName": "Grove Vale Primary School",
"Postcode": "B436AL"
},
{
"SchoolName": "Yew Tree Primary School",
"Postcode": "WS54DX"
},
{
"SchoolName": "Brandhall Primary School",
"Postcode": "B680SH"
},
{
"SchoolName": "Hall Green Primary School",
"Postcode": "B712JQ"
},
{
"SchoolName": "Langley Primary School",
"Postcode": "B694QB"
},
{
"SchoolName": "Ryders Green Primary School",
"Postcode": "B709UJ"
},
{
"SchoolName": "Rounds Green Primary School",
"Postcode": "B692DP"
},
{
"SchoolName": "Blackheath Primary School",
"Postcode": "B659NF"
},
{
"SchoolName": "Ferndale Primary School",
"Postcode": "B435QF"
},
{
"SchoolName": "Causeway Green Primary School",
"Postcode": "B688LX"
},
{
"SchoolName": "Rood End Primary School",
"Postcode": "B688SQ"
},
{
"SchoolName": "Holy Trinity CofE Primary School",
"Postcode": "B706NF"
},
{
"SchoolName": "St Martin's CofE Primary School",
"Postcode": "DY47PG"
},
{
"SchoolName": "St Mary Magdalene CofE Voluntary Controlled Primary School",
"Postcode": "B711RP"
},
{
"SchoolName": "All Saints CofE Primary School",
"Postcode": "B711QN"
},
{
"SchoolName": "St John Bosco Catholic Primary School",
"Postcode": "B712ST"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "WS109PN"
},
{
"SchoolName": "St Margaret's CofE Primary School",
"Postcode": "B437AP"
},
{
"SchoolName": "Holy Name Catholic Primary School",
"Postcode": "B436LN"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "B694DE"
},
{
"SchoolName": "St Matthew's CofE Primary School",
"Postcode": "B663LX"
},
{
"SchoolName": "Perryfields High School Specialist Maths and Computing College",
"Postcode": "B680RG"
},
{
"SchoolName": "Holly Lodge High School College of Science",
"Postcode": "B677JG"
},
{
"SchoolName": "St Michael's CE High School",
"Postcode": "B659AN"
},
{
"SchoolName": "Stuart Bathurst Catholic High School College of Performing Arts",
"Postcode": "WS109QS"
},
{
"SchoolName": "Shenstone Lodge School",
"Postcode": "WS140LB"
},
{
"SchoolName": "Triple Crown Centre",
"Postcode": "B912HW"
},
{
"SchoolName": "Blossomfield Infant and Nursery School",
"Postcode": "B903QX"
},
{
"SchoolName": "Burman Infant School",
"Postcode": "B902JW"
},
{
"SchoolName": "Coppice Junior School",
"Postcode": "B929JY"
},
{
"SchoolName": "Cranmore Infant School",
"Postcode": "B904SA"
},
{
"SchoolName": "Daylesford Infant School",
"Postcode": "B927QW"
},
{
"SchoolName": "Dorridge Primary School",
"Postcode": "B938EU"
},
{
"SchoolName": "Haslucks Green School",
"Postcode": "B902EJ"
},
{
"SchoolName": "Kineton Green Primary School",
"Postcode": "B927EB"
},
{
"SchoolName": "Sharmans Cross Junior School",
"Postcode": "B911PH"
},
{
"SchoolName": "Shirley Heath Junior School",
"Postcode": "B903DS"
},
{
"SchoolName": "Valley Primary",
"Postcode": "B928LW"
},
{
"SchoolName": "Woodlands Infant School",
"Postcode": "B902PX"
},
{
"SchoolName": "Widney Junior School",
"Postcode": "B913LQ"
},
{
"SchoolName": "Oak Cottage Primary School",
"Postcode": "B911DY"
},
{
"SchoolName": "Mill Lodge Primary School",
"Postcode": "B901BT"
},
{
"SchoolName": "Yew Tree Primary School",
"Postcode": "B912SD"
},
{
"SchoolName": "Marston Green Junior School",
"Postcode": "B377BA"
},
{
"SchoolName": "Tidbury Green School",
"Postcode": "B901QW"
},
{
"SchoolName": "Castle Bromwich Junior School",
"Postcode": "B360HD"
},
{
"SchoolName": "Castle Bromwich Infant and Nursery School",
"Postcode": "B360BX"
},
{
"SchoolName": "Coleshill Heath School",
"Postcode": "B377PY"
},
{
"SchoolName": "Windy Arbor Primary School",
"Postcode": "B376RN"
},
{
"SchoolName": "Cheswick Green Primary School",
"Postcode": "B904HG"
},
{
"SchoolName": "Peterbrook Primary School",
"Postcode": "B901HR"
},
{
"SchoolName": "Chapel Fields Junior School",
"Postcode": "B927QF"
},
{
"SchoolName": "Yorkswood Primary School",
"Postcode": "B376DF"
},
{
"SchoolName": "Ulverley School",
"Postcode": "B928RZ"
},
{
"SchoolName": "Greswold Primary School",
"Postcode": "B912AZ"
},
{
"SchoolName": "Langley Primary School",
"Postcode": "B927DJ"
},
{
"SchoolName": "Monkspath Junior and Infant School",
"Postcode": "B904EH"
},
{
"SchoolName": "Meriden Church of England Primary School",
"Postcode": "CV77LW"
},
{
"SchoolName": "St Margaret's Church of England Voluntary Aided Primary School",
"Postcode": "B927RR"
},
{
"SchoolName": "St Alphege Church of England Infant and Nursery School",
"Postcode": "B913DW"
},
{
"SchoolName": "St Alphege Church of England Junior School",
"Postcode": "B913JG"
},
{
"SchoolName": "Berkswell Church of England Voluntary Aided Primary School",
"Postcode": "CV77BJ"
},
{
"SchoolName": "George Fentham Endowed School",
"Postcode": "B920AY"
},
{
"SchoolName": "Lady Katherine Leveson Church of England Primary School",
"Postcode": "B930AN"
},
{
"SchoolName": "St Mary and St Margaret's Church of England Aided Primary School",
"Postcode": "B369AX"
},
{
"SchoolName": "Our Lady of the Wayside Catholic Primary School",
"Postcode": "B904AY"
},
{
"SchoolName": "St Andrew's Catholic Primary School",
"Postcode": "B928QL"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "B913NZ"
},
{
"SchoolName": "St George and St Teresa Catholic Primary School",
"Postcode": "B938PA"
},
{
"SchoolName": "Our Lady of Compassion Catholic Primary School",
"Postcode": "B927EG"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "B376LW"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "B375DP"
},
{
"SchoolName": "Bishop Wilson Church of England Primary School",
"Postcode": "B377TR"
},
{
"SchoolName": "St John the Baptist Catholic Primary School",
"Postcode": "B360QE"
},
{
"SchoolName": "St Peter's Catholic School and Specialist Science College",
"Postcode": "B913NZ"
},
{
"SchoolName": "Fordbridge Community Primary School",
"Postcode": "B375BU"
},
{
"SchoolName": "Eversfield Preparatory School",
"Postcode": "B911AT"
},
{
"SchoolName": "Saint Martin's School",
"Postcode": "B913EN"
},
{
"SchoolName": "Solihull School",
"Postcode": "B913DJ"
},
{
"SchoolName": "Ruckleigh School",
"Postcode": "B912AB"
},
{
"SchoolName": "Kingswood School",
"Postcode": "B902BA"
},
{
"SchoolName": "Hazel Oak School",
"Postcode": "B902AZ"
},
{
"SchoolName": "Reynalds Cross School",
"Postcode": "B927ER"
},
{
"SchoolName": "Forest Oak School",
"Postcode": "B360UE"
},
{
"SchoolName": "Merstone School",
"Postcode": "B360UE"
},
{
"SchoolName": "Sandbank Nursery School",
"Postcode": "WS32HR"
},
{
"SchoolName": "Fullbrook Nursery School",
"Postcode": "WS54NN"
},
{
"SchoolName": "Rowley View Nursery School",
"Postcode": "WS107RU"
},
{
"SchoolName": "Valley Nursery School",
"Postcode": "WS31HT"
},
{
"SchoolName": "Millfields Nursery School",
"Postcode": "WS33LU"
},
{
"SchoolName": "Lane Head Nursery School",
"Postcode": "WV124JQ"
},
{
"SchoolName": "Alumwell Nursery School",
"Postcode": "WS29UP"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "WS86AU"
},
{
"SchoolName": "Alumwell Junior School",
"Postcode": "WS29UP"
},
{
"SchoolName": "Alumwell Infant School",
"Postcode": "WS29UP"
},
{
"SchoolName": "Blakenall Heath Junior School",
"Postcode": "WS33JF"
},
{
"SchoolName": "Sunshine Infant and Nursery School",
"Postcode": "WS31HF"
},
{
"SchoolName": "Busill Jones Primary School",
"Postcode": "WS32QF"
},
{
"SchoolName": "Butts Primary School",
"Postcode": "WS42AH"
},
{
"SchoolName": "Delves Infant School",
"Postcode": "WS54PU"
},
{
"SchoolName": "Elmore Green Primary School",
"Postcode": "WS32HW"
},
{
"SchoolName": "Leamore Primary School",
"Postcode": "WS32BB"
},
{
"SchoolName": "Palfrey Junior School",
"Postcode": "WS14AH"
},
{
"SchoolName": "Palfrey Infant School",
"Postcode": "WS14HY"
},
{
"SchoolName": "Whitehall Junior Community School",
"Postcode": "WS13JY"
},
{
"SchoolName": "Whitehall Nursery and Infant School",
"Postcode": "WS13HS"
},
{
"SchoolName": "Abbey Primary School",
"Postcode": "WS32RP"
},
{
"SchoolName": "Lower Farm Primary School",
"Postcode": "WS33QH"
},
{
"SchoolName": "Delves Junior School",
"Postcode": "WS54PU"
},
{
"SchoolName": "Bentley West Primary School Additionally Resourced for Hearing Impaired",
"Postcode": "WS20EQ"
},
{
"SchoolName": "King Charles Primary School",
"Postcode": "WS20JN"
},
{
"SchoolName": "Pinfold Street Primary School",
"Postcode": "WS108PU"
},
{
"SchoolName": "Salisbury Primary School",
"Postcode": "WS108BQ"
},
{
"SchoolName": "Kings Hill Primary School",
"Postcode": "WS109JG"
},
{
"SchoolName": "New Invention Infant School",
"Postcode": "WV125SA"
},
{
"SchoolName": "Short Heath Junior School",
"Postcode": "WV124DS"
},
{
"SchoolName": "County Bridge Primary School",
"Postcode": "WS20DH"
},
{
"SchoolName": "Pool Hayes Primary School",
"Postcode": "WV124RX"
},
{
"SchoolName": "New Invention Junior School",
"Postcode": "WV125SA"
},
{
"SchoolName": "Rushall Primary School",
"Postcode": "WS41NQ"
},
{
"SchoolName": "Whetstone Field Primary School",
"Postcode": "WS90HJ"
},
{
"SchoolName": "Walsall Wood School",
"Postcode": "WS87BP"
},
{
"SchoolName": "Watling Street Primary School",
"Postcode": "WS87LW"
},
{
"SchoolName": "Millfield Primary School",
"Postcode": "WS86BN"
},
{
"SchoolName": "Castlefort Junior Mixed and Infant School",
"Postcode": "WS99JP"
},
{
"SchoolName": "Brownhills West Primary School",
"Postcode": "WS87LA"
},
{
"SchoolName": "Radleys Primary School",
"Postcode": "WS41JJ"
},
{
"SchoolName": "Manor Primary School",
"Postcode": "B743HX"
},
{
"SchoolName": "Blackwood School",
"Postcode": "B743PH"
},
{
"SchoolName": "Lindens Primary School",
"Postcode": "B742BB"
},
{
"SchoolName": "Pelsall Village School",
"Postcode": "WS34NJ"
},
{
"SchoolName": "Greenfield Primary School",
"Postcode": "WS41PL"
},
{
"SchoolName": "Meadow View JMI School",
"Postcode": "B437UJ"
},
{
"SchoolName": "Pheasey Park Farm Primary School",
"Postcode": "B437DH"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "WS31EN"
},
{
"SchoolName": "Little Bloxwich CofE VC Primary School",
"Postcode": "WS33DL"
},
{
"SchoolName": "Holy Trinity Church of England Primary School",
"Postcode": "WS87EG"
},
{
"SchoolName": "Old Church Church of England C Primary School",
"Postcode": "WS108DL"
},
{
"SchoolName": "Rosedale Church of England C Infant School",
"Postcode": "WV124EG"
},
{
"SchoolName": "St Giles Church of England Primary School",
"Postcode": "WV132ER"
},
{
"SchoolName": "St Michael's Church of England C Primary School",
"Postcode": "WS34JJ"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "WS99NA"
},
{
"SchoolName": "Blue Coat Church of England Aided Junior School",
"Postcode": "WS12LP"
},
{
"SchoolName": "Blue Coat Church of England Aided Infant School",
"Postcode": "WS13AF"
},
{
"SchoolName": "St Mary's The Mount Catholic Primary School",
"Postcode": "WS13AY"
},
{
"SchoolName": "St Patrick's Catholic Primary School, Walsall",
"Postcode": "WS28HN"
},
{
"SchoolName": "St Peter's Catholic Primary School, Bloxwich",
"Postcode": "WS33LY"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Darlaston",
"Postcode": "WS108HN"
},
{
"SchoolName": "St Thomas of Canterbury Catholic Primary School",
"Postcode": "WS31SP"
},
{
"SchoolName": "St Francis Catholic Primary School",
"Postcode": "WS41RH"
},
{
"SchoolName": "St Mary of the Angels Catholic Primary School",
"Postcode": "WS90HA"
},
{
"SchoolName": "St Anne's Catholic Primary School, Streetly",
"Postcode": "B743PL"
},
{
"SchoolName": "St Bernadette's Catholic Primary School",
"Postcode": "WS86HX"
},
{
"SchoolName": "Brownhills School",
"Postcode": "WS87QG"
},
{
"SchoolName": "St Francis of Assisi Catholic Technology College",
"Postcode": "WS90RN"
},
{
"SchoolName": "St Thomas More Catholic School, Willenhall",
"Postcode": "WV147BL"
},
{
"SchoolName": "Mayfield Preparatory School",
"Postcode": "WS12PD"
},
{
"SchoolName": "Hydesville Tower School",
"Postcode": "WS12QG"
},
{
"SchoolName": "Palfrey Girls School",
"Postcode": "WS14AB"
},
{
"SchoolName": "Castle Business and Enterprise College",
"Postcode": "WS32ED"
},
{
"SchoolName": "The Jane Lane School, A College for Cognition & Learning",
"Postcode": "WS20JH"
},
{
"SchoolName": "Mary Elliot School",
"Postcode": "WS27NR"
},
{
"SchoolName": "Old Hall School",
"Postcode": "WS27LU"
},
{
"SchoolName": "Oakwood School",
"Postcode": "WS99JS"
},
{
"SchoolName": "Low Hill Nursery School",
"Postcode": "WV109JN"
},
{
"SchoolName": "Ashmore Park Nursery School",
"Postcode": "WV112LH"
},
{
"SchoolName": "Eastfield Nursery School",
"Postcode": "WV12HH"
},
{
"SchoolName": "Phoenix Nursery School",
"Postcode": "WV23JS"
},
{
"SchoolName": "Windsor Nursery School",
"Postcode": "WV46EL"
},
{
"SchoolName": "Bushbury Nursery School",
"Postcode": "WV108JP"
},
{
"SchoolName": "The Orchard Centre (Home and Hospital PRU)",
"Postcode": "WV46SR"
},
{
"SchoolName": "Bushbury Hill Primary School",
"Postcode": "WV108BY"
},
{
"SchoolName": "Fallings Park Primary School",
"Postcode": "WV108BN"
},
{
"SchoolName": "Whitgreave Junior School",
"Postcode": "WV109JP"
},
{
"SchoolName": "Whitgreave Infant School",
"Postcode": "WV109HS"
},
{
"SchoolName": "Woodfield Junior School",
"Postcode": "WV44AG"
},
{
"SchoolName": "Woodfield Infant School",
"Postcode": "WV44AG"
},
{
"SchoolName": "Graiseley Primary School",
"Postcode": "WV24NE"
},
{
"SchoolName": "Springdale Junior School",
"Postcode": "WV44NJ"
},
{
"SchoolName": "Rakegate Primary School",
"Postcode": "WV106US"
},
{
"SchoolName": "Springdale Infant School",
"Postcode": "WV44NJ"
},
{
"SchoolName": "Claregate Primary School",
"Postcode": "WV69JU"
},
{
"SchoolName": "Castlecroft Primary School",
"Postcode": "WV38HS"
},
{
"SchoolName": "Westacre Infant School",
"Postcode": "WV39EP"
},
{
"SchoolName": "Loxdale Primary School",
"Postcode": "WV140PH"
},
{
"SchoolName": "Stowlawn Primary School",
"Postcode": "WV146EH"
},
{
"SchoolName": "Villiers Primary School",
"Postcode": "WV146PR"
},
{
"SchoolName": "Deyncourt Primary School",
"Postcode": "WV111DD"
},
{
"SchoolName": "Long Knowle Primary School",
"Postcode": "WV111EB"
},
{
"SchoolName": "Wood End Primary School",
"Postcode": "WV111YQ"
},
{
"SchoolName": "Stow Heath Primary School",
"Postcode": "WV133TT"
},
{
"SchoolName": "Wilkinson Primary School",
"Postcode": "WV148UR"
},
{
"SchoolName": "Lanesfield Primary School",
"Postcode": "WV46BZ"
},
{
"SchoolName": "Spring Vale Primary School",
"Postcode": "WV46SD"
},
{
"SchoolName": "Uplands Junior School",
"Postcode": "WV38BA"
},
{
"SchoolName": "Merridale Primary School",
"Postcode": "WV30UP"
},
{
"SchoolName": "Oak Meadow Primary School",
"Postcode": "WV112QQ"
},
{
"SchoolName": "Eastfield Primary School",
"Postcode": "WV12QY"
},
{
"SchoolName": "Warstones Primary School",
"Postcode": "WV44LU"
},
{
"SchoolName": "Wodensfield Primary School",
"Postcode": "WV111PW"
},
{
"SchoolName": "Dovecotes Primary School",
"Postcode": "WV81TX"
},
{
"SchoolName": "Woodthorne Primary School",
"Postcode": "WV68XL"
},
{
"SchoolName": "Christ Church (Church of England) Infant and Nursery School",
"Postcode": "WV68EL"
},
{
"SchoolName": "St Thomas' Church of England Primary School",
"Postcode": "WV113TG"
},
{
"SchoolName": "St Alban's Church of England Primary School",
"Postcode": "WV112PF"
},
{
"SchoolName": "Christ Church (Church of England) Junior School",
"Postcode": "WV68LG"
},
{
"SchoolName": "St Luke's Church of England Aided Primary School",
"Postcode": "WV23AE"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "WV106NW"
},
{
"SchoolName": "Holy Trinity Catholic Primary School",
"Postcode": "WV147PD"
},
{
"SchoolName": "St Patrick's Catholic Primary School, Wednesfield",
"Postcode": "WV111PG"
},
{
"SchoolName": "St Paul's Church of England Aided Primary School",
"Postcode": "WV95NR"
},
{
"SchoolName": "St Michael's Church of England Aided Primary School",
"Postcode": "WV69AF"
},
{
"SchoolName": "St Matthias School",
"Postcode": "WV12BH"
},
{
"SchoolName": "Coppice Performing Arts School",
"Postcode": "WV112QE"
},
{
"SchoolName": "Colton Hills Community School",
"Postcode": "WV45DG"
},
{
"SchoolName": "Tettenhall College Incorporated",
"Postcode": "WV68QX"
},
{
"SchoolName": "Newbridge Preparatory School",
"Postcode": "WV60LH"
},
{
"SchoolName": "Wolverhampton Grammar School",
"Postcode": "WV39RB"
},
{
"SchoolName": "Penn Fields School",
"Postcode": "WV44NT"
},
{
"SchoolName": "Tettenhall Wood School",
"Postcode": "WV68XF"
},
{
"SchoolName": "Green Park School",
"Postcode": "WV146EH"
},
{
"SchoolName": "Penn Hall School",
"Postcode": "WV45HP"
},
{
"SchoolName": "Meadow Park School",
"Postcode": "L281RX"
},
{
"SchoolName": "Roby Park Primary School",
"Postcode": "L364NY"
},
{
"SchoolName": "Knowsley Village School",
"Postcode": "L340ER"
},
{
"SchoolName": "Prescot Primary School",
"Postcode": "L342TA"
},
{
"SchoolName": "Malvern Primary School",
"Postcode": "L146XA"
},
{
"SchoolName": "Park Brow Community Primary School",
"Postcode": "L326QH"
},
{
"SchoolName": "Westvale Primary School",
"Postcode": "L320RQ"
},
{
"SchoolName": "Millbrook Community Primary School",
"Postcode": "L320TG"
},
{
"SchoolName": "Whiston Willis Community Primary School",
"Postcode": "L352XY"
},
{
"SchoolName": "Mosscroft Primary School",
"Postcode": "L361XH"
},
{
"SchoolName": "Plantation Primary School",
"Postcode": "L260TH"
},
{
"SchoolName": "Ravenscroft Community Primary School",
"Postcode": "L331XT"
},
{
"SchoolName": "Evelyn Community Primary School",
"Postcode": "L342SP"
},
{
"SchoolName": "Eastcroft Park School",
"Postcode": "L331EB"
},
{
"SchoolName": "Kirkby CofE Primary School",
"Postcode": "L321TZ"
},
{
"SchoolName": "Huyton-with-Roby CofE Primary School",
"Postcode": "L369TF"
},
{
"SchoolName": "St Gabriel's CofE Primary School",
"Postcode": "L366BH"
},
{
"SchoolName": "St Mary and St Paul's CofE Primary School",
"Postcode": "L355DN"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "WA85DW"
},
{
"SchoolName": "Our Lady's Catholic Primary School",
"Postcode": "L346JJ"
},
{
"SchoolName": "St Luke's Catholic Primary School",
"Postcode": "L355AT"
},
{
"SchoolName": "St Laurence's Catholic Primary School",
"Postcode": "L329QX"
},
{
"SchoolName": "St Aidan's Catholic Primary School",
"Postcode": "L367XR"
},
{
"SchoolName": "St Michael and All Angels Catholic Primary School",
"Postcode": "L320TP"
},
{
"SchoolName": "St Marie's Catholic Primary School",
"Postcode": "L336XL"
},
{
"SchoolName": "St Albert's Catholic Primary School",
"Postcode": "L288AJ"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "L259PA"
},
{
"SchoolName": "St Mark's Catholic Primary School",
"Postcode": "L260XR"
},
{
"SchoolName": "St Andrew the Apostle Catholic Primary School",
"Postcode": "L261TD"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "L366DS"
},
{
"SchoolName": "St Brigid's Catholic Primary School",
"Postcode": "L287RE"
},
{
"SchoolName": "St Leo's and Southmead Catholic Primary School Serving the Community",
"Postcode": "L353SR"
},
{
"SchoolName": "St John Fisher Catholic Primary School",
"Postcode": "L340HA"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "L365XL"
},
{
"SchoolName": "<NAME> and Paul Catholic Primary School",
"Postcode": "L331DZ"
},
{
"SchoolName": "St Columba's Catholic Primary School",
"Postcode": "L368BL"
},
{
"SchoolName": "St Margaret Mary's Catholic Infant School",
"Postcode": "L140JG"
},
{
"SchoolName": "St Margaret Mary's Catholic Junior School",
"Postcode": "L140JG"
},
{
"SchoolName": "Bluebell Park School",
"Postcode": "L323XP"
},
{
"SchoolName": "Alt Bridge School",
"Postcode": "L367TA"
},
{
"SchoolName": "Knowsley Central School",
"Postcode": "L367SY"
},
{
"SchoolName": "Chatham Place Nursery School",
"Postcode": "L76HD"
},
{
"SchoolName": "East Prescot Road Nursery School",
"Postcode": "L141PW"
},
{
"SchoolName": "Everton Nursery School and Family Centre",
"Postcode": "L62WF"
},
{
"SchoolName": "Ellergreen Nursery School and Childcare Centre",
"Postcode": "L112RY"
},
{
"SchoolName": "Abercromby Nursery School",
"Postcode": "L87QA"
},
{
"SchoolName": "Banks Road Primary School",
"Postcode": "L198JZ"
},
{
"SchoolName": "Barlows Primary School",
"Postcode": "L99EH"
},
{
"SchoolName": "Belle Vale Community Primary School",
"Postcode": "L252QF"
},
{
"SchoolName": "Blackmoor Park Junior School",
"Postcode": "L129HB"
},
{
"SchoolName": "Booker Avenue Junior School",
"Postcode": "L189SB"
},
{
"SchoolName": "Corinthian Community Primary School",
"Postcode": "L136SH"
},
{
"SchoolName": "Gilmour Junior School",
"Postcode": "L191RD"
},
{
"SchoolName": "Gilmour (Southbank) Infant School",
"Postcode": "L199AR"
},
{
"SchoolName": "Springwood Heath Primary School",
"Postcode": "L194TL"
},
{
"SchoolName": "Hunts Cross Primary School",
"Postcode": "L250PJ"
},
{
"SchoolName": "Knotty Ash Primary School",
"Postcode": "L145NX"
},
{
"SchoolName": "Lister Junior School",
"Postcode": "L137DT"
},
{
"SchoolName": "Lister Infant and Nursery School",
"Postcode": "L137DT"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "L89UB"
},
{
"SchoolName": "Northcote Primary School",
"Postcode": "L91HW"
},
{
"SchoolName": "Northway Primary and Nursery School",
"Postcode": "L157JQ"
},
{
"SchoolName": "Pleasant Street Primary School",
"Postcode": "L35TS"
},
{
"SchoolName": "Whitefield Primary School",
"Postcode": "L62HZ"
},
{
"SchoolName": "Ranworth Square Primary School",
"Postcode": "L113DG"
},
{
"SchoolName": "Sudley Infant School",
"Postcode": "L170AE"
},
{
"SchoolName": "Windsor Community Primary School",
"Postcode": "L88JE"
},
{
"SchoolName": "Middlefield Community Primary School",
"Postcode": "L242UE"
},
{
"SchoolName": "Blackmoor Park Infants' School",
"Postcode": "L129EY"
},
{
"SchoolName": "Booker Avenue Infant School",
"Postcode": "L189SB"
},
{
"SchoolName": "Sudley Junior School",
"Postcode": "L176BH"
},
{
"SchoolName": "Norman Pannell School",
"Postcode": "L277AE"
},
{
"SchoolName": "Gwladys Street Primary and Nursery School",
"Postcode": "L45RW"
},
{
"SchoolName": "Broadgreen Primary School",
"Postcode": "L135UE"
},
{
"SchoolName": "Croxteth Community Primary School",
"Postcode": "L110BP"
},
{
"SchoolName": "St Cleopas' Church of England Junior Mixed and Infant School",
"Postcode": "L84RP"
},
{
"SchoolName": "Wavertree Church of England School",
"Postcode": "L158HJ"
},
{
"SchoolName": "Garston Church of England Primary School",
"Postcode": "L195NS"
},
{
"SchoolName": "Bishop Martin Church of England Primary School",
"Postcode": "L255JF"
},
{
"SchoolName": "St Anne's (Stanley) Junior Mixed and Infant School",
"Postcode": "L133BT"
},
{
"SchoolName": "St Mary's Church of England Primary School, West Derby",
"Postcode": "L125EA"
},
{
"SchoolName": "Childwall Church of England Primary School",
"Postcode": "L160JD"
},
{
"SchoolName": "Christ The King Catholic Primary School",
"Postcode": "L157LZ"
},
{
"SchoolName": "Our Lady and St Swithin's Catholic Primary School",
"Postcode": "L110BQ"
},
{
"SchoolName": "Holy Cross Catholic Primary School",
"Postcode": "L32DU"
},
{
"SchoolName": "Holy Name Catholic Primary School",
"Postcode": "L109LG"
},
{
"SchoolName": "Holy Trinity Catholic Primary School",
"Postcode": "L198JY"
},
{
"SchoolName": "Much Woolton Catholic Primary School",
"Postcode": "L258QH"
},
{
"SchoolName": "Our Lady Immaculate Catholic Primary School",
"Postcode": "L53QF"
},
{
"SchoolName": "St Finbar's Catholic Primary School",
"Postcode": "L89RY"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "L78TQ"
},
{
"SchoolName": "Our Lady's Bishop Eton Catholic Primary School",
"Postcode": "L182EP"
},
{
"SchoolName": "St Austin's Catholic Primary School",
"Postcode": "L199DH"
},
{
"SchoolName": "St Cecilia's Catholic Junior School",
"Postcode": "L137EA"
},
{
"SchoolName": "St Charles' Catholic Primary School",
"Postcode": "L177JA"
},
{
"SchoolName": "St Clare's Catholic Primary School",
"Postcode": "L150DW"
},
{
"SchoolName": "St Cuthbert's Catholic Primary and Nursery School",
"Postcode": "L133BB"
},
{
"SchoolName": "St Francis de Sales Catholic Junior School",
"Postcode": "L43RL"
},
{
"SchoolName": "St Francis de Sales Catholic Infant and Nursery School",
"Postcode": "L43RX"
},
{
"SchoolName": "St Hugh's Catholic Primary School",
"Postcode": "L76HE"
},
{
"SchoolName": "St Michael's Catholic Primary School",
"Postcode": "L69DU"
},
{
"SchoolName": "St Nicholas's Catholic Primary School",
"Postcode": "L35XF"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "L85UX"
},
{
"SchoolName": "St Paul's Catholic Junior School",
"Postcode": "L128SJ"
},
{
"SchoolName": "St Sebastian's Catholic Primary School and Nursery",
"Postcode": "L70LH"
},
{
"SchoolName": "St <NAME> Catholic Primary School",
"Postcode": "L15BY"
},
{
"SchoolName": "Our Lady of Good Help Catholic Primary School",
"Postcode": "L158JL"
},
{
"SchoolName": "St Ambrose Catholic Primary School",
"Postcode": "L247SF"
},
{
"SchoolName": "St Paul's and St Timothy's Catholic Infant School",
"Postcode": "L128RP"
},
{
"SchoolName": "St Anthony of Padua Catholic Primary School",
"Postcode": "L188BD"
},
{
"SchoolName": "St Cecilia's Catholic Infant School",
"Postcode": "L137HB"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "L277AG"
},
{
"SchoolName": "St Paschal Baylon Catholic Primary School",
"Postcode": "L162LN"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "L73HJ"
},
{
"SchoolName": "King David Primary School",
"Postcode": "L156WU"
},
{
"SchoolName": "Holly Lodge Girls' College",
"Postcode": "L127LE"
},
{
"SchoolName": "Fazakerley High School",
"Postcode": "L101LB"
},
{
"SchoolName": "Alsop High School Technology & Applied Learning Specialist College",
"Postcode": "L46SH"
},
{
"SchoolName": "Broadgreen International School, A Technology College",
"Postcode": "L135UQ"
},
{
"SchoolName": "Calderstones School",
"Postcode": "L183HS"
},
{
"SchoolName": "Gateacre School",
"Postcode": "L252RW"
},
{
"SchoolName": "King David High School",
"Postcode": "L156UZ"
},
{
"SchoolName": "Archbishop Blanch School",
"Postcode": "L76HQ"
},
{
"SchoolName": "Notre Dame Catholic College",
"Postcode": "L55AF"
},
{
"SchoolName": "St Julie's Catholic High School",
"Postcode": "L257TN"
},
{
"SchoolName": "Broughton Hall Catholic High School",
"Postcode": "L129HJ"
},
{
"SchoolName": "Cardinal Heenan Catholic High School",
"Postcode": "L129HZ"
},
{
"SchoolName": "St John Bosco Arts College",
"Postcode": "L119DQ"
},
{
"SchoolName": "Archbishop Beck Catholic Sports College",
"Postcode": "L97BF"
},
{
"SchoolName": "St Hilda's Church of England High School",
"Postcode": "L173AL"
},
{
"SchoolName": "Liverpool College International",
"Postcode": "L188DD"
},
{
"SchoolName": "Carleton House Preparatory School",
"Postcode": "L183EE"
},
{
"SchoolName": "Runnymede St Edward's School",
"Postcode": "L121LE"
},
{
"SchoolName": "Belvedere Preparatory School",
"Postcode": "L83TF"
},
{
"SchoolName": "Christian Fellowship School",
"Postcode": "L73HL"
},
{
"SchoolName": "St Vincent's School - A Specialist School for Sensory Impairment and Other Needs",
"Postcode": "L129HN"
},
{
"SchoolName": "Royal School for the Blind (Liverpool)",
"Postcode": "L156TQ"
},
{
"SchoolName": "Abbot's Lea School",
"Postcode": "L256EE"
},
{
"SchoolName": "Woolton High School",
"Postcode": "L256JA"
},
{
"SchoolName": "Clifford Holroyde Specialist Sen College",
"Postcode": "L147NX"
},
{
"SchoolName": "Ernest Cookson School",
"Postcode": "L130BQ"
},
{
"SchoolName": "Palmerston School",
"Postcode": "L256EE"
},
{
"SchoolName": "Redbridge High School",
"Postcode": "L96AD"
},
{
"SchoolName": "Princes School",
"Postcode": "L81YQ"
},
{
"SchoolName": "Millstead School",
"Postcode": "L53LU"
},
{
"SchoolName": "Pace",
"Postcode": "WA92LH"
},
{
"SchoolName": "Allanson Street Primary School",
"Postcode": "WA91PL"
},
{
"SchoolName": "Rivington Primary School",
"Postcode": "WA106LF"
},
{
"SchoolName": "Robins Lane Community Primary School",
"Postcode": "WA93NF"
},
{
"SchoolName": "Thatto Heath Community Primary School",
"Postcode": "WA95QX"
},
{
"SchoolName": "Sutton Manor Community Primary School",
"Postcode": "WA94AT"
},
{
"SchoolName": "Sherdley Primary School",
"Postcode": "WA94HA"
},
{
"SchoolName": "Eaves Primary School",
"Postcode": "WA93UB"
},
{
"SchoolName": "Ashurst Primary School",
"Postcode": "WA119QJ"
},
{
"SchoolName": "Willow Tree Primary School",
"Postcode": "WA94LZ"
},
{
"SchoolName": "Bleak Hill Primary School",
"Postcode": "WA106HG"
},
{
"SchoolName": "Grange Valley Primary School",
"Postcode": "WA110XQ"
},
{
"SchoolName": "Newton-le-Willows Primary School",
"Postcode": "WA129UF"
},
{
"SchoolName": "Lyme Community Primary School",
"Postcode": "WA129HD"
},
{
"SchoolName": "Longton Lane Community Primary School",
"Postcode": "L358PB"
},
{
"SchoolName": "Garswood Primary School",
"Postcode": "WN40SF"
},
{
"SchoolName": "Chapel End Primary School",
"Postcode": "WN57TX"
},
{
"SchoolName": "Rainford Brook Lodge Community Primary School",
"Postcode": "WA118JX"
},
{
"SchoolName": "Oakdene Primary School",
"Postcode": "L350QQ"
},
{
"SchoolName": "Legh Vale Primary School",
"Postcode": "WA110ER"
},
{
"SchoolName": "Eccleston Mere Primary School",
"Postcode": "WA105NX"
},
{
"SchoolName": "Merton Bank Primary School",
"Postcode": "WA91EJ"
},
{
"SchoolName": "Wargrave CofE Primary School",
"Postcode": "WA128QL"
},
{
"SchoolName": "Eccleston Lane Ends Primary School",
"Postcode": "L342QN"
},
{
"SchoolName": "Rainford CofE Primary School",
"Postcode": "WA118AJ"
},
{
"SchoolName": "Sutton Oak CofE Primary School",
"Postcode": "WA93QD"
},
{
"SchoolName": "The District CofE Primary School",
"Postcode": "WA129PZ"
},
{
"SchoolName": "Parish CofE Primary School",
"Postcode": "WA101LW"
},
{
"SchoolName": "Rectory CofE Primary School",
"Postcode": "WN40QF"
},
{
"SchoolName": "St Aidan's CofE Primary School Billinge",
"Postcode": "WN57LS"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "WA129UR"
},
{
"SchoolName": "St. Mary's Catholic Primary Blackbrook",
"Postcode": "WA119QY"
},
{
"SchoolName": "Holy Cross Catholic Primary School",
"Postcode": "WA101LN"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "WA93SP"
},
{
"SchoolName": "St Austin's Catholic Primary School",
"Postcode": "WA95NJ"
},
{
"SchoolName": "St Teresa's Catholic Primary School, Devon Street",
"Postcode": "WA104HX"
},
{
"SchoolName": "St Thomas of Canterbury Catholic Primary School",
"Postcode": "WA106BX"
},
{
"SchoolName": "St Peter and St Paul Catholic Primary School",
"Postcode": "WA119AT"
},
{
"SchoolName": "St John Vianney Catholic Primary School",
"Postcode": "WA95BT"
},
{
"SchoolName": "Birchley St Mary's Catholic Primary School",
"Postcode": "WN57QJ"
},
{
"SchoolName": "Corpus Christi Catholic Primary School",
"Postcode": "WA118JF"
},
{
"SchoolName": "St Bartholomew's Catholic Primary School",
"Postcode": "L356NN"
},
{
"SchoolName": "St Mary's Catholic Junior School",
"Postcode": "WA129QQ"
},
{
"SchoolName": "St Mary's Catholic Infant School",
"Postcode": "WA129RX"
},
{
"SchoolName": "Haydock English Martyrs' Catholic Primary School",
"Postcode": "WA110JY"
},
{
"SchoolName": "St Julie's Catholic Primary School",
"Postcode": "WA105HG"
},
{
"SchoolName": "St James' Church of England Primary School",
"Postcode": "WA110NL"
},
{
"SchoolName": "Nutgrove Methodist Aided Primary School",
"Postcode": "WA95NH"
},
{
"SchoolName": "St Theresa's Catholic Primary School",
"Postcode": "WA94XU"
},
{
"SchoolName": "Haydock High School",
"Postcode": "WA110JG"
},
{
"SchoolName": "Cowley International College",
"Postcode": "WA106PN"
},
{
"SchoolName": "St Augustine of Canterbury Catholic High School",
"Postcode": "WA119BB"
},
{
"SchoolName": "De La Salle School",
"Postcode": "WA104QH"
},
{
"SchoolName": "St Cuthbert's Catholic High School",
"Postcode": "WA93HE"
},
{
"SchoolName": "Tower College",
"Postcode": "L356NE"
},
{
"SchoolName": "Nugent House School",
"Postcode": "WN57TT"
},
{
"SchoolName": "Penkford School",
"Postcode": "WA129XZ"
},
{
"SchoolName": "Crossens Nursery School",
"Postcode": "PR98PA"
},
{
"SchoolName": "Sand Dunes Nursery School",
"Postcode": "L214NB"
},
{
"SchoolName": "Cambridge Nursery School",
"Postcode": "L209LQ"
},
{
"SchoolName": "Greenacre Community Nursery School",
"Postcode": "L206PJ"
},
{
"SchoolName": "IMPACT",
"Postcode": "L302QQ"
},
{
"SchoolName": "Jigsaw Primary Pupil Referral Unit",
"Postcode": "L231TY"
},
{
"SchoolName": "Linacre Primary School",
"Postcode": "L205ED"
},
{
"SchoolName": "Netherton Moss Primary School",
"Postcode": "L303RU"
},
{
"SchoolName": "The Grange Primary School",
"Postcode": "L300QS"
},
{
"SchoolName": "Birkdale Primary School",
"Postcode": "PR84EL"
},
{
"SchoolName": "Churchtown Primary School",
"Postcode": "PR97NN"
},
{
"SchoolName": "Farnborough Road Junior School",
"Postcode": "PR83DF"
},
{
"SchoolName": "Farnborough Road Infant School",
"Postcode": "PR83DF"
},
{
"SchoolName": "Linaker Primary School",
"Postcode": "PR85DB"
},
{
"SchoolName": "Norwood Primary School",
"Postcode": "PR97DU"
},
{
"SchoolName": "Marshside Primary School",
"Postcode": "PR99XA"
},
{
"SchoolName": "Kew Woods Primary School",
"Postcode": "PR86JW"
},
{
"SchoolName": "Aintree Davenhill Primary School",
"Postcode": "L108LE"
},
{
"SchoolName": "Hudson Primary School",
"Postcode": "L315LE"
},
{
"SchoolName": "Waterloo Primary School",
"Postcode": "L220LD"
},
{
"SchoolName": "Forefield Junior School",
"Postcode": "L239TJ"
},
{
"SchoolName": "Forefield Community Infant and Nursery School",
"Postcode": "L239SL"
},
{
"SchoolName": "Lander Road Primary School",
"Postcode": "L218HY"
},
{
"SchoolName": "Litherland Moss Primary School",
"Postcode": "L217NW"
},
{
"SchoolName": "Hatton Hill Primary School",
"Postcode": "L219NZ"
},
{
"SchoolName": "Northway Primary School",
"Postcode": "L319AA"
},
{
"SchoolName": "Woodlands Primary School",
"Postcode": "L372JN"
},
{
"SchoolName": "Summerhill Primary School",
"Postcode": "L313DT"
},
{
"SchoolName": "Freshfield Primary School",
"Postcode": "L373JT"
},
{
"SchoolName": "Green Park Primary School",
"Postcode": "L318BW"
},
{
"SchoolName": "Redgate Community Primary School",
"Postcode": "L374EW"
},
{
"SchoolName": "Kings Meadow Primary School and Early Years Education Centre",
"Postcode": "PR83RS"
},
{
"SchoolName": "Larkfield Primary School",
"Postcode": "PR98PA"
},
{
"SchoolName": "Shoreside Primary School",
"Postcode": "PR82QZ"
},
{
"SchoolName": "Melling Primary School",
"Postcode": "L311DA"
},
{
"SchoolName": "Valewood Primary School",
"Postcode": "L237YG"
},
{
"SchoolName": "Lydiate Primary School",
"Postcode": "L312JZ"
},
{
"SchoolName": "Bedford Primary School",
"Postcode": "L209LJ"
},
{
"SchoolName": "Christ Church Church of England Controlled Primary School",
"Postcode": "L203JL"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "PR98JH"
},
{
"SchoolName": "St Andrew's Maghull Church of England Primary School",
"Postcode": "L316DE"
},
{
"SchoolName": "St Luke's Church of England Primary School",
"Postcode": "L372HW"
},
{
"SchoolName": "St Philip's Church of England Controlled Primary School",
"Postcode": "L218NZ"
},
{
"SchoolName": "St Oswald's Church of England Primary School",
"Postcode": "L305RH"
},
{
"SchoolName": "Holy Trinity Church of England Primary School",
"Postcode": "PR99AZ"
},
{
"SchoolName": "St Philip's Church of England Primary School",
"Postcode": "PR86SS"
},
{
"SchoolName": "Ainsdale St John's Church of England Primary School",
"Postcode": "PR83JE"
},
{
"SchoolName": "St Monica's Catholic Primary School",
"Postcode": "L209EB"
},
{
"SchoolName": "St Robert Bellarmine Catholic Primary School",
"Postcode": "L206ED"
},
{
"SchoolName": "Holy Spirit Catholic Primary School",
"Postcode": "L302NR"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "PR97DU"
},
{
"SchoolName": "Our Lady of Lourdes Catholic Primary School",
"Postcode": "PR84LT"
},
{
"SchoolName": "St Teresa's Catholic Infant and Nursery School",
"Postcode": "PR84BT"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "PR99RR"
},
{
"SchoolName": "St Thomas Church of England Primary School",
"Postcode": "L310BP"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "L229RG"
},
{
"SchoolName": "St Luke's Halsall Church of England Primary School",
"Postcode": "L232TB"
},
{
"SchoolName": "St Nicholas Church of England Primary School",
"Postcode": "L236TS"
},
{
"SchoolName": "St George's Catholic Primary School",
"Postcode": "L315PD"
},
{
"SchoolName": "Great Crosby Catholic Primary School",
"Postcode": "L232RQ"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "L234UA"
},
{
"SchoolName": "St Edmund's and St Thomas' Catholic Primary School",
"Postcode": "L228QF"
},
{
"SchoolName": "Our Lady Star of the Sea Catholic Primary School",
"Postcode": "L213TE"
},
{
"SchoolName": "Our Lady of Compassion Catholic Primary School",
"Postcode": "L378BZ"
},
{
"SchoolName": "English Martyrs' Catholic Primary School",
"Postcode": "L217LX"
},
{
"SchoolName": "St Elizabeth's Catholic Primary School",
"Postcode": "L218JH"
},
{
"SchoolName": "St William of York Catholic Primary School",
"Postcode": "L239XH"
},
{
"SchoolName": "Our Lady Queen of Peace Catholic Primary School",
"Postcode": "L210EP"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "L312LB"
},
{
"SchoolName": "Ursuline Catholic Primary School",
"Postcode": "L236TT"
},
{
"SchoolName": "St Jerome's Catholic Primary School",
"Postcode": "L372LX"
},
{
"SchoolName": "Short Wood Primary School",
"Postcode": "TF12JA"
},
{
"SchoolName": "Holy Rosary Catholic Primary School",
"Postcode": "L106NJ"
},
{
"SchoolName": "St John Bosco Catholic Primary School",
"Postcode": "L318BW"
},
{
"SchoolName": "Bishop David Sheppard Church of England Primary School",
"Postcode": "PR97BZ"
},
{
"SchoolName": "Stanley High School",
"Postcode": "PR99TF"
},
{
"SchoolName": "Meols Cop High School",
"Postcode": "PR86JS"
},
{
"SchoolName": "Savio Salesian College",
"Postcode": "L302NA"
},
{
"SchoolName": "Maricourt Catholic High School",
"Postcode": "L313DZ"
},
{
"SchoolName": "Sacred Heart Catholic College",
"Postcode": "L235TF"
},
{
"SchoolName": "Holy Family Catholic High School",
"Postcode": "L234UL"
},
{
"SchoolName": "Christ The King Catholic High School and Sixth Form Centre",
"Postcode": "PR84EX"
},
{
"SchoolName": "Streatham Schools",
"Postcode": "L238UQ"
},
{
"SchoolName": "St Mary's College",
"Postcode": "L235TW"
},
{
"SchoolName": "Merchant Taylors' Boys' School",
"Postcode": "L230QP"
},
{
"SchoolName": "Merchant Taylors Girls School",
"Postcode": "L235SP"
},
{
"SchoolName": "Clarence High School",
"Postcode": "L377AZ"
},
{
"SchoolName": "Presfield High School and Specialist College",
"Postcode": "PR98PA"
},
{
"SchoolName": "Merefield School",
"Postcode": "PR82QZ"
},
{
"SchoolName": "Crosby High School",
"Postcode": "L232TH"
},
{
"SchoolName": "Newfield School",
"Postcode": "L234TG"
},
{
"SchoolName": "Rowan Park School",
"Postcode": "L210DB"
},
{
"SchoolName": "Somerville Nursery School",
"Postcode": "CH444BB"
},
{
"SchoolName": "Leasowe Nursery School and Family Centre",
"Postcode": "CH462QF"
},
{
"SchoolName": "Ganneys Meadow Nursery School and Family Centre",
"Postcode": "CH498HB"
},
{
"SchoolName": "Bedford Drive Primary School",
"Postcode": "CH426RT"
},
{
"SchoolName": "Woodlands Primary School",
"Postcode": "CH412SY"
},
{
"SchoolName": "Devonshire Park Primary School",
"Postcode": "CH429JX"
},
{
"SchoolName": "New Brighton Primary School",
"Postcode": "CH451LH"
},
{
"SchoolName": "Mount Primary School",
"Postcode": "CH455HU"
},
{
"SchoolName": "Liscard Primary School",
"Postcode": "CH457NQ"
},
{
"SchoolName": "St George's Primary School",
"Postcode": "CH453NF"
},
{
"SchoolName": "Riverside Primary School",
"Postcode": "CH446QW"
},
{
"SchoolName": "Kingsway Primary School",
"Postcode": "CH449EF"
},
{
"SchoolName": "Park Primary School",
"Postcode": "CH445RN"
},
{
"SchoolName": "Somerville Primary School",
"Postcode": "CH449AR"
},
{
"SchoolName": "Eastway Primary School",
"Postcode": "CH468TA"
},
{
"SchoolName": "Castleway Primary School",
"Postcode": "CH461RN"
},
{
"SchoolName": "Sandbrook Primary School",
"Postcode": "CH469PS"
},
{
"SchoolName": "Greenleas Primary School",
"Postcode": "CH458LZ"
},
{
"SchoolName": "Lingham Primary School",
"Postcode": "CH467UQ"
},
{
"SchoolName": "Woodslee Primary School",
"Postcode": "CH622BP"
},
{
"SchoolName": "Grove Street Primary School",
"Postcode": "CH625BA"
},
{
"SchoolName": "Brackenwood Junior School",
"Postcode": "CH632HH"
},
{
"SchoolName": "Thornton Hough Primary School",
"Postcode": "CH631JJ"
},
{
"SchoolName": "Mendell Primary School",
"Postcode": "CH627HN"
},
{
"SchoolName": "Brookhurst Primary School",
"Postcode": "CH630EH"
},
{
"SchoolName": "Raeburn Primary School",
"Postcode": "CH626BD"
},
{
"SchoolName": "Brackenwood Infant School",
"Postcode": "CH632HN"
},
{
"SchoolName": "Greasby Infant School",
"Postcode": "CH493NX"
},
{
"SchoolName": "West Kirby Primary School",
"Postcode": "CH485EQ"
},
{
"SchoolName": "Irby Primary School",
"Postcode": "CH614UR"
},
{
"SchoolName": "Greasby Junior School",
"Postcode": "CH493AR"
},
{
"SchoolName": "Black Horse Hill Infant School",
"Postcode": "CH486DR"
},
{
"SchoolName": "Brookdale Primary School",
"Postcode": "CH491SE"
},
{
"SchoolName": "Barnston Primary School",
"Postcode": "CH601XW"
},
{
"SchoolName": "Black Horse Hill Junior School",
"Postcode": "CH486DR"
},
{
"SchoolName": "Gayton Primary School",
"Postcode": "CH608PZ"
},
{
"SchoolName": "Portland Primary School",
"Postcode": "CH410AB"
},
{
"SchoolName": "Heswall Primary School",
"Postcode": "CH607SD"
},
{
"SchoolName": "Fender Primary School",
"Postcode": "CH498HB"
},
{
"SchoolName": "Manor Primary School",
"Postcode": "CH437ZU"
},
{
"SchoolName": "Mersey Park Primary School",
"Postcode": "CH420PH"
},
{
"SchoolName": "Overchurch Infant School",
"Postcode": "CH494NS"
},
{
"SchoolName": "Rock Ferry Primary School",
"Postcode": "CH422BL"
},
{
"SchoolName": "Woodchurch Road Primary School",
"Postcode": "CH429LJ"
},
{
"SchoolName": "Cathcart Street Primary School",
"Postcode": "CH413JY"
},
{
"SchoolName": "Well Lane Primary School",
"Postcode": "CH425PF"
},
{
"SchoolName": "Thingwall Primary School",
"Postcode": "CH617UG"
},
{
"SchoolName": "Leasowe Primary School",
"Postcode": "CH461RU"
},
{
"SchoolName": "Overchurch Junior School",
"Postcode": "CH494NS"
},
{
"SchoolName": "Bidston Avenue Primary School",
"Postcode": "CH410DQ"
},
{
"SchoolName": "West Kirby St Bridget's CofE Primary School",
"Postcode": "CH483JT"
},
{
"SchoolName": "Hoylake Holy Trinity CofE Primary School",
"Postcode": "CH473BH"
},
{
"SchoolName": "Birkenhead Christ Church CofE Primary School",
"Postcode": "CH412UJ"
},
{
"SchoolName": "Oxton St Saviour's CofE Aided Primary School",
"Postcode": "CH432HT"
},
{
"SchoolName": "Woodchurch CofE Primary School",
"Postcode": "CH497LS"
},
{
"SchoolName": "St Joseph's Catholic Primary School Upton",
"Postcode": "CH496LL"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "CH439QR"
},
{
"SchoolName": "St Paul's Catholic Primary School",
"Postcode": "CH437TE"
},
{
"SchoolName": "Saints Peter and Paul Catholic Primary School",
"Postcode": "CH459LT"
},
{
"SchoolName": "St Alban's Catholic Primary School",
"Postcode": "CH445XB"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Wallasey",
"Postcode": "CH447ED"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "CH468UG"
},
{
"SchoolName": "Moreton Christ Church CofE Primary School",
"Postcode": "CH460PB"
},
{
"SchoolName": "St Andrew's CofE Aided Primary School",
"Postcode": "CH637NL"
},
{
"SchoolName": "Thurstaston Dawpool CofE Primary School",
"Postcode": "CH610HH"
},
{
"SchoolName": "Heswall St Peter's CofE Primary School",
"Postcode": "CH604SA"
},
{
"SchoolName": "St John's Catholic Junior School",
"Postcode": "CH637LH"
},
{
"SchoolName": "Christ The King Catholic Primary School",
"Postcode": "CH626AE"
},
{
"SchoolName": "St John's Catholic Infant School",
"Postcode": "CH637LH"
},
{
"SchoolName": "Ladymount Catholic Primary School",
"Postcode": "CH615YD"
},
{
"SchoolName": "The Priory Parish CofE Primary School",
"Postcode": "CH414HS"
},
{
"SchoolName": "Our Lady and St Edward's Catholic Primary School",
"Postcode": "CH418DU"
},
{
"SchoolName": "Holy Cross Catholic Primary School",
"Postcode": "CH417DU"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "CH424NE"
},
{
"SchoolName": "St Michael and All Angels Catholic Primary School",
"Postcode": "CH495LE"
},
{
"SchoolName": "St Werburgh's Catholic Primary School",
"Postcode": "CH412TD"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Birkenhead",
"Postcode": "CH435UT"
},
{
"SchoolName": "Ridgeway High School",
"Postcode": "CH439EB"
},
{
"SchoolName": "Pensby High School",
"Postcode": "CH616XN"
},
{
"SchoolName": "The Mosslands School",
"Postcode": "CH458PJ"
},
{
"SchoolName": "Bebington High Sports College",
"Postcode": "CH632PS"
},
{
"SchoolName": "South Wirral High School",
"Postcode": "CH628EH"
},
{
"SchoolName": "Prenton Preparatory School",
"Postcode": "CH435SY"
},
{
"SchoolName": "Kingsmead School",
"Postcode": "CH470LL"
},
{
"SchoolName": "Avalon School",
"Postcode": "CH482HE"
},
{
"SchoolName": "Birkenhead School",
"Postcode": "CH432JD"
},
{
"SchoolName": "Redcourt - St Anselm's",
"Postcode": "CH431TX"
},
{
"SchoolName": "Hayfield School",
"Postcode": "CH494LN"
},
{
"SchoolName": "Clare Mount Specialist Sports College",
"Postcode": "CH469PA"
},
{
"SchoolName": "Kilgarth School",
"Postcode": "CH418BA"
},
{
"SchoolName": "Foxfield School",
"Postcode": "CH495LF"
},
{
"SchoolName": "Elleray Park School",
"Postcode": "CH450LH"
},
{
"SchoolName": "Meadowside School",
"Postcode": "CH495LA"
},
{
"SchoolName": "Gilbrook School",
"Postcode": "CH498HE"
},
{
"SchoolName": "St Paul's Academy",
"Postcode": "SE29PX"
},
{
"SchoolName": "West Kirby Residential School",
"Postcode": "CH485DH"
},
{
"SchoolName": "Stanley School",
"Postcode": "CH615UE"
},
{
"SchoolName": "Wirral Hospitals School and Home Education Service Community Base",
"Postcode": "CH410EZ"
},
{
"SchoolName": "Orrets Meadow School",
"Postcode": "CH469QQ"
},
{
"SchoolName": "Alexandra Nursery School",
"Postcode": "BL34AH"
},
{
"SchoolName": "Grosvenor Nursery School",
"Postcode": "BL48AR"
},
{
"SchoolName": "The Orchards Nursery School",
"Postcode": "BL40RA"
},
{
"SchoolName": "Brandwood Primary School",
"Postcode": "BL34BG"
},
{
"SchoolName": "Brownlow Fold Primary School",
"Postcode": "BL13DX"
},
{
"SchoolName": "Castle Hill Primary School",
"Postcode": "BL22JT"
},
{
"SchoolName": "Church Road Primary School",
"Postcode": "BL15RU"
},
{
"SchoolName": "Clarendon Primary School",
"Postcode": "BL36SN"
},
{
"SchoolName": "Devonshire Road Primary School",
"Postcode": "BL14ND"
},
{
"SchoolName": "Gaskell Community Primary School",
"Postcode": "BL12QG"
},
{
"SchoolName": "High Lawn Primary School",
"Postcode": "BL17EX"
},
{
"SchoolName": "Johnson Fold Community Primary School",
"Postcode": "BL15UG"
},
{
"SchoolName": "Markland Hill Primary School",
"Postcode": "BL15EJ"
},
{
"SchoolName": "Oxford Grove Primary School",
"Postcode": "BL13EJ"
},
{
"SchoolName": "Pikes Lane Primary School",
"Postcode": "BL35HU"
},
{
"SchoolName": "Sharples Primary School",
"Postcode": "BL18RX"
},
{
"SchoolName": "Sunning Hill Primary School",
"Postcode": "BL36TR"
},
{
"SchoolName": "Tonge Moor Primary School",
"Postcode": "BL22PF"
},
{
"SchoolName": "Haslam Park Primary School",
"Postcode": "BL35QL"
},
{
"SchoolName": "Ladybridge Community Primary School",
"Postcode": "BL34NB"
},
{
"SchoolName": "Moorgate Primary School",
"Postcode": "BL22RH"
},
{
"SchoolName": "Heathfield Primary School",
"Postcode": "BL33TP"
},
{
"SchoolName": "Beaumont Primary School",
"Postcode": "BL34RX"
},
{
"SchoolName": "Lostock Primary School",
"Postcode": "BL64PS"
},
{
"SchoolName": "Blackshaw Primary School",
"Postcode": "BL26TE"
},
{
"SchoolName": "The Oaks Primary School",
"Postcode": "BL17HS"
},
{
"SchoolName": "Chorley New Road Primary School",
"Postcode": "BL66EW"
},
{
"SchoolName": "Lord Street Primary School",
"Postcode": "BL67AL"
},
{
"SchoolName": "Highfield Primary School",
"Postcode": "BL40AP"
},
{
"SchoolName": "Kearsley West Primary School",
"Postcode": "BL49BZ"
},
{
"SchoolName": "Cherry Tree Primary School",
"Postcode": "BL40NS"
},
{
"SchoolName": "Hardy Mill Primary School",
"Postcode": "BL24EF"
},
{
"SchoolName": "Mytham Primary School",
"Postcode": "BL31JG"
},
{
"SchoolName": "Blackrod Primary School",
"Postcode": "BL65SY"
},
{
"SchoolName": "Egerton Primary School",
"Postcode": "BL79RE"
},
{
"SchoolName": "Claypool Primary School",
"Postcode": "BL66LN"
},
{
"SchoolName": "Spindle Point Primary School",
"Postcode": "BL48SE"
},
{
"SchoolName": "Gilnow Primary School",
"Postcode": "BL14LG"
},
{
"SchoolName": "Washacre Primary School",
"Postcode": "BL52NJ"
},
{
"SchoolName": "Eatock Primary School",
"Postcode": "BL52ER"
},
{
"SchoolName": "St Mary's CofE Primary School, Deane",
"Postcode": "BL34QP"
},
{
"SchoolName": "St Matthew's CofE Primary School, Bolton",
"Postcode": "BL12JL"
},
{
"SchoolName": "St James CofE Primary School, Daisy Hill",
"Postcode": "BL52JU"
},
{
"SchoolName": "Blackrod Anglican/Methodist Primary School",
"Postcode": "BL65DE"
},
{
"SchoolName": "St Michael's CofE Primary School, Great Lever",
"Postcode": "BL32PL"
},
{
"SchoolName": "St Stephen and All Martyrs' CofE School, Lever Bridge",
"Postcode": "BL21NZ"
},
{
"SchoolName": "St Thomas CofE Primary School, Halliwell",
"Postcode": "BL13JB"
},
{
"SchoolName": "Holy Infant and St Anthony RC Primary School",
"Postcode": "BL16QJ"
},
{
"SchoolName": "St Columba's RC Primary School",
"Postcode": "BL23AR"
},
{
"SchoolName": "St Thomas of Canterbury RC School",
"Postcode": "BL15LH"
},
{
"SchoolName": "St Ethelbert's RC Primary School",
"Postcode": "BL35RL"
},
{
"SchoolName": "St Joseph's RC Primary School, Halliwell, Bolton",
"Postcode": "BL13EJ"
},
{
"SchoolName": "St Peter and St Paul RC Primary School",
"Postcode": "BL36HP"
},
{
"SchoolName": "St William of York Catholic Primary School",
"Postcode": "BL33DE"
},
{
"SchoolName": "St Peter's Smithills Dean CofE Primary School",
"Postcode": "BL16LA"
},
{
"SchoolName": "Bolton Parish Church CofE Primary School",
"Postcode": "BL22AN"
},
{
"SchoolName": "St Bernard's RC Primary School, Bolton",
"Postcode": "BL34RX"
},
{
"SchoolName": "St Maxentius CofE Primary School",
"Postcode": "BL24AE"
},
{
"SchoolName": "Walmsley CofE Primary School",
"Postcode": "BL79SA"
},
{
"SchoolName": "Horwich Parish CofE Primary School",
"Postcode": "BL66AA"
},
{
"SchoolName": "St Thomas CofE Primary School",
"Postcode": "BL53HP"
},
{
"SchoolName": "St Andrew's CofE Primary School, Over Hulton",
"Postcode": "BL51EN"
},
{
"SchoolName": "St Bartholomew's CofE Primary School",
"Postcode": "BL53NZ"
},
{
"SchoolName": "All Saints CofE Primary School",
"Postcode": "BL47PY"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "BL49JT"
},
{
"SchoolName": "St Stephen's CofE Primary School",
"Postcode": "BL48PB"
},
{
"SchoolName": "St John CofE Primary School, Kearsley",
"Postcode": "BL48AP"
},
{
"SchoolName": "St Matthew's CofE Primary School, Little Lever",
"Postcode": "BL31BQ"
},
{
"SchoolName": "Sacred Heart R.C. Primary School",
"Postcode": "BL53DU"
},
{
"SchoolName": "St Gregory's RC Primary School, Farnworth, Bolton",
"Postcode": "BL48AJ"
},
{
"SchoolName": "Our Lady of Lourdes RC Primary School",
"Postcode": "BL40BP"
},
{
"SchoolName": "St Brendan's RC Primary School, Harwood, Bolton",
"Postcode": "BL24DZ"
},
{
"SchoolName": "St Teresa's RC Primary School",
"Postcode": "BL31EN"
},
{
"SchoolName": "St Saviour CofE Primary School, Ringley",
"Postcode": "M261EU"
},
{
"SchoolName": "St John the Evangelist RC Primary School, Bromley Cross, Bolton",
"Postcode": "BL79HT"
},
{
"SchoolName": "St Mary's RC Primary School",
"Postcode": "BL66EP"
},
{
"SchoolName": "Westhoughton High School",
"Postcode": "BL53BZ"
},
{
"SchoolName": "Turton School",
"Postcode": "BL79LT"
},
{
"SchoolName": "St Joseph's RC High School and Sports College",
"Postcode": "BL66HW"
},
{
"SchoolName": "Mount St Joseph",
"Postcode": "BL40HU"
},
{
"SchoolName": "Thornleigh Salesian College",
"Postcode": "BL16PQ"
},
{
"SchoolName": "Lord's Independent School",
"Postcode": "BL14JU"
},
{
"SchoolName": "Clevelands Preparatory School",
"Postcode": "BL15DH"
},
{
"SchoolName": "Bolton School Boys' Division",
"Postcode": "BL14PA"
},
{
"SchoolName": "Bolton School Girls' Division",
"Postcode": "BL14PB"
},
{
"SchoolName": "Ladywood School",
"Postcode": "BL31NG"
},
{
"SchoolName": "Thomasson Memorial School",
"Postcode": "BL14PJ"
},
{
"SchoolName": "Rumworth School",
"Postcode": "BL34TP"
},
{
"SchoolName": "Firwood High School",
"Postcode": "BL24HU"
},
{
"SchoolName": "Birtenshaw",
"Postcode": "BL79AB"
},
{
"SchoolName": "Green Fold School",
"Postcode": "BL40NS"
},
{
"SchoolName": "Hoyle Nursery School",
"Postcode": "BL96HR"
},
{
"SchoolName": "Fairfield Community Primary School",
"Postcode": "BL97SD"
},
{
"SchoolName": "Sunny Bank Primary School",
"Postcode": "BL98EQ"
},
{
"SchoolName": "Greenhill Primary School",
"Postcode": "BL82JH"
},
{
"SchoolName": "Chantlers Primary School",
"Postcode": "BL82SF"
},
{
"SchoolName": "Woodbank Primary School",
"Postcode": "BL81AX"
},
{
"SchoolName": "Chesham Primary School",
"Postcode": "BL96PH"
},
{
"SchoolName": "Old Hall Primary School",
"Postcode": "BL84LU"
},
{
"SchoolName": "Lowercroft Primary School",
"Postcode": "BL82TS"
},
{
"SchoolName": "Hazlehurst Community Primary School",
"Postcode": "BL09PQ"
},
{
"SchoolName": "Butterstile Primary School",
"Postcode": "M259RJ"
},
{
"SchoolName": "Mersey Drive Community Primary School",
"Postcode": "M458LN"
},
{
"SchoolName": "Ribble Drive Community Primary School",
"Postcode": "M458TD"
},
{
"SchoolName": "Greenmount Primary School",
"Postcode": "BL84HD"
},
{
"SchoolName": "Higher Lane Primary School",
"Postcode": "M457EX"
},
{
"SchoolName": "Tottington Primary School",
"Postcode": "BL83HR"
},
{
"SchoolName": "Cams Lane Primary School",
"Postcode": "M263SW"
},
{
"SchoolName": "Heaton Park Primary School",
"Postcode": "M456TE"
},
{
"SchoolName": "Park View Primary School",
"Postcode": "M251FA"
},
{
"SchoolName": "Sedgley Park Community Primary School",
"Postcode": "M250HT"
},
{
"SchoolName": "Whitefield Community Primary School",
"Postcode": "M456DP"
},
{
"SchoolName": "Holcombe Brook Primary School",
"Postcode": "BL09TA"
},
{
"SchoolName": "Chapelfield Primary School",
"Postcode": "M261LH"
},
{
"SchoolName": "Hollins Grundy Primary School",
"Postcode": "BL98AY"
},
{
"SchoolName": "East Ward Community Primary School",
"Postcode": "BL97QZ"
},
{
"SchoolName": "Springside Primary School",
"Postcode": "BL95JB"
},
{
"SchoolName": "Unsworth Primary School",
"Postcode": "BL98LY"
},
{
"SchoolName": "St Peter's Church of England Primary School",
"Postcode": "BL99PW"
},
{
"SchoolName": "St Thomas Church of England Primary School",
"Postcode": "BL97EY"
},
{
"SchoolName": "St Margaret's Church of England Primary School",
"Postcode": "M252BW"
},
{
"SchoolName": "Christ Church Ainsworth Church of England Primary School",
"Postcode": "BL25SQ"
},
{
"SchoolName": "All Saints Church of England Primary School, Stand",
"Postcode": "M458PL"
},
{
"SchoolName": "St Andrew's Church of England Primary School, Ramsbottom",
"Postcode": "BL09JD"
},
{
"SchoolName": "Summerseat Methodist Primary School",
"Postcode": "BL95NF"
},
{
"SchoolName": "Wesley Methodist Primary School",
"Postcode": "M264PX"
},
{
"SchoolName": "Radcliffe Hall Church of England/Methodist Controlled Primary School",
"Postcode": "M262GB"
},
{
"SchoolName": "Holy Trinity Primary School",
"Postcode": "BL90SB"
},
{
"SchoolName": "St Paul's Church of England Primary School, Bury",
"Postcode": "BL96LJ"
},
{
"SchoolName": "Guardian Angels Roman Catholic Primary School, Bury",
"Postcode": "BL82RH"
},
{
"SchoolName": "St Marie's Roman Catholic Primary School, Bury",
"Postcode": "BL90RZ"
},
{
"SchoolName": "St Joseph and St Bede RC Primary School",
"Postcode": "BL96ER"
},
{
"SchoolName": "Our Lady of Lourdes Roman Catholic Primary School, Bury",
"Postcode": "BL81YA"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "BL84PA"
},
{
"SchoolName": "St Mary's Church of England Primary School, Hawkshaw",
"Postcode": "BL84JL"
},
{
"SchoolName": "Christ Church CofE (Aided) Primary School",
"Postcode": "BL83AX"
},
{
"SchoolName": "St Mary's Church of England Aided Primary School, Prestwich",
"Postcode": "M251BP"
},
{
"SchoolName": "St Joseph's Roman Catholic Primary School, Ramsbottom",
"Postcode": "BL09JJ"
},
{
"SchoolName": "Holly Mount Roman Catholic Primary School, Bury",
"Postcode": "BL84HS"
},
{
"SchoolName": "Our Lady of Grace RC Primary School",
"Postcode": "M253AS"
},
{
"SchoolName": "St Bernadette's Roman Catholic Primary School, Whitefield",
"Postcode": "M458PT"
},
{
"SchoolName": "St Michael's Roman Catholic Primary School, Whitefield",
"Postcode": "M458NJ"
},
{
"SchoolName": "St John's Church of England Primary School, Radcliffe",
"Postcode": "M261AW"
},
{
"SchoolName": "St Andrew's Church of England Primary School, Radcliffe",
"Postcode": "M264GE"
},
{
"SchoolName": "St Hilda's Church of England Primary School",
"Postcode": "M251HA"
},
{
"SchoolName": "Bury and Whitefield Jewish Primary School",
"Postcode": "BL98JT"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Radcliffe",
"Postcode": "M264DG"
},
{
"SchoolName": "The Elton High School",
"Postcode": "BL81RN"
},
{
"SchoolName": "The Derby High School",
"Postcode": "BL99NH"
},
{
"SchoolName": "Tottington High School",
"Postcode": "BL83LY"
},
{
"SchoolName": "Parrenthorn High School",
"Postcode": "M252BW"
},
{
"SchoolName": "Philips High School",
"Postcode": "M457PH"
},
{
"SchoolName": "Woodhey High School",
"Postcode": "BL09QZ"
},
{
"SchoolName": "Prestwich Arts College",
"Postcode": "M251JZ"
},
{
"SchoolName": "Broad Oak Sports College",
"Postcode": "BL97QT"
},
{
"SchoolName": "Bury Church of England High School",
"Postcode": "BL90TS"
},
{
"SchoolName": "St Monica's RC High School and Sixth Form Centre",
"Postcode": "M251JH"
},
{
"SchoolName": "St Gabriel's RC High School",
"Postcode": "BL90TZ"
},
{
"SchoolName": "Peel Brow School",
"Postcode": "BL00BJ"
},
{
"SchoolName": "Bury Catholic Preparatory School",
"Postcode": "BL99BH"
},
{
"SchoolName": "<NAME>",
"Postcode": "BL84NG"
},
{
"SchoolName": "Bury Grammar School Boys",
"Postcode": "BL90HN"
},
{
"SchoolName": "Bury Grammar School Girls",
"Postcode": "BL90HH"
},
{
"SchoolName": "Cloughside College",
"Postcode": "M253BL"
},
{
"SchoolName": "Millwood Primary Special School",
"Postcode": "M263BW"
},
{
"SchoolName": "Elms Bank Specialist Arts College",
"Postcode": "M458PJ"
},
{
"SchoolName": "Martenscroft Nursery School & Children's Centre",
"Postcode": "M156PA"
},
{
"SchoolName": "Collyhurst Nursery School",
"Postcode": "M407QD"
},
{
"SchoolName": "Abbott Community Primary School",
"Postcode": "M407PR"
},
{
"SchoolName": "Alma Park Primary School",
"Postcode": "M192PF"
},
{
"SchoolName": "Bowker Vale Primary School",
"Postcode": "M84NB"
},
{
"SchoolName": "Acacias Community Primary School",
"Postcode": "M192WW"
},
{
"SchoolName": "Cavendish Primary School",
"Postcode": "M201JG"
},
{
"SchoolName": "Chapel Street Primary School",
"Postcode": "M193GH"
},
{
"SchoolName": "Charlestown Community Primary School",
"Postcode": "M97BX"
},
{
"SchoolName": "Claremont Primary School",
"Postcode": "M147NA"
},
{
"SchoolName": "Crosslee Community Primary School",
"Postcode": "M96TG"
},
{
"SchoolName": "Crowcroft Park Primary School",
"Postcode": "M125SY"
},
{
"SchoolName": "Heald Place Primary School",
"Postcode": "M147PN"
},
{
"SchoolName": "Lily Lane Primary School",
"Postcode": "M409JP"
},
{
"SchoolName": "Mauldeth Road Primary School",
"Postcode": "M146SG"
},
{
"SchoolName": "Moston Fields Primary School",
"Postcode": "M409GN"
},
{
"SchoolName": "Moston Lane Community Primary School",
"Postcode": "M94HH"
},
{
"SchoolName": "New Moston Primary School",
"Postcode": "M403QJ"
},
{
"SchoolName": "Northenden Community School",
"Postcode": "M224FL"
},
{
"SchoolName": "Plymouth Grove Primary School",
"Postcode": "M130AQ"
},
{
"SchoolName": "Rack House Primary School",
"Postcode": "M230BT"
},
{
"SchoolName": "Ravensbury Community School",
"Postcode": "M114EG"
},
{
"SchoolName": "Broadhurst Primary School",
"Postcode": "M400BX"
},
{
"SchoolName": "Irk Valley Community School",
"Postcode": "M85XH"
},
{
"SchoolName": "Varna Community Primary School",
"Postcode": "M112LE"
},
{
"SchoolName": "Cheetwood Primary School",
"Postcode": "M88EJ"
},
{
"SchoolName": "Crab Lane Primary School",
"Postcode": "M98NB"
},
{
"SchoolName": "Broad Oak Primary School",
"Postcode": "M205QB"
},
{
"SchoolName": "Peel Hall Primary School",
"Postcode": "M225AU"
},
{
"SchoolName": "Sandilands Primary School",
"Postcode": "M239JX"
},
{
"SchoolName": "Pike Fold Primary School",
"Postcode": "M98QP"
},
{
"SchoolName": "Higher Openshaw Community School",
"Postcode": "M111AJ"
},
{
"SchoolName": "Manley Park Primary School",
"Postcode": "M160AA"
},
{
"SchoolName": "All Saints Primary School",
"Postcode": "M125PW"
},
{
"SchoolName": "Medlock Primary School",
"Postcode": "M139UJ"
},
{
"SchoolName": "Crumpsall Lane Primary School",
"Postcode": "M85SR"
},
{
"SchoolName": "Chorlton CofE Primary School",
"Postcode": "M219JA"
},
{
"SchoolName": "Holy Trinity CofE Primary School",
"Postcode": "M94DU"
},
{
"SchoolName": "St Augustine's CofE Primary School",
"Postcode": "M408PL"
},
{
"SchoolName": "St Chrysostom's CofE Primary School",
"Postcode": "M130DX"
},
{
"SchoolName": "St Margaret's CofE Primary School",
"Postcode": "M168FQ"
},
{
"SchoolName": "St Mary's CofE Junior and Infant School",
"Postcode": "M167AQ"
},
{
"SchoolName": "St Wilfrid's CofE Junior and Infant School",
"Postcode": "M401GB"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "M204PG"
},
{
"SchoolName": "St Agnes Cof E Primary School",
"Postcode": "M130PE"
},
{
"SchoolName": "St Clement's CofE Primary School",
"Postcode": "M111LR"
},
{
"SchoolName": "Armitage CofE Primary School",
"Postcode": "M125NP"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "M124NG"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "M130YE"
},
{
"SchoolName": "All Saints CofE Primary School",
"Postcode": "M401LS"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "M192UH"
},
{
"SchoolName": "St James' CofE Primary School, Birch-in-Rusholme",
"Postcode": "M146HW"
},
{
"SchoolName": "St Philip's Church of England Primary School",
"Postcode": "M156BT"
},
{
"SchoolName": "Christ The King RC Primary School Manchester",
"Postcode": "M401LU"
},
{
"SchoolName": "Holy Name Roman Catholic Primary School Manchester",
"Postcode": "M156JS"
},
{
"SchoolName": "St Aidan's Catholic Primary School",
"Postcode": "M230BW"
},
{
"SchoolName": "St Ambrose RC Primary School",
"Postcode": "M217QA"
},
{
"SchoolName": "St Anne's RC Primary School Crumpsall Manchester",
"Postcode": "M85AB"
},
{
"SchoolName": "St Brigid's RC Primary School",
"Postcode": "M113DR"
},
{
"SchoolName": "St Catherine's RC Primary School",
"Postcode": "M206HS"
},
{
"SchoolName": "St Chad's RC Primary School",
"Postcode": "M80SP"
},
{
"SchoolName": "St Dunstan's RC Primary School",
"Postcode": "M409HF"
},
{
"SchoolName": "St Edmund's RC Primary School",
"Postcode": "M408NG"
},
{
"SchoolName": "St Francis RC Primary School",
"Postcode": "M125LZ"
},
{
"SchoolName": "St John Bosco RC Primary School",
"Postcode": "M97AT"
},
{
"SchoolName": "St Malachy's RC Primary School",
"Postcode": "M407RG"
},
{
"SchoolName": "St Margaret Mary's RC Primary School Manchester",
"Postcode": "M400JE"
},
{
"SchoolName": "St Mary's RC Primary School Manchester",
"Postcode": "M192QW"
},
{
"SchoolName": "St Patrick's RC Primary School",
"Postcode": "M45HF"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "M231HP"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "M232YS"
},
{
"SchoolName": "St Wilfrid's RC Primary School",
"Postcode": "M155BJ"
},
{
"SchoolName": "St Willibrord's RC Primary School",
"Postcode": "M114WR"
},
{
"SchoolName": "St Bernard's RC Primary School Manchester",
"Postcode": "M191DR"
},
{
"SchoolName": "Our Lady's RC Primary School Manchester",
"Postcode": "M168AW"
},
{
"SchoolName": "St Richard's RC Primary School",
"Postcode": "M125TL"
},
{
"SchoolName": "St Mary's CofE Primary School Moston",
"Postcode": "M400DF"
},
{
"SchoolName": "St John's RC Primary School",
"Postcode": "M219SN"
},
{
"SchoolName": "CofE School of the Resurrection",
"Postcode": "M113TJ"
},
{
"SchoolName": "Saviour CofE Primary School",
"Postcode": "M407RH"
},
{
"SchoolName": "St Joseph's RC Primary School Manchester",
"Postcode": "M130BT"
},
{
"SchoolName": "St Cuthbert's RC Primary School",
"Postcode": "M204UZ"
},
{
"SchoolName": "St Clare's RC Primary School",
"Postcode": "M90RR"
},
{
"SchoolName": "Mount Carmel RC Primary School",
"Postcode": "M98BG"
},
{
"SchoolName": "Abraham Moss Community School",
"Postcode": "M85UF"
},
{
"SchoolName": "Wright Robinson College",
"Postcode": "M188RL"
},
{
"SchoolName": "Loreto High School Chorlton",
"Postcode": "M217SW"
},
{
"SchoolName": "Our Lady's RC High School",
"Postcode": "M90RP"
},
{
"SchoolName": "St Matthew's RC High School",
"Postcode": "M400EW"
},
{
"SchoolName": "The Barlow RC High School and Specialist Science College",
"Postcode": "M206BX"
},
{
"SchoolName": "St Kentigern's RC Primary",
"Postcode": "M147ED"
},
{
"SchoolName": "Moor Allerton Preparatory School",
"Postcode": "M202PW"
},
{
"SchoolName": "Firwood Manor Preparatory School",
"Postcode": "OL90AD"
},
{
"SchoolName": "Chetham's School of Music",
"Postcode": "M31SB"
},
{
"SchoolName": "The Manchester Grammar School",
"Postcode": "M130XT"
},
{
"SchoolName": "Manchester High School for Girls",
"Postcode": "M146HS"
},
{
"SchoolName": "St Bede's College",
"Postcode": "M168HX"
},
{
"SchoolName": "Withington Girls' School",
"Postcode": "M146BL"
},
{
"SchoolName": "King of Kings School",
"Postcode": "M44DN"
},
{
"SchoolName": "Manchester Muslim Preparatory School",
"Postcode": "M204BA"
},
{
"SchoolName": "Abbey College Manchester",
"Postcode": "M24WG"
},
{
"SchoolName": "Manchester Hospital Schools and Home Teaching Service",
"Postcode": "M139WL"
},
{
"SchoolName": "Buglawton Hall School",
"Postcode": "CW123PQ"
},
{
"SchoolName": "Camberwell Park Specialist Support School",
"Postcode": "M98LT"
},
{
"SchoolName": "Lancasterian School",
"Postcode": "M202XA"
},
{
"SchoolName": "The Birches School",
"Postcode": "M202XZ"
},
{
"SchoolName": "Meade Hill School",
"Postcode": "M96GN"
},
{
"SchoolName": "Rodney House School",
"Postcode": "M124WF"
},
{
"SchoolName": "Grange School",
"Postcode": "M124GR"
},
{
"SchoolName": "Southern Cross School",
"Postcode": "M217JJ"
},
{
"SchoolName": "Alexandra Park Junior School",
"Postcode": "OL82BE"
},
{
"SchoolName": "Beever Primary School",
"Postcode": "OL13QU"
},
{
"SchoolName": "Greenacres Primary School",
"Postcode": "OL42AX"
},
{
"SchoolName": "Limehurst Community Primary School",
"Postcode": "OL83JQ"
},
{
"SchoolName": "Littlemoor Primary School",
"Postcode": "OL42RR"
},
{
"SchoolName": "Glodwick Infant and Nursery School",
"Postcode": "OL41AJ"
},
{
"SchoolName": "Mills Hill Primary School",
"Postcode": "OL90NH"
},
{
"SchoolName": "Mather Street Primary School",
"Postcode": "M350DT"
},
{
"SchoolName": "Blackshaw Lane Primary & Nursery School",
"Postcode": "OL26NT"
},
{
"SchoolName": "South Failsworth Community Primary School",
"Postcode": "M350NY"
},
{
"SchoolName": "Whitegate End Primary and Nursery School",
"Postcode": "OL98EB"
},
{
"SchoolName": "Rushcroft Primary School",
"Postcode": "OL27YL"
},
{
"SchoolName": "Fir Bank Primary School",
"Postcode": "OL26SJ"
},
{
"SchoolName": "Propps Hall Junior Infant and Nursery School",
"Postcode": "M350ND"
},
{
"SchoolName": "Diggle School",
"Postcode": "OL35PU"
},
{
"SchoolName": "Friezland Primary School",
"Postcode": "OL37LN"
},
{
"SchoolName": "Greenfield Primary School",
"Postcode": "OL37AA"
},
{
"SchoolName": "Springhead Infant and Nursery School",
"Postcode": "OL44QT"
},
{
"SchoolName": "Delph Primary School",
"Postcode": "OL35HN"
},
{
"SchoolName": "Knowsley Junior School",
"Postcode": "OL44BH"
},
{
"SchoolName": "Buckstones Primary School",
"Postcode": "OL28HN"
},
{
"SchoolName": "Beal Vale Primary School",
"Postcode": "OL27SY"
},
{
"SchoolName": "Thorp Primary School",
"Postcode": "OL25TY"
},
{
"SchoolName": "Broadfield Primary School",
"Postcode": "OL81LH"
},
{
"SchoolName": "Horton Mill Community Primary School",
"Postcode": "OL41GL"
},
{
"SchoolName": "Burnley Brow Community School",
"Postcode": "OL90BY"
},
{
"SchoolName": "Stanley Road Primary School",
"Postcode": "OL97HX"
},
{
"SchoolName": "Woodhouses Voluntary Primary School",
"Postcode": "M359WL"
},
{
"SchoolName": "Holy Trinity CofE Dobcross Primary School",
"Postcode": "OL35BP"
},
{
"SchoolName": "Thornham St James CofE Primary School",
"Postcode": "OL26XT"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "OL35RY"
},
{
"SchoolName": "Hey-with-Zion Primary School",
"Postcode": "OL43LQ"
},
{
"SchoolName": "St Thomas Moorside CofE (VA) Primary School",
"Postcode": "OL14RL"
},
{
"SchoolName": "St Thomas CofE Primary School",
"Postcode": "OL81SE"
},
{
"SchoolName": "St Hugh's CofE Primary School",
"Postcode": "OL45NZ"
},
{
"SchoolName": "St Agnes CofE Primary School",
"Postcode": "OL45RU"
},
{
"SchoolName": "Holy Rosary RC Junior Infant and Nursery School",
"Postcode": "OL82SR"
},
{
"SchoolName": "St Hilda's CofE Primary School",
"Postcode": "OL12HJ"
},
{
"SchoolName": "St Martin's CofE Junior Infant and Nursery School",
"Postcode": "OL82PY"
},
{
"SchoolName": "St Margaret's CofE Junior Infant and Nursery School",
"Postcode": "OL84QS"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "OL99ED"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "OL99HT"
},
{
"SchoolName": "East Crompton St James CofE Primary School",
"Postcode": "OL27TD"
},
{
"SchoolName": "St Mary's CofE Primary School High Crompton",
"Postcode": "OL27PP"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "M359PY"
},
{
"SchoolName": "St Thomas' Leesfield CofE Primary School",
"Postcode": "OL45AT"
},
{
"SchoolName": "St Anne's CofE (Aided) Primary School",
"Postcode": "OL25DH"
},
{
"SchoolName": "Corpus Christi RC Primary School",
"Postcode": "OL97HA"
},
{
"SchoolName": "St Joseph's RC Junior Infant and Nursery School",
"Postcode": "OL28SZ"
},
{
"SchoolName": "St Edward's RC School",
"Postcode": "OL43LQ"
},
{
"SchoolName": "Ss Aidan and Oswald's Roman Catholic Primary School",
"Postcode": "OL25PQ"
},
{
"SchoolName": "St Herbert's RC School",
"Postcode": "OL99SN"
},
{
"SchoolName": "Greenfield St Mary's CofE School",
"Postcode": "OL37DW"
},
{
"SchoolName": "Holy Family RC Primary School",
"Postcode": "OL83NG"
},
{
"SchoolName": "St Anne's RC Primary School",
"Postcode": "OL41HP"
},
{
"SchoolName": "St Patrick's RC Primary and Nursery School",
"Postcode": "OL81EF"
},
{
"SchoolName": "St Mary's RC Primary School",
"Postcode": "M350NW"
},
{
"SchoolName": "Royton and Crompton School",
"Postcode": "OL26NT"
},
{
"SchoolName": "Failsworth School",
"Postcode": "M359HA"
},
{
"SchoolName": "Saddleworth School",
"Postcode": "OL36BU"
},
{
"SchoolName": "The Radclyffe School",
"Postcode": "OL90LS"
},
{
"SchoolName": "Oldham Hulme Grammar School",
"Postcode": "OL84BX"
},
{
"SchoolName": "Farrowdale House School",
"Postcode": "OL27AD"
},
{
"SchoolName": "Bright Futures School",
"Postcode": "OL44DW"
},
{
"SchoolName": "Howard Street Nursery School",
"Postcode": "OL120PP"
},
{
"SchoolName": "Sunny Brow Nursery School",
"Postcode": "M244AD"
},
{
"SchoolName": "Brimrod Community Primary School",
"Postcode": "OL114NB"
},
{
"SchoolName": "Castleton Primary School",
"Postcode": "OL112QD"
},
{
"SchoolName": "Shawclough Community Primary School",
"Postcode": "OL126DE"
},
{
"SchoolName": "Greenbank Primary School",
"Postcode": "OL120HZ"
},
{
"SchoolName": "Heybrook Primary School",
"Postcode": "OL129BJ"
},
{
"SchoolName": "Meanwood Community Nursery and Primary School",
"Postcode": "OL127DJ"
},
{
"SchoolName": "Norden Community Primary School",
"Postcode": "OL127RQ"
},
{
"SchoolName": "Spotland Primary School",
"Postcode": "OL126QG"
},
{
"SchoolName": "Lowerplace Primary School",
"Postcode": "OL164UU"
},
{
"SchoolName": "Marland Hill Community Primary School",
"Postcode": "OL114QW"
},
{
"SchoolName": "Caldershaw Primary School",
"Postcode": "OL127QL"
},
{
"SchoolName": "Belfield Community School",
"Postcode": "OL162XW"
},
{
"SchoolName": "Whittaker Moss Primary School",
"Postcode": "OL115UY"
},
{
"SchoolName": "Ashfield Valley Primary School",
"Postcode": "OL111TA"
},
{
"SchoolName": "Littleborough Community Primary School",
"Postcode": "OL159HW"
},
{
"SchoolName": "Alkrington Primary School",
"Postcode": "M241JZ"
},
{
"SchoolName": "Boarshaw Community Primary School",
"Postcode": "M242PB"
},
{
"SchoolName": "Moorhouse Primary School",
"Postcode": "OL164DR"
},
{
"SchoolName": "Newhey Community Primary School",
"Postcode": "OL164JX"
},
{
"SchoolName": "Elm Wood Primary School",
"Postcode": "M242EG"
},
{
"SchoolName": "Hollin Primary School",
"Postcode": "M246JG"
},
{
"SchoolName": "Harwood Park Primary School",
"Postcode": "OL101DG"
},
{
"SchoolName": "Heap Bridge Village Primary School",
"Postcode": "BL97JP"
},
{
"SchoolName": "Hopwood Community Primary School",
"Postcode": "OL102HN"
},
{
"SchoolName": "Parkfield Primary School",
"Postcode": "M244AF"
},
{
"SchoolName": "Hamer Community Primary School",
"Postcode": "OL162SU"
},
{
"SchoolName": "St Edward's Church of England Primary School",
"Postcode": "OL113AR"
},
{
"SchoolName": "St Peter's Church of England Primary School",
"Postcode": "OL165JQ"
},
{
"SchoolName": "St Mary's Church of England Primary School, Balderstone",
"Postcode": "OL112HB"
},
{
"SchoolName": "St Luke's Church of England Primary School",
"Postcode": "OL104XB"
},
{
"SchoolName": "St John's VA Church of England Primary School, Thornham",
"Postcode": "M242SB"
},
{
"SchoolName": "St Andrew's Church of England Primary School, Dearnley",
"Postcode": "OL129QA"
},
{
"SchoolName": "St Gabriel's Church of England Primary School",
"Postcode": "M242BE"
},
{
"SchoolName": "Stansfield Hall Church of England/Free Church Primary School",
"Postcode": "OL159PR"
},
{
"SchoolName": "All Souls Church of England Primary School",
"Postcode": "OL104DF"
},
{
"SchoolName": "Little Heaton Church of England Primary School",
"Postcode": "M244PU"
},
{
"SchoolName": "St Michael's Church of England Primary School, Bamford",
"Postcode": "OL104BB"
},
{
"SchoolName": "Holy Trinity Church of England Primary School",
"Postcode": "OL159DB"
},
{
"SchoolName": "St Margaret's Church of England Primary School",
"Postcode": "OL103RD"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Littleborough",
"Postcode": "OL158DU"
},
{
"SchoolName": "St Peter's Roman Catholic Primary School, Rochdale",
"Postcode": "M241FL"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Middleton",
"Postcode": "M245GL"
},
{
"SchoolName": "Our Lady and St Paul's Roman Catholic Primary School, Heywood",
"Postcode": "OL103PD"
},
{
"SchoolName": "St Thomas More Roman Catholic Primary School, Middleton, Rochdale",
"Postcode": "M241PY"
},
{
"SchoolName": "Middleton Parish Church School",
"Postcode": "M245DL"
},
{
"SchoolName": "St Michael's Church of England Primary School, Alkrington",
"Postcode": "M241GD"
},
{
"SchoolName": "Milnrow Parish Church of England Primary School",
"Postcode": "OL163JT"
},
{
"SchoolName": "St Thomas' Church of England Primary School",
"Postcode": "OL163QZ"
},
{
"SchoolName": "St Gabriel's Roman Catholic Primary School, Rochdale",
"Postcode": "OL112TN"
},
{
"SchoolName": "St John's Roman Catholic Primary School, Rochdale",
"Postcode": "OL111EZ"
},
{
"SchoolName": "St Patrick's Roman Catholic Primary School, Rochdale",
"Postcode": "OL120ET"
},
{
"SchoolName": "Sacred Heart Roman Catholic Primary School, Rochdale",
"Postcode": "OL164AW"
},
{
"SchoolName": "All Saints Church of England Primary School",
"Postcode": "OL120EL"
},
{
"SchoolName": "Holy Family Roman Catholic Primary School, Rochdale",
"Postcode": "OL112DA"
},
{
"SchoolName": "St Vincent's Roman Catholic Primary School, Rochdale",
"Postcode": "OL127QL"
},
{
"SchoolName": "<NAME> Roman Catholic Primary School",
"Postcode": "OL162NU"
},
{
"SchoolName": "St Joseph's Roman Catholic Primary School, Rochdale",
"Postcode": "OL102AA"
},
{
"SchoolName": "Siddal Moor Sports College",
"Postcode": "OL102NT"
},
{
"SchoolName": "Falinge Park High School",
"Postcode": "OL126LD"
},
{
"SchoolName": "Matthew Moss High School",
"Postcode": "OL113LU"
},
{
"SchoolName": "Oulder Hill Community School and Language College",
"Postcode": "OL115EF"
},
{
"SchoolName": "Cardinal Langley Roman Catholic High School",
"Postcode": "M242GL"
},
{
"SchoolName": "St Cuthbert's RC High School",
"Postcode": "OL164RX"
},
{
"SchoolName": "Crossgates Primary School",
"Postcode": "OL163HB"
},
{
"SchoolName": "Smithy Bridge Foundation Primary School",
"Postcode": "OL150DY"
},
{
"SchoolName": "St James' Church of England Primary School",
"Postcode": "OL129JW"
},
{
"SchoolName": "St <NAME> Roman Catholic Primary School, Rochdale",
"Postcode": "M242PB"
},
{
"SchoolName": "Healey Foundation Primary School",
"Postcode": "OL120ST"
},
{
"SchoolName": "Beech House School",
"Postcode": "OL114JQ"
},
{
"SchoolName": "Brownhill School",
"Postcode": "OL120PZ"
},
{
"SchoolName": "Light Oaks Junior School",
"Postcode": "M68LU"
},
{
"SchoolName": "Lower Kersal Community Primary School",
"Postcode": "M73TN"
},
{
"SchoolName": "Summerville Primary School",
"Postcode": "M67HB"
},
{
"SchoolName": "Brentnall Primary School",
"Postcode": "M74RP"
},
{
"SchoolName": "Light Oaks Infant School",
"Postcode": "M68LU"
},
{
"SchoolName": "The Friars Primary School",
"Postcode": "M37EU"
},
{
"SchoolName": "Wharton Primary School",
"Postcode": "M389XA"
},
{
"SchoolName": "Irlam Primary School",
"Postcode": "M446NA"
},
{
"SchoolName": "Clarendon Road Community Primary School",
"Postcode": "M309BJ"
},
{
"SchoolName": "Lewis Street Primary School",
"Postcode": "M300PU"
},
{
"SchoolName": "Monton Green Primary School",
"Postcode": "M309JP"
},
{
"SchoolName": "Westwood Park Community Primary School",
"Postcode": "M308DH"
},
{
"SchoolName": "Beech Street Community Primary School",
"Postcode": "M308GB"
},
{
"SchoolName": "Clifton Primary School",
"Postcode": "M276PF"
},
{
"SchoolName": "Moorside Primary School",
"Postcode": "M270LN"
},
{
"SchoolName": "Mesne Lea Primary School",
"Postcode": "M287FG"
},
{
"SchoolName": "Bridgewater Primary School",
"Postcode": "M389WD"
},
{
"SchoolName": "Peel Hall Primary School",
"Postcode": "M380BZ"
},
{
"SchoolName": "Hilton Lane Primary School",
"Postcode": "M280JY"
},
{
"SchoolName": "Moorfield Community Primary School",
"Postcode": "M446GX"
},
{
"SchoolName": "Fiddlers Lane Community Primary School",
"Postcode": "M446QE"
},
{
"SchoolName": "James Brindley Community Primary School",
"Postcode": "M287HE"
},
{
"SchoolName": "Barton Moss Community Primary School",
"Postcode": "M307PT"
},
{
"SchoolName": "North Walkden Primary School",
"Postcode": "M283QD"
},
{
"SchoolName": "The Deans Primary School",
"Postcode": "M270WA"
},
{
"SchoolName": "Mossfield Primary School",
"Postcode": "M276EH"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "M73PT"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "M275FU"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "M55JH"
},
{
"SchoolName": "St George's CofE Primary School",
"Postcode": "M66SJ"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "M281HS"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "M300FL"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "M300GZ"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "M445HG"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "M283NZ"
},
{
"SchoolName": "St Andrew's Methodist Primary School",
"Postcode": "M280ZA"
},
{
"SchoolName": "Irlam Endowed Primary School",
"Postcode": "M446EE"
},
{
"SchoolName": "Wardley CofE Primary School",
"Postcode": "M279XB"
},
{
"SchoolName": "St Paul's Peel CofE Primary School",
"Postcode": "M389RB"
},
{
"SchoolName": "Boothstown Methodist Primary School",
"Postcode": "M281DG"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "M54AL"
},
{
"SchoolName": "St Philip's CofE Primary School",
"Postcode": "M35LF"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "M283HP"
},
{
"SchoolName": "Godfrey Ermen Memorial CofE Primary School",
"Postcode": "M307BJ"
},
{
"SchoolName": "St Augustine's CofE Primary School",
"Postcode": "M278UX"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "M270WA"
},
{
"SchoolName": "St Mark's CofE Primary School",
"Postcode": "M282WF"
},
{
"SchoolName": "Christ The King RC Primary School",
"Postcode": "M283DW"
},
{
"SchoolName": "St Teresa's RC Primary School",
"Postcode": "M445LH"
},
{
"SchoolName": "Holy Cross and All Saints RC Primary School",
"Postcode": "M300JA"
},
{
"SchoolName": "St Mary's RC Primary School",
"Postcode": "M300FJ"
},
{
"SchoolName": "St Gilbert's RC Primary School",
"Postcode": "M308LZ"
},
{
"SchoolName": "St Charles' RC Primary School",
"Postcode": "M279PD"
},
{
"SchoolName": "St Mark's RC Primary School",
"Postcode": "M278QE"
},
{
"SchoolName": "St Mary's RC Primary School",
"Postcode": "M274AS"
},
{
"SchoolName": "St Joseph the Worker RC Primary School",
"Postcode": "M446GX"
},
{
"SchoolName": "St Boniface RC Primary School",
"Postcode": "M72HL"
},
{
"SchoolName": "St Sebastian's RC Primary School",
"Postcode": "M66ET"
},
{
"SchoolName": "The Cathedral School of St Peter and St John RC Primary",
"Postcode": "M36LU"
},
{
"SchoolName": "St Joseph's RC Primary School",
"Postcode": "M53JP"
},
{
"SchoolName": "St Luke's RC Primary School",
"Postcode": "M67WR"
},
{
"SchoolName": "St Philip's RC Primary School",
"Postcode": "M74WP"
},
{
"SchoolName": "St Thomas of Canterbury Primary School",
"Postcode": "M74XG"
},
{
"SchoolName": "Walkden High School",
"Postcode": "M287JB"
},
{
"SchoolName": "St Patrick's RC High School and Arts College",
"Postcode": "M307JJ"
},
{
"SchoolName": "St Ambrose Barlow RC High School",
"Postcode": "M279QP"
},
{
"SchoolName": "Branwood Preparatory School",
"Postcode": "M309HN"
},
{
"SchoolName": "Bridgewater School",
"Postcode": "M282WQ"
},
{
"SchoolName": "T<NAME> Chinuch Norim School",
"Postcode": "M72AU"
},
{
"SchoolName": "Bnos Yisroel School Manchester",
"Postcode": "M74DA"
},
{
"SchoolName": "Prestwich Preparatory School",
"Postcode": "M251PZ"
},
{
"SchoolName": "Mechinoh School",
"Postcode": "M74HY"
},
{
"SchoolName": "Clarendon Cottage School",
"Postcode": "M309BJ"
},
{
"SchoolName": "Tashbar of Manchester",
"Postcode": "M74HL"
},
{
"SchoolName": "Manchester Junior Girls' School",
"Postcode": "M74JA"
},
{
"SchoolName": "O<NAME>chok Lubavitch Schools",
"Postcode": "M74LH"
},
{
"SchoolName": "New Park School",
"Postcode": "M300RW"
},
{
"SchoolName": "Hollywood Park Nursery School",
"Postcode": "SK30BJ"
},
{
"SchoolName": "Lark Hill Nursery School",
"Postcode": "SK39PH"
},
{
"SchoolName": "Reddish Vale Nursery School",
"Postcode": "SK57EU"
},
{
"SchoolName": "Offerton Hall Nursery School",
"Postcode": "SK25LB"
},
{
"SchoolName": "Freshfield Nursery School",
"Postcode": "SK43NB"
},
{
"SchoolName": "The Pendlebury Centre",
"Postcode": "SK30RJ"
},
{
"SchoolName": "Moat House",
"Postcode": "SK41SZ"
},
{
"SchoolName": "Adswood Primary School",
"Postcode": "SK38PQ"
},
{
"SchoolName": "Banks Lane Infant School",
"Postcode": "SK14PR"
},
{
"SchoolName": "Banks Lane Junior School",
"Postcode": "SK14PR"
},
{
"SchoolName": "Bolshaw Primary School",
"Postcode": "SK83LW"
},
{
"SchoolName": "Bridge Hall Primary School",
"Postcode": "SK38NR"
},
{
"SchoolName": "Broadstone Hall Primary School",
"Postcode": "SK45JD"
},
{
"SchoolName": "Brookside Primary School",
"Postcode": "SK68DB"
},
{
"SchoolName": "Cheadle Primary School",
"Postcode": "SK81BB"
},
{
"SchoolName": "Dial Park Primary School",
"Postcode": "SK25LB"
},
{
"SchoolName": "Etchells Primary School",
"Postcode": "SK83DL"
},
{
"SchoolName": "Fairway Primary School",
"Postcode": "SK25DR"
},
{
"SchoolName": "Great Moor Infant School",
"Postcode": "SK27DG"
},
{
"SchoolName": "Great Moor Junior School",
"Postcode": "SK27DG"
},
{
"SchoolName": "Greave Primary School",
"Postcode": "SK61HR"
},
{
"SchoolName": "High Lane Primary School",
"Postcode": "SK68JQ"
},
{
"SchoolName": "Hursthead Infant School",
"Postcode": "SK87PZ"
},
{
"SchoolName": "Ladybridge Primary School",
"Postcode": "SK82JF"
},
{
"SchoolName": "Ladybrook Primary School",
"Postcode": "SK72LT"
},
{
"SchoolName": "Lark Hill Primary School",
"Postcode": "SK39PH"
},
{
"SchoolName": "Ludworth Primary School",
"Postcode": "SK65DU"
},
{
"SchoolName": "Mersey Vale Primary School",
"Postcode": "SK42BZ"
},
{
"SchoolName": "Nevill Road Infant School",
"Postcode": "SK73ET"
},
{
"SchoolName": "Nevill Road Junior School",
"Postcode": "SK73ET"
},
{
"SchoolName": "Norbury Hall Primary School",
"Postcode": "SK76LE"
},
{
"SchoolName": "Norris Bank Primary School",
"Postcode": "SK42NF"
},
{
"SchoolName": "Prospect Vale Primary School",
"Postcode": "SK83RJ"
},
{
"SchoolName": "Queensgate Primary School",
"Postcode": "SK71NE"
},
{
"SchoolName": "Oak Tree Primary School",
"Postcode": "SK85HH"
},
{
"SchoolName": "Abingdon Primary School",
"Postcode": "SK57ET"
},
{
"SchoolName": "Romiley Primary School",
"Postcode": "SK64NE"
},
{
"SchoolName": "Rose Hill Primary School",
"Postcode": "SK66DW"
},
{
"SchoolName": "Thorn Grove Primary School",
"Postcode": "SK87LD"
},
{
"SchoolName": "Tithe Barn Primary School",
"Postcode": "SK43NG"
},
{
"SchoolName": "Torkington Primary School",
"Postcode": "SK76NR"
},
{
"SchoolName": "Vernon Park Primary School",
"Postcode": "SK12NF"
},
{
"SchoolName": "Warren Wood Primary School",
"Postcode": "SK25XU"
},
{
"SchoolName": "Whitehill Primary School",
"Postcode": "SK41PB"
},
{
"SchoolName": "Pownall Green Primary School",
"Postcode": "SK72EB"
},
{
"SchoolName": "Moss Hey Primary School",
"Postcode": "SK71DS"
},
{
"SchoolName": "Cale Green Primary School",
"Postcode": "SK38JG"
},
{
"SchoolName": "Lum Head Primary School",
"Postcode": "SK84RR"
},
{
"SchoolName": "Outwood Primary School",
"Postcode": "SK83ND"
},
{
"SchoolName": "Bredbury Green Primary School",
"Postcode": "SK63DG"
},
{
"SchoolName": "Lane End Primary School",
"Postcode": "SK87AL"
},
{
"SchoolName": "Didsbury Road Primary School",
"Postcode": "SK43HB"
},
{
"SchoolName": "Hazel Grove Primary School",
"Postcode": "SK74JH"
},
{
"SchoolName": "Arden Primary School",
"Postcode": "SK62EX"
},
{
"SchoolName": "All Saints Church of England Primary School Marple",
"Postcode": "SK67BQ"
},
{
"SchoolName": "All Saints Church of England Primary School Stockport",
"Postcode": "SK41ND"
},
{
"SchoolName": "St Mark's Church of England Primary School",
"Postcode": "SK61BX"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "SK43DG"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "SK57DR"
},
{
"SchoolName": "St Paul's Church of England Primary School Brinnington",
"Postcode": "SK58AA"
},
{
"SchoolName": "St Thomas' Church of England Primary School Stockport",
"Postcode": "SK13PJ"
},
{
"SchoolName": "St Elisabeth's Church of England Primary School",
"Postcode": "SK56BL"
},
{
"SchoolName": "Cheadle Catholic Infant School",
"Postcode": "SK86DB"
},
{
"SchoolName": "Cheadle Catholic Junior School",
"Postcode": "SK86DB"
},
{
"SchoolName": "North Cheshire Jewish Primary School",
"Postcode": "SK84RZ"
},
{
"SchoolName": "Our Lady's Catholic Primary School",
"Postcode": "SK39HX"
},
{
"SchoolName": "St Ambrose Catholic Primary School",
"Postcode": "SK38LQ"
},
{
"SchoolName": "St Bernadette's Catholic Primary School",
"Postcode": "SK58AR"
},
{
"SchoolName": "St Christopher's Catholic Primary School",
"Postcode": "SK63AX"
},
{
"SchoolName": "St Joseph's Stockport Catholic Primary School",
"Postcode": "SK11EF"
},
{
"SchoolName": "St Mary's Catholic Primary School Marple Bridge",
"Postcode": "SK65BR"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School Stockport",
"Postcode": "SK41RF"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "SK75PL"
},
{
"SchoolName": "St Philip's Catholic Primary School",
"Postcode": "SK25LB"
},
{
"SchoolName": "St Simon's Catholic Primary School",
"Postcode": "SK74LH"
},
{
"SchoolName": "St Thomas' Church of England Primary School Heaton Chapel",
"Postcode": "SK44QG"
},
{
"SchoolName": "St Winifred's Roman Catholic Primary School, Stockport",
"Postcode": "SK43JH"
},
{
"SchoolName": "Priestnall School",
"Postcode": "SK43HP"
},
{
"SchoolName": "Stockport School",
"Postcode": "SK26BW"
},
{
"SchoolName": "Werneth School",
"Postcode": "SK63BX"
},
{
"SchoolName": "Marple Hall School - A Specialist Language College",
"Postcode": "SK66LB"
},
{
"SchoolName": "Bramhall High School",
"Postcode": "SK72JT"
},
{
"SchoolName": "St James' Catholic High School",
"Postcode": "SK86PZ"
},
{
"SchoolName": "Harrytown Catholic High School",
"Postcode": "SK63BU"
},
{
"SchoolName": "St Anne's Roman Catholic High School, Stockport",
"Postcode": "SK42QP"
},
{
"SchoolName": "Brabyns Preparatory School",
"Postcode": "SK67DB"
},
{
"SchoolName": "Greenbank Preparatory School",
"Postcode": "SK86HU"
},
{
"SchoolName": "Lady Barn House School",
"Postcode": "SK81JE"
},
{
"SchoolName": "Ramillies Hall School",
"Postcode": "SK87AJ"
},
{
"SchoolName": "Hulme Hall Grammar School",
"Postcode": "SK86LA"
},
{
"SchoolName": "Stella Maris School",
"Postcode": "SK43BR"
},
{
"SchoolName": "Stockport Grammar School",
"Postcode": "SK27AF"
},
{
"SchoolName": "Cheadle Hulme School",
"Postcode": "SK86EF"
},
{
"SchoolName": "Covenant Christian School",
"Postcode": "SK44NX"
},
{
"SchoolName": "Ashcroft School",
"Postcode": "SK81JE"
},
{
"SchoolName": "Royal School, Manchester",
"Postcode": "SK86RQ"
},
{
"SchoolName": "St John Vianney School",
"Postcode": "M160EX"
},
{
"SchoolName": "Valley School",
"Postcode": "SK71EN"
},
{
"SchoolName": "Lisburne School",
"Postcode": "SK25LB"
},
{
"SchoolName": "Castle Hill High School",
"Postcode": "SK25DS"
},
{
"SchoolName": "Heaton School",
"Postcode": "SK44RE"
},
{
"SchoolName": "Greenfield Primary School and Early Years Centre",
"Postcode": "SK141QD"
},
{
"SchoolName": "Hollingworth Primary School",
"Postcode": "SK148LP"
},
{
"SchoolName": "Pinfold Primary School",
"Postcode": "SK143NL"
},
{
"SchoolName": "Arundale Primary School",
"Postcode": "SK146PW"
},
{
"SchoolName": "Gorse Hall Primary and Nursery School",
"Postcode": "SK152DP"
},
{
"SchoolName": "Stalyhill Junior School",
"Postcode": "SK152TD"
},
{
"SchoolName": "Arlies Primary School",
"Postcode": "SK151HQ"
},
{
"SchoolName": "Buckton Vale Primary School",
"Postcode": "SK153NU"
},
{
"SchoolName": "Lyndhurst Community Primary School",
"Postcode": "SK164JS"
},
{
"SchoolName": "Broadbent Fold Primary School and Nursery",
"Postcode": "SK165DP"
},
{
"SchoolName": "Wild Bank Community School",
"Postcode": "SK152PG"
},
{
"SchoolName": "Millbrook Primary School",
"Postcode": "SK153JX"
},
{
"SchoolName": "The Heys Primary School",
"Postcode": "OL69NS"
},
{
"SchoolName": "Audenshaw Primary School",
"Postcode": "M345NG"
},
{
"SchoolName": "Poplar Street Primary School",
"Postcode": "M345EF"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "M343LQ"
},
{
"SchoolName": "Fairfield Road Primary School",
"Postcode": "M436AF"
},
{
"SchoolName": "Livingstone Primary School",
"Postcode": "OL50AP"
},
{
"SchoolName": "Waterloo Primary School",
"Postcode": "OL79NA"
},
{
"SchoolName": "Aldwyn Primary School",
"Postcode": "M345SF"
},
{
"SchoolName": "St Anne's Primary School",
"Postcode": "M343DY"
},
{
"SchoolName": "Corrie Primary School",
"Postcode": "M346FG"
},
{
"SchoolName": "Holden Clough Community Primary School",
"Postcode": "OL68XN"
},
{
"SchoolName": "Dane Bank Primary School",
"Postcode": "SK56QG"
},
{
"SchoolName": "Greenside Primary School",
"Postcode": "M437RA"
},
{
"SchoolName": "Greswell Primary School and Nursery",
"Postcode": "M342DH"
},
{
"SchoolName": "Stalyhill Infant School",
"Postcode": "SK152TR"
},
{
"SchoolName": "Yew Tree Primary School",
"Postcode": "SK165BJ"
},
{
"SchoolName": "Broadoak Primary School",
"Postcode": "OL68QG"
},
{
"SchoolName": "Gee Cross Holy Trinity CofE (VC) Primary School",
"Postcode": "SK145LX"
},
{
"SchoolName": "Broadbottom Church of England Primary School",
"Postcode": "SK146BB"
},
{
"SchoolName": "St John's CofE Primary School, Dukinfield",
"Postcode": "SK165JA"
},
{
"SchoolName": "Hurst Knoll St James' Church of England Primary School",
"Postcode": "OL68JS"
},
{
"SchoolName": "Parochial CofE Primary and Nursery School, Ashton-under-Lyne",
"Postcode": "OL66NN"
},
{
"SchoolName": "St James CofE Primary School, Ashton-under-Lyne",
"Postcode": "OL69HU"
},
{
"SchoolName": "Milton St John's CofE Primary School",
"Postcode": "OL50BN"
},
{
"SchoolName": "Micklehurst All Saints CofE Primary School",
"Postcode": "OL59DR"
},
{
"SchoolName": "St George's CofE Primary School",
"Postcode": "SK141JL"
},
{
"SchoolName": "Mottram CofE Primary School",
"Postcode": "SK146JL"
},
{
"SchoolName": "St Paul's Catholic Primary School",
"Postcode": "SK144AG"
},
{
"SchoolName": "St James Catholic Primary School",
"Postcode": "SK143DQ"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "SK165LB"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "SK152HB"
},
{
"SchoolName": "St Raphael's Catholic Primary School",
"Postcode": "SK153JL"
},
{
"SchoolName": "Canon Johnson CofE Primary School",
"Postcode": "OL79DD"
},
{
"SchoolName": "Holy Trinity CofE Primary School",
"Postcode": "OL67DU"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "OL70NB"
},
{
"SchoolName": "St Stephen's CofE Primary School",
"Postcode": "M345HD"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "M437BR"
},
{
"SchoolName": "St George's CofE Primary School",
"Postcode": "OL50HT"
},
{
"SchoolName": "Canon Burrows CofE Primary School",
"Postcode": "OL79ND"
},
{
"SchoolName": "St Mary's RC Primary School",
"Postcode": "M342AR"
},
{
"SchoolName": "St Stephen's RC Primary School",
"Postcode": "M437NA"
},
{
"SchoolName": "St Joseph's RC Primary School",
"Postcode": "OL50ES"
},
{
"SchoolName": "St John Fisher RC Primary School, Denton",
"Postcode": "M347SW"
},
{
"SchoolName": "St Christopher's RC Primary School",
"Postcode": "OL69DP"
},
{
"SchoolName": "St Anne's RC Primary School",
"Postcode": "M345QA"
},
{
"SchoolName": "Mossley Hollins High School",
"Postcode": "OL59DP"
},
{
"SchoolName": "Longdendale High School",
"Postcode": "SK148LW"
},
{
"SchoolName": "Hyde Community College",
"Postcode": "SK144SP"
},
{
"SchoolName": "Astley Sports College and Community High School",
"Postcode": "SK165BL"
},
{
"SchoolName": "St Damian's RC Science College",
"Postcode": "OL68BH"
},
{
"SchoolName": "St Thomas More RC College Specialising in Mathematics and Computing",
"Postcode": "M346AF"
},
{
"SchoolName": "Trinity School",
"Postcode": "SK151SH"
},
{
"SchoolName": "Thomas Ashton School",
"Postcode": "SK144SS"
},
{
"SchoolName": "Cromwell High School",
"Postcode": "SK165BJ"
},
{
"SchoolName": "<NAME>cock School",
"Postcode": "OL68RF"
},
{
"SchoolName": "Oakdale School",
"Postcode": "SK165LD"
},
{
"SchoolName": "Navigation Primary School",
"Postcode": "WA141NG"
},
{
"SchoolName": "Oldfield Brow Primary School",
"Postcode": "WA144LE"
},
{
"SchoolName": "Stamford Park Junior School",
"Postcode": "WA159JB"
},
{
"SchoolName": "Stamford Park Infant School",
"Postcode": "WA159JB"
},
{
"SchoolName": "Heyes Lane Primary School",
"Postcode": "WA156BZ"
},
{
"SchoolName": "Broadheath Primary School",
"Postcode": "WA145JQ"
},
{
"SchoolName": "Broomwood Primary School",
"Postcode": "WA157JU"
},
{
"SchoolName": "Well Green Primary School",
"Postcode": "WA158QA"
},
{
"SchoolName": "Willows Primary School",
"Postcode": "WA156PP"
},
{
"SchoolName": "Cloverlea Primary School",
"Postcode": "WA157NQ"
},
{
"SchoolName": "Bollin Primary School",
"Postcode": "WA143AH"
},
{
"SchoolName": "Springfield Primary School",
"Postcode": "M337XS"
},
{
"SchoolName": "Woodheys Primary School",
"Postcode": "M334PG"
},
{
"SchoolName": "Worthington Primary School",
"Postcode": "M332JJ"
},
{
"SchoolName": "Brooklands Primary School",
"Postcode": "M333SY"
},
{
"SchoolName": "Firs Primary School",
"Postcode": "M335EL"
},
{
"SchoolName": "Wellfield Junior School",
"Postcode": "M335QX"
},
{
"SchoolName": "Moorlands Junior School",
"Postcode": "M332LP"
},
{
"SchoolName": "Templemoor Infant and Nursery School",
"Postcode": "M332EG"
},
{
"SchoolName": "Wellfield Infant and Nursery School",
"Postcode": "M335QG"
},
{
"SchoolName": "Urmston Junior School",
"Postcode": "M415AJ"
},
{
"SchoolName": "Urmston Infant School",
"Postcode": "M415AH"
},
{
"SchoolName": "Davyhulme Primary School",
"Postcode": "M410RX"
},
{
"SchoolName": "Flixton Junior School",
"Postcode": "M415QL"
},
{
"SchoolName": "Flixton Infant School",
"Postcode": "M415SA"
},
{
"SchoolName": "Barton Clough Primary School",
"Postcode": "M329TG"
},
{
"SchoolName": "Gorse Hill Primary School",
"Postcode": "M320PF"
},
{
"SchoolName": "Kings Road Primary School",
"Postcode": "M160GR"
},
{
"SchoolName": "Moss Park Junior School",
"Postcode": "M329HR"
},
{
"SchoolName": "Moss Park Infant School",
"Postcode": "M329HR"
},
{
"SchoolName": "Seymour Park Community Primary School",
"Postcode": "M169QE"
},
{
"SchoolName": "Victoria Park Junior School",
"Postcode": "M320XZ"
},
{
"SchoolName": "Victoria Park Infant School",
"Postcode": "M328BU"
},
{
"SchoolName": "Highfield Primary School",
"Postcode": "M419PA"
},
{
"SchoolName": "Woodhouse Primary School",
"Postcode": "M417WW"
},
{
"SchoolName": "Kingsway Primary School",
"Postcode": "M410SP"
},
{
"SchoolName": "Tyntesfield Primary School",
"Postcode": "M334HE"
},
{
"SchoolName": "St Matthew's CofE Primary School",
"Postcode": "M329AN"
},
{
"SchoolName": "Bowdon CofE Primary School",
"Postcode": "WA143EX"
},
{
"SchoolName": "St Hugh's Catholic Primary School",
"Postcode": "WA156TQ"
},
{
"SchoolName": "Altrincham CofE (Aided) Primary School",
"Postcode": "WA144DS"
},
{
"SchoolName": "St Anne's CofE Primary School",
"Postcode": "M333ES"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "M336SA"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "M332JA"
},
{
"SchoolName": "Our Lady of Lourdes Catholic Primary School",
"Postcode": "M314PJ"
},
{
"SchoolName": "All Saints' Catholic Primary School",
"Postcode": "M335NW"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "M333AF"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "M415TJ"
},
{
"SchoolName": "St Michael's CofE (Aided) Primary School",
"Postcode": "M416JB"
},
{
"SchoolName": "St Hilda's CofE Primary School",
"Postcode": "M160SH"
},
{
"SchoolName": "English Martyrs' RC Primary School",
"Postcode": "M415AH"
},
{
"SchoolName": "St Hugh of Lincoln RC Primary School",
"Postcode": "M329PD"
},
{
"SchoolName": "St Teresa's RC Primary School",
"Postcode": "M160GQ"
},
{
"SchoolName": "St Monica's RC Primary School",
"Postcode": "M416QB"
},
{
"SchoolName": "Our Lady of the Rosary RC Primary School",
"Postcode": "M417DS"
},
{
"SchoolName": "St Margaret Ward Catholic Primary School",
"Postcode": "M334GY"
},
{
"SchoolName": "St Alphonsus RC Primary School",
"Postcode": "M167PT"
},
{
"SchoolName": "Lostock College",
"Postcode": "M329PL"
},
{
"SchoolName": "Stretford Grammar School",
"Postcode": "M328JB"
},
{
"SchoolName": "Stretford High School",
"Postcode": "M320XA"
},
{
"SchoolName": "St Antony's Catholic College",
"Postcode": "M419PD"
},
{
"SchoolName": "Sale High School",
"Postcode": "M333JR"
},
{
"SchoolName": "B<NAME>ford Catholic College",
"Postcode": "WA158HT"
},
{
"SchoolName": "Bowdon Preparatory School for Girls",
"Postcode": "WA142LT"
},
{
"SchoolName": "Altrincham Preparatory School",
"Postcode": "WA142RR"
},
{
"SchoolName": "St Ambrose Preparatory School",
"Postcode": "WA150HF"
},
{
"SchoolName": "Forest Park Preparatory School",
"Postcode": "M336NB"
},
{
"SchoolName": "Hale Preparatory School",
"Postcode": "WA159AS"
},
{
"SchoolName": "Forest School",
"Postcode": "WA156LJ"
},
{
"SchoolName": "Abbotsford Preparatory School",
"Postcode": "M415PR"
},
{
"SchoolName": "Loreto Preparatory School",
"Postcode": "WA144GZ"
},
{
"SchoolName": "Brentwood School",
"Postcode": "M334GY"
},
{
"SchoolName": "Longford Park School",
"Postcode": "M328QJ"
},
{
"SchoolName": "Delamere School",
"Postcode": "M416AP"
},
{
"SchoolName": "Hindley Nursery School",
"Postcode": "WN24LG"
},
{
"SchoolName": "Douglas Valley Nursery School",
"Postcode": "WN13SU"
},
{
"SchoolName": "Beech Hill Community Primary School",
"Postcode": "WN67PT"
},
{
"SchoolName": "Woodfield Primary School",
"Postcode": "WN12NT"
},
{
"SchoolName": "Marsh Green Primary School",
"Postcode": "WN50EF"
},
{
"SchoolName": "<NAME> Community Primary School",
"Postcode": "WN35HN"
},
{
"SchoolName": "Mab's Cross Primary School",
"Postcode": "WN11XL"
},
{
"SchoolName": "Winstanley Community Primary School",
"Postcode": "WN36JP"
},
{
"SchoolName": "Orrell Newfold Community Primary School",
"Postcode": "WN57BD"
},
{
"SchoolName": "Shevington Community Primary School",
"Postcode": "WN68EW"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "WN25JT"
},
{
"SchoolName": "Hindley Junior and Infant School",
"Postcode": "WN23PN"
},
{
"SchoolName": "Britannia Bridge Primary School",
"Postcode": "WN34SD"
},
{
"SchoolName": "Leigh Central Primary School",
"Postcode": "WN71UY"
},
{
"SchoolName": "Golborne Community Primary School",
"Postcode": "WA33NN"
},
{
"SchoolName": "Lowton Junior and Infant School",
"Postcode": "WA32AW"
},
{
"SchoolName": "Newton Westpark Primary School",
"Postcode": "WN75JY"
},
{
"SchoolName": "R L Hughes Primary School",
"Postcode": "WN49QL"
},
{
"SchoolName": "Meadowbank Primary School & Children's Centre",
"Postcode": "M460HX"
},
{
"SchoolName": "Parklee Community School",
"Postcode": "M460AR"
},
{
"SchoolName": "Wood Fold Primary School",
"Postcode": "WN60TS"
},
{
"SchoolName": "Lowton West Primary School",
"Postcode": "WA32ED"
},
{
"SchoolName": "Shevington Vale Primary School",
"Postcode": "WN69JP"
},
{
"SchoolName": "<NAME>ere School",
"Postcode": "WN48DF"
},
{
"SchoolName": "Gilded Hollins Community School",
"Postcode": "WN73PQ"
},
{
"SchoolName": "Garrett Hall Primary School",
"Postcode": "M297EY"
},
{
"SchoolName": "Millbrook Primary School",
"Postcode": "WN68DL"
},
{
"SchoolName": "St James' CofE Primary School",
"Postcode": "WN35XE"
},
{
"SchoolName": "Bryn St Peter's CofE Primary School",
"Postcode": "WN40DL"
},
{
"SchoolName": "Hindsford CofE Primary School",
"Postcode": "M469BL"
},
{
"SchoolName": "Chowbent Primary School",
"Postcode": "M469FP"
},
{
"SchoolName": "Leigh CofE Primary School",
"Postcode": "WN71LP"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "WN23NX"
},
{
"SchoolName": "St Thomas' CofE Primary School, Leigh",
"Postcode": "WN72AS"
},
{
"SchoolName": "Wigan St Andrew's CofE Junior and Infant School",
"Postcode": "WN67AU"
},
{
"SchoolName": "Highfield St Matthew's CofE Primary School",
"Postcode": "WN36BL"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "WN50DT"
},
{
"SchoolName": "Saint Paul's CofE Primary School",
"Postcode": "WN36SB"
},
{
"SchoolName": "St Mary and St John Catholic Primary School",
"Postcode": "WN11XL"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "WN13RZ"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "WN67RH"
},
{
"SchoolName": "St Aidan's Catholic Primary School, Wigan",
"Postcode": "WN36EE"
},
{
"SchoolName": "St Catharine's CofE Primary School",
"Postcode": "WN13LP"
},
{
"SchoolName": "St Thomas CofE Primary School",
"Postcode": "WN48PQ"
},
{
"SchoolName": "Standish Lower Ground St Anne's CofE Primary School",
"Postcode": "WN68JP"
},
{
"SchoolName": "Bickershaw CofE Primary School",
"Postcode": "WN24AE"
},
{
"SchoolName": "Hindley All Saints CofE Primary School",
"Postcode": "WN23QS"
},
{
"SchoolName": "Castle Hill St Philip's CofE Primary School",
"Postcode": "WN24DH"
},
{
"SchoolName": "Ince CofE Primary School",
"Postcode": "WN22AL"
},
{
"SchoolName": "St Michael's CofE Primary School, Howe Bridge",
"Postcode": "M460PA"
},
{
"SchoolName": "Westleigh St Paul's CofE Primary School",
"Postcode": "WN75JN"
},
{
"SchoolName": "St Stephen's CofE Primary School",
"Postcode": "M297BT"
},
{
"SchoolName": "St John's CofE Primary School Mosley Common",
"Postcode": "M281AE"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "WA32PW"
},
{
"SchoolName": "Lowton St Mary's CofE (Voluntary Aided) Primary School",
"Postcode": "WA31EW"
},
{
"SchoolName": "St Thomas CofE Junior and Infant School",
"Postcode": "WA33TH"
},
{
"SchoolName": "St Oswald's Catholic Primary School",
"Postcode": "WN49AZ"
},
{
"SchoolName": "Our Lady Immaculate Catholic Primary School",
"Postcode": "WN40LZ"
},
{
"SchoolName": "Our Lady's RC Primary School Wigan",
"Postcode": "WN21RU"
},
{
"SchoolName": "Holy Family Catholic Primary School, New Springs, Wigan",
"Postcode": "WN21EL"
},
{
"SchoolName": "St James' Catholic Primary School Orrell",
"Postcode": "WN57AA"
},
{
"SchoolName": "St Marie's Catholic Primary School Standish",
"Postcode": "WN60LF"
},
{
"SchoolName": "St Benedict's Catholic Primary School Hindley",
"Postcode": "WN23DG"
},
{
"SchoolName": "Holy Family Catholic Primary School Platt Bridge",
"Postcode": "WN25JF"
},
{
"SchoolName": "St William's Catholic Primary School",
"Postcode": "WN22DG"
},
{
"SchoolName": "St Richard's Roman Catholic Primary School Atherton",
"Postcode": "M460HA"
},
{
"SchoolName": "Sacred Heart RC Primary School",
"Postcode": "M469BN"
},
{
"SchoolName": "St Joseph's Catholic Primary School Leigh",
"Postcode": "WN72PR"
},
{
"SchoolName": "Sacred Heart Catholic Primary School Leigh",
"Postcode": "WN71UX"
},
{
"SchoolName": "Twelve Apostles Catholic Primary School",
"Postcode": "WN75JS"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "M281AG"
},
{
"SchoolName": "All Saints Catholic Primary School, Golborne, Wigan",
"Postcode": "WA33LU"
},
{
"SchoolName": "St Gabriel's Catholic Primary School",
"Postcode": "WN72XG"
},
{
"SchoolName": "St Catherine's Catholic Primary School, Lowton",
"Postcode": "WA32PQ"
},
{
"SchoolName": "St Bernadette's Catholic Primary School",
"Postcode": "WN68BD"
},
{
"SchoolName": "St Wilfrids Catholic Primary School",
"Postcode": "WN48SJ"
},
{
"SchoolName": "St Ambrose Barlow Catholic Primary School",
"Postcode": "M297DY"
},
{
"SchoolName": "Christ Church CofE Primary School, Pennington",
"Postcode": "WN74HB"
},
{
"SchoolName": "St Philip's CofE Primary School, Atherton",
"Postcode": "M469FD"
},
{
"SchoolName": "Leigh St Mary's CofE Primary School",
"Postcode": "WN71YE"
},
{
"SchoolName": "Leigh St John's CofE Primary",
"Postcode": "WN71RY"
},
{
"SchoolName": "Aspull Church Primary School",
"Postcode": "WN21QW"
},
{
"SchoolName": "St <NAME> and Aspull CofE Primary School",
"Postcode": "WN21PA"
},
{
"SchoolName": "Cansfield High School",
"Postcode": "WN49TP"
},
{
"SchoolName": "Westleigh High School",
"Postcode": "WN75NL"
},
{
"SchoolName": "Golborne High School",
"Postcode": "WA33EL"
},
{
"SchoolName": "Hindley High School",
"Postcode": "WN24LG"
},
{
"SchoolName": "Shevington High School",
"Postcode": "WN68AB"
},
{
"SchoolName": "The Deanery Church of England High School and Sixth Form College",
"Postcode": "WN11HQ"
},
{
"SchoolName": "St <NAME> Catholic High School",
"Postcode": "WN67RN"
},
{
"SchoolName": "St Peter's Catholic High School",
"Postcode": "WN58NU"
},
{
"SchoolName": "St Mary's Catholic High School",
"Postcode": "M297EE"
},
{
"SchoolName": "St Edmund Arrowsmith Catholic High School, Ashton-in-Makerfield",
"Postcode": "WN49PF"
},
{
"SchoolName": "Hope School",
"Postcode": "WN36SP"
},
{
"SchoolName": "Burton Road Primary School",
"Postcode": "S712AA"
},
{
"SchoolName": "Shawlands Primary School",
"Postcode": "S706JL"
},
{
"SchoolName": "Barugh Green Primary School",
"Postcode": "S751LD"
},
{
"SchoolName": "Worsbrough Common Primary School",
"Postcode": "S704EB"
},
{
"SchoolName": "Lacewood Primary School",
"Postcode": "S638DA"
},
{
"SchoolName": "<NAME>thorpe Primary School",
"Postcode": "S639HY"
},
{
"SchoolName": "Keresforth Primary School",
"Postcode": "S753NU"
},
{
"SchoolName": "Oxspring Primary School",
"Postcode": "S368YW"
},
{
"SchoolName": "Hoylandswaine Primary School",
"Postcode": "S367JJ"
},
{
"SchoolName": "Millhouse Primary School",
"Postcode": "S369LN"
},
{
"SchoolName": "Springvale Primary School",
"Postcode": "S366HJ"
},
{
"SchoolName": "Thurlstone Primary School",
"Postcode": "S369RD"
},
{
"SchoolName": "Silkstone Common Junior and Infant School",
"Postcode": "S754QT"
},
{
"SchoolName": "Jump Primary School",
"Postcode": "S740JW"
},
{
"SchoolName": "Birdwell Primary School",
"Postcode": "S705XB"
},
{
"SchoolName": "Greenfield Primary School",
"Postcode": "S749RG"
},
{
"SchoolName": "Silkstone Primary School",
"Postcode": "S754LR"
},
{
"SchoolName": "Gawber Primary School",
"Postcode": "S752RJ"
},
{
"SchoolName": "Joseph Locke Primary School",
"Postcode": "S706JL"
},
{
"SchoolName": "Milefield Primary School",
"Postcode": "S727BH"
},
{
"SchoolName": "Ladywood Primary School",
"Postcode": "S727JX"
},
{
"SchoolName": "Birkwood Primary School",
"Postcode": "S728HG"
},
{
"SchoolName": "Cherry Dale Primary School",
"Postcode": "S728AA"
},
{
"SchoolName": "Cudworth Churchfield Primary School",
"Postcode": "S728JR"
},
{
"SchoolName": "Thurgoland Church of England (Voluntary Controlled) Primary School",
"Postcode": "S357AL"
},
{
"SchoolName": "Cawthorne Church of England Voluntary Controlled Primary School",
"Postcode": "S754HB"
},
{
"SchoolName": "Brierley Church of England Voluntary Controlled Primary School",
"Postcode": "S729EJ"
},
{
"SchoolName": "Holy Rood Catholic Primary School",
"Postcode": "S706JL"
},
{
"SchoolName": "Tankersley St Peter's CofE (Aided) Primary School",
"Postcode": "S753DA"
},
{
"SchoolName": "The Ellis Church of England (Voluntary Aided) Primary School",
"Postcode": "S730PS"
},
{
"SchoolName": "St Helen's Catholic Primary School",
"Postcode": "S749DL"
},
{
"SchoolName": "St Michael and All Angels Catholic Primary School",
"Postcode": "S738AF"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "S639JY"
},
{
"SchoolName": "Darton College",
"Postcode": "S755EF"
},
{
"SchoolName": "Penistone Grammar School",
"Postcode": "S367BX"
},
{
"SchoolName": "The Dearne Advanced Learning Centre",
"Postcode": "S639EW"
},
{
"SchoolName": "Hope House School, Barnsley",
"Postcode": "S701AP"
},
{
"SchoolName": "The Levett School",
"Postcode": "DN57SB"
},
{
"SchoolName": "Adwick Primary School",
"Postcode": "DN67LW"
},
{
"SchoolName": "Askern Moss Road Infant School",
"Postcode": "DN60NE"
},
{
"SchoolName": "Askern Spa Junior School",
"Postcode": "DN60AQ"
},
{
"SchoolName": "Arksey Primary School",
"Postcode": "DN50TE"
},
{
"SchoolName": "Toll Bar Primary School",
"Postcode": "DN50QR"
},
{
"SchoolName": "New Pastures Primary School",
"Postcode": "S640LT"
},
{
"SchoolName": "Norton Junior School",
"Postcode": "DN69DG"
},
{
"SchoolName": "Marshland Primary School",
"Postcode": "DN84SB"
},
{
"SchoolName": "<NAME> West Road Primary School",
"Postcode": "DN84LH"
},
{
"SchoolName": "Scawthorpe Castle Hills Primary School",
"Postcode": "DN59ED"
},
{
"SchoolName": "Barnburgh Primary School",
"Postcode": "DN57EZ"
},
{
"SchoolName": "Rossington Tornedale Infant School",
"Postcode": "DN110NQ"
},
{
"SchoolName": "Scawsby Saltersgate Infant School",
"Postcode": "DN58NQ"
},
{
"SchoolName": "Scawsby Saltersgate Junior School",
"Postcode": "DN58NQ"
},
{
"SchoolName": "Sprotbrough Orchard Infant School",
"Postcode": "DN57RN"
},
{
"SchoolName": "Norton Infant School",
"Postcode": "DN69DG"
},
{
"SchoolName": "Wadworth Primary School",
"Postcode": "DN119AP"
},
{
"SchoolName": "Hatfield Sheep Dip Lane Primary School",
"Postcode": "DN74AU"
},
{
"SchoolName": "Stainforth Kirton Lane Primary School",
"Postcode": "DN75BG"
},
{
"SchoolName": "Copley Junior School",
"Postcode": "DN57SD"
},
{
"SchoolName": "Armthorpe Southfield Primary School",
"Postcode": "DN33BN"
},
{
"SchoolName": "Littlemoor Children's Centre and School",
"Postcode": "DN60PZ"
},
{
"SchoolName": "Tickhill Estfeld Primary School",
"Postcode": "DN119JA"
},
{
"SchoolName": "Windhill Primary School",
"Postcode": "S640PQ"
},
{
"SchoolName": "Park Primary School",
"Postcode": "DN24JP"
},
{
"SchoolName": "Intake Primary School",
"Postcode": "DN26EW"
},
{
"SchoolName": "Sandringham Primary School",
"Postcode": "DN25LS"
},
{
"SchoolName": "Town Field Primary School",
"Postcode": "DN12JS"
},
{
"SchoolName": "Bawtry Mayflower Primary School",
"Postcode": "DN106PU"
},
{
"SchoolName": "Bessacarr Primary School",
"Postcode": "DN47DT"
},
{
"SchoolName": "Lakeside Primary School",
"Postcode": "DN45ES"
},
{
"SchoolName": "Hawthorn Primary School",
"Postcode": "DN46LQ"
},
{
"SchoolName": "Stirling Primary School",
"Postcode": "DN13QP"
},
{
"SchoolName": "Hayfield Lane Primary School",
"Postcode": "DN93NB"
},
{
"SchoolName": "Scawthorpe Sunnyfields Primary School",
"Postcode": "DN59EW"
},
{
"SchoolName": "Mexborough Highwoods Primary School",
"Postcode": "S649ES"
},
{
"SchoolName": "Thorne King Edward Primary School",
"Postcode": "DN84BY"
},
{
"SchoolName": "Bentley New Village Primary School",
"Postcode": "DN50NU"
},
{
"SchoolName": "Armthorpe Tranmoor Primary School",
"Postcode": "DN33DB"
},
{
"SchoolName": "Warmsworth Primary School",
"Postcode": "DN49RG"
},
{
"SchoolName": "Carcroft Primary School",
"Postcode": "DN68DR"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "DN45EP"
},
{
"SchoolName": "Our Lady of Mount Carmel Catholic Primary School",
"Postcode": "DN25JG"
},
{
"SchoolName": "St Francis Xavier Catholic Primary School",
"Postcode": "DN40JN"
},
{
"SchoolName": "<NAME> All Saints Church of England Primary School",
"Postcode": "DN57BT"
},
{
"SchoolName": "Travis St Lawrence CofE Primary School",
"Postcode": "DN76QE"
},
{
"SchoolName": "Branton St Wilfrid's Church of England Primary School",
"Postcode": "DN33NB"
},
{
"SchoolName": "Canon Popham Church of England (VA) Primary and Nursery School",
"Postcode": "DN32PP"
},
{
"SchoolName": "St Joseph and St Teresa's Catholic Primary School",
"Postcode": "DN67QN"
},
{
"SchoolName": "Our Lady of Perpetual Help Catholic Primary School",
"Postcode": "DN50RP"
},
{
"SchoolName": "St Alban's Catholic Primary School",
"Postcode": "DN124AQ"
},
{
"SchoolName": "St Mary's Catholic Primary School, Edlington",
"Postcode": "DN121DL"
},
{
"SchoolName": "Our Lady of Sorrows Catholic Primary School",
"Postcode": "DN32DB"
},
{
"SchoolName": "Tickhill St Mary's Church of England Primary and Nursery School",
"Postcode": "DN119LZ"
},
{
"SchoolName": "Hill House School",
"Postcode": "DN93GG"
},
{
"SchoolName": "Wilsic Hall School",
"Postcode": "DN119AG"
},
{
"SchoolName": "Sycamore Hall Preparatory School",
"Postcode": "DN48PT"
},
{
"SchoolName": "Fullerton House School",
"Postcode": "DN124AR"
},
{
"SchoolName": "Doncaster School for the Deaf",
"Postcode": "DN26AY"
},
{
"SchoolName": "The Arnold Centre",
"Postcode": "S652LY"
},
{
"SchoolName": "Rawmarsh Nursery School and Childrens Centre",
"Postcode": "S626AD"
},
{
"SchoolName": "Aughton Early Years Centre",
"Postcode": "S263XH"
},
{
"SchoolName": "Badsley Primary School",
"Postcode": "S652QS"
},
{
"SchoolName": "Blackburn Primary School",
"Postcode": "S612BU"
},
{
"SchoolName": "Broom Valley Community School",
"Postcode": "S602QU"
},
{
"SchoolName": "Ferham Primary School",
"Postcode": "S611AP"
},
{
"SchoolName": "Redscope Primary School",
"Postcode": "S613JT"
},
{
"SchoolName": "Kimberworth Community Primary School",
"Postcode": "S611HE"
},
{
"SchoolName": "Meadow View Primary School",
"Postcode": "S612JD"
},
{
"SchoolName": "Thornhill Primary School",
"Postcode": "S611TD"
},
{
"SchoolName": "Thorpe Hesley Primary School",
"Postcode": "S612PL"
},
{
"SchoolName": "Herringthorpe Infant School",
"Postcode": "S652JW"
},
{
"SchoolName": "Rockingham Junior and Infant School",
"Postcode": "S614HY"
},
{
"SchoolName": "Sitwell Infant School",
"Postcode": "S603LA"
},
{
"SchoolName": "Aston Fence Junior and Infant School",
"Postcode": "S139ZD"
},
{
"SchoolName": "Swallownest Primary School",
"Postcode": "S264UR"
},
{
"SchoolName": "Bramley Sunnyside Junior School",
"Postcode": "S663QW"
},
{
"SchoolName": "Brinsworth Manor Infant School",
"Postcode": "S605BX"
},
{
"SchoolName": "Harthill Primary School",
"Postcode": "S267YH"
},
{
"SchoolName": "Rawmarsh Rosehill Junior School",
"Postcode": "S625QH"
},
{
"SchoolName": "Rawmarsh Ryecroft Infant School",
"Postcode": "S625QW"
},
{
"SchoolName": "Laughton Junior and Infant School",
"Postcode": "S251YP"
},
{
"SchoolName": "Wales Primary School",
"Postcode": "S265QG"
},
{
"SchoolName": "Kiveton Park Infant School",
"Postcode": "S266QP"
},
{
"SchoolName": "Kiveton Park Meadows Junior School",
"Postcode": "S265QT"
},
{
"SchoolName": "Bramley Sunnyside Infant School",
"Postcode": "S663QW"
},
{
"SchoolName": "Anston Park Junior School",
"Postcode": "S252QZ"
},
{
"SchoolName": "Thurcroft Infant School",
"Postcode": "S669NT"
},
{
"SchoolName": "Anston Park Infant School",
"Postcode": "S254BT"
},
{
"SchoolName": "Todwick Primary School",
"Postcode": "S261HJ"
},
{
"SchoolName": "Rawmarsh Thorogate Junior and Infant School",
"Postcode": "S627HS"
},
{
"SchoolName": "West Melton Junior and Infant School",
"Postcode": "S636NF"
},
{
"SchoolName": "Brinsworth Howarth Primary School",
"Postcode": "S605JR"
},
{
"SchoolName": "Anston Hillcrest Primary School",
"Postcode": "S255GR"
},
{
"SchoolName": "Kilnhurst St Thomas CofE Primary School",
"Postcode": "S645UA"
},
{
"SchoolName": "Laughton All Saints CofE Primary School",
"Postcode": "S251YF"
},
{
"SchoolName": "Our Lady and St Joseph's Catholic Primary School",
"Postcode": "S637HG"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "S626JY"
},
{
"SchoolName": "Treeton CofE (A) Primary School",
"Postcode": "S605QS"
},
{
"SchoolName": "Wath Comprehensive School : A Language College",
"Postcode": "S637NW"
},
{
"SchoolName": "Saint Pius X Catholic High School A Specialist School in Humanities",
"Postcode": "S637PQ"
},
{
"SchoolName": "The Robert Ogden School",
"Postcode": "S630BG"
},
{
"SchoolName": "Newman School",
"Postcode": "S603LX"
},
{
"SchoolName": "The Willows School",
"Postcode": "S669NT"
},
{
"SchoolName": "Broomhall Nursery School",
"Postcode": "S102DN"
},
{
"SchoolName": "Grace Owen Nursery School",
"Postcode": "S25QD"
},
{
"SchoolName": "Abbey Lane Primary School",
"Postcode": "S80BN"
},
{
"SchoolName": "Brightside Nursery and Infant School",
"Postcode": "S91AS"
},
{
"SchoolName": "Carter Knowle Junior School",
"Postcode": "S72DY"
},
{
"SchoolName": "Gleadless Primary School",
"Postcode": "S122EJ"
},
{
"SchoolName": "Whiteways Primary School",
"Postcode": "S48EX"
},
{
"SchoolName": "Hunter's Bar Junior School",
"Postcode": "S118ZG"
},
{
"SchoolName": "Hunter's Bar Infant School",
"Postcode": "S118ZG"
},
{
"SchoolName": "Intake Primary School",
"Postcode": "S122AR"
},
{
"SchoolName": "Lowfield Community Primary School",
"Postcode": "S24NJ"
},
{
"SchoolName": "Lydgate Junior School",
"Postcode": "S105DP"
},
{
"SchoolName": "Lydgate Infant School",
"Postcode": "S105FQ"
},
{
"SchoolName": "Marlcliffe Community Primary School",
"Postcode": "S64AJ"
},
{
"SchoolName": "Ecclesfield Primary School",
"Postcode": "S359UD"
},
{
"SchoolName": "Meersbrook Bank Primary School",
"Postcode": "S89EH"
},
{
"SchoolName": "Nether Green Junior School",
"Postcode": "S103QA"
},
{
"SchoolName": "Mundella Primary School",
"Postcode": "S88SJ"
},
{
"SchoolName": "Owler Brook Primary School",
"Postcode": "S48HQ"
},
{
"SchoolName": "Woodhouse West Primary School",
"Postcode": "S137BP"
},
{
"SchoolName": "Ecclesall Infant School",
"Postcode": "S117LG"
},
{
"SchoolName": "Holt House Infant School",
"Postcode": "S72EW"
},
{
"SchoolName": "Nether Green Infant School",
"Postcode": "S103QP"
},
{
"SchoolName": "Bradway Primary School",
"Postcode": "S174PD"
},
{
"SchoolName": "Dobcroft Junior School",
"Postcode": "S72LN"
},
{
"SchoolName": "Beighton Nursery Infant School",
"Postcode": "S201EG"
},
{
"SchoolName": "Brook House Junior School",
"Postcode": "S201EG"
},
{
"SchoolName": "Halfway Nursery Infant School",
"Postcode": "S203GU"
},
{
"SchoolName": "Mosborough Primary School",
"Postcode": "S205ES"
},
{
"SchoolName": "Limpsfield Junior School",
"Postcode": "S91AN"
},
{
"SchoolName": "Netherthorpe Primary School",
"Postcode": "S37JA"
},
{
"SchoolName": "Halfway Junior School",
"Postcode": "S204TA"
},
{
"SchoolName": "Ballifield Primary School",
"Postcode": "S139HH"
},
{
"SchoolName": "Dobcroft Infant School",
"Postcode": "S72LN"
},
{
"SchoolName": "Loxley Primary School",
"Postcode": "S66SG"
},
{
"SchoolName": "Stannington Infant School",
"Postcode": "S66AN"
},
{
"SchoolName": "Grenoside Community Primary School",
"Postcode": "S358QB"
},
{
"SchoolName": "High Green Primary School",
"Postcode": "S354LU"
},
{
"SchoolName": "Stocksbridge Nursery Infant School",
"Postcode": "S361EJ"
},
{
"SchoolName": "Stocksbridge Junior School",
"Postcode": "S361AS"
},
{
"SchoolName": "Royd Nursery and Infant School",
"Postcode": "S362PR"
},
{
"SchoolName": "Nook Lane Junior School",
"Postcode": "S66BN"
},
{
"SchoolName": "Wharncliffe Side Primary School",
"Postcode": "S350DD"
},
{
"SchoolName": "Coit Primary School",
"Postcode": "S351WH"
},
{
"SchoolName": "Oughtibridge Primary School",
"Postcode": "S350HG"
},
{
"SchoolName": "Waterthorpe Infant School",
"Postcode": "S207JU"
},
{
"SchoolName": "Bankwood Community Primary School",
"Postcode": "S141LW"
},
{
"SchoolName": "Woodseats Primary School",
"Postcode": "S80SB"
},
{
"SchoolName": "Brunswick Community Primary School",
"Postcode": "S137RB"
},
{
"SchoolName": "Woodthorpe Primary School",
"Postcode": "S138DA"
},
{
"SchoolName": "Bradfield Dungworth Primary School",
"Postcode": "S66HE"
},
{
"SchoolName": "Springfield Primary School",
"Postcode": "S37RZ"
},
{
"SchoolName": "Reignhead Primary School",
"Postcode": "S201FD"
},
{
"SchoolName": "Rivelin Primary School",
"Postcode": "S62PL"
},
{
"SchoolName": "Athelstan Primary School",
"Postcode": "S138HH"
},
{
"SchoolName": "Greenhill Primary School",
"Postcode": "S87RA"
},
{
"SchoolName": "Angram Bank Primary School",
"Postcode": "S354HN"
},
{
"SchoolName": "Anns Grove Primary School",
"Postcode": "S23DJ"
},
{
"SchoolName": "Carfield Primary School",
"Postcode": "S89HJ"
},
{
"SchoolName": "Prince Edward Primary School",
"Postcode": "S21EE"
},
{
"SchoolName": "Shooter's Grove Primary School",
"Postcode": "S65HN"
},
{
"SchoolName": "Stradbroke Primary School",
"Postcode": "S138LT"
},
{
"SchoolName": "Walkley Primary School",
"Postcode": "S62RZ"
},
{
"SchoolName": "Westways Primary School",
"Postcode": "S101NE"
},
{
"SchoolName": "Greystones Primary School",
"Postcode": "S117GL"
},
{
"SchoolName": "Malin Bridge Primary School",
"Postcode": "S64RH"
},
{
"SchoolName": "Shortbrook Primary School",
"Postcode": "S208FB"
},
{
"SchoolName": "Windmill Hill Primary School",
"Postcode": "S351ZD"
},
{
"SchoolName": "Ecclesall Church of England Junior School",
"Postcode": "S117PQ"
},
{
"SchoolName": "Norton Free Church of England Primary School",
"Postcode": "S88JS"
},
{
"SchoolName": "Parson Cross Church of England Primary School",
"Postcode": "S61LB"
},
{
"SchoolName": "Deepcar St John's Church of England Junior School",
"Postcode": "S362TE"
},
{
"SchoolName": "Westfield School",
"Postcode": "S201HQ"
},
{
"SchoolName": "High Storrs School",
"Postcode": "S117LH"
},
{
"SchoolName": "King Edward VII School",
"Postcode": "S102PW"
},
{
"SchoolName": "Stocksbridge High School",
"Postcode": "S361FD"
},
{
"SchoolName": "Clifford CofE Infant School",
"Postcode": "S118YU"
},
{
"SchoolName": "Broomhill Infant School",
"Postcode": "S102SA"
},
{
"SchoolName": "Totley All Saints Church of England Voluntary Aided Primary School",
"Postcode": "S174AP"
},
{
"SchoolName": "St Theresa's Catholic Primary School",
"Postcode": "S21EY"
},
{
"SchoolName": "Ashdell Preparatory School",
"Postcode": "S103BL"
},
{
"SchoolName": "Westbourne School",
"Postcode": "S102QT"
},
{
"SchoolName": "Birkdale School",
"Postcode": "S103DH"
},
{
"SchoolName": "Mylnhurst Catholic Prep School & Nursery",
"Postcode": "S119HJ"
},
{
"SchoolName": "Sheffield High School",
"Postcode": "S102PE"
},
{
"SchoolName": "Handsworth Christian School",
"Postcode": "S139BJ"
},
{
"SchoolName": "Bethany School",
"Postcode": "S37PS"
},
{
"SchoolName": "Bents Green School",
"Postcode": "S117TB"
},
{
"SchoolName": "The Rowan School",
"Postcode": "S173PT"
},
{
"SchoolName": "Norfolk Park School",
"Postcode": "S21PL"
},
{
"SchoolName": "Talbot Specialist School",
"Postcode": "S89JP"
},
{
"SchoolName": "Woolley Wood School",
"Postcode": "S59QN"
},
{
"SchoolName": "Mossbrook School",
"Postcode": "S88JR"
},
{
"SchoolName": "Becton School",
"Postcode": "S201NZ"
},
{
"SchoolName": "Strong Close Nursery School",
"Postcode": "BD214LW"
},
{
"SchoolName": "Hirst Wood Nursery School & Children's Centre",
"Postcode": "BD184NJ"
},
{
"SchoolName": "Lilycroft Nursery School",
"Postcode": "BD95AD"
},
{
"SchoolName": "Abbey Green Nursery School & Children's Centre",
"Postcode": "BD88HT"
},
{
"SchoolName": "Midland Road Nursery School",
"Postcode": "BD87DJ"
},
{
"SchoolName": "St Edmund's Nursery School & Children's Centre",
"Postcode": "BD89QW"
},
{
"SchoolName": "Clayton Village Primary School",
"Postcode": "BD146AD"
},
{
"SchoolName": "Crossley Hall Primary School",
"Postcode": "BD80HJ"
},
{
"SchoolName": "Frizinghall Primary School",
"Postcode": "BD94HP"
},
{
"SchoolName": "Greengates Primary School",
"Postcode": "BD109AX"
},
{
"SchoolName": "Lidget Green Primary School",
"Postcode": "BD72QN"
},
{
"SchoolName": "Marshfield Primary School",
"Postcode": "BD59DS"
},
{
"SchoolName": "Newby Primary School",
"Postcode": "BD57DQ"
},
{
"SchoolName": "Sandy Lane Primary School",
"Postcode": "BD159JU"
},
{
"SchoolName": "Swain House Primary School",
"Postcode": "BD21JL"
},
{
"SchoolName": "Thackley Primary School",
"Postcode": "BD108PJ"
},
{
"SchoolName": "Blakehill Primary School",
"Postcode": "BD108QN"
},
{
"SchoolName": "Parkland Primary School",
"Postcode": "BD109BG"
},
{
"SchoolName": "Fearnville Primary School",
"Postcode": "BD48DX"
},
{
"SchoolName": "Wellington Primary School",
"Postcode": "BD23DE"
},
{
"SchoolName": "Wibsey Primary School",
"Postcode": "BD61RL"
},
{
"SchoolName": "Bowling Park Primary School",
"Postcode": "BD58BT"
},
{
"SchoolName": "Stocks Lane Primary School",
"Postcode": "BD132RH"
},
{
"SchoolName": "Farfield Primary and Nursery School",
"Postcode": "BD62BS"
},
{
"SchoolName": "Princeville Primary School",
"Postcode": "BD72AH"
},
{
"SchoolName": "Carrwood Primary School",
"Postcode": "BD40EQ"
},
{
"SchoolName": "Ley Top Primary School",
"Postcode": "BD157PQ"
},
{
"SchoolName": "Grove House Primary School",
"Postcode": "BD24ED"
},
{
"SchoolName": "Worthinghead Primary School",
"Postcode": "BD129EL"
},
{
"SchoolName": "Poplars Farm Primary School",
"Postcode": "BD21LQ"
},
{
"SchoolName": "Bankfoot Primary School",
"Postcode": "BD59NR"
},
{
"SchoolName": "Fagley Primary School",
"Postcode": "BD23PU"
},
{
"SchoolName": "Brackenhill Primary School",
"Postcode": "BD74HA"
},
{
"SchoolName": "Cottingley Village Primary School",
"Postcode": "BD161SY"
},
{
"SchoolName": "Crossflatts Primary School",
"Postcode": "BD162EP"
},
{
"SchoolName": "Cullingworth Village Primary School",
"Postcode": "BD135DA"
},
{
"SchoolName": "Eldwick Primary School",
"Postcode": "BD163LE"
},
{
"SchoolName": "Priestthorpe Primary School",
"Postcode": "BD164JS"
},
{
"SchoolName": "Eastwood Community School",
"Postcode": "BD213JL"
},
{
"SchoolName": "Ingrow Primary School",
"Postcode": "BD211BW"
},
{
"SchoolName": "Laycock Primary School",
"Postcode": "BD220PP"
},
{
"SchoolName": "Long Lee Primary School",
"Postcode": "BD214RU"
},
{
"SchoolName": "Oldfield Primary School",
"Postcode": "BD220HZ"
},
{
"SchoolName": "Stanbury Village School",
"Postcode": "BD220HA"
},
{
"SchoolName": "Saltaire Primary School",
"Postcode": "BD184NR"
},
{
"SchoolName": "Low Ash Primary School",
"Postcode": "BD181AA"
},
{
"SchoolName": "Aire View Infant School",
"Postcode": "BD200AW"
},
{
"SchoolName": "Eastburn Junior and Infant School",
"Postcode": "BD208UX"
},
{
"SchoolName": "Steeton Primary School",
"Postcode": "BD206NN"
},
{
"SchoolName": "Ashlands Primary School",
"Postcode": "LS298JY"
},
{
"SchoolName": "Glenaire Primary School",
"Postcode": "BD177LY"
},
{
"SchoolName": "Ben Rhydding Primary School",
"Postcode": "LS298QH"
},
{
"SchoolName": "Hoyle Court Primary School",
"Postcode": "BD176DN"
},
{
"SchoolName": "Nessfield Primary School",
"Postcode": "BD226NP"
},
{
"SchoolName": "Addingham Primary School",
"Postcode": "LS290NR"
},
{
"SchoolName": "Sandal Primary School",
"Postcode": "BD175DH"
},
{
"SchoolName": "Girlington Primary School",
"Postcode": "BD89NR"
},
{
"SchoolName": "Farnham Primary School",
"Postcode": "BD73HU"
},
{
"SchoolName": "Miriam Lord Community Primary School",
"Postcode": "BD88RG"
},
{
"SchoolName": "Menston Primary School",
"Postcode": "LS296LF"
},
{
"SchoolName": "All Saints Church of England Primary School",
"Postcode": "BD50NG"
},
{
"SchoolName": "St Matthew's CofE Primary School and Nursery",
"Postcode": "BD58HT"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "BD23NS"
},
{
"SchoolName": "Low Moor CofE Primary School",
"Postcode": "BD120NN"
},
{
"SchoolName": "Clayton CofE Primary School",
"Postcode": "BD146DD"
},
{
"SchoolName": "All Saints' CofE Primary School",
"Postcode": "LS299BE"
},
{
"SchoolName": "East Morton CofE Primary School",
"Postcode": "BD205SE"
},
{
"SchoolName": "Burley and Woodhead CofE Primary School",
"Postcode": "LS297RQ"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "BD46JF"
},
{
"SchoolName": "Woodlands CofE Primary School",
"Postcode": "BD127EZ"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "BD61ST"
},
{
"SchoolName": "Idle CofE Primary School",
"Postcode": "BD108LU"
},
{
"SchoolName": "Heaton St Barnabas' CofE Aided Primary School",
"Postcode": "BD94DA"
},
{
"SchoolName": "St Stephen's CofE Primary School",
"Postcode": "BD57HU"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "BD146HW"
},
{
"SchoolName": "St Clare's Catholic Primary School",
"Postcode": "BD23JD"
},
{
"SchoolName": "St Columba's Catholic Primary School",
"Postcode": "BD49PY"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "BD50RB"
},
{
"SchoolName": "St Mary's &St Peter's Catholic Primary School",
"Postcode": "BD39ND"
},
{
"SchoolName": "St William's Catholic Primary School",
"Postcode": "BD89RG"
},
{
"SchoolName": "St Francis Catholic Primary School",
"Postcode": "BD24ES"
},
{
"SchoolName": "Our Lady and St Brendan's Catholic Primary School",
"Postcode": "BD100QA"
},
{
"SchoolName": "St Cuthbert and The First Martyrs' Catholic Primary School",
"Postcode": "BD95AT"
},
{
"SchoolName": "St Matthew's Catholic Primary School",
"Postcode": "BD157NE"
},
{
"SchoolName": "Baildon CofE Primary School",
"Postcode": "BD176TE"
},
{
"SchoolName": "Trinity All Saints CofE VA Primary School",
"Postcode": "BD162PP"
},
{
"SchoolName": "Keighley St Andrew's CofE Primary School and Nursery",
"Postcode": "BD212ND"
},
{
"SchoolName": "Riddlesden St Mary's CofE Primary School",
"Postcode": "BD205AB"
},
{
"SchoolName": "Shipley CofE Primary School",
"Postcode": "BD182PT"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "BD164HQ"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "BD181HD"
},
{
"SchoolName": "Titus Salt School",
"Postcode": "BD175RH"
},
{
"SchoolName": "Carlton Bolling College",
"Postcode": "BD30DU"
},
{
"SchoolName": "The Holy Family Catholic School",
"Postcode": "BD206LH"
},
{
"SchoolName": "Killinghall Primary School",
"Postcode": "BD37JF"
},
{
"SchoolName": "Foxhill Primary School",
"Postcode": "BD131LN"
},
{
"SchoolName": "Russell Hall Primary School",
"Postcode": "BD132AW"
},
{
"SchoolName": "Hill Top CofE Primary School",
"Postcode": "BD120TL"
},
{
"SchoolName": "Hollingwood Primary School",
"Postcode": "BD74BE"
},
{
"SchoolName": "Myrtle Park Primary School",
"Postcode": "BD161HB"
},
{
"SchoolName": "Keelham Primary School",
"Postcode": "BD134HH"
},
{
"SchoolName": "Bingley Grammar School",
"Postcode": "BD162RS"
},
{
"SchoolName": "Netherleigh and Rossefield School",
"Postcode": "BD94AY"
},
{
"SchoolName": "Ghyll Royd School and Pre-School",
"Postcode": "LS297HW"
},
{
"SchoolName": "Moorfield School",
"Postcode": "LS298RL"
},
{
"SchoolName": "Westville House School",
"Postcode": "LS290DQ"
},
{
"SchoolName": "Bradford Grammar School",
"Postcode": "BD94JP"
},
{
"SchoolName": "Lady Lane Park School",
"Postcode": "BD164AP"
},
{
"SchoolName": "<NAME>",
"Postcode": "BD146JX"
},
{
"SchoolName": "Bradford Christian School",
"Postcode": "BD21BT"
},
{
"SchoolName": "Ferney Lee Primary School",
"Postcode": "OL145NR"
},
{
"SchoolName": "Copley Primary School",
"Postcode": "HX30TP"
},
{
"SchoolName": "Dean Field Community Primary School",
"Postcode": "HX28DQ"
},
{
"SchoolName": "Savile Park Primary School",
"Postcode": "HX13ER"
},
{
"SchoolName": "Lee Mount Primary School",
"Postcode": "HX35EB"
},
{
"SchoolName": "Northowram Primary School",
"Postcode": "HX37EF"
},
{
"SchoolName": "Parkinson Lane Community Primary School",
"Postcode": "HX13XL"
},
{
"SchoolName": "Salterhebble Junior and Infant School",
"Postcode": "HX30AU"
},
{
"SchoolName": "Warley Road Primary School",
"Postcode": "HX13TG"
},
{
"SchoolName": "Warley Town School",
"Postcode": "HX27QD"
},
{
"SchoolName": "Ling Bob Junior, Infant and Nursery School",
"Postcode": "HX20QD"
},
{
"SchoolName": "Bailiffe Bridge Junior and Infant School",
"Postcode": "HD64DY"
},
{
"SchoolName": "Carr Green Primary School",
"Postcode": "HD63LT"
},
{
"SchoolName": "Longroyde Primary School",
"Postcode": "HD63AS"
},
{
"SchoolName": "Withinfields Primary School",
"Postcode": "HX39QJ"
},
{
"SchoolName": "Bowling Green Primary School",
"Postcode": "HX49HU"
},
{
"SchoolName": "Holywell Green Primary School",
"Postcode": "HX49AE"
},
{
"SchoolName": "Central Street Infant and Nursery School",
"Postcode": "HX76HB"
},
{
"SchoolName": "Cragg Vale Junior and Infant School",
"Postcode": "HX75TG"
},
{
"SchoolName": "Stubbings Infant School",
"Postcode": "HX78BP"
},
{
"SchoolName": "Heptonstall Junior Infant and Nursery School",
"Postcode": "HX77NX"
},
{
"SchoolName": "Colden Junior and Infant School",
"Postcode": "HX77HW"
},
{
"SchoolName": "Shelf Junior and Infant School",
"Postcode": "HX37LT"
},
{
"SchoolName": "Ripponden Junior and Infant School",
"Postcode": "HX64AH"
},
{
"SchoolName": "Midgley School",
"Postcode": "HX26TX"
},
{
"SchoolName": "New Road Primary School",
"Postcode": "HX61DY"
},
{
"SchoolName": "Tuel Lane Infant School",
"Postcode": "HX62ND"
},
{
"SchoolName": "Castle Hill Primary School",
"Postcode": "OL145SQ"
},
{
"SchoolName": "Cornholme Junior, Infant and Nursery School",
"Postcode": "OL148PL"
},
{
"SchoolName": "Shade Primary School",
"Postcode": "OL147PD"
},
{
"SchoolName": "Old Town Primary School",
"Postcode": "HX78RY"
},
{
"SchoolName": "Cliffe Hill Community Primary School",
"Postcode": "HX38TW"
},
{
"SchoolName": "Woodhouse Primary School",
"Postcode": "HD63SX"
},
{
"SchoolName": "Riverside Junior School",
"Postcode": "HX78EE"
},
{
"SchoolName": "Cross Lane Primary and Nursery School",
"Postcode": "HX50LP"
},
{
"SchoolName": "Ash Green Community Primary School",
"Postcode": "HX28QD"
},
{
"SchoolName": "Christ Church Pellon CofE VC Primary School",
"Postcode": "HX20QQ"
},
{
"SchoolName": "Norland CofE Junior and Infant School",
"Postcode": "HX63RN"
},
{
"SchoolName": "St Mary's CofE (VC) J and I School",
"Postcode": "HX63EJ"
},
{
"SchoolName": "Triangle CofE VC Primary School",
"Postcode": "HX63NJ"
},
{
"SchoolName": "Luddenden CofE School",
"Postcode": "HX26PB"
},
{
"SchoolName": "St Augustine's CofE VA Junior and Infant School",
"Postcode": "HX15PG"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "HX36LA"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "HX12ER"
},
{
"SchoolName": "St Andrew's CofE (VA) Junior School",
"Postcode": "HD62AN"
},
{
"SchoolName": "St Andrew's Church of England (VA) Infant School",
"Postcode": "HD62HH"
},
{
"SchoolName": "St Chad's CofE (VA) Primary School",
"Postcode": "HD62PA"
},
{
"SchoolName": "Elland CofE Junior and Infant School",
"Postcode": "HX50BB"
},
{
"SchoolName": "Hebden Royd CofE VA Primary School",
"Postcode": "HX76DS"
},
{
"SchoolName": "Barkisland CofE VA Primary School",
"Postcode": "HX40BD"
},
{
"SchoolName": "Christ Church CofE VA Junior School, Sowerby Bridge",
"Postcode": "HX62BJ"
},
{
"SchoolName": "Todmorden CofE J, I & N School",
"Postcode": "OL147BS"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "HX50QY"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Brighouse",
"Postcode": "HD62NT"
},
{
"SchoolName": "St Joseph's RC Primary School, Todmorden",
"Postcode": "OL145HP"
},
{
"SchoolName": "Calder High School, A Specialist Technology College",
"Postcode": "HX75QN"
},
{
"SchoolName": "Sowerby Bridge High School",
"Postcode": "HX62NW"
},
{
"SchoolName": "Todmorden High School",
"Postcode": "OL147DG"
},
{
"SchoolName": "All Saints' CofE VA Junior and Infant School",
"Postcode": "HX30SD"
},
{
"SchoolName": "St Michael and All Angels CofE Primary & Pre School",
"Postcode": "HX37QU"
},
{
"SchoolName": "Lightcliffe CofE VA Primary School",
"Postcode": "HX38SH"
},
{
"SchoolName": "West Vale Primary School",
"Postcode": "HX48LS"
},
{
"SchoolName": "The Gleddings School",
"Postcode": "HX30JB"
},
{
"SchoolName": "Rishworth School",
"Postcode": "HX64QA"
},
{
"SchoolName": "Hipperholme Grammar School",
"Postcode": "HX38JE"
},
{
"SchoolName": "Rastrick Independent School",
"Postcode": "HD63HF"
},
{
"SchoolName": "Ravenscliffe High School",
"Postcode": "HX30RZ"
},
{
"SchoolName": "<NAME> Smith School",
"Postcode": "HD63JW"
},
{
"SchoolName": "Wood Bank School",
"Postcode": "HX26PB"
},
{
"SchoolName": "Highbury School",
"Postcode": "HD63LD"
},
{
"SchoolName": "Flatts Nursery School",
"Postcode": "WF132SU"
},
{
"SchoolName": "Westfields Pupil Referral Unit",
"Postcode": "WF170BQ"
},
{
"SchoolName": "Berry Brow Infant and Nursery School",
"Postcode": "HD47LP"
},
{
"SchoolName": "Carlton Junior and Infant School",
"Postcode": "WF132DQ"
},
{
"SchoolName": "Birkby Infant and Nursery School",
"Postcode": "HD15HQ"
},
{
"SchoolName": "Eastborough Junior Infant and Nursery School",
"Postcode": "WF131NS"
},
{
"SchoolName": "Earlsheaton Infant School",
"Postcode": "WF128JF"
},
{
"SchoolName": "Shaw Cross Infant and Nursery School",
"Postcode": "WF127HP"
},
{
"SchoolName": "Netherton Infant and Nursery School",
"Postcode": "HD47JE"
},
{
"SchoolName": "Westmoor Primary School",
"Postcode": "WF134EW"
},
{
"SchoolName": "Paddock Junior Infant and Nursery School",
"Postcode": "HD14JJ"
},
{
"SchoolName": "Spring Grove Junior Infant and Nursery School",
"Postcode": "HD14BJ"
},
{
"SchoolName": "Rawthorpe Junior School",
"Postcode": "HD59NT"
},
{
"SchoolName": "Reinwood Community Junior School",
"Postcode": "HD34YL"
},
{
"SchoolName": "Reinwood Infant and Nursery School",
"Postcode": "HD34YL"
},
{
"SchoolName": "Crow Lane Primary and Foundation Stage School",
"Postcode": "HD34QT"
},
{
"SchoolName": "Birkby Junior School",
"Postcode": "HD16HE"
},
{
"SchoolName": "Ashbrow School",
"Postcode": "HD21EX"
},
{
"SchoolName": "Newsome Junior School",
"Postcode": "HD46JN"
},
{
"SchoolName": "Fixby Junior and Infant School",
"Postcode": "HD22HB"
},
{
"SchoolName": "<NAME> Royal Junior Infant and Nursery School",
"Postcode": "WF178HT"
},
{
"SchoolName": "Field Lane Junior Infant and Nursery School",
"Postcode": "WF175AH"
},
{
"SchoolName": "Healey Junior Infant and Nursery School",
"Postcode": "WF178BN"
},
{
"SchoolName": "Mill Lane Primary School",
"Postcode": "WF176EG"
},
{
"SchoolName": "Park Road Junior Infant and Nursery School",
"Postcode": "WF175LP"
},
{
"SchoolName": "Purlwell Infant and Nursery School",
"Postcode": "WF177PE"
},
{
"SchoolName": "Warwick Road Primary School",
"Postcode": "WF176BS"
},
{
"SchoolName": "Clough Head Junior and Infant School",
"Postcode": "HD74NW"
},
{
"SchoolName": "Marsden Infant and Nursery School",
"Postcode": "HD76BN"
},
{
"SchoolName": "Scapegoat Hill Junior and Infant School",
"Postcode": "HD74NU"
},
{
"SchoolName": "Nields Junior Infant and Nursery School",
"Postcode": "HD75HT"
},
{
"SchoolName": "Wellhouse Junior and Infant School",
"Postcode": "HD74ES"
},
{
"SchoolName": "Wilberlee Junior and Infant School",
"Postcode": "HD75UX"
},
{
"SchoolName": "Kaye's First and Nursery School",
"Postcode": "HD89LZ"
},
{
"SchoolName": "Emley First School",
"Postcode": "HD89RT"
},
{
"SchoolName": "Holmfirth Junior Infant and Nursery School",
"Postcode": "HD92RG"
},
{
"SchoolName": "Hade Edge Junior and Infant School",
"Postcode": "HD92DF"
},
{
"SchoolName": "Hepworth Junior and Infant School",
"Postcode": "HD91TJ"
},
{
"SchoolName": "Hinchliffe Mill Junior and Infant School",
"Postcode": "HD92PF"
},
{
"SchoolName": "Holme Junior and Infant School",
"Postcode": "HD92QQ"
},
{
"SchoolName": "Netherthong Primary School",
"Postcode": "HD93EB"
},
{
"SchoolName": "Scholes (Holmfirth) J & I School",
"Postcode": "HD91SZ"
},
{
"SchoolName": "Shepley First School",
"Postcode": "HD88DD"
},
{
"SchoolName": "Grange Moor Primary School",
"Postcode": "WF44EW"
},
{
"SchoolName": "Hopton Primary School",
"Postcode": "WF148PR"
},
{
"SchoolName": "Gomersal Primary School",
"Postcode": "BD194PX"
},
{
"SchoolName": "Hartshead Junior and Infant School",
"Postcode": "WF158AW"
},
{
"SchoolName": "Hightown Junior Infant & Nursery School",
"Postcode": "WF158BL"
},
{
"SchoolName": "Littletown Junior Infant and Nursery School",
"Postcode": "WF156LP"
},
{
"SchoolName": "Howard Park Community School",
"Postcode": "BD193SD"
},
{
"SchoolName": "Manorfield Infant and Nursery School",
"Postcode": "WF177DQ"
},
{
"SchoolName": "Scholes Village Primary School",
"Postcode": "BD196DN"
},
{
"SchoolName": "Wooldale Junior School",
"Postcode": "HD91LJ"
},
{
"SchoolName": "Rowley Lane Junior Infant and Nursery School",
"Postcode": "HD80JD"
},
{
"SchoolName": "Lydgate Junior and Infant School",
"Postcode": "WF176EY"
},
{
"SchoolName": "Upperthong Junior and Infant School",
"Postcode": "HD92LE"
},
{
"SchoolName": "Meltham Moor Primary School",
"Postcode": "HD95LH"
},
{
"SchoolName": "Hyrstmount Junior School",
"Postcode": "WF177NS"
},
{
"SchoolName": "Kirkheaton Primary School",
"Postcode": "HD50HR"
},
{
"SchoolName": "High Bank Junior Infant and Nursery School",
"Postcode": "WF158LD"
},
{
"SchoolName": "Norristhorpe Junior and Infant School",
"Postcode": "WF157AW"
},
{
"SchoolName": "Kirkroyds Infant School",
"Postcode": "HD91LS"
},
{
"SchoolName": "Old Bank Junior Infant and Nursery School",
"Postcode": "WF140HW"
},
{
"SchoolName": "Denby Dale First and Nursery School",
"Postcode": "HD88SG"
},
{
"SchoolName": "Pentland Infant and Nursery School",
"Postcode": "WF129JR"
},
{
"SchoolName": "Moldgreen Community Primary School",
"Postcode": "HD58AE"
},
{
"SchoolName": "Linthwaite Clough J I & Early Years Unit",
"Postcode": "HD75NJ"
},
{
"SchoolName": "Golcar Junior Infant and Nursery School",
"Postcode": "HD74QE"
},
{
"SchoolName": "Crossley Fields Junior and Infant School",
"Postcode": "WF140BE"
},
{
"SchoolName": "Lowerhouses CofE (Voluntary Controlled) Junior Infant and Early Years School",
"Postcode": "HD58JY"
},
{
"SchoolName": "Ravensthorpe Church of England Voluntary Controlled Junior School",
"Postcode": "WF133AS"
},
{
"SchoolName": "Rawthorpe St James CofE (VC) Infant and Nursery School",
"Postcode": "HD59NT"
},
{
"SchoolName": "St John's Church of England Voluntary Controlled Infant School",
"Postcode": "WF132LP"
},
{
"SchoolName": "Savile Town Church of England Voluntary Controlled Infant and Nursery School",
"Postcode": "WF129LY"
},
{
"SchoolName": "Thornhill Lees Church of England Voluntary Controlled Infant and Nursery School",
"Postcode": "WF129DL"
},
{
"SchoolName": "Bywell Church of England Voluntary Controlled Junior School",
"Postcode": "WF127LX"
},
{
"SchoolName": "Headfield Church of England Voluntary Controlled Junior School",
"Postcode": "WF129PD"
},
{
"SchoolName": "Hanging Heaton Church of England Voluntary Controlled Junior and Infant School",
"Postcode": "WF176DW"
},
{
"SchoolName": "Staincliffe Church of England Voluntary Controlled Junior School",
"Postcode": "WF177QX"
},
{
"SchoolName": "Slaithwaite Church of England Voluntary Controlled Junior and Infant School",
"Postcode": "HD75UG"
},
{
"SchoolName": "Honley Church of England Voluntary Controlled Junior School",
"Postcode": "HD96BT"
},
{
"SchoolName": "Brockholes Church of England Voluntary Controlled Junior and Infant School",
"Postcode": "HD97EB"
},
{
"SchoolName": "Flockton Church of England Voluntary Controlled First School",
"Postcode": "WF44DH"
},
{
"SchoolName": "Highburton Church of England Voluntary Controlled First School",
"Postcode": "HD80QT"
},
{
"SchoolName": "Lepton Church of England Voluntary Controlled Junior, Infant and Nursery School",
"Postcode": "HD80DE"
},
{
"SchoolName": "Thurstonland Endowed Voluntary Controlled First School",
"Postcode": "HD46XD"
},
{
"SchoolName": "Meltham CofE (VC) Primary School",
"Postcode": "HD94DA"
},
{
"SchoolName": "East Bierley Church of England Voluntary Controlled Primary School",
"Postcode": "BD46PH"
},
{
"SchoolName": "Roberttown Church of England Voluntary Controlled Junior and Infant School",
"Postcode": "WF158BE"
},
{
"SchoolName": "Farnley Tyas Church of England Voluntary Controlled First School",
"Postcode": "HD46TZ"
},
{
"SchoolName": "Headlands Church of England Voluntary Controlled Junior, Infant and Nursery School",
"Postcode": "WF156PR"
},
{
"SchoolName": "Honley Church of England Voluntary Controlled Infant and Nursery School",
"Postcode": "HD96AU"
},
{
"SchoolName": "Crowlees Church of England Voluntary Controlled Junior and Infant School",
"Postcode": "WF149PD"
},
{
"SchoolName": "All Hallows' CofE (VA) Infant and Nursery School",
"Postcode": "HD58XW"
},
{
"SchoolName": "Battyeford CofE (VC) Primary School",
"Postcode": "WF149QH"
},
{
"SchoolName": "Birkenshaw Church of England Voluntary Controlled Primary School",
"Postcode": "BD112JE"
},
{
"SchoolName": "St Mary's Catholic Primary School, Batley",
"Postcode": "WF178PH"
},
{
"SchoolName": "St Joseph's Catholic Primary School (Dewsbury)",
"Postcode": "WF134HY"
},
{
"SchoolName": "South Crosland Church of England Voluntary Aided Junior School",
"Postcode": "HD47HF"
},
{
"SchoolName": "Batley Parish Church of England Voluntary Aided Junior Infant and Nursery School",
"Postcode": "WF178PA"
},
{
"SchoolName": "St Peter's Church of England Voluntary Aided Junior, Infant and Early Years School",
"Postcode": "WF179HN"
},
{
"SchoolName": "St John's Church of England Voluntary Aided Junior and Infant School",
"Postcode": "HD74QQ"
},
{
"SchoolName": "Linthwaite Ardron CofE (Voluntary Aided) Junior and Infant School",
"Postcode": "HD75TA"
},
{
"SchoolName": "Cumberworth Church of England Voluntary Aided First School",
"Postcode": "HD88NU"
},
{
"SchoolName": "Denby Church of England Voluntary Aided First School",
"Postcode": "HD88UN"
},
{
"SchoolName": "Kirkburton Church of England Voluntary Aided First School",
"Postcode": "HD80SG"
},
{
"SchoolName": "Helme Church of England Voluntary Aided Junior and Infant School",
"Postcode": "HD95RW"
},
{
"SchoolName": "Gomersal St Mary's Church of England Voluntary Controlled Primary School",
"Postcode": "BD194NA"
},
{
"SchoolName": "Holy Spirit Catholic Primary School",
"Postcode": "WF169EA"
},
{
"SchoolName": "St Joseph's Catholic Primary School (Huddersfield)",
"Postcode": "HD59HU"
},
{
"SchoolName": "St Patrick's Catholic Primary School, Huddersfield",
"Postcode": "HD22BJ"
},
{
"SchoolName": "Our Lady of Lourdes Catholic Primary School",
"Postcode": "HD21EA"
},
{
"SchoolName": "St Patrick's Catholic Primary School, Birstall",
"Postcode": "WF179LQ"
},
{
"SchoolName": "St Paulinus Catholic Primary School",
"Postcode": "WF133QE"
},
{
"SchoolName": "Royds Hall Community School",
"Postcode": "HD34HA"
},
{
"SchoolName": "Netherhall Learning Campus High School",
"Postcode": "HD59PG"
},
{
"SchoolName": "Almondbury Community School",
"Postcode": "HD58PQ"
},
{
"SchoolName": "Newsome High School and Sports College",
"Postcode": "HD46JN"
},
{
"SchoolName": "Honley High School",
"Postcode": "HD96QJ"
},
{
"SchoolName": "Holmfirth High School",
"Postcode": "HD97SE"
},
{
"SchoolName": "Westborough High School",
"Postcode": "WF132JE"
},
{
"SchoolName": "Spen Valley High School",
"Postcode": "WF157LX"
},
{
"SchoolName": "Whitcliffe Mount School",
"Postcode": "BD193AQ"
},
{
"SchoolName": "All Saints Catholic College Specialist in Humanities",
"Postcode": "HD22JT"
},
{
"SchoolName": "Huddersfield Grammar School",
"Postcode": "HD14QX"
},
{
"SchoolName": "The Mount School",
"Postcode": "HD22AP"
},
{
"SchoolName": "Institute of Islamic Education",
"Postcode": "WF129NG"
},
{
"SchoolName": "Zakaria Muslim Girls' High School",
"Postcode": "WF176AJ"
},
{
"SchoolName": "Islamia Girls' High School",
"Postcode": "HD13JP"
},
{
"SchoolName": "Madni Muslim Girls' High School",
"Postcode": "WF129AY"
},
{
"SchoolName": "The Branch Christian School",
"Postcode": "WF134LA"
},
{
"SchoolName": "Hollybank School",
"Postcode": "WF140DQ"
},
{
"SchoolName": "Woodley School and College",
"Postcode": "HD58JE"
},
{
"SchoolName": "Ravenshall School",
"Postcode": "WF129EE"
},
{
"SchoolName": "Lydgate School",
"Postcode": "HD91LS"
},
{
"SchoolName": "Fairfield School",
"Postcode": "WF178AS"
},
{
"SchoolName": "Guiseley Primary School",
"Postcode": "LS209DA"
},
{
"SchoolName": "Rawdon Littlemoor Primary School",
"Postcode": "LS196DD"
},
{
"SchoolName": "Scholes (Elmet) Primary School",
"Postcode": "LS154BJ"
},
{
"SchoolName": "Horsforth Featherbank Primary School",
"Postcode": "LS184QP"
},
{
"SchoolName": "Churwell Primary School",
"Postcode": "LS279HR"
},
{
"SchoolName": "Seven Hills Primary School",
"Postcode": "LS278LA"
},
{
"SchoolName": "Calverley Parkside Primary School",
"Postcode": "LS285PQ"
},
{
"SchoolName": "Westroyd Primary School and Nursery",
"Postcode": "LS285BH"
},
{
"SchoolName": "Greenside Primary School",
"Postcode": "LS288NZ"
},
{
"SchoolName": "Carlton Primary School",
"Postcode": "WF33RE"
},
{
"SchoolName": "Robin Hood Primary School",
"Postcode": "WF33BG"
},
{
"SchoolName": "Thorpe Primary School",
"Postcode": "WF33DG"
},
{
"SchoolName": "Rothwell Haigh Road Infant School",
"Postcode": "LS260NQ"
},
{
"SchoolName": "Woodlesford Primary School",
"Postcode": "LS268RD"
},
{
"SchoolName": "Yeadon Westfield Junior School",
"Postcode": "LS197HW"
},
{
"SchoolName": "Pudsey Tyersal Primary School",
"Postcode": "BD48ER"
},
{
"SchoolName": "Oulton Primary School",
"Postcode": "LS268NT"
},
{
"SchoolName": "Bramham Primary School",
"Postcode": "LS236JQ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "LS288EP"
},
{
"SchoolName": "West End Primary School",
"Postcode": "LS185JP"
},
{
"SchoolName": "Southroyd Primary and Nursery School",
"Postcode": "LS288AT"
},
{
"SchoolName": "Gildersome Primary School",
"Postcode": "LS277AB"
},
{
"SchoolName": "Farsley Springbank Primary School",
"Postcode": "LS285LE"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "LS286AB"
},
{
"SchoolName": "Victoria Junior School",
"Postcode": "LS260RA"
},
{
"SchoolName": "Crossley Street Primary School",
"Postcode": "LS226RT"
},
{
"SchoolName": "Tranmere Park Primary School",
"Postcode": "LS208JJ"
},
{
"SchoolName": "Queensway Primary School",
"Postcode": "LS197LF"
},
{
"SchoolName": "Yeadon Westfield Infant School",
"Postcode": "LS197NQ"
},
{
"SchoolName": "Horsforth Newlaithes Primary School",
"Postcode": "LS184PT"
},
{
"SchoolName": "Westbrook Lane Primary School",
"Postcode": "LS185AH"
},
{
"SchoolName": "Lowtown Primary School",
"Postcode": "LS289BB"
},
{
"SchoolName": "Birchfield Primary School",
"Postcode": "LS277HU"
},
{
"SchoolName": "Morley Victoria Primary School",
"Postcode": "LS279NW"
},
{
"SchoolName": "Bardsey Primary School",
"Postcode": "LS179DG"
},
{
"SchoolName": "Primrose Lane Primary School",
"Postcode": "LS236DX"
},
{
"SchoolName": "Wigton Moor Primary School",
"Postcode": "LS178RU"
},
{
"SchoolName": "Ninelands Primary School",
"Postcode": "LS251NT"
},
{
"SchoolName": "Broadgate Primary School",
"Postcode": "LS185AF"
},
{
"SchoolName": "Deighton Gates Primary School",
"Postcode": "LS227XL"
},
{
"SchoolName": "Ashfield Primary School",
"Postcode": "LS212DF"
},
{
"SchoolName": "Westgate Primary School",
"Postcode": "LS213JS"
},
{
"SchoolName": "Otley the Whartons Primary School",
"Postcode": "LS212BS"
},
{
"SchoolName": "Bramhope Primary School",
"Postcode": "LS169BR"
},
{
"SchoolName": "Beecroft Primary School",
"Postcode": "LS42TF"
},
{
"SchoolName": "Blenheim Primary School",
"Postcode": "LS29EX"
},
{
"SchoolName": "Brudenell Primary School",
"Postcode": "LS61EW"
},
{
"SchoolName": "Iveson Primary School",
"Postcode": "LS166LW"
},
{
"SchoolName": "Kirkstall Valley Primary School",
"Postcode": "LS42QZ"
},
{
"SchoolName": "Little London Community Primary School",
"Postcode": "LS71SR"
},
{
"SchoolName": "Quarry Mount Primary School",
"Postcode": "LS62JP"
},
{
"SchoolName": "Spring Bank Primary School",
"Postcode": "LS61AD"
},
{
"SchoolName": "Rosebank Primary School",
"Postcode": "LS31JP"
},
{
"SchoolName": "Adel Primary School",
"Postcode": "LS168DY"
},
{
"SchoolName": "Hawksworth Wood Primary School",
"Postcode": "LS53QE"
},
{
"SchoolName": "Cookridge Primary School",
"Postcode": "LS167DH"
},
{
"SchoolName": "Ireland Wood Primary School",
"Postcode": "LS166BW"
},
{
"SchoolName": "Weetwood Primary School",
"Postcode": "LS165NW"
},
{
"SchoolName": "Bankside Primary School",
"Postcode": "LS85AW"
},
{
"SchoolName": "Chapel Allerton Primary School",
"Postcode": "LS73PD"
},
{
"SchoolName": "Gledhow Primary School",
"Postcode": "LS81PL"
},
{
"SchoolName": "Talbot Primary School",
"Postcode": "LS81AF"
},
{
"SchoolName": "Bracken Edge Primary School",
"Postcode": "LS74HE"
},
{
"SchoolName": "Kerr Mackie Primary School",
"Postcode": "LS81NE"
},
{
"SchoolName": "Alwoodley Primary School",
"Postcode": "LS175HX"
},
{
"SchoolName": "Carr Manor Primary School",
"Postcode": "LS175DJ"
},
{
"SchoolName": "Highfield Primary School",
"Postcode": "LS178DJ"
},
{
"SchoolName": "Moor Allerton Hall Primary School",
"Postcode": "LS176QP"
},
{
"SchoolName": "Moortown Primary School",
"Postcode": "LS176DR"
},
{
"SchoolName": "Shadwell Primary School",
"Postcode": "LS178JF"
},
{
"SchoolName": "Beechwood Primary School",
"Postcode": "LS146QB"
},
{
"SchoolName": "Grange Farm Primary School",
"Postcode": "LS141AX"
},
{
"SchoolName": "Grimes Dyke Primary School",
"Postcode": "LS145BY"
},
{
"SchoolName": "Harehills Primary School",
"Postcode": "LS85DQ"
},
{
"SchoolName": "Hovingham Primary School",
"Postcode": "LS83QY"
},
{
"SchoolName": "Richmond Hill Primary School",
"Postcode": "LS98PN"
},
{
"SchoolName": "Seacroft Grange Primary School",
"Postcode": "LS146JR"
},
{
"SchoolName": "Colton Primary School",
"Postcode": "LS159AL"
},
{
"SchoolName": "White Laith Primary School",
"Postcode": "LS142BL"
},
{
"SchoolName": "Wykebeck Primary School",
"Postcode": "LS96QH"
},
{
"SchoolName": "Cross Gates Primary School",
"Postcode": "LS157NB"
},
{
"SchoolName": "Shakespeare Primary School",
"Postcode": "LS97HP"
},
{
"SchoolName": "Austhorpe Primary School",
"Postcode": "LS158TP"
},
{
"SchoolName": "Manston Primary School",
"Postcode": "LS158SD"
},
{
"SchoolName": "Templenewsam Halton Primary School",
"Postcode": "LS157SY"
},
{
"SchoolName": "Whitkirk Primary School",
"Postcode": "LS150EU"
},
{
"SchoolName": "Parklands Primary School",
"Postcode": "LS146ED"
},
{
"SchoolName": "Swarcliffe Primary School",
"Postcode": "LS145JW"
},
{
"SchoolName": "Fieldhead Carr Primary School",
"Postcode": "LS142EG"
},
{
"SchoolName": "Beeston Primary School",
"Postcode": "LS118PN"
},
{
"SchoolName": "Windmill Primary School",
"Postcode": "LS103HQ"
},
{
"SchoolName": "Greenmount Primary School",
"Postcode": "LS116BA"
},
{
"SchoolName": "Hunslet Carr Primary School",
"Postcode": "LS102DN"
},
{
"SchoolName": "Hunslet Moor Primary School",
"Postcode": "LS115EL"
},
{
"SchoolName": "Ingram Road Primary School",
"Postcode": "LS119LA"
},
{
"SchoolName": "Middleton Primary School",
"Postcode": "LS104HU"
},
{
"SchoolName": "Westwood Primary School",
"Postcode": "LS104NU"
},
{
"SchoolName": "Low Road Primary School",
"Postcode": "LS102PS"
},
{
"SchoolName": "Clapgate Primary School",
"Postcode": "LS104AW"
},
{
"SchoolName": "Hugh Gaitskell Primary School",
"Postcode": "LS118AB"
},
{
"SchoolName": "Armley Primary School",
"Postcode": "LS122AY"
},
{
"SchoolName": "Bramley Primary School",
"Postcode": "LS133DP"
},
{
"SchoolName": "Castleton Primary School",
"Postcode": "LS121JZ"
},
{
"SchoolName": "Cobden Primary School",
"Postcode": "LS125LA"
},
{
"SchoolName": "Park Spring Primary School",
"Postcode": "LS134EH"
},
{
"SchoolName": "Raynville Primary School",
"Postcode": "LS132TQ"
},
{
"SchoolName": "Stanningley Primary School",
"Postcode": "LS286PE"
},
{
"SchoolName": "Summerfield Primary School",
"Postcode": "LS131DQ"
},
{
"SchoolName": "Five Lanes Primary School",
"Postcode": "LS124NB"
},
{
"SchoolName": "Whingate Primary School",
"Postcode": "LS123DS"
},
{
"SchoolName": "Whitecote Primary School",
"Postcode": "LS132LQ"
},
{
"SchoolName": "Lower Wortley Primary School",
"Postcode": "LS124PX"
},
{
"SchoolName": "Lawns Park Primary School",
"Postcode": "LS125EX"
},
{
"SchoolName": "Greenhill Primary School",
"Postcode": "LS134JJ"
},
{
"SchoolName": "Swinnow Primary School",
"Postcode": "LS134PG"
},
{
"SchoolName": "Farsley Farfield Primary School",
"Postcode": "LS285ED"
},
{
"SchoolName": "Rothwell Primary School",
"Postcode": "LS260DJ"
},
{
"SchoolName": "Sharp Lane Primary School",
"Postcode": "LS104QE"
},
{
"SchoolName": "Aberford Church of England Voluntary Controlled Primary School",
"Postcode": "LS253BU"
},
{
"SchoolName": "Rawdon St Peter's Church of England Voluntary Controlled Primary School",
"Postcode": "LS196PP"
},
{
"SchoolName": "Barwick-in-Elmet Church of England Voluntary Controlled Primary School",
"Postcode": "LS154HL"
},
{
"SchoolName": "Harewood Church of England Voluntary Controlled Primary School",
"Postcode": "LS179LH"
},
{
"SchoolName": "St Margaret's Church of England Voluntary Controlled Primary School",
"Postcode": "LS185BL"
},
{
"SchoolName": "Micklefield Church of England Voluntary Controlled Primary School",
"Postcode": "LS254AQ"
},
{
"SchoolName": "Thorner Church of England Voluntary Controlled Primary School",
"Postcode": "LS143JD"
},
{
"SchoolName": "St James' Church of England Voluntary Controlled Primary School",
"Postcode": "LS226JS"
},
{
"SchoolName": "Calverley Church of England Voluntary Aided Primary School",
"Postcode": "LS285NF"
},
{
"SchoolName": "St Mary's Church of England Controlled Primary School Boston Spa",
"Postcode": "LS236DB"
},
{
"SchoolName": "Pool-in-Wharfedale Church of England Voluntary Controlled Primary School",
"Postcode": "LS211LG"
},
{
"SchoolName": "Burley St Matthias Church of England Voluntary Controlled Primary School",
"Postcode": "LS42HY"
},
{
"SchoolName": "Middleton St Mary's Church of England Voluntary Controlled Primary School",
"Postcode": "LS103SW"
},
{
"SchoolName": "Bramley St Peter's Church of England Primary School",
"Postcode": "LS133NE"
},
{
"SchoolName": "Christ Church Upper Armley Church of England Voluntary Controlled Primary School",
"Postcode": "LS123NU"
},
{
"SchoolName": "St Bartholomew's CofE Voluntary Controlled Primary School",
"Postcode": "LS121SF"
},
{
"SchoolName": "Roundhay St John's Church of England Primary School",
"Postcode": "LS82QJ"
},
{
"SchoolName": "St Oswald's Church of England Primary School",
"Postcode": "LS209BT"
},
{
"SchoolName": "Hawksworth Church of England Primary School",
"Postcode": "LS208NX"
},
{
"SchoolName": "<NAME>' CofE VA Primary School, Thorp Arch",
"Postcode": "LS237AQ"
},
{
"SchoolName": "<NAME>' Church of England Primary School",
"Postcode": "LS225BS"
},
{
"SchoolName": "St Edward's Catholic Primary School, Boston Spa",
"Postcode": "LS236DL"
},
{
"SchoolName": "St Francis Catholic Primary School, Morley",
"Postcode": "LS279LX"
},
{
"SchoolName": "Rothwell St Mary's RC Primary School",
"Postcode": "LS260BJ"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Wetherby",
"Postcode": "LS226PR"
},
{
"SchoolName": "St Anthony's Catholic Primary School, Beeston",
"Postcode": "LS117JS"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "LS83PF"
},
{
"SchoolName": "Christ The King Catholic Primary School",
"Postcode": "LS132DX"
},
{
"SchoolName": "Corpus Christi Catholic Primary School",
"Postcode": "LS90HA"
},
{
"SchoolName": "St Francis of Assisi Catholic Primary School",
"Postcode": "LS116RX"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "LS122LH"
},
{
"SchoolName": "St Urban's Catholic Primary School",
"Postcode": "LS64QD"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Hunslet",
"Postcode": "LS102AD"
},
{
"SchoolName": "St Nicholas Catholic Primary School",
"Postcode": "LS96QY"
},
{
"SchoolName": "Our Lady of Good Counsel Catholic Primary School",
"Postcode": "LS141EP"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "LS42TF"
},
{
"SchoolName": "St Paul's Catholic Primary School",
"Postcode": "LS175ES"
},
{
"SchoolName": "St Philip's Catholic Primary and Nursery School",
"Postcode": "LS103SL"
},
{
"SchoolName": "Immaculate Heart of Mary Catholic Primary School",
"Postcode": "LS176SX"
},
{
"SchoolName": "St Patrick Catholic Primary School",
"Postcode": "LS97QL"
},
{
"SchoolName": "Holy Rosary and St Anne's Catholic Primary School",
"Postcode": "LS74AW"
},
{
"SchoolName": "St Theresa's Catholic Primary School",
"Postcode": "LS158RQ"
},
{
"SchoolName": "Adel St John the Baptist Church of England Primary School",
"Postcode": "LS168EX"
},
{
"SchoolName": "Cookridge Holy Trinity Church of England Primary School",
"Postcode": "LS167EZ"
},
{
"SchoolName": "Kirkstall St Stephen's Church of England Primary School",
"Postcode": "LS53JD"
},
{
"SchoolName": "Meanwood Church of England Primary School",
"Postcode": "LS64LD"
},
{
"SchoolName": "St Matthew's Church of England Aided Primary School",
"Postcode": "LS73QF"
},
{
"SchoolName": "All Saint's Richmond Hill Church of England Primary School",
"Postcode": "LS99AD"
},
{
"SchoolName": "St Peter's Church of England Primary School, Leeds",
"Postcode": "LS97SG"
},
{
"SchoolName": "Whinmoor St Paul's Church of England Primary School",
"Postcode": "LS141EG"
},
{
"SchoolName": "Beeston Hill St Luke's Church of England Primary School",
"Postcode": "LS118ND"
},
{
"SchoolName": "Hunslet St Mary's Church of England Primary School",
"Postcode": "LS102QY"
},
{
"SchoolName": "Brodetsky Primary School",
"Postcode": "LS177TN"
},
{
"SchoolName": "Lawnswood School",
"Postcode": "LS165AG"
},
{
"SchoolName": "Allerton High School",
"Postcode": "LS177AG"
},
{
"SchoolName": "Allerton Grange School",
"Postcode": "LS176SF"
},
{
"SchoolName": "Carr Manor Community School, Specialist Sports College",
"Postcode": "LS175DJ"
},
{
"SchoolName": "Temple Moor High School Science College",
"Postcode": "LS150PT"
},
{
"SchoolName": "Ralph Thoresby School",
"Postcode": "LS167RX"
},
{
"SchoolName": "Roundhay School",
"Postcode": "LS81ND"
},
{
"SchoolName": "Pudsey Grangefield School",
"Postcode": "LS287ND"
},
{
"SchoolName": "Benton Park School",
"Postcode": "LS196LX"
},
{
"SchoolName": "Guiseley School",
"Postcode": "LS208DT"
},
{
"SchoolName": "Priesthorpe School",
"Postcode": "LS285SG"
},
{
"SchoolName": "Wetherby High School",
"Postcode": "LS226JS"
},
{
"SchoolName": "Boston Spa School",
"Postcode": "LS236RW"
},
{
"SchoolName": "Cardinal Heenan Catholic High School",
"Postcode": "LS64QE"
},
{
"SchoolName": "Corpus Christi Catholic College",
"Postcode": "LS90TT"
},
{
"SchoolName": "Mount St Mary's Catholic High School",
"Postcode": "LS98LA"
},
{
"SchoolName": "<NAME> CofE Primary School",
"Postcode": "WF102BD"
},
{
"SchoolName": "Moorlands School",
"Postcode": "LS165PF"
},
{
"SchoolName": "Richmond House School",
"Postcode": "LS165LG"
},
{
"SchoolName": "Gateways School",
"Postcode": "LS179LE"
},
{
"SchoolName": "The Froebelian School",
"Postcode": "LS184LB"
},
{
"SchoolName": "Queenswood School",
"Postcode": "LS279EB"
},
{
"SchoolName": "Leeds Menorah School",
"Postcode": "LS176HQ"
},
{
"SchoolName": "The Grammar School At Leeds",
"Postcode": "LS178GS"
},
{
"SchoolName": "Woodhouse Grove School",
"Postcode": "BD100NR"
},
{
"SchoolName": "Fulneck School",
"Postcode": "LS288DS"
},
{
"SchoolName": "John Jamieson School",
"Postcode": "LS82PW"
},
{
"SchoolName": "St John's Catholic School for the Deaf (Boston Spa)",
"Postcode": "LS236DF"
},
{
"SchoolName": "Broomfield South SILC",
"Postcode": "LS103JP"
},
{
"SchoolName": "West Oaks SEN Specialist School and College",
"Postcode": "LS236DX"
},
{
"SchoolName": "Harewood Centre Nursery School",
"Postcode": "WF82ER"
},
{
"SchoolName": "Crigglestone Nursery School",
"Postcode": "WF43EB"
},
{
"SchoolName": "The Springfield Centre",
"Postcode": "WF28BB"
},
{
"SchoolName": "Crofton Junior School",
"Postcode": "WF41HJ"
},
{
"SchoolName": "<NAME> Infant School",
"Postcode": "WF62NU"
},
{
"SchoolName": "<NAME> Junior and Infant School",
"Postcode": "WF59AN"
},
{
"SchoolName": "Sitlington Netherton Junior and Infant School",
"Postcode": "WF44HQ"
},
{
"SchoolName": "Stanley Grove Primary and Nursery School",
"Postcode": "WF34NT"
},
{
"SchoolName": "Newton Hill Community School",
"Postcode": "WF12HR"
},
{
"SchoolName": "West Bretton Junior and Infant School",
"Postcode": "WF44LB"
},
{
"SchoolName": "Featherstone Girnhill Infant School",
"Postcode": "WF75JB"
},
{
"SchoolName": "Dimple Well Infant School and Nursery",
"Postcode": "WF58LB"
},
{
"SchoolName": "Streethouse, Junior, Infant and Nursery",
"Postcode": "WF76DJ"
},
{
"SchoolName": "Featherstone Purston Infant School",
"Postcode": "WF75HF"
},
{
"SchoolName": "Featherstone North Featherstone Junior and Infant School",
"Postcode": "WF76LW"
},
{
"SchoolName": "Normanton Altofts Junior School",
"Postcode": "WF62NF"
},
{
"SchoolName": "Wakefield Pinders Primary (JIN) School",
"Postcode": "WF13SQ"
},
{
"SchoolName": "Crigglestone Mackie Hill Junior and Infant School",
"Postcode": "WF43HW"
},
{
"SchoolName": "Crigglestone Dane Royd Junior and Infant School",
"Postcode": "WF43LZ"
},
{
"SchoolName": "Wakefield the Mount Junior and Infant School",
"Postcode": "WF28QW"
},
{
"SchoolName": "Wakefield Flanshaw Junior and Infant School",
"Postcode": "WF20AS"
},
{
"SchoolName": "Hendal Primary School",
"Postcode": "WF27QW"
},
{
"SchoolName": "Wakefield Greenhill Primary School",
"Postcode": "WF14LU"
},
{
"SchoolName": "Castleford Townville Infants' School",
"Postcode": "WF103QJ"
},
{
"SchoolName": "Castleford Wheldon Infant School and Nursery",
"Postcode": "WF101HF"
},
{
"SchoolName": "Ossett Southdale Church of England Voluntary Controlled Junior School",
"Postcode": "WF58BA"
},
{
"SchoolName": "Stanley St Peters Church of England Voluntary Controlled Primary School",
"Postcode": "WF34HS"
},
{
"SchoolName": "Featherstone Purston St Thomas Church of England Voluntary Controlled Junior School",
"Postcode": "WF75BG"
},
{
"SchoolName": "Methodist Voluntary Controlled Junior, Infant and Nursery School: With Communication Resource",
"Postcode": "WF27RU"
},
{
"SchoolName": "Alverthorpe St Paul's CofE (VA) School 3-11yrs",
"Postcode": "WF20BT"
},
{
"SchoolName": "Wakefield St Johns Church of England Voluntary Aided Junior and Infant School",
"Postcode": "WF13JP"
},
{
"SchoolName": "Normanton All Saints CofE Infant School",
"Postcode": "WF61NR"
},
{
"SchoolName": "Ossett Holy Trinity CofE VA Primary School",
"Postcode": "WF59DG"
},
{
"SchoolName": "Wakefield St Marys Church of England Voluntary Aided Primary School",
"Postcode": "WF14PE"
},
{
"SchoolName": "Sandal Castle VA Community Primary School",
"Postcode": "WF26AS"
},
{
"SchoolName": "Kettlethorpe High School, A Specialist Maths and Computing College",
"Postcode": "WF27EL"
},
{
"SchoolName": "Ackworth School",
"Postcode": "WF77LT"
},
{
"SchoolName": "Silcoates School",
"Postcode": "WF20PD"
},
{
"SchoolName": "Wakefield Girls' High School",
"Postcode": "WF12QS"
},
{
"SchoolName": "Queen Elizabeth Grammar School",
"Postcode": "WF13QX"
},
{
"SchoolName": "Wakefield Independent School",
"Postcode": "WF41QG"
},
{
"SchoolName": "Queen Elizabeth Grammar Junior School",
"Postcode": "WF13QY"
},
{
"SchoolName": "Highfield School",
"Postcode": "WF59BS"
},
{
"SchoolName": "Bensham Grove Nursery School",
"Postcode": "NE82XD"
},
{
"SchoolName": "Carr Hill Community Primary School",
"Postcode": "NE95NB"
},
{
"SchoolName": "Kelvin Grove Community Primary School",
"Postcode": "NE84UN"
},
{
"SchoolName": "South Street Community Primary School",
"Postcode": "NE84BB"
},
{
"SchoolName": "Bede Community Primary School",
"Postcode": "NE100DJ"
},
{
"SchoolName": "Oakfield Junior School",
"Postcode": "NE96JH"
},
{
"SchoolName": "Larkspur Community Primary School",
"Postcode": "NE96SS"
},
{
"SchoolName": "Oakfield Infant School",
"Postcode": "NE96JH"
},
{
"SchoolName": "Ravensworth Terrace Primary School",
"Postcode": "DH32PP"
},
{
"SchoolName": "Portobello Primary School",
"Postcode": "DH32LY"
},
{
"SchoolName": "Birtley East Community Primary School",
"Postcode": "DH31QQ"
},
{
"SchoolName": "Dunston Hill Community Primary School",
"Postcode": "NE119NX"
},
{
"SchoolName": "Emmaville Primary School",
"Postcode": "NE404ND"
},
{
"SchoolName": "High Spen Primary School",
"Postcode": "NE392BQ"
},
{
"SchoolName": "Swalwell Primary School",
"Postcode": "NE163HZ"
},
{
"SchoolName": "Winlaton West Lane Community Primary School",
"Postcode": "NE216PH"
},
{
"SchoolName": "Greenside Primary School",
"Postcode": "NE404AX"
},
{
"SchoolName": "Blaydon West Primary School",
"Postcode": "NE214PY"
},
{
"SchoolName": "Front Street Community Primary School",
"Postcode": "NE164AY"
},
{
"SchoolName": "Highfield Community Primary School",
"Postcode": "NE392JE"
},
{
"SchoolName": "Ryton Community Infant School",
"Postcode": "NE403AF"
},
{
"SchoolName": "Ryton Junior School",
"Postcode": "NE403AF"
},
{
"SchoolName": "Washingwell Community Primary School",
"Postcode": "NE164RB"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NE100UN"
},
{
"SchoolName": "Falla Park Community Primary School",
"Postcode": "NE109HP"
},
{
"SchoolName": "Brandling Primary School",
"Postcode": "NE100JB"
},
{
"SchoolName": "Lingey House Primary School",
"Postcode": "NE108DN"
},
{
"SchoolName": "The Drive Community Primary School",
"Postcode": "NE100PY"
},
{
"SchoolName": "White Mere Community Primary School",
"Postcode": "NE108BA"
},
{
"SchoolName": "Clover Hill Community Primary School",
"Postcode": "NE165SJ"
},
{
"SchoolName": "Crookhill Community Primary School",
"Postcode": "NE403ES"
},
{
"SchoolName": "Brighton Avenue Primary School",
"Postcode": "NE81XS"
},
{
"SchoolName": "Lobley Hill Primary School",
"Postcode": "NE110AT"
},
{
"SchoolName": "Wardley Primary School",
"Postcode": "NE108TX"
},
{
"SchoolName": "Glynwood Community Primary School",
"Postcode": "NE95SY"
},
{
"SchoolName": "Barley Mow Primary School",
"Postcode": "DH32DJ"
},
{
"SchoolName": "Windy Nook Primary School",
"Postcode": "NE109BD"
},
{
"SchoolName": "Colegate Community Primary School",
"Postcode": "NE109AH"
},
{
"SchoolName": "Roman Road Primary School",
"Postcode": "NE108SA"
},
{
"SchoolName": "Fellside Community Primary School",
"Postcode": "NE165AY"
},
{
"SchoolName": "Fell Dyke Community Primary School",
"Postcode": "NE97AA"
},
{
"SchoolName": "Caedmon Community Primary School",
"Postcode": "NE84LH"
},
{
"SchoolName": "Whickham Parochial Church of England Primary School",
"Postcode": "NE165QW"
},
{
"SchoolName": "Corpus Christi Catholic Primary School",
"Postcode": "NE84QL"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Gateshead",
"Postcode": "NE81LR"
},
{
"SchoolName": "St Oswald's Roman Catholic Voluntary Aided Primary School",
"Postcode": "NE97LH"
},
{
"SchoolName": "St Peter's Roman Catholic Voluntary Aided Primary School",
"Postcode": "NE95TU"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "NE97HX"
},
{
"SchoolName": "St Joseph's Catholic Junior School, Birtley",
"Postcode": "DH32PN"
},
{
"SchoolName": "St Joseph's Catholic Infant School, Birtley",
"Postcode": "DH31LU"
},
{
"SchoolName": "St Agnes' Catholic Primary School",
"Postcode": "NE404UN"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Highfield",
"Postcode": "NE392JE"
},
{
"SchoolName": "St Mary and St Thomas Aquinas Catholic Primary School",
"Postcode": "NE214NE"
},
{
"SchoolName": "St <NAME>eri Roman Catholic Primary School",
"Postcode": "NE82QU"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Blaydon",
"Postcode": "NE214BG"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School",
"Postcode": "NE164HB"
},
{
"SchoolName": "St Alban's Catholic Primary School",
"Postcode": "NE100QY"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "NE108PP"
},
{
"SchoolName": "St Wilfrid's Roman Catholic Voluntary Aided Primary School",
"Postcode": "NE100DJ"
},
{
"SchoolName": "Heworth Grange Comprehensive School",
"Postcode": "NE100PT"
},
{
"SchoolName": "Kingsmeadow Community Comprehensive School",
"Postcode": "NE119NX"
},
{
"SchoolName": "Gateshead Jewish Boarding School",
"Postcode": "NE81HG"
},
{
"SchoolName": "Gateshead Jewish Primary School",
"Postcode": "NE84EA"
},
{
"SchoolName": "Gateshead Jewish Nursery School",
"Postcode": "NE81RB"
},
{
"SchoolName": "Emmanuel College",
"Postcode": "NE110AN"
},
{
"SchoolName": "Furrowfield School",
"Postcode": "NE109RZ"
},
{
"SchoolName": "Ashfield Nursery School",
"Postcode": "NE46JR"
},
{
"SchoolName": "Cruddas Park Early Years Centre",
"Postcode": "NE47NL"
},
{
"SchoolName": "Atkinson Road Nursery School",
"Postcode": "NE48XT"
},
{
"SchoolName": "Newburn Manor Nursery School",
"Postcode": "NE158PY"
},
{
"SchoolName": "Monkchester Road Nursery School",
"Postcode": "NE62LJ"
},
{
"SchoolName": "Dinnington First School",
"Postcode": "NE137JY"
},
{
"SchoolName": "Archibald First School",
"Postcode": "NE31EB"
},
{
"SchoolName": "South Gosforth First School",
"Postcode": "NE31YF"
},
{
"SchoolName": "Regent Farm First School",
"Postcode": "NE33PE"
},
{
"SchoolName": "Beech Hill Primary School",
"Postcode": "NE52LW"
},
{
"SchoolName": "Gosforth Park First School",
"Postcode": "NE35JQ"
},
{
"SchoolName": "Broadway East First School",
"Postcode": "NE35JQ"
},
{
"SchoolName": "Grange First School",
"Postcode": "NE32NP"
},
{
"SchoolName": "Throckley Primary School",
"Postcode": "NE159DY"
},
{
"SchoolName": "Newburn Manor Primary School",
"Postcode": "NE158PD"
},
{
"SchoolName": "Walbottle Village Primary School",
"Postcode": "NE158JL"
},
{
"SchoolName": "West Denton Primary School",
"Postcode": "NE51DN"
},
{
"SchoolName": "Knop Law Primary School",
"Postcode": "NE51DS"
},
{
"SchoolName": "Milecastle Primary School",
"Postcode": "NE51LH"
},
{
"SchoolName": "Waverley Primary School",
"Postcode": "NE157QZ"
},
{
"SchoolName": "Simonside Primary School",
"Postcode": "NE54LG"
},
{
"SchoolName": "Lemington Riverside Primary School",
"Postcode": "NE158RR"
},
{
"SchoolName": "Westerhope Primary School",
"Postcode": "NE51NE"
},
{
"SchoolName": "Byker Primary School",
"Postcode": "NE62AT"
},
{
"SchoolName": "Benton Park Primary School",
"Postcode": "NE77SS"
},
{
"SchoolName": "Hawthorn Primary School",
"Postcode": "NE46SB"
},
{
"SchoolName": "Canning Street Primary School",
"Postcode": "NE48PA"
},
{
"SchoolName": "Chillingham Road Primary School",
"Postcode": "NE65XX"
},
{
"SchoolName": "Cragside Primary School",
"Postcode": "NE77EL"
},
{
"SchoolName": "Bridgewater Primary School",
"Postcode": "NE156NL"
},
{
"SchoolName": "Broadwood Primary School",
"Postcode": "NE157TB"
},
{
"SchoolName": "Ravenswood Primary School",
"Postcode": "NE65TU"
},
{
"SchoolName": "St Johns Primary School",
"Postcode": "NE48HE"
},
{
"SchoolName": "Westgate Hill Primary School",
"Postcode": "NE45JN"
},
{
"SchoolName": "Wingrove Primary School",
"Postcode": "NE49HN"
},
{
"SchoolName": "Hotspur Primary School",
"Postcode": "NE65PA"
},
{
"SchoolName": "Moorside Community Primary School",
"Postcode": "NE45AW"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "NE21XA"
},
{
"SchoolName": "Archbishop Runcie CofE First School",
"Postcode": "NE31US"
},
{
"SchoolName": "St Charles' RC Primary School",
"Postcode": "NE33HE"
},
{
"SchoolName": "St Oswald's RC Primary School",
"Postcode": "NE35LE"
},
{
"SchoolName": "St Mark's RC Primary School",
"Postcode": "NE54BT"
},
{
"SchoolName": "St George's RC Primary School",
"Postcode": "NE156XX"
},
{
"SchoolName": "St Cuthbert's RC Primary School",
"Postcode": "NE158JL"
},
{
"SchoolName": "St <NAME>ey RC Primary School",
"Postcode": "NE51DN"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "NE47JU"
},
{
"SchoolName": "English Martyrs' RC Primary School",
"Postcode": "NE52SA"
},
{
"SchoolName": "Sacred Heart RC Primary School",
"Postcode": "NE49XZ"
},
{
"SchoolName": "St Bede's RC Primary School",
"Postcode": "NE157HS"
},
{
"SchoolName": "St Cuthbert's Catholic Primary School",
"Postcode": "NE33QR"
},
{
"SchoolName": "St Catherine's RC Primary School",
"Postcode": "NE21PS"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "NE156JB"
},
{
"SchoolName": "St Lawrence's RC Primary School",
"Postcode": "NE62JX"
},
{
"SchoolName": "Our Lady and St Anne's RC Primary School",
"Postcode": "NE46EB"
},
{
"SchoolName": "St Michael's RC Primary School",
"Postcode": "NE47RE"
},
{
"SchoolName": "St Teresa's Catholic Primary School",
"Postcode": "NE65HN"
},
{
"SchoolName": "St Vincent's RC Primary School",
"Postcode": "NE62TX"
},
{
"SchoolName": "St Alban's RC Primary School",
"Postcode": "NE64HQ"
},
{
"SchoolName": "Gosforth Central Middle School",
"Postcode": "NE31UN"
},
{
"SchoolName": "Gosforth East Middle School",
"Postcode": "NE35JT"
},
{
"SchoolName": "Walbottle Campus",
"Postcode": "NE159TP"
},
{
"SchoolName": "Walker Technology College",
"Postcode": "NE64AW"
},
{
"SchoolName": "Heaton Manor School",
"Postcode": "NE77DP"
},
{
"SchoolName": "Newcastle High School for Girls",
"Postcode": "NE24DS"
},
{
"SchoolName": "Newcastle Preparatory School",
"Postcode": "NE24RH"
},
{
"SchoolName": "Westfield School",
"Postcode": "NE34HS"
},
{
"SchoolName": "Newcastle School for Boys",
"Postcode": "NE34ES"
},
{
"SchoolName": "<NAME>'s Senior School",
"Postcode": "NE49YJ"
},
{
"SchoolName": "Royal Grammar School",
"Postcode": "NE24DX"
},
{
"SchoolName": "Northern Counties School",
"Postcode": "NE23BB"
},
{
"SchoolName": "<NAME> Memorial Nursery School",
"Postcode": "NE304AG"
},
{
"SchoolName": "Moorbridge",
"Postcode": "NE270HJ"
},
{
"SchoolName": "Cullercoats Primary School",
"Postcode": "NE304PB"
},
{
"SchoolName": "King Edward Primary School",
"Postcode": "NE302BD"
},
{
"SchoolName": "Spring Gardens Primary School",
"Postcode": "NE290HP"
},
{
"SchoolName": "Monkhouse Primary School",
"Postcode": "NE303SH"
},
{
"SchoolName": "Whitehouse Primary School",
"Postcode": "NE298PE"
},
{
"SchoolName": "Preston Grange Primary School",
"Postcode": "NE299QL"
},
{
"SchoolName": "Shiremoor Primary School",
"Postcode": "NE270PW"
},
{
"SchoolName": "Backworth Park Primary School",
"Postcode": "NE270AH"
},
{
"SchoolName": "Holystone Primary School",
"Postcode": "NE270DA"
},
{
"SchoolName": "Westmoor Primary School",
"Postcode": "NE126SA"
},
{
"SchoolName": "Rockcliffe First School",
"Postcode": "NE262NR"
},
{
"SchoolName": "Appletree Gardens First School",
"Postcode": "NE258XS"
},
{
"SchoolName": "Southridge First School",
"Postcode": "NE259UD"
},
{
"SchoolName": "Amberley Primary School",
"Postcode": "NE126SQ"
},
{
"SchoolName": "Bailey Green Primary School",
"Postcode": "NE126QL"
},
{
"SchoolName": "South Wellfield First School",
"Postcode": "NE259QL"
},
{
"SchoolName": "Marine Park First School",
"Postcode": "NE261LT"
},
{
"SchoolName": "Coquet Park First School",
"Postcode": "NE261TQ"
},
{
"SchoolName": "Langley First School",
"Postcode": "NE259DL"
},
{
"SchoolName": "Carville Primary School",
"Postcode": "NE286AX"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NE289HA"
},
{
"SchoolName": "Battle Hill Primary School",
"Postcode": "NE289DH"
},
{
"SchoolName": "Richardson Dees Primary School",
"Postcode": "NE287RT"
},
{
"SchoolName": "Stephenson Memorial Primary School",
"Postcode": "NE280AG"
},
{
"SchoolName": "Redesdale Primary School",
"Postcode": "NE288TS"
},
{
"SchoolName": "Whitley Lodge First School",
"Postcode": "NE263HW"
},
{
"SchoolName": "Balliol Primary School",
"Postcode": "NE128QP"
},
{
"SchoolName": "Benton Dene Primary School",
"Postcode": "NE128FD"
},
{
"SchoolName": "Forest Hall Primary School",
"Postcode": "NE129BA"
},
{
"SchoolName": "Ivy Road Primary School",
"Postcode": "NE129AP"
},
{
"SchoolName": "Denbigh Community Primary School",
"Postcode": "NE280DS"
},
{
"SchoolName": "Greenfields Community Primary School",
"Postcode": "NE136NB"
},
{
"SchoolName": "Hazlewood Community Primary School",
"Postcode": "NE136JJ"
},
{
"SchoolName": "Fordley Primary School",
"Postcode": "NE237AL"
},
{
"SchoolName": "Burradon Community Primary School",
"Postcode": "NE237NG"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "NE302AD"
},
{
"SchoolName": "St Bartholomew's Church of England Primary School (Aided)",
"Postcode": "NE128FA"
},
{
"SchoolName": "St Cuthberts Roman Catholic Primary School Aided",
"Postcode": "NE290BU"
},
{
"SchoolName": "St Josephs Roman Catholic Primary School Aided",
"Postcode": "NE297BT"
},
{
"SchoolName": "St Marys Roman Catholic Primary School Aided",
"Postcode": "NE303EY"
},
{
"SchoolName": "St Marys Roman Catholic Primary School Aided",
"Postcode": "NE127AB"
},
{
"SchoolName": "St Stephens Roman Catholic Primary School Aided",
"Postcode": "NE128FA"
},
{
"SchoolName": "Star of the Sea RC VA Primary",
"Postcode": "NE259EG"
},
{
"SchoolName": "St Aidan's Roman Catholic Primary School",
"Postcode": "NE280EP"
},
{
"SchoolName": "St Bernadettes Roman Catholic Primary School Aided",
"Postcode": "NE289JW"
},
{
"SchoolName": "St Columbas Roman Catholic Primary School Aided",
"Postcode": "NE288EN"
},
{
"SchoolName": "Wallsend St Peter's CofE Aided Primary School",
"Postcode": "NE286PY"
},
{
"SchoolName": "Marden High School",
"Postcode": "NE303RZ"
},
{
"SchoolName": "Norham High School",
"Postcode": "NE297BU"
},
{
"SchoolName": "Marden Bridge Middle School",
"Postcode": "NE258RW"
},
{
"SchoolName": "Valley Gardens Middle School",
"Postcode": "NE259AQ"
},
{
"SchoolName": "Monkseaton Middle School",
"Postcode": "NE258JN"
},
{
"SchoolName": "Whitley Bay High School",
"Postcode": "NE259AS"
},
{
"SchoolName": "<NAME> High School",
"Postcode": "NE126SA"
},
{
"SchoolName": "Burnside Business and Enterprise College",
"Postcode": "NE287LQ"
},
{
"SchoolName": "Churchill Community College",
"Postcode": "NE287TN"
},
{
"SchoolName": "Monkseaton High School",
"Postcode": "NE259EQ"
},
{
"SchoolName": "<NAME> Community High School",
"Postcode": "NE299PU"
},
{
"SchoolName": "Longbenton High School",
"Postcode": "NE128ER"
},
{
"SchoolName": "Wellfield Middle School",
"Postcode": "NE259QW"
},
{
"SchoolName": "<NAME>'s Junior School",
"Postcode": "NE24NG"
},
{
"SchoolName": "Woodlawn School",
"Postcode": "NE259DL"
},
{
"SchoolName": "Southlands School",
"Postcode": "NE302QR"
},
{
"SchoolName": "Benton Dene School",
"Postcode": "NE128FD"
},
{
"SchoolName": "Percy Hedley School",
"Postcode": "NE128YY"
},
{
"SchoolName": "Clervaux Nursery School",
"Postcode": "NE325UP"
},
{
"SchoolName": "<NAME> Nursery School",
"Postcode": "NE360DL"
},
{
"SchoolName": "Boldon Nursery School",
"Postcode": "NE359DG"
},
{
"SchoolName": "Alternative Education Service - The Beacon Centre",
"Postcode": "NE340QA"
},
{
"SchoolName": "Hadrian Primary School",
"Postcode": "NE332BB"
},
{
"SchoolName": "Laygate Community School",
"Postcode": "NE334JJ"
},
{
"SchoolName": "Mortimer Primary School",
"Postcode": "NE340RW"
},
{
"SchoolName": "Marine Park Primary School",
"Postcode": "NE332RD"
},
{
"SchoolName": "Stanhope Primary School",
"Postcode": "NE334SZ"
},
{
"SchoolName": "Biddick Hall Junior School",
"Postcode": "NE349SP"
},
{
"SchoolName": "Biddick Hall Infants' School",
"Postcode": "NE349JD"
},
{
"SchoolName": "Ashley Primary School",
"Postcode": "NE340QA"
},
{
"SchoolName": "Hedworth Lane Primary School",
"Postcode": "NE359JB"
},
{
"SchoolName": "Marsden Primary School",
"Postcode": "SR67HJ"
},
{
"SchoolName": "East Boldon Infants' School",
"Postcode": "NE360SW"
},
{
"SchoolName": "East Boldon Junior School",
"Postcode": "NE360DL"
},
{
"SchoolName": "Bede Burn Primary School",
"Postcode": "NE325NJ"
},
{
"SchoolName": "Valley View Primary School",
"Postcode": "NE325QY"
},
{
"SchoolName": "Dunn Street Primary School",
"Postcode": "NE323QL"
},
{
"SchoolName": "Simonside Primary School",
"Postcode": "NE324AU"
},
{
"SchoolName": "Hedworthfield Primary School",
"Postcode": "NE324QF"
},
{
"SchoolName": "Lord Blyton Primary School",
"Postcode": "NE349BN"
},
{
"SchoolName": "West Boldon Primary School",
"Postcode": "NE360HX"
},
{
"SchoolName": "Toner Avenue Primary School",
"Postcode": "NE312LJ"
},
{
"SchoolName": "Fellgate Primary School",
"Postcode": "NE324XA"
},
{
"SchoolName": "St Oswald's CofE Aided Primary School",
"Postcode": "NE311HT"
},
{
"SchoolName": "St Bede's RC Voluntary Aided Primary School, South Shields",
"Postcode": "NE334PG"
},
{
"SchoolName": "St Gregory's RC Voluntary Aided Primary School",
"Postcode": "NE346DZ"
},
{
"SchoolName": "SS Peter and Paul RC Voluntary Aided Primary School",
"Postcode": "NE334RD"
},
{
"SchoolName": "St Oswald's RC Voluntary Aided Primary School",
"Postcode": "NE348NS"
},
{
"SchoolName": "St Aloysius' RC Voluntary Aided Junior School",
"Postcode": "NE311BQ"
},
{
"SchoolName": "St Aloysius RC Voluntary Aided Infant School",
"Postcode": "NE311RZ"
},
{
"SchoolName": "St Matthew's RC Voluntary Aided Primary School",
"Postcode": "NE325YT"
},
{
"SchoolName": "St Mary's RC Voluntary Aided Primary School",
"Postcode": "NE324AW"
},
{
"SchoolName": "St James' RC Voluntary Aided Primary School",
"Postcode": "NE312BP"
},
{
"SchoolName": "St Joseph's RC Voluntary Aided Primary School",
"Postcode": "NE324PJ"
},
{
"SchoolName": "St Bede's RC Primary School, Jarrow",
"Postcode": "NE323AJ"
},
{
"SchoolName": "Mortimer Community College",
"Postcode": "NE334UG"
},
{
"SchoolName": "Boldon School",
"Postcode": "NE359DZ"
},
{
"SchoolName": "Hebburn Comprehensive School",
"Postcode": "NE312QU"
},
{
"SchoolName": "Bamburgh School",
"Postcode": "NE347TD"
},
{
"SchoolName": "Epinay Business and Enterprise School",
"Postcode": "NE325UP"
},
{
"SchoolName": "Millfield Community Nursery School",
"Postcode": "SR46JR"
},
{
"SchoolName": "Houghton Le Spring Nursery School",
"Postcode": "DH58AE"
},
{
"SchoolName": "Hetton-le-Hole Nursery School",
"Postcode": "DH59DG"
},
{
"SchoolName": "Hylton Red House Nursery School",
"Postcode": "SR55QL"
},
{
"SchoolName": "Usworth Colliery Nursery School",
"Postcode": "NE373BL"
},
{
"SchoolName": "Hetton Lyons Nursery School",
"Postcode": "DH50AH"
},
{
"SchoolName": "Oxclose Nursery School",
"Postcode": "NE380LA"
},
{
"SchoolName": "Mill Hill Nursery School",
"Postcode": "SR32PJ"
},
{
"SchoolName": "Pennywell Early Years Centre",
"Postcode": "SR49AX"
},
{
"SchoolName": "Barnes Junior School",
"Postcode": "SR47QF"
},
{
"SchoolName": "Broadway Junior School",
"Postcode": "SR48NW"
},
{
"SchoolName": "Grangetown Primary School",
"Postcode": "SR28PX"
},
{
"SchoolName": "Fulwell Junior School",
"Postcode": "SR69EE"
},
{
"SchoolName": "Grange Park Primary School",
"Postcode": "SR51EA"
},
{
"SchoolName": "Grindon Infant School",
"Postcode": "SR49QN"
},
{
"SchoolName": "Southwick Community Primary School",
"Postcode": "SR52JX"
},
{
"SchoolName": "Hudson Road Primary School",
"Postcode": "SR12AH"
},
{
"SchoolName": "Dame Dorothy Primary School",
"Postcode": "SR60EA"
},
{
"SchoolName": "Willow Fields Community Primary School",
"Postcode": "SR55RZ"
},
{
"SchoolName": "Mill Hill Primary School",
"Postcode": "SR32LE"
},
{
"SchoolName": "Seaburn Dene Primary School",
"Postcode": "SR68LG"
},
{
"SchoolName": "Ryhope Junior School",
"Postcode": "SR20RT"
},
{
"SchoolName": "South Hylton Primary School",
"Postcode": "SR40LS"
},
{
"SchoolName": "Castletown Primary School",
"Postcode": "SR53EQ"
},
{
"SchoolName": "East Rainton Primary School",
"Postcode": "DH59RA"
},
{
"SchoolName": "Easington Lane Primary School",
"Postcode": "DH50JT"
},
{
"SchoolName": "Usworth Colliery Primary School",
"Postcode": "NE373BL"
},
{
"SchoolName": "Springwell Village Primary School",
"Postcode": "NE97RX"
},
{
"SchoolName": "Hetton Primary School",
"Postcode": "DH59ND"
},
{
"SchoolName": "Lambton Primary School",
"Postcode": "NE380PL"
},
{
"SchoolName": "Rickleton Primary School",
"Postcode": "NE389EZ"
},
{
"SchoolName": "Richard Avenue Primary School",
"Postcode": "SR47LQ"
},
{
"SchoolName": "Marlborough Primary School",
"Postcode": "NE373BG"
},
{
"SchoolName": "Shiney Row Primary School",
"Postcode": "DH44QP"
},
{
"SchoolName": "Thorney Close Primary School",
"Postcode": "SR34BB"
},
{
"SchoolName": "Bernard Gilpin Primary School",
"Postcode": "DH58DA"
},
{
"SchoolName": "Hylton Castle Primary School",
"Postcode": "SR53RE"
},
{
"SchoolName": "Blackfell Primary School",
"Postcode": "NE371HA"
},
{
"SchoolName": "Barmston Village Primary School",
"Postcode": "NE388JA"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "SR20LW"
},
{
"SchoolName": "St Benet's Roman Catholic Voluntary Aided Primary School",
"Postcode": "SR69QU"
},
{
"SchoolName": "St Cuthbert's Roman Catholic Voluntary Aided Primary School",
"Postcode": "SR48HP"
},
{
"SchoolName": "St Mary's Roman Catholic Voluntary Aided Primary School",
"Postcode": "SR27QN"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Sunderland",
"Postcode": "SR46HY"
},
{
"SchoolName": "English Martyrs' Roman Catholic Voluntary Aided Primary School",
"Postcode": "SR55AU"
},
{
"SchoolName": "St Anne's Roman Catholic Voluntary Aided Primary School",
"Postcode": "SR49AA"
},
{
"SchoolName": "St <NAME> Roman Catholic Voluntary Aided Primary School",
"Postcode": "SR54JW"
},
{
"SchoolName": "St Patrick's Roman Catholic Voluntary Aided Primary School",
"Postcode": "SR20RQ"
},
{
"SchoolName": "St Leonard's Roman Catholic Voluntary Aided Primary School",
"Postcode": "SR32BB"
},
{
"SchoolName": "St Michael's Roman Catholic Voluntary Aided Primary School",
"Postcode": "DH58NF"
},
{
"SchoolName": "St Joseph's Washington RC School",
"Postcode": "NE387HU"
},
{
"SchoolName": "Our Lady Queen of Peace Roman Catholic Voluntary Aided Primary School",
"Postcode": "DH47JZ"
},
{
"SchoolName": "St Bede's Roman Catholic Voluntary Aided Primary School",
"Postcode": "NE372NP"
},
{
"SchoolName": "St <NAME>e Roman Catholic Voluntary Aided Primary School",
"Postcode": "NE380HL"
},
{
"SchoolName": "Thornhill School Business & Enterprise College",
"Postcode": "SR27NA"
},
{
"SchoolName": "Hetton School",
"Postcode": "DH59JZ"
},
{
"SchoolName": "Washington School",
"Postcode": "NE372AA"
},
{
"SchoolName": "St Robert of Newminster Roman Catholic School",
"Postcode": "NE388AF"
},
{
"SchoolName": "Argyle House School",
"Postcode": "SR27LA"
},
{
"SchoolName": "Thornhill Park School",
"Postcode": "SR27LA"
},
{
"SchoolName": "Sunningdale School",
"Postcode": "SR34HA"
},
{
"SchoolName": "Holme Court School",
"Postcode": "CB216BQ"
},
{
"SchoolName": "Wandsworth Hospital and Home Tuition Service",
"Postcode": "SW177DJ"
},
{
"SchoolName": "St Philips Marsh Nursery School and Barton Hill Childrens Centre/Cashmore Early Years Centre",
"Postcode": "BS20SU"
},
{
"SchoolName": "Filton Avenue Nursery School",
"Postcode": "BS70DL"
},
{
"SchoolName": "Little Hayes and Hillfields Early Years & Family Centre",
"Postcode": "BS162LL"
},
{
"SchoolName": "Ilminster Avenue Specialist Nursery School",
"Postcode": "BS41BX"
},
{
"SchoolName": "Rosemary Nursery School and Children's Centre",
"Postcode": "BS20DT"
},
{
"SchoolName": "Speedwell Nursery School",
"Postcode": "BS57SY"
},
{
"SchoolName": "St Pauls Nursery School & Children's Centre",
"Postcode": "BS29JF"
},
{
"SchoolName": "St Werburghs Park Nursery School",
"Postcode": "BS29UX"
},
{
"SchoolName": "Redcliffe Childrens Centre and Maintained Nursery School",
"Postcode": "BS16RR"
},
{
"SchoolName": "The Limes Nursery School",
"Postcode": "BS59AT"
},
{
"SchoolName": "Hartcliffe Nursery School and Children's Centre",
"Postcode": "BS130JW"
},
{
"SchoolName": "The Meriton Education and Support for Young Parents",
"Postcode": "BS20SZ"
},
{
"SchoolName": "Brunel Field Primary School",
"Postcode": "BS79JT"
},
{
"SchoolName": "Ashley Down Primary School",
"Postcode": "BS79PD"
},
{
"SchoolName": "Ashton Gate Primary School",
"Postcode": "BS31SZ"
},
{
"SchoolName": "Ashton Vale Primary School",
"Postcode": "BS32QG"
},
{
"SchoolName": "Nova Primary School",
"Postcode": "BS119NG"
},
{
"SchoolName": "Broomhill Junior School",
"Postcode": "BS44NZ"
},
{
"SchoolName": "Chester Park Junior School",
"Postcode": "BS163SY"
},
{
"SchoolName": "Chester Park Infant School",
"Postcode": "BS163QG"
},
{
"SchoolName": "Glenfrome Primary School",
"Postcode": "BS56TY"
},
{
"SchoolName": "Henleaze Infant School",
"Postcode": "BS94LG"
},
{
"SchoolName": "Luckwell Primary School",
"Postcode": "BS33ET"
},
{
"SchoolName": "St Anne's Infant School",
"Postcode": "BS43QJ"
},
{
"SchoolName": "Sefton Park Infant School",
"Postcode": "BS79BJ"
},
{
"SchoolName": "Sefton Park Junior School",
"Postcode": "BS79BJ"
},
{
"SchoolName": "Southville Primary School",
"Postcode": "BS31EB"
},
{
"SchoolName": "Summerhill Infant School",
"Postcode": "BS57LE"
},
{
"SchoolName": "Upper Horfield Primary School",
"Postcode": "BS70PU"
},
{
"SchoolName": "Holymead Primary School",
"Postcode": "BS44LE"
},
{
"SchoolName": "Headley Park Primary School",
"Postcode": "BS137QB"
},
{
"SchoolName": "Brentry Primary School",
"Postcode": "BS106RG"
},
{
"SchoolName": "Broomhill Infant School & Children's Centre",
"Postcode": "BS44UY"
},
{
"SchoolName": "Wansdyke Primary School",
"Postcode": "BS140DU"
},
{
"SchoolName": "Elmlea Infant School",
"Postcode": "BS93UU"
},
{
"SchoolName": "Cabot Primary School",
"Postcode": "BS29JE"
},
{
"SchoolName": "Roundhill Primary School",
"Postcode": "BA21LG"
},
{
"SchoolName": "Twerton Infant School",
"Postcode": "BA21QR"
},
{
"SchoolName": "The Meadows Primary School",
"Postcode": "BS306HS"
},
{
"SchoolName": "Redfield Edge Primary School",
"Postcode": "BS309TL"
},
{
"SchoolName": "Shield Road Primary School",
"Postcode": "BS70RR"
},
{
"SchoolName": "Hanham Abbots Junior School",
"Postcode": "BS153PN"
},
{
"SchoolName": "The Park Primary School",
"Postcode": "BS159TP"
},
{
"SchoolName": "Staple Hill Primary School",
"Postcode": "BS164NE"
},
{
"SchoolName": "Cadbury Heath Primary School",
"Postcode": "BS308GB"
},
{
"SchoolName": "Parkwall Primary School",
"Postcode": "BS308AA"
},
{
"SchoolName": "Alexander Hosea Primary School",
"Postcode": "GL128PF"
},
{
"SchoolName": "Hambrook Primary School",
"Postcode": "BS161SJ"
},
{
"SchoolName": "North Road Community Primary School",
"Postcode": "BS377LQ"
},
{
"SchoolName": "The Ridge Junior School",
"Postcode": "BS377AP"
},
{
"SchoolName": "Bromley Heath Junior School",
"Postcode": "BS166NJ"
},
{
"SchoolName": "Bromley Heath Infant School",
"Postcode": "BS166NJ"
},
{
"SchoolName": "Longwell Green Primary School",
"Postcode": "BS309BA"
},
{
"SchoolName": "Samuel White's Infant School",
"Postcode": "BS153PN"
},
{
"SchoolName": "The Tynings School",
"Postcode": "BS164SG"
},
{
"SchoolName": "Crossways Junior School",
"Postcode": "BS352HQ"
},
{
"SchoolName": "St Stephen's Infant School",
"Postcode": "BS151XD"
},
{
"SchoolName": "Barley Close Community Primary School",
"Postcode": "BS169DL"
},
{
"SchoolName": "Crossways Infant School",
"Postcode": "BS352HQ"
},
{
"SchoolName": "Raysfield Junior School",
"Postcode": "BS376JE"
},
{
"SchoolName": "Raysfield Infants' School",
"Postcode": "BS376JE"
},
{
"SchoolName": "Courtney Primary School",
"Postcode": "BS159RD"
},
{
"SchoolName": "Broadway Infant School",
"Postcode": "BS377AD"
},
{
"SchoolName": "Bathampton Primary School",
"Postcode": "BA26TQ"
},
{
"SchoolName": "Bishop Sutton Primary School",
"Postcode": "BS395XD"
},
{
"SchoolName": "Chew Magna Primary School",
"Postcode": "BS408RQ"
},
{
"SchoolName": "Paulton Infant School",
"Postcode": "BS397QY"
},
{
"SchoolName": "Pensford Primary School",
"Postcode": "BS394AA"
},
{
"SchoolName": "Stanton Drew Primary School",
"Postcode": "BS394EQ"
},
{
"SchoolName": "Westfield Primary School",
"Postcode": "BA33XX"
},
{
"SchoolName": "Whitchurch Primary School",
"Postcode": "BS140PT"
},
{
"SchoolName": "Midsomer Norton Primary School",
"Postcode": "BA32DR"
},
{
"SchoolName": "Castle Primary School",
"Postcode": "BS312TS"
},
{
"SchoolName": "Grove Junior School",
"Postcode": "BS484YZ"
},
{
"SchoolName": "West Leigh Infant School",
"Postcode": "BS483NG"
},
{
"SchoolName": "Hannah More Infant School",
"Postcode": "BS484YZ"
},
{
"SchoolName": "Paulton Junior School",
"Postcode": "BS397QY"
},
{
"SchoolName": "Banwell Primary School",
"Postcode": "BS296DB"
},
{
"SchoolName": "Blagdon Primary School",
"Postcode": "BS407RW"
},
{
"SchoolName": "Kewstoke Primary School",
"Postcode": "BS229YF"
},
{
"SchoolName": "Uphill Primary School",
"Postcode": "BS234XH"
},
{
"SchoolName": "Ashcombe Primary School",
"Postcode": "BS233JW"
},
{
"SchoolName": "Windwhistle Primary School",
"Postcode": "BS233TZ"
},
{
"SchoolName": "Sandford Primary School",
"Postcode": "BS255PA"
},
{
"SchoolName": "Winscombe Primary School",
"Postcode": "BS251HH"
},
{
"SchoolName": "Mendip Green Primary School",
"Postcode": "BS226EX"
},
{
"SchoolName": "Locking Primary School",
"Postcode": "BS248BB"
},
{
"SchoolName": "Oldmixon Primary School",
"Postcode": "BS249DA"
},
{
"SchoolName": "Worle Village Primary School",
"Postcode": "BS229EJ"
},
{
"SchoolName": "Golden Valley Primary School",
"Postcode": "BS481BB"
},
{
"SchoolName": "Hannah More Primary School",
"Postcode": "BS20LT"
},
{
"SchoolName": "Mead Vale Community Primary School",
"Postcode": "BS228RQ"
},
{
"SchoolName": "Wellesley Primary School",
"Postcode": "BS378YR"
},
{
"SchoolName": "Cherry Garden Primary School",
"Postcode": "BS306JH"
},
{
"SchoolName": "Bishop Road Primary School",
"Postcode": "BS78LS"
},
{
"SchoolName": "Elm Park Primary School",
"Postcode": "BS361NF"
},
{
"SchoolName": "Blaise Primary and Nursery School",
"Postcode": "BS107EJ"
},
{
"SchoolName": "Walliscote Primary School",
"Postcode": "BS231UY"
},
{
"SchoolName": "Blackhorse Primary School",
"Postcode": "BS166TR"
},
{
"SchoolName": "Becket Primary School",
"Postcode": "BS226DH"
},
{
"SchoolName": "Compass Point: South Street School and Children's Centre",
"Postcode": "BS33AU"
},
{
"SchoolName": "Gillingstool Primary School",
"Postcode": "BS352EG"
},
{
"SchoolName": "Fair Furlong Primary School",
"Postcode": "BS139HS"
},
{
"SchoolName": "May Park Primary School",
"Postcode": "BS56LE"
},
{
"SchoolName": "Whitehall Primary School",
"Postcode": "BS59AT"
},
{
"SchoolName": "Beacon Rise Primary School",
"Postcode": "BS158NU"
},
{
"SchoolName": "Stanbridge Primary School",
"Postcode": "BS166AL"
},
{
"SchoolName": "Castle Batch Community Primary School",
"Postcode": "BS227FN"
},
{
"SchoolName": "Barrs Court Primary School",
"Postcode": "BS307JB"
},
{
"SchoolName": "Millpond Primary School",
"Postcode": "BS50YR"
},
{
"SchoolName": "Badocks Wood Primary School & Children's Centre",
"Postcode": "BS105PU"
},
{
"SchoolName": "Avonmouth Church of England Primary School",
"Postcode": "BS119LG"
},
{
"SchoolName": "Horfield Church of England Primary School",
"Postcode": "BS105BD"
},
{
"SchoolName": "St Barnabas Church of England VC Primary School",
"Postcode": "BS65LQ"
},
{
"SchoolName": "St George Church of England Primary School",
"Postcode": "BS15XJ"
},
{
"SchoolName": "St Johns Church of England Primary School, Clifton",
"Postcode": "BS82UH"
},
{
"SchoolName": "St Mary Redcliffe Church of England Primary School",
"Postcode": "BS34DP"
},
{
"SchoolName": "St Michael's on the Mount Church of England Primary School",
"Postcode": "BS28BE"
},
{
"SchoolName": "St Saviour's CofE Junior School",
"Postcode": "BA16TG"
},
{
"SchoolName": "St Saviour's CofE Infant School",
"Postcode": "BA16NY"
},
{
"SchoolName": "St Michael's CofE Junior School",
"Postcode": "BA21RW"
},
{
"SchoolName": "Almondsbury Church of England Primary School",
"Postcode": "BS324DS"
},
{
"SchoolName": "St Helen's Church of England Primary School",
"Postcode": "BS352QX"
},
{
"SchoolName": "St Anne's Church of England Primary School",
"Postcode": "BS306PH"
},
{
"SchoolName": "Frampton Cotterell Church of England Primary School",
"Postcode": "BS362BT"
},
{
"SchoolName": "Hawkesbury Church of England Primary School",
"Postcode": "GL91AU"
},
{
"SchoolName": "Iron Acton Church of England Primary School",
"Postcode": "BS379UZ"
},
{
"SchoolName": "Christ Church Hanham CofE Primary School",
"Postcode": "BS153LA"
},
{
"SchoolName": "Mangotsfield Church of England Voluntary Controlled Primary School",
"Postcode": "BS167EY"
},
{
"SchoolName": "Christ Church, Church of England Junior School, Downend",
"Postcode": "BS165JJ"
},
{
"SchoolName": "Christ Church, Church of England Infant School, Downend",
"Postcode": "BS165TG"
},
{
"SchoolName": "St Stephen's Church of England Junior School, Soundwell",
"Postcode": "BS151XD"
},
{
"SchoolName": "Marshfield Church of England Primary School",
"Postcode": "SN148NY"
},
{
"SchoolName": "Oldbury on Severn Church of England Primary School",
"Postcode": "BS351QG"
},
{
"SchoolName": "Olveston Church of England Primary School",
"Postcode": "BS354DB"
},
{
"SchoolName": "Pucklechurch CofE VC Primary School",
"Postcode": "BS169RF"
},
{
"SchoolName": "Rangeworthy Church of England Primary School",
"Postcode": "BS377ND"
},
{
"SchoolName": "St Barnabas CofE Primary School",
"Postcode": "BS305NW"
},
{
"SchoolName": "Old Sodbury Church of England Primary School",
"Postcode": "BS376NB"
},
{
"SchoolName": "The Manor Coalpit Heath Church of England Primary School",
"Postcode": "BS362LF"
},
{
"SchoolName": "Wick Church of England Primary School",
"Postcode": "BS305PD"
},
{
"SchoolName": "Frenchay Church of England Primary School",
"Postcode": "BS161NB"
},
{
"SchoolName": "St Chad's Patchway CofE Primary School",
"Postcode": "BS346AQ"
},
{
"SchoolName": "Tortworth VC Primary School",
"Postcode": "GL128HG"
},
{
"SchoolName": "St Andrew's Church of England Primary School, Cromhall",
"Postcode": "GL128AL"
},
{
"SchoolName": "Trinity Church of England Primary School",
"Postcode": "GL91HJ"
},
{
"SchoolName": "Backwell Church of England Junior School",
"Postcode": "BS483JJ"
},
{
"SchoolName": "Batheaston CofE Primary School",
"Postcode": "BA17EP"
},
{
"SchoolName": "Bathford CofE VC Primary School",
"Postcode": "BA17UB"
},
{
"SchoolName": "Cameley CofE VC Primary School",
"Postcode": "BS395BD"
},
{
"SchoolName": "Camerton Church School",
"Postcode": "BA20PS"
},
{
"SchoolName": "East Harptree Church of England VC Primary School",
"Postcode": "BS406BD"
},
{
"SchoolName": "Farmborough Church of England VC Primary School",
"Postcode": "BA20FY"
},
{
"SchoolName": "Flax Bourton Church of England Primary School",
"Postcode": "BS481UA"
},
{
"SchoolName": "Freshford Church of England Primary School",
"Postcode": "BA27WE"
},
{
"SchoolName": "Northleaze Church of England Primary School",
"Postcode": "BS419NG"
},
{
"SchoolName": "Swainswick CofE Primary School",
"Postcode": "BA18DB"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "BA20JR"
},
{
"SchoolName": "Ubley Church of England Primary School",
"Postcode": "BS406PJ"
},
{
"SchoolName": "St Julian's Church School",
"Postcode": "BA28QS"
},
{
"SchoolName": "Winford Church of England Primary School",
"Postcode": "BS408AD"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "BA33NG"
},
{
"SchoolName": "Yatton Church of England Junior School",
"Postcode": "BS494HJ"
},
{
"SchoolName": "Churchill Church of England Primary School",
"Postcode": "BS405EL"
},
{
"SchoolName": "St Andrew's Primary School",
"Postcode": "BS495DX"
},
{
"SchoolName": "St Anne's Church of England Primary School",
"Postcode": "BS246RT"
},
{
"SchoolName": "Hutton Church of England Primary School",
"Postcode": "BS249SN"
},
{
"SchoolName": "Christ Church Church of England Primary School",
"Postcode": "BS233AF"
},
{
"SchoolName": "St Martin's Church of England Primary School",
"Postcode": "BS229BQ"
},
{
"SchoolName": "Wrington Church of England Primary School",
"Postcode": "BS405NA"
},
{
"SchoolName": "Yatton Voluntary Controlled Infant School",
"Postcode": "BS494HJ"
},
{
"SchoolName": "All Saints East Clevedon Church of England Primary School",
"Postcode": "BS216AU"
},
{
"SchoolName": "St Michael's Church of England Primary School, Winterbourne",
"Postcode": "BS361LG"
},
{
"SchoolName": "St Michael's Church of England Primary School, <NAME>ifford",
"Postcode": "BS348SG"
},
{
"SchoolName": "St John's Mead Church of England Primary School",
"Postcode": "BS376EE"
},
{
"SchoolName": "St Nicholas Chantry Church of England Voluntary Controlled Primary School",
"Postcode": "BS217LT"
},
{
"SchoolName": "Shoscombe Church School",
"Postcode": "BA28NB"
},
{
"SchoolName": "Wraxall Church of England Voluntary Aided Primary School",
"Postcode": "BS481LB"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "BS206QB"
},
{
"SchoolName": "St Francis Catholic Primary School",
"Postcode": "BS484PD"
},
{
"SchoolName": "Burrington Church of England Voluntary Aided Primary School",
"Postcode": "BS407AD"
},
{
"SchoolName": "Worlebury St Paul's Church of England Voluntary Aided Primary School",
"Postcode": "BS229RH"
},
{
"SchoolName": "Corpus Christi Catholic Primary School",
"Postcode": "BS231XW"
},
{
"SchoolName": "School of Christ The King Catholic Primary",
"Postcode": "BS41HD"
},
{
"SchoolName": "Holy Cross RC Primary School",
"Postcode": "BS31DB"
},
{
"SchoolName": "Ss Peter and Paul RC Primary School",
"Postcode": "BS66HY"
},
{
"SchoolName": "St Bernard's Catholic Primary School",
"Postcode": "BS119TU"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "BS163QR"
},
{
"SchoolName": "Holy Trinity Primary School",
"Postcode": "BS320BD"
},
{
"SchoolName": "Our Lady of the Rosary Catholic Primary School, Bristol",
"Postcode": "BS110PA"
},
{
"SchoolName": "St Pius X RC Primary School",
"Postcode": "BS139AB"
},
{
"SchoolName": "St Bernadette Catholic Voluntary Aided Primary School",
"Postcode": "BS149LP"
},
{
"SchoolName": "St Bonaventure's Catholic Primary School",
"Postcode": "BS78HP"
},
{
"SchoolName": "Bathwick St Mary Church of England Primary School",
"Postcode": "BA26NN"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "BA12SN"
},
{
"SchoolName": "St Stephen's CofE Primary School",
"Postcode": "BA15PZ"
},
{
"SchoolName": "St John's Catholic Primary School",
"Postcode": "BA23NR"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "BA14EH"
},
{
"SchoolName": "Horton CofE VA Primary School",
"Postcode": "BS376QP"
},
{
"SchoolName": "St Mary's Church of England Primary School, Thornbury",
"Postcode": "BS351HJ"
},
{
"SchoolName": "St Mary's Church of England Primary School, Yate",
"Postcode": "BS375BG"
},
{
"SchoolName": "Our Lady of Lourdes Catholic Primary School",
"Postcode": "BS158PX"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "BS346BY"
},
{
"SchoolName": "Christ The King Catholic Primary School, Thornbury",
"Postcode": "BS351AW"
},
{
"SchoolName": "St Augustines of Canterbury RC Primary School",
"Postcode": "BS166QR"
},
{
"SchoolName": "St Paul's Catholic Primary School",
"Postcode": "BS374EP"
},
{
"SchoolName": "Ashton Park School",
"Postcode": "BS32JL"
},
{
"SchoolName": "Woodham Burn Community Primary School",
"Postcode": "DL54EX"
},
{
"SchoolName": "Chew Valley School",
"Postcode": "BS408QB"
},
{
"SchoolName": "Brookhill Leys Primary and Nursery School",
"Postcode": "NG163HB"
},
{
"SchoolName": "Brimsham Green School",
"Postcode": "BS377LB"
},
{
"SchoolName": "Chipping Sodbury School",
"Postcode": "BS376EW"
},
{
"SchoolName": "St <NAME>fe and Temple School",
"Postcode": "BS16RT"
},
{
"SchoolName": "St Mark's CofE School",
"Postcode": "BA16ND"
},
{
"SchoolName": "Saint Gregory's Catholic College",
"Postcode": "BA28PA"
},
{
"SchoolName": "St Bernadette Catholic Secondary School",
"Postcode": "BS149LS"
},
{
"SchoolName": "Clifton College",
"Postcode": "BS83JH"
},
{
"SchoolName": "Clifton High School",
"Postcode": "BS83JD"
},
{
"SchoolName": "Colston's School",
"Postcode": "BS161BJ"
},
{
"SchoolName": "Badminton School",
"Postcode": "BS93BA"
},
{
"SchoolName": "Cleve House School",
"Postcode": "BS42PN"
},
{
"SchoolName": "Torwood House School",
"Postcode": "BS66XE"
},
{
"SchoolName": "Aurora St Christopher's School",
"Postcode": "BS67JE"
},
{
"SchoolName": "Gracefield Preparatory School",
"Postcode": "BS162RG"
},
{
"SchoolName": "Bristol Steiner School",
"Postcode": "BS66UX"
},
{
"SchoolName": "Kingswood School",
"Postcode": "BA15RG"
},
{
"SchoolName": "Prior Park College",
"Postcode": "BA25AH"
},
{
"SchoolName": "Royal High School GDST",
"Postcode": "BA15SZ"
},
{
"SchoolName": "Kingswood Preparatory School",
"Postcode": "BA15SD"
},
{
"SchoolName": "The Paragon School, Junior School of Prior Park College",
"Postcode": "BA24LT"
},
{
"SchoolName": "Sheiling School (Thornbury)",
"Postcode": "BS351HP"
},
{
"SchoolName": "Silverhill School",
"Postcode": "BS361RL"
},
{
"SchoolName": "Tockington Manor School",
"Postcode": "BS324NY"
},
{
"SchoolName": "Monkton Senior School",
"Postcode": "BA27HG"
},
{
"SchoolName": "The Downs School",
"Postcode": "BS481PF"
},
{
"SchoolName": "Sidcot School",
"Postcode": "BS251PD"
},
{
"SchoolName": "Fairfield School (PNEU)",
"Postcode": "BS483PD"
},
{
"SchoolName": "Ashbrooke House School",
"Postcode": "BS231XH"
},
{
"SchoolName": "Bristol Grammar School",
"Postcode": "BS81SR"
},
{
"SchoolName": "Queen Elizabeth's Hospital",
"Postcode": "BS81JX"
},
{
"SchoolName": "The Red Maids' School",
"Postcode": "BS93AW"
},
{
"SchoolName": "Redland High School for Girls",
"Postcode": "BS67EF"
},
{
"SchoolName": "King Edward's School",
"Postcode": "BA26HU"
},
{
"SchoolName": "Monkton Prep School",
"Postcode": "BA27ET"
},
{
"SchoolName": "Belgrave School",
"Postcode": "BS82XH"
},
{
"SchoolName": "Elmfield School for Deaf Children",
"Postcode": "BS106AY"
},
{
"SchoolName": "Kingsweston School",
"Postcode": "BS110UT"
},
{
"SchoolName": "Claremont School",
"Postcode": "BS94LR"
},
{
"SchoolName": "Knowle DGE",
"Postcode": "BS41NN"
},
{
"SchoolName": "New Fosseway School",
"Postcode": "BS130RG"
},
{
"SchoolName": "Woodstock School",
"Postcode": "BS107AH"
},
{
"SchoolName": "Warmley Park School",
"Postcode": "BS308XL"
},
{
"SchoolName": "New Siblands School",
"Postcode": "BS352JU"
},
{
"SchoolName": "Westhaven School",
"Postcode": "BS234UT"
},
{
"SchoolName": "Ravenswood School",
"Postcode": "BS482NN"
},
{
"SchoolName": "Baytree School",
"Postcode": "BS247DX"
},
{
"SchoolName": "Briarwood School",
"Postcode": "BS164EA"
},
{
"SchoolName": "Cherry Trees Nursery School",
"Postcode": "MK429LS"
},
{
"SchoolName": "Willow Nursery School",
"Postcode": "LU54QU"
},
{
"SchoolName": "Southway Nursery School",
"Postcode": "MK429HE"
},
{
"SchoolName": "Peter Pan Nursery School",
"Postcode": "MK429DR"
},
{
"SchoolName": "Hart Hill Nursery School and Childrens Centre",
"Postcode": "LU20JS"
},
{
"SchoolName": "Rothesay Nursery School",
"Postcode": "LU11RB"
},
{
"SchoolName": "Grasmere Nursery School",
"Postcode": "LU32BT"
},
{
"SchoolName": "Chapel Street Nursery School",
"Postcode": "LU15EA"
},
{
"SchoolName": "Westfield Nursery School",
"Postcode": "LU61DL"
},
{
"SchoolName": "Pastures Way Nursery School",
"Postcode": "LU40PE"
},
{
"SchoolName": "Aspley Guise Lower School",
"Postcode": "MK178JT"
},
{
"SchoolName": "Swallowfield Lower School",
"Postcode": "MK178SL"
},
{
"SchoolName": "Livingstone Primary School",
"Postcode": "MK417LG"
},
{
"SchoolName": "Edith Cavell Lower School",
"Postcode": "MK417NH"
},
{
"SchoolName": "Castle Newnham School",
"Postcode": "MK403EP"
},
{
"SchoolName": "Priory Lower School",
"Postcode": "MK401JD"
},
{
"SchoolName": "Slip End Village School",
"Postcode": "LU14DD"
},
{
"SchoolName": "Campton Lower School",
"Postcode": "SG175PF"
},
{
"SchoolName": "Cople Lower School",
"Postcode": "MK443TH"
},
{
"SchoolName": "Eileen Wade Lower School",
"Postcode": "PE280ND"
},
{
"SchoolName": "Dunstable Icknield Lower School",
"Postcode": "LU63AG"
},
{
"SchoolName": "Cotton End Primary School",
"Postcode": "MK453AA"
},
{
"SchoolName": "Everton Lower School",
"Postcode": "SG192LE"
},
{
"SchoolName": "Pinchmill Lower School",
"Postcode": "MK437JD"
},
{
"SchoolName": "Flitwick Lower School",
"Postcode": "MK451LU"
},
{
"SchoolName": "Haynes Lower School",
"Postcode": "MK453PR"
},
{
"SchoolName": "Derwent Lower School",
"Postcode": "SG166BA"
},
{
"SchoolName": "Houghton Conquest Lower School",
"Postcode": "MK453LL"
},
{
"SchoolName": "Houghton Regis Primary School",
"Postcode": "LU55DH"
},
{
"SchoolName": "Husborne Crawley Lower School",
"Postcode": "MK430UZ"
},
{
"SchoolName": "Bedford Road Lower School",
"Postcode": "MK428QH"
},
{
"SchoolName": "Camestone Lower School",
"Postcode": "MK428NW"
},
{
"SchoolName": "Kempston Rural Lower School",
"Postcode": "MK427FJ"
},
{
"SchoolName": "Balliol Lower School",
"Postcode": "MK427ER"
},
{
"SchoolName": "Beaudesert Lower School",
"Postcode": "LU73DX"
},
{
"SchoolName": "St George's Lower School",
"Postcode": "LU71EW"
},
{
"SchoolName": "Thomas Johnson Lower School",
"Postcode": "MK430SB"
},
{
"SchoolName": "Stondon Lower School",
"Postcode": "SG166LQ"
},
{
"SchoolName": "Church End Lower School",
"Postcode": "MK430NE"
},
{
"SchoolName": "Shelton Lower School",
"Postcode": "MK430LS"
},
{
"SchoolName": "Maulden Lower School",
"Postcode": "MK452AU"
},
{
"SchoolName": "Moggerhanger Lower School",
"Postcode": "MK443RD"
},
{
"SchoolName": "Potton Lower School",
"Postcode": "SG192PB"
},
{
"SchoolName": "Ridgmont Lower School",
"Postcode": "MK430TS"
},
{
"SchoolName": "Laburnum Lower School",
"Postcode": "SG191HQ"
},
{
"SchoolName": "Shefford Lower School",
"Postcode": "SG175XA"
},
{
"SchoolName": "Shillington Lower School",
"Postcode": "SG53NX"
},
{
"SchoolName": "Southill Lower School",
"Postcode": "SG189JA"
},
{
"SchoolName": "Stanbridge Lower School",
"Postcode": "LU79HY"
},
{
"SchoolName": "Broadmead Lower School",
"Postcode": "MK439NN"
},
{
"SchoolName": "Roecroft Lower School",
"Postcode": "SG54PF"
},
{
"SchoolName": "Thurleigh Lower School",
"Postcode": "MK442DB"
},
{
"SchoolName": "Chalton Lower School",
"Postcode": "LU49UJ"
},
{
"SchoolName": "Totternhoe Lower School",
"Postcode": "LU61RE"
},
{
"SchoolName": "Turvey Lower School",
"Postcode": "MK438DY"
},
{
"SchoolName": "Westoning Lower School",
"Postcode": "MK455JH"
},
{
"SchoolName": "Willington Lower School",
"Postcode": "MK443QD"
},
{
"SchoolName": "Wilstead Lower School",
"Postcode": "MK453BX"
},
{
"SchoolName": "Woburn Lower School",
"Postcode": "MK179QL"
},
{
"SchoolName": "Wootton Lower School",
"Postcode": "MK439JT"
},
{
"SchoolName": "Russell Lower School",
"Postcode": "MK452TD"
},
{
"SchoolName": "Shortstown Primary School",
"Postcode": "MK420GS"
},
{
"SchoolName": "Watling Lower School",
"Postcode": "LU63BJ"
},
{
"SchoolName": "Lawnside Lower School",
"Postcode": "SG180LX"
},
{
"SchoolName": "King's Oak Primary School",
"Postcode": "MK420HH"
},
{
"SchoolName": "Brickhill Lower School",
"Postcode": "MK417AA"
},
{
"SchoolName": "Thornhill Primary School",
"Postcode": "LU55PE"
},
{
"SchoolName": "Hazeldene Lower School",
"Postcode": "MK419AT"
},
{
"SchoolName": "Kingsmoor Lower School",
"Postcode": "MK451EY"
},
{
"SchoolName": "The Mary Bassett Lower School",
"Postcode": "LU71AR"
},
{
"SchoolName": "Leedon Lower School",
"Postcode": "LU73LZ"
},
{
"SchoolName": "Scott Lower School",
"Postcode": "MK417JA"
},
{
"SchoolName": "Heathwood Lower School",
"Postcode": "LU73AU"
},
{
"SchoolName": "Springfield Lower School",
"Postcode": "MK427LJ"
},
{
"SchoolName": "Linslade Lower School",
"Postcode": "LU72QU"
},
{
"SchoolName": "Dovery Down Lower School",
"Postcode": "LU73AG"
},
{
"SchoolName": "Clipstone Brook Lower School",
"Postcode": "LU73PG"
},
{
"SchoolName": "Robert Peel Lower School",
"Postcode": "SG191QJ"
},
{
"SchoolName": "Southcott Lower School",
"Postcode": "LU72UA"
},
{
"SchoolName": "Hawthorn Park Community Primary",
"Postcode": "LU55QN"
},
{
"SchoolName": "Shackleton Primary School",
"Postcode": "MK429LZ"
},
{
"SchoolName": "Templefield Lower School",
"Postcode": "MK451AJ"
},
{
"SchoolName": "Hockliffe Lower School",
"Postcode": "LU79LL"
},
{
"SchoolName": "Denbigh Primary School",
"Postcode": "LU31NS"
},
{
"SchoolName": "Farley Junior School",
"Postcode": "LU15JF"
},
{
"SchoolName": "Ferrars Junior School",
"Postcode": "LU40ES"
},
{
"SchoolName": "Maidenhall Primary School",
"Postcode": "LU48LD"
},
{
"SchoolName": "Norton Road Primary School",
"Postcode": "LU32NX"
},
{
"SchoolName": "St Matthew's Primary School",
"Postcode": "LU20NJ"
},
{
"SchoolName": "Stopsley Community Primary School",
"Postcode": "LU27UG"
},
{
"SchoolName": "Sundon Park Junior School",
"Postcode": "LU33JU"
},
{
"SchoolName": "Cheynes Infant School",
"Postcode": "LU33EW"
},
{
"SchoolName": "Tennyson Road Primary School",
"Postcode": "LU13RS"
},
{
"SchoolName": "The Meads Primary School",
"Postcode": "LU32UE"
},
{
"SchoolName": "William Austin Junior School",
"Postcode": "LU31UA"
},
{
"SchoolName": "Warden Hill Junior School",
"Postcode": "LU32DN"
},
{
"SchoolName": "Putteridge Primary School",
"Postcode": "LU28HJ"
},
{
"SchoolName": "Downside Primary School",
"Postcode": "LU48EZ"
},
{
"SchoolName": "Warden Hill Infant School",
"Postcode": "LU32DN"
},
{
"SchoolName": "Surrey Street Primary School",
"Postcode": "LU13NJ"
},
{
"SchoolName": "Foxdell Infant School",
"Postcode": "LU11TG"
},
{
"SchoolName": "Pirton Hill Primary School",
"Postcode": "LU49EX"
},
{
"SchoolName": "Someries Junior School",
"Postcode": "LU28AH"
},
{
"SchoolName": "Whitefield Primary School",
"Postcode": "LU33SS"
},
{
"SchoolName": "Foxdell Junior School",
"Postcode": "LU11UP"
},
{
"SchoolName": "Hillborough Junior School",
"Postcode": "LU15EZ"
},
{
"SchoolName": "Icknield Primary School",
"Postcode": "LU32JB"
},
{
"SchoolName": "Southfield Primary School",
"Postcode": "LU40PE"
},
{
"SchoolName": "Hillborough Infant School",
"Postcode": "LU15EZ"
},
{
"SchoolName": "Someries Infant School",
"Postcode": "LU28AH"
},
{
"SchoolName": "<NAME> Infant School",
"Postcode": "LU31PZ"
},
{
"SchoolName": "Tithe Farm Primary School",
"Postcode": "LU55JB"
},
{
"SchoolName": "Ramsey Manor Lower School",
"Postcode": "MK454NS"
},
{
"SchoolName": "Wigmore Primary School",
"Postcode": "LU29TB"
},
{
"SchoolName": "Kymbrook Lower School",
"Postcode": "MK442HH"
},
{
"SchoolName": "Greenleas School",
"Postcode": "LU72AB"
},
{
"SchoolName": "Bramingham Primary School",
"Postcode": "LU34BL"
},
{
"SchoolName": "St Andrew's CofE VC Lower School",
"Postcode": "SG180LY"
},
{
"SchoolName": "Dunton CofE VC Lower School",
"Postcode": "SG188RN"
},
{
"SchoolName": "Kensworth Church of England Primary School",
"Postcode": "LU63RH"
},
{
"SchoolName": "Renhold VC Lower School",
"Postcode": "MK410LR"
},
{
"SchoolName": "St Swithun's VC Lower School",
"Postcode": "SG191AX"
},
{
"SchoolName": "Silsoe CofE VC Lower School",
"Postcode": "MK454ES"
},
{
"SchoolName": "Studham CofE Village School",
"Postcode": "LU62QD"
},
{
"SchoolName": "Wrestlingworth CofE VC Lower School",
"Postcode": "SG192EU"
},
{
"SchoolName": "Carlton VC Lower School",
"Postcode": "MK437JR"
},
{
"SchoolName": "Bromham CofE Primary School",
"Postcode": "MK438NR"
},
{
"SchoolName": "<NAME> VC Lower School",
"Postcode": "MK441RF"
},
{
"SchoolName": "St James' Church of England VA Lower School",
"Postcode": "MK404BD"
},
{
"SchoolName": "<NAME> CofE Lower School",
"Postcode": "MK443NL"
},
{
"SchoolName": "St Mary's VA CofE Lower School",
"Postcode": "MK454BE"
},
{
"SchoolName": "St Leonards, Heath and Reach, VA Lower School",
"Postcode": "LU70AX"
},
{
"SchoolName": "Pulford CofE VA Lower School",
"Postcode": "LU71AB"
},
{
"SchoolName": "Northill CofE VA Lower School",
"Postcode": "SG189AH"
},
{
"SchoolName": "<NAME> CofE VA Lower School",
"Postcode": "NN297HU"
},
{
"SchoolName": "Ravensden CofE VA Lower School",
"Postcode": "MK442RW"
},
{
"SchoolName": "Riseley CofE Lower School",
"Postcode": "MK441EL"
},
{
"SchoolName": "Roxton VA (CofE) Lower School",
"Postcode": "MK443DR"
},
{
"SchoolName": "Sutton CofE VA Lower School",
"Postcode": "SG192NE"
},
{
"SchoolName": "Wilden CofE VA Lower School",
"Postcode": "MK442PB"
},
{
"SchoolName": "St Lawrence VA CofE Lower School",
"Postcode": "NN109LL"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "LU14BB"
},
{
"SchoolName": "St Vincent's Catholic Primary School",
"Postcode": "LU55RG"
},
{
"SchoolName": "Wenlock CofE Junior School",
"Postcode": "LU20RW"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "LU32NS"
},
{
"SchoolName": "Sacred Heart Primary School",
"Postcode": "LU29AJ"
},
{
"SchoolName": "Castle Newnham School",
"Postcode": "MK419DT"
},
{
"SchoolName": "Parkfields Middle School",
"Postcode": "LU56AB"
},
{
"SchoolName": "Caddington Village School",
"Postcode": "LU14JD"
},
{
"SchoolName": "Westfield School",
"Postcode": "MK404HW"
},
{
"SchoolName": "Sandy Upper School",
"Postcode": "SG191BL"
},
{
"SchoolName": "Potton Middle School",
"Postcode": "SG192PG"
},
{
"SchoolName": "Lealands High School",
"Postcode": "LU33AL"
},
{
"SchoolName": "Leighton Middle School",
"Postcode": "LU71EX"
},
{
"SchoolName": "Biddenham International School and Sports College",
"Postcode": "MK404AZ"
},
{
"SchoolName": "Beauchamp Middle School",
"Postcode": "MK417JE"
},
{
"SchoolName": "<NAME> CofE VC Middle School",
"Postcode": "SG180EJ"
},
{
"SchoolName": "Crawley Green Infant School",
"Postcode": "LU20RW"
},
{
"SchoolName": "Ashton St Peter's VA C of E School",
"Postcode": "LU61EW"
},
{
"SchoolName": "Ashcroft High School",
"Postcode": "LU29AG"
},
{
"SchoolName": "Lea Manor High School Performing Arts College",
"Postcode": "LU33TL"
},
{
"SchoolName": "Stopsley High School",
"Postcode": "LU27UX"
},
{
"SchoolName": "Pilgrims Pre-Preparatory School",
"Postcode": "MK417QZ"
},
{
"SchoolName": "Rushmoor School",
"Postcode": "MK402DL"
},
{
"SchoolName": "Bedford School",
"Postcode": "MK402TU"
},
{
"SchoolName": "Polam School",
"Postcode": "MK402BU"
},
{
"SchoolName": "St Andrew's School",
"Postcode": "MK402PA"
},
{
"SchoolName": "St George's School",
"Postcode": "LU54HR"
},
{
"SchoolName": "Kings House Preparatory School and Nursery",
"Postcode": "LU49JY"
},
{
"SchoolName": "Bedford Girls' School",
"Postcode": "MK420BX"
},
{
"SchoolName": "Bedford Modern School",
"Postcode": "MK417NT"
},
{
"SchoolName": "Ivel Valley School",
"Postcode": "SG180NL"
},
{
"SchoolName": "Ridgeway School",
"Postcode": "MK427EB"
},
{
"SchoolName": "Richmond Hill School",
"Postcode": "LU27JL"
},
{
"SchoolName": "Woodlands Secondary School",
"Postcode": "LU33SP"
},
{
"SchoolName": "<NAME>her School",
"Postcode": "LU29AY"
},
{
"SchoolName": "The Chiltern School",
"Postcode": "LU63LY"
},
{
"SchoolName": "Blagdon Nursery School and Children's Centre",
"Postcode": "RG27NT"
},
{
"SchoolName": "Blagrave Nursery School",
"Postcode": "RG304UA"
},
{
"SchoolName": "Caversham Nursery School",
"Postcode": "RG45NA"
},
{
"SchoolName": "Norcot Early Years Centre",
"Postcode": "RG306UB"
},
{
"SchoolName": "New Bridge Nursery School",
"Postcode": "RG45AU"
},
{
"SchoolName": "Cookham Nursery School",
"Postcode": "SL69BT"
},
{
"SchoolName": "Hungerford Nursery School Centre for Children",
"Postcode": "RG170HY"
},
{
"SchoolName": "Maidenhead Nursery School",
"Postcode": "SL67PG"
},
{
"SchoolName": "Victoria Park Nursery School & Children's Centre",
"Postcode": "RG141EH"
},
{
"SchoolName": "The Lawns Nursery School",
"Postcode": "SL43RU"
},
{
"SchoolName": "The Ambleside Centre",
"Postcode": "RG54JJ"
},
{
"SchoolName": "Slough Centre Nursery School",
"Postcode": "SL13EA"
},
{
"SchoolName": "Baylis Court Nursery School",
"Postcode": "SL13HS"
},
{
"SchoolName": "Cippenham Nursery School",
"Postcode": "SL15NL"
},
{
"SchoolName": "Lea Nursery School",
"Postcode": "SL25JW"
},
{
"SchoolName": "Chalvey Nursery School & Early Years Centre",
"Postcode": "SL12SR"
},
{
"SchoolName": "Date Valley School",
"Postcode": "CR44LB"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "RG61JR"
},
{
"SchoolName": "Caversham Primary School",
"Postcode": "RG47RA"
},
{
"SchoolName": "Coley Primary School",
"Postcode": "RG16AZ"
},
{
"SchoolName": "E P Collier Primary School",
"Postcode": "RG18DZ"
},
{
"SchoolName": "Geoffrey Field Junior School",
"Postcode": "RG28RH"
},
{
"SchoolName": "Geoffrey Field Infant School",
"Postcode": "RG28RH"
},
{
"SchoolName": "Oxford Road Community School",
"Postcode": "RG17PJ"
},
{
"SchoolName": "Redlands Primary School",
"Postcode": "RG15QH"
},
{
"SchoolName": "The Hill Primary School",
"Postcode": "RG48TU"
},
{
"SchoolName": "The Ridgeway Primary School",
"Postcode": "RG28JD"
},
{
"SchoolName": "Park Lane Primary School",
"Postcode": "RG315BD"
},
{
"SchoolName": "Wilson Primary School",
"Postcode": "RG302RW"
},
{
"SchoolName": "Emmer Green Primary School",
"Postcode": "RG48LN"
},
{
"SchoolName": "Southcote Primary School",
"Postcode": "RG303EJ"
},
{
"SchoolName": "St Michael's Primary School",
"Postcode": "RG304AS"
},
{
"SchoolName": "Moorlands Primary School",
"Postcode": "RG304UN"
},
{
"SchoolName": "Thameside Primary School",
"Postcode": "RG48DB"
},
{
"SchoolName": "Beenham Primary School",
"Postcode": "RG75NN"
},
{
"SchoolName": "Fox Hill Primary School",
"Postcode": "RG127JZ"
},
{
"SchoolName": "Holly Spring Junior School",
"Postcode": "RG122SW"
},
{
"SchoolName": "Holly Spring Infant and Nursery School",
"Postcode": "RG122SW"
},
{
"SchoolName": "Oaklands Junior School",
"Postcode": "RG456QZ"
},
{
"SchoolName": "Chieveley Primary School",
"Postcode": "RG208TY"
},
{
"SchoolName": "Curridge Primary School",
"Postcode": "RG189DZ"
},
{
"SchoolName": "Wildmoor Heath School",
"Postcode": "RG457HD"
},
{
"SchoolName": "The Ilsleys Primary School",
"Postcode": "RG207LP"
},
{
"SchoolName": "Nine Mile Ride Primary School",
"Postcode": "RG403RB"
},
{
"SchoolName": "Hermitage Primary School",
"Postcode": "RG189SA"
},
{
"SchoolName": "Hungerford Primary School",
"Postcode": "RG170BT"
},
{
"SchoolName": "Inkpen Primary School",
"Postcode": "RG179QE"
},
{
"SchoolName": "Alwyn Infant School",
"Postcode": "SL66EU"
},
{
"SchoolName": "Courthouse Junior School",
"Postcode": "SL65HE"
},
{
"SchoolName": "Riverside Primary School and Nursery",
"Postcode": "SL67JA"
},
{
"SchoolName": "Wessex Primary School",
"Postcode": "SL63AT"
},
{
"SchoolName": "<NAME> Junior School",
"Postcode": "RG146ES"
},
{
"SchoolName": "<NAME> Infant and Nursery School",
"Postcode": "RG146EX"
},
{
"SchoolName": "King's Court First School",
"Postcode": "SL42NE"
},
{
"SchoolName": "College Town Infant and Nursery School",
"Postcode": "GU470QF"
},
{
"SchoolName": "Farley Hill Primary School",
"Postcode": "RG71UB"
},
{
"SchoolName": "Lambs Lane Primary School",
"Postcode": "RG71JB"
},
{
"SchoolName": "Francis Baily Primary School",
"Postcode": "RG194GG"
},
{
"SchoolName": "Waltham St Lawrence Primary School",
"Postcode": "RG100NU"
},
{
"SchoolName": "Hilltop First School",
"Postcode": "SL44DW"
},
{
"SchoolName": "Cranbourne Primary School",
"Postcode": "SL42EU"
},
{
"SchoolName": "Bearwood Primary School",
"Postcode": "RG415BB"
},
{
"SchoolName": "Wescott Infant School",
"Postcode": "RG402EN"
},
{
"SchoolName": "Keep Hatch Primary School",
"Postcode": "RG401PG"
},
{
"SchoolName": "Woodlands Park Primary School",
"Postcode": "SL63JB"
},
{
"SchoolName": "Furze Platt Junior School",
"Postcode": "SL66HQ"
},
{
"SchoolName": "South Ascot Village Primary School",
"Postcode": "SL59EA"
},
{
"SchoolName": "Birch Copse Primary School",
"Postcode": "RG315LN"
},
{
"SchoolName": "Westwood Farm Junior School",
"Postcode": "RG316RY"
},
{
"SchoolName": "Furze Platt Infant School",
"Postcode": "SL66HQ"
},
{
"SchoolName": "Uplands Primary School",
"Postcode": "GU479BP"
},
{
"SchoolName": "Aldryngton Primary School",
"Postcode": "RG67HR"
},
{
"SchoolName": "Long Lane Primary School",
"Postcode": "RG316YG"
},
{
"SchoolName": "Emmbrook Infant School",
"Postcode": "RG411JR"
},
{
"SchoolName": "Cookham Rise Primary School",
"Postcode": "SL69JF"
},
{
"SchoolName": "Garland Junior School",
"Postcode": "RG73HG"
},
{
"SchoolName": "College Town Junior School",
"Postcode": "GU470QE"
},
{
"SchoolName": "Robert Sandilands Primary School and Nursery",
"Postcode": "RG141TS"
},
{
"SchoolName": "Emmbrook Junior School",
"Postcode": "RG411JR"
},
{
"SchoolName": "Westwood Farm Infant School",
"Postcode": "RG316RY"
},
{
"SchoolName": "Oaklands Infant School",
"Postcode": "RG456QZ"
},
{
"SchoolName": "Springfield Primary School",
"Postcode": "RG315NJ"
},
{
"SchoolName": "Ascot Heath Infant School",
"Postcode": "SL58PN"
},
{
"SchoolName": "Walter Infant School",
"Postcode": "RG412TA"
},
{
"SchoolName": "Owlsmoor Primary School",
"Postcode": "GU470TA"
},
{
"SchoolName": "Falkland Primary School",
"Postcode": "RG146NU"
},
{
"SchoolName": "Homer First School and Nursery",
"Postcode": "SL45RL"
},
{
"SchoolName": "Parsons Down Infant School",
"Postcode": "RG193TE"
},
{
"SchoolName": "Winnersh Primary School",
"Postcode": "RG415LH"
},
{
"SchoolName": "Gorse Ride Junior School",
"Postcode": "RG404JJ"
},
{
"SchoolName": "The Colleton Primary School",
"Postcode": "RG100AX"
},
{
"SchoolName": "New Scotland Hill Primary School",
"Postcode": "GU478NQ"
},
{
"SchoolName": "Alexander First School",
"Postcode": "SL44XP"
},
{
"SchoolName": "Shinfield Infant and Nursery School",
"Postcode": "RG29EH"
},
{
"SchoolName": "Mrs Bland's Infant School",
"Postcode": "RG73LP"
},
{
"SchoolName": "Oldfield Primary School",
"Postcode": "SL61UE"
},
{
"SchoolName": "Willow Bank Infant School",
"Postcode": "RG54RW"
},
{
"SchoolName": "Willow Bank Junior School",
"Postcode": "RG54RW"
},
{
"SchoolName": "Hatch Ride Primary School",
"Postcode": "RG456LP"
},
{
"SchoolName": "Birch Hill Primary School",
"Postcode": "RG127WW"
},
{
"SchoolName": "Rivermead Primary School",
"Postcode": "RG54BS"
},
{
"SchoolName": "Downsway Primary School",
"Postcode": "RG316FE"
},
{
"SchoolName": "Oakfield First School",
"Postcode": "SL43RU"
},
{
"SchoolName": "Kennet Valley Primary School",
"Postcode": "RG317YT"
},
{
"SchoolName": "Westende Junior School",
"Postcode": "RG402EJ"
},
{
"SchoolName": "Wraysbury Primary School",
"Postcode": "TW195DJ"
},
{
"SchoolName": "Katesgrove Primary School",
"Postcode": "RG12NL"
},
{
"SchoolName": "The Hawthorns Primary School",
"Postcode": "RG413PQ"
},
{
"SchoolName": "Wooden Hill Primary and Nursery School",
"Postcode": "RG128DB"
},
{
"SchoolName": "Parsons Down Junior School",
"Postcode": "RG193SR"
},
{
"SchoolName": "Gorse Ride Infants' School",
"Postcode": "RG404EH"
},
{
"SchoolName": "Caversham Park Primary School",
"Postcode": "RG46RP"
},
{
"SchoolName": "Micklands Primary School",
"Postcode": "RG46LU"
},
{
"SchoolName": "Radstock Primary School",
"Postcode": "RG65UZ"
},
{
"SchoolName": "Hawkedon Primary School",
"Postcode": "RG63AP"
},
{
"SchoolName": "Hillside Primary School",
"Postcode": "RG64HQ"
},
{
"SchoolName": "Calcot Infant School and Nursery",
"Postcode": "RG314XG"
},
{
"SchoolName": "Calcot Junior School",
"Postcode": "RG314XG"
},
{
"SchoolName": "Beechwood Primary School",
"Postcode": "RG54JJ"
},
{
"SchoolName": "Spurcroft Primary School",
"Postcode": "RG193XX"
},
{
"SchoolName": "Larchfield Primary and Nursery School",
"Postcode": "SL62SG"
},
{
"SchoolName": "Pangbourne Primary School",
"Postcode": "RG87LB"
},
{
"SchoolName": "Meadow Vale Primary School",
"Postcode": "RG421SY"
},
{
"SchoolName": "Wexham Court Primary School",
"Postcode": "SL36LU"
},
{
"SchoolName": "Manor Primary School",
"Postcode": "RG303LJ"
},
{
"SchoolName": "All Saints Church of England Aided Infant School",
"Postcode": "RG16NP"
},
{
"SchoolName": "Aldermaston C.E. Primary School",
"Postcode": "RG74LX"
},
{
"SchoolName": "Basildon C.E. Primary School",
"Postcode": "RG88PD"
},
{
"SchoolName": "Beedon C.E. (Controlled) Primary School",
"Postcode": "RG208SL"
},
{
"SchoolName": "Braywood CofE First School",
"Postcode": "SL44QF"
},
{
"SchoolName": "Brimpton C.E. Primary School",
"Postcode": "RG74TL"
},
{
"SchoolName": "Bucklebury C.E. Primary School",
"Postcode": "RG76QP"
},
{
"SchoolName": "Burghfield St Mary's C.E. Primary School",
"Postcode": "RG303TX"
},
{
"SchoolName": "Chaddleworth St Andrew's C.E. Primary School",
"Postcode": "RG207DT"
},
{
"SchoolName": "<NAME> St Mark's C.E. School",
"Postcode": "RG189PT"
},
{
"SchoolName": "Compton C.E. Primary School",
"Postcode": "RG206QU"
},
{
"SchoolName": "Cookham Dean CofE Primary School",
"Postcode": "SL69PH"
},
{
"SchoolName": "Holy Trinity CofE Primary School, Cookham",
"Postcode": "SL69QJ"
},
{
"SchoolName": "Crowthorne Church of England Primary School",
"Postcode": "RG456ND"
},
{
"SchoolName": "Enborne C.E. Primary School",
"Postcode": "RG200JU"
},
{
"SchoolName": "Hampstead Norreys C.E. Primary School",
"Postcode": "RG180TR"
},
{
"SchoolName": "Kintbury St Mary's C.E. Primary School",
"Postcode": "RG179XN"
},
{
"SchoolName": "Lambourn C.E. Primary School",
"Postcode": "RG177LJ"
},
{
"SchoolName": "Boyne Hill CofE Infant and Nursery School",
"Postcode": "SL64HZ"
},
{
"SchoolName": "Purley CofE Primary School",
"Postcode": "RG88AF"
},
{
"SchoolName": "St Nicholas Church of England Primary, Hurst",
"Postcode": "RG100DR"
},
{
"SchoolName": "St Michael's Church of England Primary School, Sandhurst",
"Postcode": "GU478HN"
},
{
"SchoolName": "Shaw-cum-Donnington C.E. Primary School",
"Postcode": "RG142JG"
},
{
"SchoolName": "Shefford C.E. Primary School",
"Postcode": "RG177DB"
},
{
"SchoolName": "Shinfield St Mary's CofE Junior School",
"Postcode": "RG29EJ"
},
{
"SchoolName": "Mortimer St Mary's C.E. Junior School",
"Postcode": "RG73PB"
},
{
"SchoolName": "Mortimer St John's C.E. Infant School",
"Postcode": "RG73SY"
},
{
"SchoolName": "Streatley C.E. Voluntary Controlled School",
"Postcode": "RG89QL"
},
{
"SchoolName": "Theale C.E. Primary School",
"Postcode": "RG75BZ"
},
{
"SchoolName": "Polehampton Church of England Infant School",
"Postcode": "RG109HS"
},
{
"SchoolName": "Warfield Church of England Primary School",
"Postcode": "RG423SS"
},
{
"SchoolName": "Crazies Hill CofE Primary School",
"Postcode": "RG108LY"
},
{
"SchoolName": "Welford and Wickham C.E. Primary School",
"Postcode": "RG208HL"
},
{
"SchoolName": "Ascot Heath Church of England Junior School",
"Postcode": "SL58PN"
},
{
"SchoolName": "St Paul's CofE Junior School",
"Postcode": "RG412YJ"
},
{
"SchoolName": "Woodley CofE Primary School",
"Postcode": "RG54UX"
},
{
"SchoolName": "Robert Piggott CofE Infant School",
"Postcode": "RG108ED"
},
{
"SchoolName": "All Saints CofE Junior School",
"Postcode": "SL64AR"
},
{
"SchoolName": "Robert Piggott CofE Junior School",
"Postcode": "RG108DY"
},
{
"SchoolName": "Winkfield St Mary's CofE Primary School",
"Postcode": "RG426NH"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "SL12AR"
},
{
"SchoolName": "<NAME> CofE First School",
"Postcode": "SL46JB"
},
{
"SchoolName": "Binfield Church of England Primary School",
"Postcode": "RG424EW"
},
{
"SchoolName": "St Mary and All Saints Church of England Voluntary Aided Primary School",
"Postcode": "RG16DU"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "RG45AA"
},
{
"SchoolName": "English Martyrs' Catholic Primary School",
"Postcode": "RG304BE"
},
{
"SchoolName": "Christ The King Catholic Primary School",
"Postcode": "RG28LX"
},
{
"SchoolName": "St Paul's Catholic Primary School",
"Postcode": "RG314SZ"
},
{
"SchoolName": "Bradfield C.E. Primary School",
"Postcode": "RG76HR"
},
{
"SchoolName": "Brightwalton C.E. Aided Primary School",
"Postcode": "RG207BN"
},
{
"SchoolName": "Earley St Peter's Church of England Voluntary Aided Primary School",
"Postcode": "RG61EY"
},
{
"SchoolName": "St Michael's Easthampstead Church of England Voluntary Aided Primary School",
"Postcode": "RG127EH"
},
{
"SchoolName": "Englefield C.E. Primary School",
"Postcode": "RG75ER"
},
{
"SchoolName": "Finchampstead CofE VA Primary School",
"Postcode": "RG404JR"
},
{
"SchoolName": "St Nicolas C.E. Junior School",
"Postcode": "RG147LU"
},
{
"SchoolName": "The Royal First School",
"Postcode": "SL42HP"
},
{
"SchoolName": "Grazeley Parochial Church of England Aided Primary School",
"Postcode": "RG71JY"
},
{
"SchoolName": "Sonning CofE Primary School",
"Postcode": "RG46XF"
},
{
"SchoolName": "Stockcross C.E. School",
"Postcode": "RG208LD"
},
{
"SchoolName": "Holy Trinity CofE Primary School, Sunningdale",
"Postcode": "SL50NJ"
},
{
"SchoolName": "St Michael's CofE Primary School, Sunninghill",
"Postcode": "SL57AD"
},
{
"SchoolName": "Cheapside CofE Primary School",
"Postcode": "SL57QJ"
},
{
"SchoolName": "Sulhamstead and Ufton Nervet School",
"Postcode": "RG74HH"
},
{
"SchoolName": "Saint Sebastian's Church of England Aided Primary School",
"Postcode": "RG403AT"
},
{
"SchoolName": "Woolhampton C.E. Primary School",
"Postcode": "RG75TB"
},
{
"SchoolName": "Yattendon C.E. Primary School",
"Postcode": "RG180UR"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Bracknell",
"Postcode": "RG129AP"
},
{
"SchoolName": "St Edward's Catholic First School",
"Postcode": "SL45EN"
},
{
"SchoolName": "St Teresa's Catholic Primary School, Wokingham",
"Postcode": "RG402EB"
},
{
"SchoolName": "Our Lady of Peace Catholic Primary and Nursery School",
"Postcode": "SL16HW"
},
{
"SchoolName": "St Finian's Catholic Primary School",
"Postcode": "RG189HU"
},
{
"SchoolName": "St Martin's Catholic Primary School",
"Postcode": "RG46SS"
},
{
"SchoolName": "St Dominic Savio Catholic Primary School",
"Postcode": "RG53BH"
},
{
"SchoolName": "The Willink School",
"Postcode": "RG73XJ"
},
{
"SchoolName": "Edgbarrow School",
"Postcode": "RG457HZ"
},
{
"SchoolName": "St Crispin's School",
"Postcode": "RG401SS"
},
{
"SchoolName": "The Emmbrook School",
"Postcode": "RG411JP"
},
{
"SchoolName": "The Bulmershe School",
"Postcode": "RG53EU"
},
{
"SchoolName": "Little Heath School",
"Postcode": "RG315TY"
},
{
"SchoolName": "Sandhurst School",
"Postcode": "GU470SD"
},
{
"SchoolName": "Garth Hill College",
"Postcode": "RG422AD"
},
{
"SchoolName": "Easthampstead Park Community School",
"Postcode": "RG128FS"
},
{
"SchoolName": "Wexham School",
"Postcode": "SL25QP"
},
{
"SchoolName": "St Bernard's Catholic Grammar School",
"Postcode": "SL37AF"
},
{
"SchoolName": "St Edward's Royal Free Ecumenical Middle School, Windsor",
"Postcode": "SL45EN"
},
{
"SchoolName": "Priory School",
"Postcode": "SL16HE"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "SL38NF"
},
{
"SchoolName": "St John the Evangelist C.E. Nursery and Infant Sch",
"Postcode": "RG147DE"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "RG142AW"
},
{
"SchoolName": "Pippins School",
"Postcode": "SL30PR"
},
{
"SchoolName": "Reading Girls' School",
"Postcode": "RG27PY"
},
{
"SchoolName": "The Downs School",
"Postcode": "RG206AD"
},
{
"SchoolName": "<NAME>aringdon Catholic School",
"Postcode": "RG303EP"
},
{
"SchoolName": "Queen Anne's School",
"Postcode": "RG46DX"
},
{
"SchoolName": "Leighton Park School",
"Postcode": "RG27ED"
},
{
"SchoolName": "St Joseph's College",
"Postcode": "RG15JT"
},
{
"SchoolName": "Hemdean House School",
"Postcode": "RG47SD"
},
{
"SchoolName": "St Edward's Prep",
"Postcode": "RG302JH"
},
{
"SchoolName": "Heathfield School",
"Postcode": "SL58BQ"
},
{
"SchoolName": "Papplewick School",
"Postcode": "SL57LH"
},
{
"SchoolName": "St George's School",
"Postcode": "SL57DZ"
},
{
"SchoolName": "St Mary's School Ascot",
"Postcode": "SL59JF"
},
{
"SchoolName": "Bradfield College",
"Postcode": "RG76AU"
},
{
"SchoolName": "St Andrew's School",
"Postcode": "RG88QA"
},
{
"SchoolName": "Downe House",
"Postcode": "RG189JJ"
},
{
"SchoolName": "Herries Preparatory School",
"Postcode": "SL69BD"
},
{
"SchoolName": "Wellington College",
"Postcode": "RG457PU"
},
{
"SchoolName": "St Piran's School",
"Postcode": "SL67LZ"
},
{
"SchoolName": "Brockhurst and Marlston House Schools",
"Postcode": "RG189UL"
},
{
"SchoolName": "St Gabriel's School",
"Postcode": "RG209BD"
},
{
"SchoolName": "Upton House School",
"Postcode": "SL43DF"
},
{
"SchoolName": "St George's School",
"Postcode": "SL41QF"
},
{
"SchoolName": "Pangbourne College",
"Postcode": "RG88LA"
},
{
"SchoolName": "Eagle House School",
"Postcode": "GU478PH"
},
{
"SchoolName": "Sunningdale School",
"Postcode": "SL59PZ"
},
{
"SchoolName": "Lambrook School",
"Postcode": "RG426LU"
},
{
"SchoolName": "Luckley House School",
"Postcode": "RG403EU"
},
{
"SchoolName": "Reddam House Berkshire",
"Postcode": "RG415BG"
},
{
"SchoolName": "Ludgrove School",
"Postcode": "RG403AB"
},
{
"SchoolName": "Elstree School",
"Postcode": "RG75TD"
},
{
"SchoolName": "Newbold School",
"Postcode": "RG424AH"
},
{
"SchoolName": "Waverley School",
"Postcode": "RG404YD"
},
{
"SchoolName": "Highfield Preparatory School Limited",
"Postcode": "SL61PD"
},
{
"SchoolName": "Brigidine School Limited",
"Postcode": "SL42AX"
},
{
"SchoolName": "Holme Grange School",
"Postcode": "RG403AL"
},
{
"SchoolName": "Hurst Lodge School",
"Postcode": "SL59JU"
},
{
"SchoolName": "Reading Blue Coat School",
"Postcode": "RG46SU"
},
{
"SchoolName": "The Marist School",
"Postcode": "SL57PS"
},
{
"SchoolName": "Claires Court Schools",
"Postcode": "SL66AW"
},
{
"SchoolName": "Our Lady's Preparatory School",
"Postcode": "RG456PB"
},
{
"SchoolName": "Crosfields School",
"Postcode": "RG29BL"
},
{
"SchoolName": "Eton College",
"Postcode": "SL46DW"
},
{
"SchoolName": "LVS Ascot",
"Postcode": "SL58DR"
},
{
"SchoolName": "St Bernard's Preparatory School",
"Postcode": "SL11TB"
},
{
"SchoolName": "Eton End School Trust (Datchet) Limited",
"Postcode": "SL39AX"
},
{
"SchoolName": "Long Close School",
"Postcode": "SL37LU"
},
{
"SchoolName": "Dolphin School",
"Postcode": "RG100FR"
},
{
"SchoolName": "The Abbey School Reading",
"Postcode": "RG15DZ"
},
{
"SchoolName": "Redroofs School for the Performing Arts",
"Postcode": "SL64JT"
},
{
"SchoolName": "Padworth College",
"Postcode": "RG74NR"
},
{
"SchoolName": "Meadowbrook Montessori School",
"Postcode": "RG426JQ"
},
{
"SchoolName": "The Cedars School",
"Postcode": "RG74LR"
},
{
"SchoolName": "Alder Bridge School",
"Postcode": "RG74JU"
},
{
"SchoolName": "Caversham Preparatory School",
"Postcode": "RG48JZ"
},
{
"SchoolName": "Cressex Lodge (SWAAY)",
"Postcode": "RG424DE"
},
{
"SchoolName": "Mary Hare School",
"Postcode": "RG143BQ"
},
{
"SchoolName": "High Close School",
"Postcode": "RG401TT"
},
{
"SchoolName": "The Castle School",
"Postcode": "RG142JG"
},
{
"SchoolName": "Manor Green School",
"Postcode": "SL63EQ"
},
{
"SchoolName": "Arbour Vale School",
"Postcode": "SL23AE"
},
{
"SchoolName": "Brookfields Special School",
"Postcode": "RG316SW"
},
{
"SchoolName": "Addington School",
"Postcode": "RG53EU"
},
{
"SchoolName": "Phoenix College",
"Postcode": "RG27AY"
},
{
"SchoolName": "Kennel Lane School",
"Postcode": "RG422EX"
},
{
"SchoolName": "The Holy Brook School",
"Postcode": "RG303LJ"
},
{
"SchoolName": "Henry Allen Nursery School",
"Postcode": "HP66NW"
},
{
"SchoolName": "Knowles Nursery School",
"Postcode": "MK22HB"
},
{
"SchoolName": "Bowerdean Nursery School",
"Postcode": "HP136AW"
},
{
"SchoolName": "Oak Green School",
"Postcode": "HP218LJ"
},
{
"SchoolName": "The Mary Towerton School At Studley Green",
"Postcode": "HP143XN"
},
{
"SchoolName": "Bledlow Ridge School",
"Postcode": "HP144AZ"
},
{
"SchoolName": "Castlethorpe First School",
"Postcode": "MK197EW"
},
{
"SchoolName": "Chalfont St Giles Infant School and Nursery",
"Postcode": "HP84JJ"
},
{
"SchoolName": "Cheddington Combined School",
"Postcode": "LU70RG"
},
{
"SchoolName": "Chenies School",
"Postcode": "WD36ER"
},
{
"SchoolName": "Newtown School",
"Postcode": "HP53AT"
},
{
"SchoolName": "Denham Village Infant School",
"Postcode": "UB95AE"
},
{
"SchoolName": "Drayton Parslow Village School",
"Postcode": "MK170JR"
},
{
"SchoolName": "Dropmore Infant School",
"Postcode": "SL18PF"
},
{
"SchoolName": "Edlesborough School",
"Postcode": "LU62HS"
},
{
"SchoolName": "Emberton School",
"Postcode": "MK465BX"
},
{
"SchoolName": "Fulmer Infant School",
"Postcode": "SL36JB"
},
{
"SchoolName": "Roundwood Primary School",
"Postcode": "MK184HY"
},
{
"SchoolName": "Haddenham Community Infant School",
"Postcode": "HP178DS"
},
{
"SchoolName": "Hanslope Primary School",
"Postcode": "MK197BL"
},
{
"SchoolName": "Haversham Village School",
"Postcode": "MK197AN"
},
{
"SchoolName": "Marsh School",
"Postcode": "HP111RW"
},
{
"SchoolName": "Hyde Heath Infant School",
"Postcode": "HP65RW"
},
{
"SchoolName": "The Iver Village Junior School",
"Postcode": "SL09QA"
},
{
"SchoolName": "Oldbrook First School",
"Postcode": "MK62NH"
},
{
"SchoolName": "Jordans School",
"Postcode": "HP92TE"
},
{
"SchoolName": "Lavendon School",
"Postcode": "MK464HA"
},
{
"SchoolName": "Ley Hill School",
"Postcode": "HP51YF"
},
{
"SchoolName": "Little Kingshill Combined School",
"Postcode": "HP160DZ"
},
{
"SchoolName": "New Bradwell School",
"Postcode": "MK130BQ"
},
{
"SchoolName": "Prestwood Infant School",
"Postcode": "HP169DF"
},
{
"SchoolName": "Steeple Claydon School",
"Postcode": "MK182PA"
},
{
"SchoolName": "Stoke Mandeville Combined School",
"Postcode": "HP225XA"
},
{
"SchoolName": "Russell Street School",
"Postcode": "MK111BT"
},
{
"SchoolName": "Thornborough Infant School",
"Postcode": "MK182DF"
},
{
"SchoolName": "Tylers Green First School",
"Postcode": "HP108EF"
},
{
"SchoolName": "Bushfield School",
"Postcode": "MK125JG"
},
{
"SchoolName": "Wyvern School",
"Postcode": "MK125HU"
},
{
"SchoolName": "The Meadows School",
"Postcode": "HP100HF"
},
{
"SchoolName": "Booker Hill School",
"Postcode": "HP124LR"
},
{
"SchoolName": "Ash Hill Primary School",
"Postcode": "HP137HT"
},
{
"SchoolName": "Farnham Common Junior School",
"Postcode": "SL23TZ"
},
{
"SchoolName": "Woodside Junior School",
"Postcode": "HP66NW"
},
{
"SchoolName": "Holmer Green Infant School",
"Postcode": "HP156UG"
},
{
"SchoolName": "Chalfont St Peter Infant School",
"Postcode": "SL99PB"
},
{
"SchoolName": "Broughton Junior School",
"Postcode": "HP201NQ"
},
{
"SchoolName": "Little Chalfont Primary School",
"Postcode": "HP66SX"
},
{
"SchoolName": "Carrington Junior School",
"Postcode": "HP109AA"
},
{
"SchoolName": "Haydon Abbey School and Pre-School",
"Postcode": "HP199NS"
},
{
"SchoolName": "Danesfield School",
"Postcode": "SL72EW"
},
{
"SchoolName": "Grendon Underwood Combined School",
"Postcode": "HP180SP"
},
{
"SchoolName": "Iver Heath Junior School",
"Postcode": "SL00DA"
},
{
"SchoolName": "Bedgrove Junior School",
"Postcode": "HP219DN"
},
{
"SchoolName": "Bedgrove Infant School",
"Postcode": "HP219DJ"
},
{
"SchoolName": "Carrington Infant School",
"Postcode": "HP109AA"
},
{
"SchoolName": "Broughton Infant School",
"Postcode": "HP201NX"
},
{
"SchoolName": "Elmhurst School",
"Postcode": "HP202DB"
},
{
"SchoolName": "Chalfont St Giles Junior School",
"Postcode": "HP84JW"
},
{
"SchoolName": "Oakridge School",
"Postcode": "HP112PN"
},
{
"SchoolName": "Holne Chase Primary School",
"Postcode": "MK35HP"
},
{
"SchoolName": "Butlers Court School",
"Postcode": "HP91RW"
},
{
"SchoolName": "The John Hampden School",
"Postcode": "HP226HF"
},
{
"SchoolName": "Chestnut Lane School",
"Postcode": "HP66EF"
},
{
"SchoolName": "Manor Farm Community Infant School",
"Postcode": "HP157PH"
},
{
"SchoolName": "Chartridge Combined School",
"Postcode": "HP52TW"
},
{
"SchoolName": "Juniper Hill School",
"Postcode": "HP109LA"
},
{
"SchoolName": "Holmer Green Junior School",
"Postcode": "HP156TD"
},
{
"SchoolName": "Tylers Green Middle School",
"Postcode": "HP108DS"
},
{
"SchoolName": "Prestwood Junior School",
"Postcode": "HP160NR"
},
{
"SchoolName": "Thomas Harding Junior School",
"Postcode": "HP51LR"
},
{
"SchoolName": "Elmtree Infant and Nursery School",
"Postcode": "HP52PA"
},
{
"SchoolName": "Thomas Hickman School",
"Postcode": "HP199HP"
},
{
"SchoolName": "Burford School",
"Postcode": "SL73PQ"
},
{
"SchoolName": "Bearbrook Combined School",
"Postcode": "HP197QP"
},
{
"SchoolName": "Lane End Primary School",
"Postcode": "HP143EJ"
},
{
"SchoolName": "Hannah Ball School",
"Postcode": "HP137JS"
},
{
"SchoolName": "Claytons Primary School",
"Postcode": "SL85NS"
},
{
"SchoolName": "Barleyhurst Park Primary",
"Postcode": "MK37NA"
},
{
"SchoolName": "Hughenden Primary School",
"Postcode": "HP144LR"
},
{
"SchoolName": "Buckingham Primary School",
"Postcode": "MK181TT"
},
{
"SchoolName": "Pepper Hill School",
"Postcode": "MK137BQ"
},
{
"SchoolName": "Aston Clinton School",
"Postcode": "HP225JJ"
},
{
"SchoolName": "Whitchurch Combined School",
"Postcode": "HP224JG"
},
{
"SchoolName": "Widmer End Combined School",
"Postcode": "HP156AH"
},
{
"SchoolName": "Spinfield School",
"Postcode": "SL72RE"
},
{
"SchoolName": "Long Crendon School",
"Postcode": "HP189BZ"
},
{
"SchoolName": "Manor Farm Community Junior School",
"Postcode": "HP157PH"
},
{
"SchoolName": "Stokenchurch Primary School",
"Postcode": "HP143RN"
},
{
"SchoolName": "Iver Heath Infant School and Nursery",
"Postcode": "SL00DT"
},
{
"SchoolName": "Farnham Common Infant School",
"Postcode": "SL23HS"
},
{
"SchoolName": "Greenleys First School",
"Postcode": "MK126AT"
},
{
"SchoolName": "Haddenham Junior School",
"Postcode": "HP178DS"
},
{
"SchoolName": "Turnfurlong Junior School",
"Postcode": "HP217PL"
},
{
"SchoolName": "Elangeni School",
"Postcode": "HP66EG"
},
{
"SchoolName": "Langland Community School",
"Postcode": "MK64HA"
},
{
"SchoolName": "Falconhurst School",
"Postcode": "MK65AX"
},
{
"SchoolName": "Ashmead Combined School",
"Postcode": "HP218SU"
},
{
"SchoolName": "William Harding School",
"Postcode": "HP219TJ"
},
{
"SchoolName": "Turnfurlong Infant School",
"Postcode": "HP217PL"
},
{
"SchoolName": "Robertswood School",
"Postcode": "SL90EW"
},
{
"SchoolName": "Moorland Primary School",
"Postcode": "MK64ND"
},
{
"SchoolName": "Southwood School",
"Postcode": "MK147AR"
},
{
"SchoolName": "Stanton School",
"Postcode": "MK137BE"
},
{
"SchoolName": "Great Linford Primary School",
"Postcode": "MK145BL"
},
{
"SchoolName": "Wood End First School",
"Postcode": "MK146BB"
},
{
"SchoolName": "Bradwell Village School",
"Postcode": "MK139AZ"
},
{
"SchoolName": "Downs Barn School",
"Postcode": "MK147NA"
},
{
"SchoolName": "Iver Village Infant School",
"Postcode": "SL09NT"
},
{
"SchoolName": "Germander Park School",
"Postcode": "MK147DU"
},
{
"SchoolName": "Waddesdon Village Primary School",
"Postcode": "HP180LQ"
},
{
"SchoolName": "The Willows School and Early Years Centre",
"Postcode": "MK62LP"
},
{
"SchoolName": "Priory Common School",
"Postcode": "MK139EZ"
},
{
"SchoolName": "Giffard Park Primary School",
"Postcode": "MK145PY"
},
{
"SchoolName": "Heelands School",
"Postcode": "MK137QL"
},
{
"SchoolName": "Ashbrook School",
"Postcode": "MK88NA"
},
{
"SchoolName": "Summerfield School",
"Postcode": "MK138PG"
},
{
"SchoolName": "Willen Primary School",
"Postcode": "MK159HN"
},
{
"SchoolName": "Halton Community Combined School",
"Postcode": "HP225PN"
},
{
"SchoolName": "Holmwood School",
"Postcode": "MK89AB"
},
{
"SchoolName": "Naphill and Walters Ash School",
"Postcode": "HP144UL"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "MK57DF"
},
{
"SchoolName": "Green Park School",
"Postcode": "MK160NH"
},
{
"SchoolName": "Holtspur School",
"Postcode": "HP91BH"
},
{
"SchoolName": "Cedars Primary School",
"Postcode": "MK160DT"
},
{
"SchoolName": "Glastonbury Thorn School",
"Postcode": "MK56BX"
},
{
"SchoolName": "Abbeys Primary School",
"Postcode": "MK36PS"
},
{
"SchoolName": "Highworth Combined School and Nursery",
"Postcode": "HP137PH"
},
{
"SchoolName": "Cold Harbour Church of England School",
"Postcode": "MK37PD"
},
{
"SchoolName": "Newton Blossomville Church of England School",
"Postcode": "MK438AL"
},
{
"SchoolName": "North Crawley CofE School",
"Postcode": "MK169LL"
},
{
"SchoolName": "Sherington Church of England School",
"Postcode": "MK169NF"
},
{
"SchoolName": "<NAME> Church of England School",
"Postcode": "MK168NP"
},
{
"SchoolName": "St James and St John CofE Primary School",
"Postcode": "MK185JE"
},
{
"SchoolName": "Marsh Gibbon CofE Primary School",
"Postcode": "OX270HJ"
},
{
"SchoolName": "North Marston Church of England School",
"Postcode": "MK183PE"
},
{
"SchoolName": "Padbury Church of England School",
"Postcode": "MK182AP"
},
{
"SchoolName": "St Michael's Church of England Combined School",
"Postcode": "LU70HA"
},
{
"SchoolName": "Whaddon CofE First School",
"Postcode": "MK170LS"
},
{
"SchoolName": "St Mary's Church of England School",
"Postcode": "HP197WF"
},
{
"SchoolName": "Bierton Church of England Combined School",
"Postcode": "HP225DF"
},
{
"SchoolName": "High Ash Church of England Combined School",
"Postcode": "MK179AS"
},
{
"SchoolName": "Stone Church of England Combined School",
"Postcode": "HP178PD"
},
{
"SchoolName": "Wendover Church of England Junior School",
"Postcode": "HP226HF"
},
{
"SchoolName": "Weston Turville Church of England School",
"Postcode": "HP225RW"
},
{
"SchoolName": "Wingrave Church of England Combined School",
"Postcode": "HP224QG"
},
{
"SchoolName": "St George's Church of England Infant School",
"Postcode": "HP79HX"
},
{
"SchoolName": "Chesham Bois Church of England Combined School",
"Postcode": "HP66DE"
},
{
"SchoolName": "Coleshill Church of England Infant School",
"Postcode": "HP70LQ"
},
{
"SchoolName": "Lee Common Church of England School",
"Postcode": "HP169JH"
},
{
"SchoolName": "Curzon Church of England Combined School",
"Postcode": "HP70QL"
},
{
"SchoolName": "Great Kimble Church of England School",
"Postcode": "HP179TH"
},
{
"SchoolName": "Great Kingshill Church of England Combined School",
"Postcode": "HP156JP"
},
{
"SchoolName": "Longwick Church of England Combined School",
"Postcode": "HP279SJ"
},
{
"SchoolName": "Marlow Church of England Infant School",
"Postcode": "SL73AZ"
},
{
"SchoolName": "Monks Risborough CofE Primary School",
"Postcode": "HP279LZ"
},
{
"SchoolName": "St Mary's Farnham Royal CofE Primary School",
"Postcode": "SL23AW"
},
{
"SchoolName": "Twyford C of E School",
"Postcode": "MK184EU"
},
{
"SchoolName": "Maids Moreton Church of England School",
"Postcode": "MK181QA"
},
{
"SchoolName": "St Mary's Wavendon CofE Primary",
"Postcode": "MK178LH"
},
{
"SchoolName": "Newton Longville Church of England Primary School",
"Postcode": "MK170BZ"
},
{
"SchoolName": "Great Horwood Church of England Combined School",
"Postcode": "MK170RG"
},
{
"SchoolName": "Westcott Church of England School",
"Postcode": "HP180PH"
},
{
"SchoolName": "St Andrew's CofE Infant School",
"Postcode": "MK145AX"
},
{
"SchoolName": "Mursley Church of England School",
"Postcode": "MK170RT"
},
{
"SchoolName": "Hawridge and Cholesbury Church of England School",
"Postcode": "HP52UQ"
},
{
"SchoolName": "Haddenham St Mary's Church of England School",
"Postcode": "HP178AF"
},
{
"SchoolName": "Quainton Church of England Combined School",
"Postcode": "HP224BJ"
},
{
"SchoolName": "Oakley Church of England Combined School",
"Postcode": "HP189QY"
},
{
"SchoolName": "Winslow Church of England Combined School",
"Postcode": "MK183EN"
},
{
"SchoolName": "St Peter's Church of England Primary School, Burnham",
"Postcode": "SL17DE"
},
{
"SchoolName": "Swanbourne Church of England VA School",
"Postcode": "MK170SW"
},
{
"SchoolName": "Cuddington and Dinton CofE School",
"Postcode": "HP180AP"
},
{
"SchoolName": "Marsworth Church of England Infant School",
"Postcode": "HP234LT"
},
{
"SchoolName": "St Mary's CofE Primary School, Amersham",
"Postcode": "HP70EL"
},
{
"SchoolName": "Little Missenden Church of England School",
"Postcode": "HP70RA"
},
{
"SchoolName": "St Mary and All Saints CofE Primary School",
"Postcode": "HP91RG"
},
{
"SchoolName": "Cadmore End CofE School",
"Postcode": "HP143PE"
},
{
"SchoolName": "Frieth Church of England Combined School",
"Postcode": "RG96PR"
},
{
"SchoolName": "Hazlemere Church of England Combined School",
"Postcode": "HP157PZ"
},
{
"SchoolName": "High Wycombe Church of England Combined School",
"Postcode": "HP112JU"
},
{
"SchoolName": "Ibstone CofE Infant School",
"Postcode": "HP143XZ"
},
{
"SchoolName": "St John's Church of England (VA) Combined School, Lacey Green",
"Postcode": "HP270PL"
},
{
"SchoolName": "Little Marlow CofE School",
"Postcode": "SL73SA"
},
{
"SchoolName": "Radnage CofE Primary School",
"Postcode": "HP144DW"
},
{
"SchoolName": "Speen CofE VA School",
"Postcode": "HP270SX"
},
{
"SchoolName": "St Paul's Church of England Combined School, Wooburn",
"Postcode": "HP100QH"
},
{
"SchoolName": "Holy Trinity Church of England (Aided) School",
"Postcode": "SL73AG"
},
{
"SchoolName": "St Mary and St Giles Church of England Junior School",
"Postcode": "MK111EF"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "SL72PJ"
},
{
"SchoolName": "St Edward's Catholic Junior School",
"Postcode": "HP217JF"
},
{
"SchoolName": "St Thomas Aquinas Catholic Primary School",
"Postcode": "MK35DT"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "SL98SB"
},
{
"SchoolName": "St Joseph's Catholic Infant School",
"Postcode": "HP217JF"
},
{
"SchoolName": "Our Lady's Catholic Primary School",
"Postcode": "HP65PL"
},
{
"SchoolName": "St Louis Catholic Primary School",
"Postcode": "HP202XZ"
},
{
"SchoolName": "Bishop Parker Catholic School",
"Postcode": "MK23BT"
},
{
"SchoolName": "St Monica's Catholic Primary School",
"Postcode": "MK146HB"
},
{
"SchoolName": "St Mary Magdalene Catholic Primary School",
"Postcode": "MK126AY"
},
{
"SchoolName": "Buckingham School",
"Postcode": "MK181AT"
},
{
"SchoolName": "The Grange School",
"Postcode": "HP217NH"
},
{
"SchoolName": "The Misbourne School",
"Postcode": "HP160BN"
},
{
"SchoolName": "Cressex Community School",
"Postcode": "HP124QA"
},
{
"SchoolName": "St Michael's Catholic School",
"Postcode": "HP111PW"
},
{
"SchoolName": "St Paul's Catholic School",
"Postcode": "MK65EN"
},
{
"SchoolName": "Brookmead School",
"Postcode": "LU79EX"
},
{
"SchoolName": "Overstone Combined School",
"Postcode": "LU70NY"
},
{
"SchoolName": "Castlefield School",
"Postcode": "HP123LE"
},
{
"SchoolName": "Brushwood Junior School",
"Postcode": "HP53DW"
},
{
"SchoolName": "Loudwater Combined School",
"Postcode": "HP111JJ"
},
{
"SchoolName": "Lord Grey School",
"Postcode": "MK36EW"
},
{
"SchoolName": "The Radcliffe School",
"Postcode": "MK125BT"
},
{
"SchoolName": "The Cottesloe School",
"Postcode": "LU70NY"
},
{
"SchoolName": "Akeley Wood Senior School",
"Postcode": "MK185AE"
},
{
"SchoolName": "Davenies School",
"Postcode": "HP91AA"
},
{
"SchoolName": "High March School",
"Postcode": "HP92PZ"
},
{
"SchoolName": "Heatherton House School",
"Postcode": "HP65QB"
},
{
"SchoolName": "Caldicott School",
"Postcode": "SL23SL"
},
{
"SchoolName": "Gayhurst School",
"Postcode": "SL98RJ"
},
{
"SchoolName": "Maltmans Green School",
"Postcode": "SL98RR"
},
{
"SchoolName": "St Mary's School",
"Postcode": "SL98JQ"
},
{
"SchoolName": "Pipers Corner School",
"Postcode": "HP156LP"
},
{
"SchoolName": "Godstowe School",
"Postcode": "HP136PR"
},
{
"SchoolName": "Wycombe Abbey School",
"Postcode": "HP111PE"
},
{
"SchoolName": "Stowe School",
"Postcode": "MK185EH"
},
{
"SchoolName": "Thornton College",
"Postcode": "MK170HJ"
},
{
"SchoolName": "Beachborough School",
"Postcode": "NN135LB"
},
{
"SchoolName": "Swanbourne House School",
"Postcode": "MK170HZ"
},
{
"SchoolName": "Chesham Preparatory School",
"Postcode": "HP53QF"
},
{
"SchoolName": "The Beacon School",
"Postcode": "HP65PF"
},
{
"SchoolName": "Dair House School",
"Postcode": "SL23BY"
},
{
"SchoolName": "Thorpe House School",
"Postcode": "SL98QA"
},
{
"SchoolName": "Gateway School",
"Postcode": "HP169AA"
},
{
"SchoolName": "Crown House School",
"Postcode": "HP111QX"
},
{
"SchoolName": "Griffin House School",
"Postcode": "HP170XP"
},
{
"SchoolName": "St Teresa's School",
"Postcode": "HP270JW"
},
{
"SchoolName": "Ashfold School",
"Postcode": "HP189NG"
},
{
"SchoolName": "Macintyre School",
"Postcode": "HP224PA"
},
{
"SchoolName": "Milton Keynes Preparatory School",
"Postcode": "MK37EG"
},
{
"SchoolName": "The Webber Independent School",
"Postcode": "MK146DP"
},
{
"SchoolName": "Teikyo School (UK)",
"Postcode": "SL24QS"
},
{
"SchoolName": "The Grove Independent School",
"Postcode": "MK58HD"
},
{
"SchoolName": "White Spire School",
"Postcode": "MK36EW"
},
{
"SchoolName": "Pebble Brook School",
"Postcode": "HP218LZ"
},
{
"SchoolName": "Chiltern Wood School",
"Postcode": "HP123NE"
},
{
"SchoolName": "Stony Dean School",
"Postcode": "HP79JW"
},
{
"SchoolName": "Romans Field School",
"Postcode": "MK37AW"
},
{
"SchoolName": "Stocklake Park Community School",
"Postcode": "HP201DP"
},
{
"SchoolName": "Heritage House School",
"Postcode": "HP53BP"
},
{
"SchoolName": "The Walnuts School",
"Postcode": "MK80PU"
},
{
"SchoolName": "Furze Down School",
"Postcode": "MK183BL"
},
{
"SchoolName": "Slated Row School",
"Postcode": "MK125NJ"
},
{
"SchoolName": "Booker Park Community School",
"Postcode": "HP219ET"
},
{
"SchoolName": "The Redway School",
"Postcode": "MK64HG"
},
{
"SchoolName": "The Fields Children's Centre",
"Postcode": "CB58ND"
},
{
"SchoolName": "Homerton Early Years Centre",
"Postcode": "CB17ST"
},
{
"SchoolName": "Histon Early Years Centre",
"Postcode": "CB249LL"
},
{
"SchoolName": "Brunswick Nursery School",
"Postcode": "CB12LZ"
},
{
"SchoolName": "Colleges Nursery School",
"Postcode": "CB42LD"
},
{
"SchoolName": "Huntingdon Nursery School",
"Postcode": "PE291AD"
},
{
"SchoolName": "Caverstede Early Years Centre",
"Postcode": "PE46EX"
},
{
"SchoolName": "The Pupil Referral Service, Peterborough",
"Postcode": "PE36BA"
},
{
"SchoolName": "Bassingbourn Primary School",
"Postcode": "SG85NP"
},
{
"SchoolName": "Caldecote Primary School",
"Postcode": "CB237NX"
},
{
"SchoolName": "Cottenham Primary School",
"Postcode": "CB248TA"
},
{
"SchoolName": "Fen Ditton Primary School",
"Postcode": "CB58SZ"
},
{
"SchoolName": "Fen Drayton Primary School",
"Postcode": "CB244SL"
},
{
"SchoolName": "Fowlmere Primary School",
"Postcode": "SG87SL"
},
{
"SchoolName": "Foxton Primary School",
"Postcode": "CB226RN"
},
{
"SchoolName": "Girton Glebe Primary School",
"Postcode": "CB30PN"
},
{
"SchoolName": "Great Abington Primary School",
"Postcode": "CB216AE"
},
{
"SchoolName": "Harston and Newton Community Primary School",
"Postcode": "CB227PX"
},
{
"SchoolName": "Melbourn Primary School",
"Postcode": "SG86DB"
},
{
"SchoolName": "Meldreth Primary School",
"Postcode": "SG86LA"
},
{
"SchoolName": "Over Primary School",
"Postcode": "CB245PG"
},
{
"SchoolName": "Pendragon Community Primary School",
"Postcode": "CB233XQ"
},
{
"SchoolName": "Stapleford Community Primary School",
"Postcode": "CB225BJ"
},
{
"SchoolName": "Swavesey Primary School",
"Postcode": "CB244RN"
},
{
"SchoolName": "Waterbeach Community Primary School",
"Postcode": "CB259JU"
},
{
"SchoolName": "Willingham Primary School",
"Postcode": "CB245LE"
},
{
"SchoolName": "Bar Hill Community Primary School",
"Postcode": "CB238DY"
},
{
"SchoolName": "Meridian Primary School",
"Postcode": "CB237DD"
},
{
"SchoolName": "Benwick Primary School",
"Postcode": "PE150XA"
},
{
"SchoolName": "Townley Primary School",
"Postcode": "PE149NA"
},
{
"SchoolName": "Coates Primary School",
"Postcode": "PE72BP"
},
{
"SchoolName": "Lionel Walden Primary School",
"Postcode": "PE150TF"
},
{
"SchoolName": "Friday Bridge Community Primary School",
"Postcode": "PE140HW"
},
{
"SchoolName": "Gorefield Primary School",
"Postcode": "PE134NB"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "CB63UA"
},
{
"SchoolName": "Littleport Community Primary School",
"Postcode": "CB61JT"
},
{
"SchoolName": "Manea Community Primary School",
"Postcode": "PE150HA"
},
{
"SchoolName": "Westwood Community Primary School",
"Postcode": "PE158JT"
},
{
"SchoolName": "Beaupre Community Primary School",
"Postcode": "PE148RH"
},
{
"SchoolName": "Alderman Payne Primary School",
"Postcode": "PE134JA"
},
{
"SchoolName": "Stretham Community Primary School",
"Postcode": "CB63JN"
},
{
"SchoolName": "Clarkson Infants School",
"Postcode": "PE132ES"
},
{
"SchoolName": "Morley Memorial Primary School",
"Postcode": "CB17TX"
},
{
"SchoolName": "Newnham Croft Primary School",
"Postcode": "CB39JF"
},
{
"SchoolName": "Shirley Community Nursery and Primary School",
"Postcode": "CB41TF"
},
{
"SchoolName": "Arbury Primary School",
"Postcode": "CB42DE"
},
{
"SchoolName": "Colville Primary School",
"Postcode": "CB19EJ"
},
{
"SchoolName": "Mayfield Primary School",
"Postcode": "CB43HN"
},
{
"SchoolName": "The Grove Primary School",
"Postcode": "CB42NB"
},
{
"SchoolName": "Bottisham Community Primary School",
"Postcode": "CB259BE"
},
{
"SchoolName": "The Icknield Primary School",
"Postcode": "CB223EA"
},
{
"SchoolName": "Hauxton Primary School",
"Postcode": "CB225HY"
},
{
"SchoolName": "Fenstanton and Hilton Primary School",
"Postcode": "PE289JR"
},
{
"SchoolName": "Hemingford Grey Primary School",
"Postcode": "PE289DU"
},
{
"SchoolName": "Houghton Primary School",
"Postcode": "PE282AY"
},
{
"SchoolName": "Offord Primary School",
"Postcode": "PE195SB"
},
{
"SchoolName": "Old Fletton Primary School",
"Postcode": "PE29DR"
},
{
"SchoolName": "The Ashbeach Primary School",
"Postcode": "PE262TG"
},
{
"SchoolName": "Priory Park Infant School",
"Postcode": "PE191DZ"
},
{
"SchoolName": "Somersham Primary School",
"Postcode": "PE283EU"
},
{
"SchoolName": "Spaldwick Community Primary School",
"Postcode": "PE280TH"
},
{
"SchoolName": "Southfields Primary School",
"Postcode": "PE28PU"
},
{
"SchoolName": "Woodston Primary School",
"Postcode": "PE29ER"
},
{
"SchoolName": "Upwood Primary School",
"Postcode": "PE262QA"
},
{
"SchoolName": "Westfield Junior School",
"Postcode": "PE275RG"
},
{
"SchoolName": "John Clare Primary School",
"Postcode": "PE67DU"
},
{
"SchoolName": "Northborough Primary School",
"Postcode": "PE69BN"
},
{
"SchoolName": "Priory Junior School",
"Postcode": "PE191TF"
},
{
"SchoolName": "Wyton on the Hill Community Primary School",
"Postcode": "PE282JB"
},
{
"SchoolName": "The Duke of Bedford Primary School",
"Postcode": "PE60ST"
},
{
"SchoolName": "Eastfield Infant and Nursery School",
"Postcode": "PE275QT"
},
{
"SchoolName": "Oakdale Primary School",
"Postcode": "PE28TD"
},
{
"SchoolName": "Yaxley Infant School",
"Postcode": "PE73LU"
},
{
"SchoolName": "Sawtry Infants' School",
"Postcode": "PE285SH"
},
{
"SchoolName": "Warboys Community Primary School",
"Postcode": "PE282RX"
},
{
"SchoolName": "The Newton Community Primary School",
"Postcode": "PE196TL"
},
{
"SchoolName": "Dogsthorpe Infant School",
"Postcode": "PE14LH"
},
{
"SchoolName": "Brewster Avenue Infant School",
"Postcode": "PE29PN"
},
{
"SchoolName": "Queen's Drive Infant School",
"Postcode": "PE12UU"
},
{
"SchoolName": "Gunthorpe Primary School",
"Postcode": "PE47YP"
},
{
"SchoolName": "Little Paxton Primary School",
"Postcode": "PE196NG"
},
{
"SchoolName": "Norwood Primary School",
"Postcode": "PE47DZ"
},
{
"SchoolName": "Braybrook Primary School",
"Postcode": "PE25QL"
},
{
"SchoolName": "Longthorpe Primary School",
"Postcode": "PE39QW"
},
{
"SchoolName": "Earith Primary School",
"Postcode": "PE283QB"
},
{
"SchoolName": "Leighton Primary School",
"Postcode": "PE25PL"
},
{
"SchoolName": "Bewick Bridge Community Primary School",
"Postcode": "CB19ND"
},
{
"SchoolName": "Winyates Primary School",
"Postcode": "PE25RF"
},
{
"SchoolName": "Hardwick and Cambourne Community Primary School",
"Postcode": "CB237RE"
},
{
"SchoolName": "Welbourne Primary School",
"Postcode": "PE46NR"
},
{
"SchoolName": "St Matthew's Primary School",
"Postcode": "CB12LD"
},
{
"SchoolName": "Fourfields Community Primary School",
"Postcode": "PE73ZT"
},
{
"SchoolName": "Wittering Primary School",
"Postcode": "PE86AF"
},
{
"SchoolName": "The Beeches Primary School",
"Postcode": "PE12EH"
},
{
"SchoolName": "Burwell Village College (Primary)",
"Postcode": "CB250DU"
},
{
"SchoolName": "Fulbourn Primary School",
"Postcode": "CB215BH"
},
{
"SchoolName": "Spring Meadow Infant School",
"Postcode": "CB74RB"
},
{
"SchoolName": "Ravensthorpe Primary School",
"Postcode": "PE37NB"
},
{
"SchoolName": "Kinderley Primary School",
"Postcode": "PE135LG"
},
{
"SchoolName": "Queen Edith Primary School",
"Postcode": "CB18QP"
},
{
"SchoolName": "Parnwell Primary School",
"Postcode": "PE14YH"
},
{
"SchoolName": "The Spinney Primary School",
"Postcode": "CB19PB"
},
{
"SchoolName": "Fawcett Primary School",
"Postcode": "CB29FS"
},
{
"SchoolName": "Kettlefields Primary School",
"Postcode": "CB89UH"
},
{
"SchoolName": "Stukeley Meadows Primary School",
"Postcode": "PE296UH"
},
{
"SchoolName": "Ely St John's Community Primary School",
"Postcode": "CB63BW"
},
{
"SchoolName": "Thorpe Primary School",
"Postcode": "PE39UG"
},
{
"SchoolName": "Kings Hedges Primary School",
"Postcode": "CB42HU"
},
{
"SchoolName": "Paston Ridings Primary School",
"Postcode": "PE47XG"
},
{
"SchoolName": "Abbotsmede Primary School",
"Postcode": "PE15JS"
},
{
"SchoolName": "Barrington CofE VC Primary School",
"Postcode": "CB227RG"
},
{
"SchoolName": "Burrough Green CofE Primary School",
"Postcode": "CB89NH"
},
{
"SchoolName": "Castle Camps Church of England (Controlled) Primary School",
"Postcode": "CB214TH"
},
{
"SchoolName": "Cheveley CofE Primary School",
"Postcode": "CB89DF"
},
{
"SchoolName": "Coton Church of England (Voluntary Controlled) Primary School",
"Postcode": "CB237PW"
},
{
"SchoolName": "<NAME> CofE (C) Primary School",
"Postcode": "CB238DA"
},
{
"SchoolName": "Fordham CofE Primary School",
"Postcode": "CB75NL"
},
{
"SchoolName": "Great Wilbraham CofE Primary School",
"Postcode": "CB215JQ"
},
{
"SchoolName": "Isleham Church of England Primary School",
"Postcode": "CB75RZ"
},
{
"SchoolName": "<NAME> CofE VC Primary School",
"Postcode": "SG80PD"
},
{
"SchoolName": "Swaffham Prior Church of England Primary School",
"Postcode": "CB250LG"
},
{
"SchoolName": "William Westley Church of England VC Primary School",
"Postcode": "CB224NE"
},
{
"SchoolName": "Haslingfield Endowed Primary School",
"Postcode": "CB231JW"
},
{
"SchoolName": "Swaffham Bulbeck Church of England Primary School",
"Postcode": "CB250LX"
},
{
"SchoolName": "Duxford Church of England Community Primary School",
"Postcode": "CB224RA"
},
{
"SchoolName": "Downham Feoffees Primary School",
"Postcode": "CB62ST"
},
{
"SchoolName": "Cherry Hinton Church of England Voluntary Controlled Primary School",
"Postcode": "CB19HH"
},
{
"SchoolName": "Sutton CofE VC Primary School",
"Postcode": "CB62PU"
},
{
"SchoolName": "Little Thetford CofE VC Primary School",
"Postcode": "CB63HD"
},
{
"SchoolName": "Wilburton CofE Primary School",
"Postcode": "CB63RJ"
},
{
"SchoolName": "The Rackham Church of England Primary School",
"Postcode": "CB62HQ"
},
{
"SchoolName": "Alconbury CofE Primary School",
"Postcode": "PE284EQ"
},
{
"SchoolName": "Farcet CofE (C) Primary School",
"Postcode": "PE73AR"
},
{
"SchoolName": "Folksworth CofE Primary School",
"Postcode": "PE73TY"
},
{
"SchoolName": "Great Gidding CofE Primary School",
"Postcode": "PE285NX"
},
{
"SchoolName": "Barnabas Oley CofE Primary School",
"Postcode": "SG193AE"
},
{
"SchoolName": "Great Paxton CofE Primary School",
"Postcode": "PE196YJ"
},
{
"SchoolName": "Holme CofE Primary School",
"Postcode": "PE73PB"
},
{
"SchoolName": "Holywell CofE Primary School",
"Postcode": "PE274TF"
},
{
"SchoolName": "Eynesbury CofE C Primary School",
"Postcode": "PE192TD"
},
{
"SchoolName": "Stilton CofE VC Primary School",
"Postcode": "PE73RF"
},
{
"SchoolName": "St Botolph's Church of England Primary School",
"Postcode": "PE27EA"
},
{
"SchoolName": "Barnack CofE (Controlled) Primary School",
"Postcode": "PE93DZ"
},
{
"SchoolName": "Castor CofE Primary School",
"Postcode": "PE57AY"
},
{
"SchoolName": "Eye CofE Primary School",
"Postcode": "PE67TD"
},
{
"SchoolName": "Newborough CofE Primary School",
"Postcode": "PE67RG"
},
{
"SchoolName": "Brington CofE Primary School",
"Postcode": "PE285AE"
},
{
"SchoolName": "Barton CofE VA Primary School",
"Postcode": "CB237BD"
},
{
"SchoolName": "Elsworth CofE VA Primary School",
"Postcode": "CB234JD"
},
{
"SchoolName": "Great and Little Shelford CofE (Aided) Primary School",
"Postcode": "CB225EL"
},
{
"SchoolName": "Linton CofE Infant School",
"Postcode": "CB214JX"
},
{
"SchoolName": "Oakington CofE VA Primary School",
"Postcode": "CB243AL"
},
{
"SchoolName": "Teversham CofE VA Primary School",
"Postcode": "CB19AZ"
},
{
"SchoolName": "Thriplow CofE VA Primary School",
"Postcode": "SG87RH"
},
{
"SchoolName": "Petersfield CofE Aided Primary School",
"Postcode": "SG85QG"
},
{
"SchoolName": "Park Street CofE Primary School",
"Postcode": "CB58AR"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "CB43JZ"
},
{
"SchoolName": "St Pauls CofE VA Primary School",
"Postcode": "CB21HJ"
},
{
"SchoolName": "St Philip's CofE Aided Primary School",
"Postcode": "CB13DR"
},
{
"SchoolName": "St Alban's Catholic Primary School",
"Postcode": "CB21EN"
},
{
"SchoolName": "St Laurence's Catholic Primary School",
"Postcode": "CB42JX"
},
{
"SchoolName": "The Elton CofE Primary School of the Foundation of Frances and Jane Proby",
"Postcode": "PE86RS"
},
{
"SchoolName": "Abbots Ripton CofE Primary School",
"Postcode": "PE282LT"
},
{
"SchoolName": "Peakirk-Cum-Glinton CofE Primary School",
"Postcode": "PE67JW"
},
{
"SchoolName": "All Saints' CofE (Aided) Primary School",
"Postcode": "PE13PW"
},
{
"SchoolName": "St Augustine's CofE (Voluntary Aided) Junior School",
"Postcode": "PE29DH"
},
{
"SchoolName": "St Thomas More Catholic Primary School",
"Postcode": "PE15JW"
},
{
"SchoolName": "Sacred Heart RC Primary School",
"Postcode": "PE39XD"
},
{
"SchoolName": "St John's Church School",
"Postcode": "PE25SP"
},
{
"SchoolName": "Ken Stimpson Community School",
"Postcode": "PE46JT"
},
{
"SchoolName": "St Helen's Primary School",
"Postcode": "PE283NY"
},
{
"SchoolName": "Orton Wistow Primary School",
"Postcode": "PE26GF"
},
{
"SchoolName": "Jack Hunt School",
"Postcode": "PE39PN"
},
{
"SchoolName": "St John Fisher Catholic High School",
"Postcode": "PE15JN"
},
{
"SchoolName": "The Peterborough School",
"Postcode": "PE36AP"
},
{
"SchoolName": "King's College School",
"Postcode": "CB39DN"
},
{
"SchoolName": "St Mary's School",
"Postcode": "CB21LY"
},
{
"SchoolName": "St Faith's School",
"Postcode": "CB28AG"
},
{
"SchoolName": "The Leys School",
"Postcode": "CB27AD"
},
{
"SchoolName": "St John's College School",
"Postcode": "CB39AB"
},
{
"SchoolName": "The King's School Ely",
"Postcode": "CB74DB"
},
{
"SchoolName": "<NAME>",
"Postcode": "SG86LG"
},
{
"SchoolName": "Sancton Wood School",
"Postcode": "CB12EZ"
},
{
"SchoolName": "The Perse School",
"Postcode": "CB28QF"
},
{
"SchoolName": "The Stephen Perse Foundation",
"Postcode": "CB21HF"
},
{
"SchoolName": "Kimbolton School",
"Postcode": "PE280EA"
},
{
"SchoolName": "Wisbech Grammar School",
"Postcode": "PE131JX"
},
{
"SchoolName": "Whitehall School",
"Postcode": "PE283EH"
},
{
"SchoolName": "<NAME>",
"Postcode": "CB21JE"
},
{
"SchoolName": "Chartwell House School",
"Postcode": "PE135HQ"
},
{
"SchoolName": "St. Andrew's College Cambridge",
"Postcode": "CB12JB"
},
{
"SchoolName": "Cambridge Centre for Sixth Form Studies",
"Postcode": "CB21EL"
},
{
"SchoolName": "Cambridge Arts and Sciences Sixth Form and Tutorial College",
"Postcode": "CB41NQ"
},
{
"SchoolName": "Marshfields School",
"Postcode": "PE14PP"
},
{
"SchoolName": "Heltwate School",
"Postcode": "PE38RL"
},
{
"SchoolName": "Samuel Pepys School",
"Postcode": "PE192EZ"
},
{
"SchoolName": "Westminster Nursery School",
"Postcode": "CW27LJ"
},
{
"SchoolName": "St Mary's Community Nursery School",
"Postcode": "CH47HS"
},
{
"SchoolName": "Sandy Lane Nursery and Forest School",
"Postcode": "WA29HY"
},
{
"SchoolName": "Ditton Nursery School",
"Postcode": "WA88DF"
},
{
"SchoolName": "Birchfield Nursery School",
"Postcode": "WA87TH"
},
{
"SchoolName": "Warrington Road Nursery School",
"Postcode": "WA80BS"
},
{
"SchoolName": "Bewsey Lodge Primary School",
"Postcode": "WA50AG"
},
{
"SchoolName": "Dallam Community Primary School",
"Postcode": "WA50JG"
},
{
"SchoolName": "Meadowside Community Primary and Nursery School",
"Postcode": "WA29PH"
},
{
"SchoolName": "Newton Primary School",
"Postcode": "CH22LA"
},
{
"SchoolName": "J H Godwin Primary School",
"Postcode": "CH15JG"
},
{
"SchoolName": "Belgrave Primary School",
"Postcode": "CH47QS"
},
{
"SchoolName": "Neston Primary School",
"Postcode": "CH649RE"
},
{
"SchoolName": "Bradshaw Community Primary School",
"Postcode": "WA42QN"
},
{
"SchoolName": "Moore Primary School",
"Postcode": "WA46UG"
},
{
"SchoolName": "Victoria Road Primary School",
"Postcode": "WA75BN"
},
{
"SchoolName": "Aston by Sutton Primary School",
"Postcode": "WA73DB"
},
{
"SchoolName": "Kingsley Community Primary School and Nursery",
"Postcode": "WA66TZ"
},
{
"SchoolName": "Stockton Heath Primary School",
"Postcode": "WA46HX"
},
{
"SchoolName": "Whitley Village School",
"Postcode": "WA44QH"
},
{
"SchoolName": "Manley Village School",
"Postcode": "WA69DU"
},
{
"SchoolName": "Thelwall Community Junior School",
"Postcode": "WA42HX"
},
{
"SchoolName": "The Cobbs Infant and Nursery School",
"Postcode": "WA43DB"
},
{
"SchoolName": "Weston Point Community Primary School",
"Postcode": "WA74EQ"
},
{
"SchoolName": "Alvanley Primary School",
"Postcode": "WA69DD"
},
{
"SchoolName": "Helsby Hillside Primary School",
"Postcode": "WA69LN"
},
{
"SchoolName": "Statham Community Primary School",
"Postcode": "WA139BE"
},
{
"SchoolName": "Ravenbank Community Primary School",
"Postcode": "WA130JT"
},
{
"SchoolName": "Alderley Edge Community Primary School",
"Postcode": "SK97UZ"
},
{
"SchoolName": "Styal Primary School",
"Postcode": "SK94JE"
},
{
"SchoolName": "Wilmslow Grange Community Primary and Nursery School",
"Postcode": "SK93NG"
},
{
"SchoolName": "Disley Primary School",
"Postcode": "SK122BD"
},
{
"SchoolName": "Lower Park School",
"Postcode": "SK121HE"
},
{
"SchoolName": "Gawsworth Primary School",
"Postcode": "SK119QU"
},
{
"SchoolName": "Hollinhey Primary School",
"Postcode": "SK110EE"
},
{
"SchoolName": "Lindow Community Primary School",
"Postcode": "SK96EH"
},
{
"SchoolName": "Alsager Highfields Community Primary School",
"Postcode": "ST72NW"
},
{
"SchoolName": "Buglawton Primary School",
"Postcode": "CW122EL"
},
{
"SchoolName": "Excalibur Primary School",
"Postcode": "ST72RQ"
},
{
"SchoolName": "Scholar Green Primary School",
"Postcode": "ST73HF"
},
{
"SchoolName": "Pikemere School",
"Postcode": "ST72SW"
},
{
"SchoolName": "Havannah Primary School",
"Postcode": "CW122DF"
},
{
"SchoolName": "Eaton Primary School",
"Postcode": "CW69AN"
},
{
"SchoolName": "Grange Community Primary School",
"Postcode": "CW72EG"
},
{
"SchoolName": "Sandiway Primary School",
"Postcode": "CW82ND"
},
{
"SchoolName": "Little Leigh Primary School",
"Postcode": "CW84RN"
},
{
"SchoolName": "Moulton School",
"Postcode": "CW98PD"
},
{
"SchoolName": "Charles Darwin Community Primary School",
"Postcode": "CW81BN"
},
{
"SchoolName": "Weaverham Forest Primary School",
"Postcode": "CW83EY"
},
{
"SchoolName": "Byley Primary School",
"Postcode": "CW109NG"
},
{
"SchoolName": "Winsford High Street Community Primary School",
"Postcode": "CW72AU"
},
{
"SchoolName": "Cuddington Primary School",
"Postcode": "CW82NY"
},
{
"SchoolName": "Brierley Primary School",
"Postcode": "CW12AZ"
},
{
"SchoolName": "Haslington Primary School",
"Postcode": "CW15SL"
},
{
"SchoolName": "Sound and District Primary School",
"Postcode": "CW58AE"
},
{
"SchoolName": "Weston Village Primary School",
"Postcode": "CW25LZ"
},
{
"SchoolName": "Wrenbury Primary School",
"Postcode": "CW58EN"
},
{
"SchoolName": "Millfields Primary School and Nursery",
"Postcode": "CW55HP"
},
{
"SchoolName": "The Dingle Primary School",
"Postcode": "CW15SD"
},
{
"SchoolName": "Mickle Trafford Village School",
"Postcode": "CH24EF"
},
{
"SchoolName": "Childer Thornton Primary School",
"Postcode": "CH661QY"
},
{
"SchoolName": "Cambridge Road Community Primary and Nursery School",
"Postcode": "CH654AQ"
},
{
"SchoolName": "Westminster Community Primary School",
"Postcode": "CH652ED"
},
{
"SchoolName": "Whitby Heath Primary School",
"Postcode": "CH656RJ"
},
{
"SchoolName": "Wolverham Primary and Nursery School",
"Postcode": "CH655AT"
},
{
"SchoolName": "Huntington Community Primary School",
"Postcode": "CH36DF"
},
{
"SchoolName": "High Legh Primary School",
"Postcode": "WA166NW"
},
{
"SchoolName": "Egerton Primary School",
"Postcode": "WA160EE"
},
{
"SchoolName": "Upton Westlea Primary School",
"Postcode": "CH21QJ"
},
{
"SchoolName": "Sutton Green Primary School",
"Postcode": "CH664NW"
},
{
"SchoolName": "Waverton Community Primary School",
"Postcode": "CH37QT"
},
{
"SchoolName": "Farndon Primary School",
"Postcode": "CH36QP"
},
{
"SchoolName": "Tattenhall Park Primary School",
"Postcode": "CH39AH"
},
{
"SchoolName": "Ashton Hayes Primary School",
"Postcode": "CH38AB"
},
{
"SchoolName": "Tarvin Primary School",
"Postcode": "CH38LS"
},
{
"SchoolName": "Rossmore School",
"Postcode": "CH661HF"
},
{
"SchoolName": "Weston Primary School",
"Postcode": "WA74RA"
},
{
"SchoolName": "Frodsham Weaver Vale Primary School",
"Postcode": "WA67PZ"
},
{
"SchoolName": "Castle View Primary School",
"Postcode": "WA72DZ"
},
{
"SchoolName": "Hartford Primary School",
"Postcode": "CW81NA"
},
{
"SchoolName": "The Brow Community Primary School",
"Postcode": "WA72HB"
},
{
"SchoolName": "Woodside Primary School",
"Postcode": "WA75YP"
},
{
"SchoolName": "Parkgate Primary School",
"Postcode": "CH646SW"
},
{
"SchoolName": "Broomfields Junior School",
"Postcode": "WA43AH"
},
{
"SchoolName": "Horn's Mill Primary School",
"Postcode": "WA60ED"
},
{
"SchoolName": "Darnhall Primary School",
"Postcode": "CW71JL"
},
{
"SchoolName": "Oughtrington Community Primary School",
"Postcode": "WA139EH"
},
{
"SchoolName": "Leftwich Community Primary School",
"Postcode": "CW98DH"
},
{
"SchoolName": "Appleton Thorn Primary School",
"Postcode": "WA44RW"
},
{
"SchoolName": "Pewithall Primary School",
"Postcode": "WA74XQ"
},
{
"SchoolName": "Vine Tree Primary School",
"Postcode": "CW28AD"
},
{
"SchoolName": "Hartford Manor Community Primary School",
"Postcode": "CW81NU"
},
{
"SchoolName": "Dean Valley Community Primary School",
"Postcode": "SK105HS"
},
{
"SchoolName": "Christleton Primary School",
"Postcode": "CH37AY"
},
{
"SchoolName": "Cherry Tree Primary School",
"Postcode": "WA130NX"
},
{
"SchoolName": "Lostock Hall Primary School",
"Postcode": "SK121XG"
},
{
"SchoolName": "Rode Heath Primary School",
"Postcode": "ST73RY"
},
{
"SchoolName": "Wincham Community Primary School",
"Postcode": "CW96EP"
},
{
"SchoolName": "Elworth Hall Primary School",
"Postcode": "CW111TE"
},
{
"SchoolName": "Weaver Primary School",
"Postcode": "CW57AJ"
},
{
"SchoolName": "Thelwall Community Infant School",
"Postcode": "WA42HF"
},
{
"SchoolName": "Hillview Primary School",
"Postcode": "WA73HB"
},
{
"SchoolName": "Edleston Primary School",
"Postcode": "CW27PX"
},
{
"SchoolName": "Goostrey Community Primary School",
"Postcode": "CW48PE"
},
{
"SchoolName": "Murdishaw West Community Primary School",
"Postcode": "WA76EP"
},
{
"SchoolName": "Beechwood Primary School",
"Postcode": "WA72TT"
},
{
"SchoolName": "Gorsewood Primary School",
"Postcode": "WA76ES"
},
{
"SchoolName": "Windmill Hill Primary School",
"Postcode": "WA76QE"
},
{
"SchoolName": "Burtonwood Community Primary School",
"Postcode": "WA54AQ"
},
{
"SchoolName": "Croft Primary School",
"Postcode": "WA37DG"
},
{
"SchoolName": "Culcheth Community Primary School",
"Postcode": "WA35HH"
},
{
"SchoolName": "Great Sankey Primary School",
"Postcode": "WA51SB"
},
{
"SchoolName": "Woolston Community Primary School",
"Postcode": "WA14NW"
},
{
"SchoolName": "Ditton Primary School",
"Postcode": "WA87HD"
},
{
"SchoolName": "Moorfield Primary School",
"Postcode": "WA83HJ"
},
{
"SchoolName": "Newchurch Community Primary School",
"Postcode": "WA34DX"
},
{
"SchoolName": "Park Road Community Primary School",
"Postcode": "WA53EF"
},
{
"SchoolName": "Chapelford Village Primary School",
"Postcode": "WA53AL"
},
{
"SchoolName": "Twiss Green Community Primary School",
"Postcode": "WA34DQ"
},
{
"SchoolName": "Fairfield Primary School",
"Postcode": "WA86TH"
},
{
"SchoolName": "Penketh South Community Primary School",
"Postcode": "WA52PN"
},
{
"SchoolName": "Lunts Heath Primary School",
"Postcode": "WA89RJ"
},
{
"SchoolName": "Brook Acre Community Primary School",
"Postcode": "WA20JP"
},
{
"SchoolName": "Rainow Primary School",
"Postcode": "SK105UB"
},
{
"SchoolName": "Locking Stumps Community Primary School",
"Postcode": "WA37PH"
},
{
"SchoolName": "Acresfield Community Primary School",
"Postcode": "CH21LJ"
},
{
"SchoolName": "Westbrook Old Hall Primary School",
"Postcode": "WA59QA"
},
{
"SchoolName": "Gorse Covert Primary School",
"Postcode": "WA36TS"
},
{
"SchoolName": "Cherry Grove Primary School",
"Postcode": "CH35EN"
},
{
"SchoolName": "Hallwood Park Primary School and Nursery",
"Postcode": "WA72FL"
},
{
"SchoolName": "Beechwood Primary School and Nursery",
"Postcode": "CW12PH"
},
{
"SchoolName": "Winnington Park Community Primary and Nursery School",
"Postcode": "CW84AZ"
},
{
"SchoolName": "Callands Community Primary School",
"Postcode": "WA59RJ"
},
{
"SchoolName": "Mablins Lane Community Primary School",
"Postcode": "CW13YR"
},
{
"SchoolName": "Astmoor Primary School",
"Postcode": "WA72JE"
},
{
"SchoolName": "Dee Point Primary School",
"Postcode": "CH15NF"
},
{
"SchoolName": "Pebble Brook Primary School",
"Postcode": "CW26PL"
},
{
"SchoolName": "Daven Primary School",
"Postcode": "CW123AH"
},
{
"SchoolName": "Elton Primary School",
"Postcode": "CH24LT"
},
{
"SchoolName": "Ashdene Primary School",
"Postcode": "SK96LJ"
},
{
"SchoolName": "Simms Cross Primary School",
"Postcode": "WA87QS"
},
{
"SchoolName": "Halton Lodge Primary School",
"Postcode": "WA75LU"
},
{
"SchoolName": "Oldfield Primary School",
"Postcode": "CH35LB"
},
{
"SchoolName": "Bexton Primary School",
"Postcode": "WA169DB"
},
{
"SchoolName": "Hurdsfield Community Primary School",
"Postcode": "SK102LW"
},
{
"SchoolName": "Barrow Hall Community Primary School",
"Postcode": "WA53TX"
},
{
"SchoolName": "Meadow Community Primary School",
"Postcode": "CH664SZ"
},
{
"SchoolName": "Frodsham Manor House Primary School",
"Postcode": "WA67LE"
},
{
"SchoolName": "Manor Park School and Nursery",
"Postcode": "WA168DB"
},
{
"SchoolName": "Parklands Community Primary School",
"Postcode": "CH663RL"
},
{
"SchoolName": "Westfield Primary School",
"Postcode": "WA74TR"
},
{
"SchoolName": "Halebank CofE Primary School",
"Postcode": "WA88UZ"
},
{
"SchoolName": "Willaston CofE Primary School",
"Postcode": "CH642TN"
},
{
"SchoolName": "Antrobus St Mark's CofE Primary School",
"Postcode": "CW96LB"
},
{
"SchoolName": "Frodsham CofE Primary School",
"Postcode": "WA66AF"
},
{
"SchoolName": "Great Budworth CofE Primary School",
"Postcode": "CW96HQ"
},
{
"SchoolName": "Norley CofE VA Primary School",
"Postcode": "WA68JZ"
},
{
"SchoolName": "Little Bollington CofE Primary School",
"Postcode": "WA144SZ"
},
{
"SchoolName": "Bollington Cross CofE Primary School",
"Postcode": "SK105EG"
},
{
"SchoolName": "Bosley St Mary's CofE Primary School",
"Postcode": "SK110NX"
},
{
"SchoolName": "Chelford CofE Primary School",
"Postcode": "SK119AY"
},
{
"SchoolName": "Woodcocks' Well CofE Primary School",
"Postcode": "ST73NQ"
},
{
"SchoolName": "Elworth CofE Primary School",
"Postcode": "CW113HU"
},
{
"SchoolName": "Tarporley CofE Primary School",
"Postcode": "CW60AN"
},
{
"SchoolName": "Utkinton St Paul's CofE Primary School",
"Postcode": "CW60LA"
},
{
"SchoolName": "St Chad's CofE Primary School",
"Postcode": "CW74AT"
},
{
"SchoolName": "Over St John's CofE Primary School",
"Postcode": "CW72LU"
},
{
"SchoolName": "Audlem St James' CofE Primary School",
"Postcode": "CW30HH"
},
{
"SchoolName": "Bickerton Holy Trinity CofE Primary School",
"Postcode": "SY148AP"
},
{
"SchoolName": "Barrow CofE Primary School",
"Postcode": "CH37HW"
},
{
"SchoolName": "Capenhurst CofE Primary School",
"Postcode": "CH16HE"
},
{
"SchoolName": "Dodleston CofE Primary School",
"Postcode": "CH49NG"
},
{
"SchoolName": "Guilden Sutton CofE Primary School",
"Postcode": "CH37ES"
},
{
"SchoolName": "Little Sutton C of E Primary School",
"Postcode": "CH664PP"
},
{
"SchoolName": "Mobberley CofE Primary School",
"Postcode": "WA167RA"
},
{
"SchoolName": "Clutton Church of England Primary School",
"Postcode": "CH39ER"
},
{
"SchoolName": "Duddon St Peter's CofE Primary School",
"Postcode": "CW60EL"
},
{
"SchoolName": "Malpas Alport Endowed Primary School",
"Postcode": "SY148PY"
},
{
"SchoolName": "Shocklach Oviatt CofE Primary School",
"Postcode": "SY147BN"
},
{
"SchoolName": "Tilston Parochial CofE Primary School",
"Postcode": "SY147HB"
},
{
"SchoolName": "Tushingham-with-Grindley CofE Primary School",
"Postcode": "SY134QS"
},
{
"SchoolName": "Huxley CofE Primary School",
"Postcode": "CH39BH"
},
{
"SchoolName": "St Anne's Fulshaw C of E Primary School",
"Postcode": "SK95JQ"
},
{
"SchoolName": "<NAME> CofE Primary School",
"Postcode": "CW97PT"
},
{
"SchoolName": "Overleigh St Mary's CofE Primary School",
"Postcode": "CH47HS"
},
{
"SchoolName": "Spinney Avenue Church of England Voluntary Controlled Primary School",
"Postcode": "WA88LD"
},
{
"SchoolName": "Hale Church of England Voluntary Controlled Primary School",
"Postcode": "L244AN"
},
{
"SchoolName": "St Elphin's (Fairfield) CofE Voluntary Aided Primary School",
"Postcode": "WA12GN"
},
{
"SchoolName": "Warrington St Ann's CofE Primary School",
"Postcode": "WA28AL"
},
{
"SchoolName": "Warrington St Barnabas CofE Primary School",
"Postcode": "WA51TG"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "WA29HF"
},
{
"SchoolName": "Birchwood CofE Primary School",
"Postcode": "WA36QG"
},
{
"SchoolName": "Our Lady's Catholic Primary School",
"Postcode": "WA41JD"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "WA51NS"
},
{
"SchoolName": "St Alban's Catholic Primary School",
"Postcode": "WA50JS"
},
{
"SchoolName": "St Benedict's Catholic Primary School",
"Postcode": "WA27SB"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "WA41PY"
},
{
"SchoolName": "St Stephen's Catholic Primary School",
"Postcode": "WA29HS"
},
{
"SchoolName": "St Clare's Catholic Primary School",
"Postcode": "CH48HX"
},
{
"SchoolName": "Bishop Wilson Church of England Primary School",
"Postcode": "CH645SE"
},
{
"SchoolName": "St Winefride's Catholic Primary School",
"Postcode": "CH649RW"
},
{
"SchoolName": "Runcorn All Saints CofE Primary School",
"Postcode": "WA71LD"
},
{
"SchoolName": "Grappenhall St Wilfrid's CofE Primary School",
"Postcode": "WA43EP"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "WA72NR"
},
{
"SchoolName": "Kingsley St John's CofE (VA) Primary School",
"Postcode": "WA68EF"
},
{
"SchoolName": "St Thomas' CofE Primary School",
"Postcode": "WA42AP"
},
{
"SchoolName": "St Edward's Catholic Primary School",
"Postcode": "WA71RZ"
},
{
"SchoolName": "St Clement's Catholic Primary School",
"Postcode": "WA74NX"
},
{
"SchoolName": "The Holy Spirit Catholic Primary School",
"Postcode": "WA72NL"
},
{
"SchoolName": "St Monica's Catholic Primary School",
"Postcode": "WA43AG"
},
{
"SchoolName": "St Benedict's Catholic Primary School",
"Postcode": "SK93AE"
},
{
"SchoolName": "Bollington St John's CofE Primary School",
"Postcode": "SK105LY"
},
{
"SchoolName": "Prestbury CofE Primary School",
"Postcode": "SK104JJ"
},
{
"SchoolName": "Wincle CofE Primary School",
"Postcode": "SK110QH"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "SK105HS"
},
{
"SchoolName": "Marton and District CofE Aided Primary School",
"Postcode": "SK119HD"
},
{
"SchoolName": "St John the Evangelist CofE Primary School Macclesfield",
"Postcode": "SK118QN"
},
{
"SchoolName": "Brereton CofE Primary School",
"Postcode": "CW111RN"
},
{
"SchoolName": "Astbury St Mary's CofE Primary School",
"Postcode": "CW124RG"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "CW112LE"
},
{
"SchoolName": "Crowton Christ Church CofE Primary School",
"Postcode": "CW82RW"
},
{
"SchoolName": "Lower Peover CofE Primary School",
"Postcode": "WA169PZ"
},
{
"SchoolName": "Whitegate CofE Primary School",
"Postcode": "CW82AY"
},
{
"SchoolName": "St Gabriel's Catholic Primary School",
"Postcode": "ST72PG"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "CW109DH"
},
{
"SchoolName": "St Bede's Catholic Primary School, Weaverham",
"Postcode": "CW83BY"
},
{
"SchoolName": "St Mary's Catholic Primary School, Crewe",
"Postcode": "CW28AD"
},
{
"SchoolName": "Bridgemere CofE Primary School",
"Postcode": "CW57PX"
},
{
"SchoolName": "Wybunbury Delves CofE Primary School",
"Postcode": "CW57NE"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "CW57DA"
},
{
"SchoolName": "Eccleston CofE Primary School",
"Postcode": "CH49HD"
},
{
"SchoolName": "Saighton CofE Primary School",
"Postcode": "CH36EG"
},
{
"SchoolName": "Ellesmere Port Christ Church CofE Primary School",
"Postcode": "CH656TQ"
},
{
"SchoolName": "St Mary of the Angels Catholic Primary School",
"Postcode": "CH661NN"
},
{
"SchoolName": "St Vincent's Catholic Primary School",
"Postcode": "WA168AL"
},
{
"SchoolName": "Bollinbrook CofE Primary School",
"Postcode": "SK103AT"
},
{
"SchoolName": "Glazebury CofE (Aided) Primary School",
"Postcode": "WA35LZ"
},
{
"SchoolName": "Christ Church CofE Primary School Padgate",
"Postcode": "WA20QJ"
},
{
"SchoolName": "Hollins Green St Helen's CofE (Aided) Primary School",
"Postcode": "WA36JS"
},
{
"SchoolName": "Winwick CofE Primary School",
"Postcode": "WA28LQ"
},
{
"SchoolName": "Woolston CofE Aided Primary School",
"Postcode": "WA14QL"
},
{
"SchoolName": "St Paul of the Cross Catholic Primary School",
"Postcode": "WA54PN"
},
{
"SchoolName": "St Lewis Catholic Primary School",
"Postcode": "WA37BD"
},
{
"SchoolName": "St Oswald's Catholic Primary School",
"Postcode": "WA13LB"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "WA14PQ"
},
{
"SchoolName": "St Bede's Catholic Junior School",
"Postcode": "WA86EL"
},
{
"SchoolName": "St Bede's Catholic Infant School",
"Postcode": "WA86EL"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "WA52AU"
},
{
"SchoolName": "St Vincent's Catholic Primary School",
"Postcode": "WA52PN"
},
{
"SchoolName": "St Bridget's Catholic Primary School",
"Postcode": "WA20ER"
},
{
"SchoolName": "Our Lady Mother of the Saviour Catholic Primary School",
"Postcode": "WA72TP"
},
{
"SchoolName": "St Luke's Catholic Primary School",
"Postcode": "WA67QP"
},
{
"SchoolName": "St Martin's Catholic Primary School",
"Postcode": "WA76HZ"
},
{
"SchoolName": "Cinnamon Brow CofE Primary School",
"Postcode": "WA20SF"
},
{
"SchoolName": "Stretton St Matthew's CofE Primary School",
"Postcode": "WA44NT"
},
{
"SchoolName": "St Berteline's CofE Primary School",
"Postcode": "WA76QN"
},
{
"SchoolName": "St Werburgh's and St Columba's Catholic Primary School",
"Postcode": "CH23AD"
},
{
"SchoolName": "St Philip (Westbrook) CofE Aided Primary School",
"Postcode": "WA58UE"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "CW72JS"
},
{
"SchoolName": "Davenham CofE Primary School",
"Postcode": "CW98JW"
},
{
"SchoolName": "St Theresa's Catholic Primary School",
"Postcode": "CH15UU"
},
{
"SchoolName": "Witton Church Walk CofE Primary School",
"Postcode": "CW95QQ"
},
{
"SchoolName": "St Basil's Catholic Primary School",
"Postcode": "WA84SZ"
},
{
"SchoolName": "St Gerard's Catholic Primary and Nursery School",
"Postcode": "WA86DD"
},
{
"SchoolName": "St John Fisher Catholic Primary School",
"Postcode": "WA80BW"
},
{
"SchoolName": "St Michaels Catholic Primary School",
"Postcode": "WA88TD"
},
{
"SchoolName": "Farnworth Church of England Controlled Primary School",
"Postcode": "WA89HS"
},
{
"SchoolName": "Blacon High School, A Specialist Sports College",
"Postcode": "CH15JH"
},
{
"SchoolName": "The Grange School",
"Postcode": "WA75DX"
},
{
"SchoolName": "Middlewich High School",
"Postcode": "CW109BU"
},
{
"SchoolName": "Weaverham High School",
"Postcode": "CW83HT"
},
{
"SchoolName": "Malbank School and Sixth Form College",
"Postcode": "CW55HD"
},
{
"SchoolName": "Upton-by-Chester High School",
"Postcode": "CH21NN"
},
{
"SchoolName": "Bishop Heber High School",
"Postcode": "SY148JD"
},
{
"SchoolName": "The Whitby High School",
"Postcode": "CH662NU"
},
{
"SchoolName": "Culcheth High School",
"Postcode": "WA35HH"
},
{
"SchoolName": "Poynton High School",
"Postcode": "SK121PU"
},
{
"SchoolName": "Helsby High School",
"Postcode": "WA60HY"
},
{
"SchoolName": "Wilmslow High School",
"Postcode": "SK91LZ"
},
{
"SchoolName": "St Nicholas Catholic High School",
"Postcode": "CW81JW"
},
{
"SchoolName": "Ellesmere Port Catholic High School",
"Postcode": "CH657AQ"
},
{
"SchoolName": "St Gregory's Catholic High School",
"Postcode": "WA51HG"
},
{
"SchoolName": "Cardinal Newman Catholic High School",
"Postcode": "WA41RX"
},
{
"SchoolName": "Saints Peter and Paul Catholic College",
"Postcode": "WA87DW"
},
{
"SchoolName": "Kettleshulme St James CofE (VA) Primary School",
"Postcode": "SK237QU"
},
{
"SchoolName": "St Wilfrid's Catholic Primary School",
"Postcode": "CW81JW"
},
{
"SchoolName": "Pott Shrigley Church School",
"Postcode": "SK105RT"
},
{
"SchoolName": "Abbey Gate Prep School",
"Postcode": "CH23HR"
},
{
"SchoolName": "The Ryleys School",
"Postcode": "SK97UY"
},
{
"SchoolName": "Firs School",
"Postcode": "CH22HJ"
},
{
"SchoolName": "The Grange School",
"Postcode": "CW81LU"
},
{
"SchoolName": "Terra Nova School",
"Postcode": "CW48BT"
},
{
"SchoolName": "The King's School In Macclesfield",
"Postcode": "SK101DA"
},
{
"SchoolName": "Beech Hall School",
"Postcode": "SK102EG"
},
{
"SchoolName": "Wilmslow Preparatory School",
"Postcode": "SK95EG"
},
{
"SchoolName": "Alderley Edge School for Girls",
"Postcode": "SK97QE"
},
{
"SchoolName": "Yorston Lodge School",
"Postcode": "WA160DP"
},
{
"SchoolName": "Pownall Hall School",
"Postcode": "SK95DW"
},
{
"SchoolName": "The Hammond",
"Postcode": "CH24ES"
},
{
"SchoolName": "Cransley School",
"Postcode": "CW96HN"
},
{
"SchoolName": "Abbey Gate College",
"Postcode": "CH36EN"
},
{
"SchoolName": "The King's School",
"Postcode": "CH47QL"
},
{
"SchoolName": "The Queen's School",
"Postcode": "CH12NN"
},
{
"SchoolName": "Dee Banks School",
"Postcode": "CH35UX"
},
{
"SchoolName": "Green Lane Community Special School",
"Postcode": "WA14LS"
},
{
"SchoolName": "Fox Wood Special School",
"Postcode": "WA14LS"
},
{
"SchoolName": "Chaigeley School",
"Postcode": "WA42TE"
},
{
"SchoolName": "David Lewis School",
"Postcode": "SK97UD"
},
{
"SchoolName": "Woolston Brook School",
"Postcode": "WA14JL"
},
{
"SchoolName": "Greenbank School",
"Postcode": "CW81LD"
},
{
"SchoolName": "Oaklands School",
"Postcode": "CW71NU"
},
{
"SchoolName": "Hebden Green Community School",
"Postcode": "CW74EJ"
},
{
"SchoolName": "Springfield School",
"Postcode": "CW15HS"
},
{
"SchoolName": "Park Lane School",
"Postcode": "SK118JR"
},
{
"SchoolName": "Hinderton School",
"Postcode": "CH657AQ"
},
{
"SchoolName": "Dorin Park School & Specialist SEN College",
"Postcode": "CH21HD"
},
{
"SchoolName": "Rosebank School",
"Postcode": "CW84QP"
},
{
"SchoolName": "Chesnut Lodge Special School",
"Postcode": "WA87HF"
},
{
"SchoolName": "Ashley High School",
"Postcode": "WA87HG"
},
{
"SchoolName": "Brookfields School",
"Postcode": "WA83JA"
},
{
"SchoolName": "Archers Brook Semh Residential School",
"Postcode": "CH662NA"
},
{
"SchoolName": "Eston Centre (EOTAS)",
"Postcode": "TS69AD"
},
{
"SchoolName": "Bishopton Centre",
"Postcode": "TS233HB"
},
{
"SchoolName": "Hart Primary School",
"Postcode": "TS273AP"
},
{
"SchoolName": "High Clarence Primary School",
"Postcode": "TS21SY"
},
{
"SchoolName": "Billingham South Community Primary School",
"Postcode": "TS231BE"
},
{
"SchoolName": "Lingdale Primary School",
"Postcode": "TS123DU"
},
{
"SchoolName": "Lockwood Primary School",
"Postcode": "TS123BL"
},
{
"SchoolName": "Wolviston Primary School",
"Postcode": "TS225LN"
},
{
"SchoolName": "Preston Primary School",
"Postcode": "TS160BE"
},
{
"SchoolName": "Mill Lane Primary School",
"Postcode": "TS181QX"
},
{
"SchoolName": "Bowesfield Primary School",
"Postcode": "TS183JB"
},
{
"SchoolName": "Hartburn Primary School",
"Postcode": "TS185BS"
},
{
"SchoolName": "Whitehouse Primary School",
"Postcode": "TS190TS"
},
{
"SchoolName": "The Glebe Primary School",
"Postcode": "TS201QY"
},
{
"SchoolName": "The Village Primary",
"Postcode": "TS178PW"
},
{
"SchoolName": "Durham Lane Primary School",
"Postcode": "TS160NG"
},
{
"SchoolName": "Westgarth Primary School",
"Postcode": "TS116AE"
},
{
"SchoolName": "Kirklevington Primary School",
"Postcode": "TS159LX"
},
{
"SchoolName": "Levendale Primary School",
"Postcode": "TS159RJ"
},
{
"SchoolName": "Galley Hill Primary School",
"Postcode": "TS148DW"
},
{
"SchoolName": "Beech Grove Primary School",
"Postcode": "TS43AP"
},
{
"SchoolName": "Newport Primary School",
"Postcode": "TS15NQ"
},
{
"SchoolName": "Golden Flatts Primary School",
"Postcode": "TS251HN"
},
{
"SchoolName": "Newham Bridge Primary School",
"Postcode": "TS57NJ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "TS58SQ"
},
{
"SchoolName": "Breckon Hill Primary School",
"Postcode": "TS42DS"
},
{
"SchoolName": "Lynnfield Primary School",
"Postcode": "TS268RL"
},
{
"SchoolName": "The Avenue Primary School",
"Postcode": "TS70AG"
},
{
"SchoolName": "Lingfield Primary School",
"Postcode": "TS78LP"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "TS78RH"
},
{
"SchoolName": "Fens Primary School",
"Postcode": "TS252LY"
},
{
"SchoolName": "Kingsley Primary School",
"Postcode": "TS255JR"
},
{
"SchoolName": "Teesville Primary School",
"Postcode": "TS60BZ"
},
{
"SchoolName": "Bankfields Primary School",
"Postcode": "TS60RZ"
},
{
"SchoolName": "St Helen's Primary School",
"Postcode": "TS240HG"
},
{
"SchoolName": "Green Gates Primary School",
"Postcode": "TS104HS"
},
{
"SchoolName": "<NAME> Batty Primary School",
"Postcode": "TS103PG"
},
{
"SchoolName": "Ings Farm Primary School",
"Postcode": "TS102JZ"
},
{
"SchoolName": "Wilton Primary School",
"Postcode": "TS68DY"
},
{
"SchoolName": "Throston Primary School",
"Postcode": "TS260TJ"
},
{
"SchoolName": "Clavering Primary School",
"Postcode": "TS273PN"
},
{
"SchoolName": "Crooksbarn Primary School",
"Postcode": "TS201SN"
},
{
"SchoolName": "Barnard Grove Primary School",
"Postcode": "TS249SD"
},
{
"SchoolName": "Hummersea Primary School",
"Postcode": "TS134XD"
},
{
"SchoolName": "Layfield Primary School",
"Postcode": "TS159TF"
},
{
"SchoolName": "Archibald Primary School",
"Postcode": "TS54DY"
},
{
"SchoolName": "Berwick Hills Primary School",
"Postcode": "TS37QH"
},
{
"SchoolName": "Overfields Primary School",
"Postcode": "TS79JF"
},
{
"SchoolName": "Park End Primary School",
"Postcode": "TS30AA"
},
{
"SchoolName": "Thorntree Primary School",
"Postcode": "TS39NH"
},
{
"SchoolName": "Whale Hill Primary School",
"Postcode": "TS68AD"
},
{
"SchoolName": "Lakes Primary School",
"Postcode": "TS104JH"
},
{
"SchoolName": "Newcomen Primary School",
"Postcode": "TS101NL"
},
{
"SchoolName": "Riverdale Primary School",
"Postcode": "TS104HH"
},
{
"SchoolName": "Rift House Primary School",
"Postcode": "TS254JY"
},
{
"SchoolName": "Rossmere Primary School",
"Postcode": "TS253JL"
},
{
"SchoolName": "Pentland Primary School",
"Postcode": "TS232RG"
},
{
"SchoolName": "Oxbridge Lane Primary School",
"Postcode": "TS184DA"
},
{
"SchoolName": "Grangetown Primary School",
"Postcode": "TS67JA"
},
{
"SchoolName": "Errington Primary School",
"Postcode": "TS117BL"
},
{
"SchoolName": "Whinstone Primary School",
"Postcode": "TS170RJ"
},
{
"SchoolName": "Wheatlands Primary School",
"Postcode": "TS102PU"
},
{
"SchoolName": "Tilery Primary School",
"Postcode": "TS182HU"
},
{
"SchoolName": "Grange Primary School",
"Postcode": "TS253PU"
},
{
"SchoolName": "Belmont Primary School",
"Postcode": "TS147BS"
},
{
"SchoolName": "Saltburn Primary School",
"Postcode": "TS121HJ"
},
{
"SchoolName": "New Marske Primary School",
"Postcode": "TS118BN"
},
{
"SchoolName": "Prior's Mill Church of England Controlled Primary School, Billingham",
"Postcode": "TS225BX"
},
{
"SchoolName": "St John the Baptist Church of England Voluntary Controlled Primary School",
"Postcode": "TS190FB"
},
{
"SchoolName": "Thornaby-on-Tees Church of England Voluntary Controlled Primary School",
"Postcode": "TS179DB"
},
{
"SchoolName": "St Peter's Elwick Church of England Voluntary Aided Primary School",
"Postcode": "TS273EG"
},
{
"SchoolName": "Egglescliffe Church of England Voluntary Controlled Primary School",
"Postcode": "TS169BT"
},
{
"SchoolName": "Coatham Church of England Voluntary Controlled Primary School",
"Postcode": "TS101QY"
},
{
"SchoolName": "Greatham CofE Primary School",
"Postcode": "TS252EU"
},
{
"SchoolName": "St Peter's Church of England Voluntary Controlled Primary School, Brotton",
"Postcode": "TS122UW"
},
{
"SchoolName": "Our Lady of the Most Holy Rosary RC Primary School",
"Postcode": "TS232BS"
},
{
"SchoolName": "St Cuthbert's RC Voluntary Aided Primary School",
"Postcode": "TS183SY"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Norton",
"Postcode": "TS201HR"
},
{
"SchoolName": "St Patrick's Roman Catholic Voluntary Aided Primary School",
"Postcode": "TS197PL"
},
{
"SchoolName": "St Aidan's CofE Memorial Primary School",
"Postcode": "TS255BA"
},
{
"SchoolName": "Sacred Heart RC Primary School",
"Postcode": "TS268NL"
},
{
"SchoolName": "St Cuthbert's RC Primary School",
"Postcode": "TS255AJ"
},
{
"SchoolName": "St Joseph's RC Primary School",
"Postcode": "TS247HT"
},
{
"SchoolName": "St Teresa's RC Primary School",
"Postcode": "TS253BG"
},
{
"SchoolName": "St Bega's RC Primary School",
"Postcode": "TS240DX"
},
{
"SchoolName": "St John Vianney RC Primary School",
"Postcode": "TS249PA"
},
{
"SchoolName": "Holy Trinity Church of England (Aided) Primary School",
"Postcode": "TS251BZ"
},
{
"SchoolName": "St Mary's Church of England Aided Primary School, Long Newton",
"Postcode": "TS211DL"
},
{
"SchoolName": "St Pius X RC Primary School",
"Postcode": "TS37HD"
},
{
"SchoolName": "<NAME> Church of England Aided Primary School",
"Postcode": "TS211JD"
},
{
"SchoolName": "Laurence Jackson School",
"Postcode": "TS146RD"
},
{
"SchoolName": "Huntcliff School",
"Postcode": "TS121HJ"
},
{
"SchoolName": "Northfield School and Sports College",
"Postcode": "TS225EG"
},
{
"SchoolName": "High Tunstall College of Science",
"Postcode": "TS260LQ"
},
{
"SchoolName": "Acklam Grange School",
"Postcode": "TS58PB"
},
{
"SchoolName": "Red House School",
"Postcode": "TS201DX"
},
{
"SchoolName": "Teesside High School",
"Postcode": "TS169AT"
},
{
"SchoolName": "Yarm School",
"Postcode": "TS159EJ"
},
{
"SchoolName": "Yarm Preparatory School",
"Postcode": "TS159ES"
},
{
"SchoolName": "Beverley School",
"Postcode": "TS43JS"
},
{
"SchoolName": "Holmwood School",
"Postcode": "TS43PT"
},
{
"SchoolName": "Kirkleatham Hall School",
"Postcode": "TS104QR"
},
{
"SchoolName": "Springwell School",
"Postcode": "TS260TB"
},
{
"SchoolName": "Camborne Nursery School",
"Postcode": "TR147DT"
},
{
"SchoolName": "Truro Nursery School",
"Postcode": "TR13RJ"
},
{
"SchoolName": "Trythall Community Primary School",
"Postcode": "TR208XR"
},
{
"SchoolName": "Marazion School",
"Postcode": "TR170DG"
},
{
"SchoolName": "Heamoor Community Primary School",
"Postcode": "TR183JZ"
},
{
"SchoolName": "St Ives Junior School",
"Postcode": "TR261DN"
},
{
"SchoolName": "St Levan Primary School",
"Postcode": "TR196HD"
},
{
"SchoolName": "Sennen School",
"Postcode": "TR197AW"
},
{
"SchoolName": "Germoe Community Primary School",
"Postcode": "TR209QY"
},
{
"SchoolName": "Mylor Community Primary School",
"Postcode": "TR115SE"
},
{
"SchoolName": "Boskenwyn Community Primary School",
"Postcode": "TR130NG"
},
{
"SchoolName": "Lanner Primary School",
"Postcode": "TR166AZ"
},
{
"SchoolName": "St Day and Carharrack Community School",
"Postcode": "TR165LG"
},
{
"SchoolName": "Treleigh Community Primary School",
"Postcode": "TR164AY"
},
{
"SchoolName": "Cusgarne Community Primary School",
"Postcode": "TR48RW"
},
{
"SchoolName": "Gwinear Community Primary School",
"Postcode": "TR275LA"
},
{
"SchoolName": "Penpol School",
"Postcode": "TR274AH"
},
{
"SchoolName": "Stithians Community Primary School",
"Postcode": "TR37DH"
},
{
"SchoolName": "Kea Community Primary School",
"Postcode": "TR36AY"
},
{
"SchoolName": "Perran-Ar-Worthal Community Primary School",
"Postcode": "TR37LA"
},
{
"SchoolName": "Goonhavern Primary School",
"Postcode": "TR49QD"
},
{
"SchoolName": "St Erme with Trispen Community Primary School",
"Postcode": "TR49BJ"
},
{
"SchoolName": "Devoran School",
"Postcode": "TR36PA"
},
{
"SchoolName": "Bosvigo School",
"Postcode": "TR13BJ"
},
{
"SchoolName": "Cubert School",
"Postcode": "TR85HE"
},
{
"SchoolName": "Gorran School",
"Postcode": "PL266LH"
},
{
"SchoolName": "Indian Queens Community Primary School and Nursery",
"Postcode": "TR96QZ"
},
{
"SchoolName": "Nanpean Community Primary School",
"Postcode": "PL267YH"
},
{
"SchoolName": "St Wenn School",
"Postcode": "PL305PS"
},
{
"SchoolName": "Blisland Community Primary School",
"Postcode": "PL304JX"
},
{
"SchoolName": "Cardinham School",
"Postcode": "PL304BN"
},
{
"SchoolName": "Port Isaac Community Primary School",
"Postcode": "PL293RT"
},
{
"SchoolName": "Lanivet Community Primary School",
"Postcode": "PL305HE"
},
{
"SchoolName": "Nanstallon Community Primary School",
"Postcode": "PL305JZ"
},
{
"SchoolName": "St Kew Community Primary School",
"Postcode": "PL303ER"
},
{
"SchoolName": "Berrycoombe School",
"Postcode": "PL312PH"
},
{
"SchoolName": "Camelford Community Primary School",
"Postcode": "PL329UE"
},
{
"SchoolName": "Egloskerry School",
"Postcode": "PL158RT"
},
{
"SchoolName": "Boscastle Community Primary School",
"Postcode": "PL350AU"
},
{
"SchoolName": "Kilkhampton Junior and Infant School",
"Postcode": "EX239QU"
},
{
"SchoolName": "Trekenner Community Primary School",
"Postcode": "PL159PH"
},
{
"SchoolName": "Coads Green Primary School",
"Postcode": "PL157LY"
},
{
"SchoolName": "Otterham Community Primary School",
"Postcode": "PL329YW"
},
{
"SchoolName": "St Breward Community Primary School",
"Postcode": "PL304LX"
},
{
"SchoolName": "St Teath Community Primary School",
"Postcode": "PL303JX"
},
{
"SchoolName": "Whitstone Community Primary School",
"Postcode": "EX226TH"
},
{
"SchoolName": "Jacobstow Community Primary School",
"Postcode": "EX230BR"
},
{
"SchoolName": "Bude Infant School",
"Postcode": "EX238EA"
},
{
"SchoolName": "South Petherwin Community Primary School",
"Postcode": "PL157LE"
},
{
"SchoolName": "Tregadillett Primary School",
"Postcode": "PL157EU"
},
{
"SchoolName": "Bude Junior School",
"Postcode": "EX238DR"
},
{
"SchoolName": "Calstock Community Primary School",
"Postcode": "PL189QL"
},
{
"SchoolName": "Upton Cross Primary School",
"Postcode": "PL145AX"
},
{
"SchoolName": "Fourlanesend Community Primary School",
"Postcode": "PL101LR"
},
{
"SchoolName": "St Cleer Primary School",
"Postcode": "PL145EA"
},
{
"SchoolName": "Pensilva Primary School",
"Postcode": "PL145PG"
},
{
"SchoolName": "St Neot Community Primary School",
"Postcode": "PL146NL"
},
{
"SchoolName": "St Stephens (Saltash) Community Primary School",
"Postcode": "PL124AQ"
},
{
"SchoolName": "Stoke Climsland School",
"Postcode": "PL178ND"
},
{
"SchoolName": "Torpoint Nursery and Infant School",
"Postcode": "PL112LU"
},
{
"SchoolName": "Carbeile Junior School",
"Postcode": "PL112NH"
},
{
"SchoolName": "Burraton Community Primary School",
"Postcode": "PL124LT"
},
{
"SchoolName": "Menheniot Primary School",
"Postcode": "PL143QY"
},
{
"SchoolName": "Marlborough School",
"Postcode": "TR114HU"
},
{
"SchoolName": "St Germans Primary School",
"Postcode": "PL125NJ"
},
{
"SchoolName": "Stratton Primary School",
"Postcode": "EX239AP"
},
{
"SchoolName": "Pondhu Primary School",
"Postcode": "PL255DS"
},
{
"SchoolName": "Flushing School",
"Postcode": "TR115TX"
},
{
"SchoolName": "St Mary's CofE School, Truro",
"Postcode": "TR13RJ"
},
{
"SchoolName": "St Mark's CofE Primary School, Morwenstow",
"Postcode": "EX239PE"
},
{
"SchoolName": "St Maddern's CofE School, Madron",
"Postcode": "TR208SP"
},
{
"SchoolName": "St Mary's CofE Primary School, Penzance",
"Postcode": "TR184HP"
},
{
"SchoolName": "Mawnan CofE VA Primary School",
"Postcode": "TR115HQ"
},
{
"SchoolName": "St Issey Church of England Primary School",
"Postcode": "PL277RN"
},
{
"SchoolName": "Duloe CofE VA Junior and Infant School",
"Postcode": "PL144PW"
},
{
"SchoolName": "St Dominic CofE VA School",
"Postcode": "PL126SU"
},
{
"SchoolName": "St Mellion CofE VA School",
"Postcode": "PL126RN"
},
{
"SchoolName": "Trenode CofE School",
"Postcode": "PL131QA"
},
{
"SchoolName": "Bishop Cornish CofE VA Primary School",
"Postcode": "PL124PA"
},
{
"SchoolName": "Treviglas Community College",
"Postcode": "TR73JA"
},
{
"SchoolName": "<NAME>'s Community School",
"Postcode": "PL329UJ"
},
{
"SchoolName": "Torpoint Community College",
"Postcode": "PL112NH"
},
{
"SchoolName": "Budehaven Community School",
"Postcode": "EX238DQ"
},
{
"SchoolName": "Brannel School",
"Postcode": "PL267RN"
},
{
"SchoolName": "Poltair School",
"Postcode": "PL254BZ"
},
{
"SchoolName": "Redruth School",
"Postcode": "TR151TA"
},
{
"SchoolName": "Richard Lander School",
"Postcode": "TR36LT"
},
{
"SchoolName": "Cape Cornwall School",
"Postcode": "TR197JX"
},
{
"SchoolName": "Hayle Community School",
"Postcode": "TR274DN"
},
{
"SchoolName": "Humphry Davy School",
"Postcode": "TR182TG"
},
{
"SchoolName": "St Petroc's School",
"Postcode": "EX238NJ"
},
{
"SchoolName": "St Joseph's School",
"Postcode": "PL158HN"
},
{
"SchoolName": "Roselyon Preparatory School",
"Postcode": "PL242HZ"
},
{
"SchoolName": "Polwhele House School",
"Postcode": "TR49AE"
},
{
"SchoolName": "Truro School",
"Postcode": "TR11TH"
},
{
"SchoolName": "Truro High School",
"Postcode": "TR12HU"
},
{
"SchoolName": "Truro School Preparatory School",
"Postcode": "TR13QN"
},
{
"SchoolName": "St Piran's School (Gb) Ltd",
"Postcode": "TR274HY"
},
{
"SchoolName": "Cleator Moor Nursery School",
"Postcode": "CA255LW"
},
{
"SchoolName": "Parkview Nursery School",
"Postcode": "LA184JE"
},
{
"SchoolName": "Frizington Nursery School",
"Postcode": "CA263PF"
},
{
"SchoolName": "Kendal Nursery School",
"Postcode": "LA94PH"
},
{
"SchoolName": "Bram Longstaffe Nursery School",
"Postcode": "LA142RX"
},
{
"SchoolName": "Hindpool Nursery School",
"Postcode": "LA145TS"
},
{
"SchoolName": "Gillford Centre",
"Postcode": "CA24JE"
},
{
"SchoolName": "West Cumbria Learning Centre",
"Postcode": "CA144PJ"
},
{
"SchoolName": "Newbridge House PRU",
"Postcode": "LA139HU"
},
{
"SchoolName": "Allonby Primary School",
"Postcode": "CA156QG"
},
{
"SchoolName": "Alston Primary School",
"Postcode": "CA93UF"
},
{
"SchoolName": "Armathwaite School",
"Postcode": "CA49PW"
},
{
"SchoolName": "Bewcastle School",
"Postcode": "CA66PF"
},
{
"SchoolName": "Blennerhasset School",
"Postcode": "CA73RL"
},
{
"SchoolName": "Burgh by Sands School",
"Postcode": "CA56AP"
},
{
"SchoolName": "Cummersdale School",
"Postcode": "CA26BD"
},
{
"SchoolName": "Cumwhinton School",
"Postcode": "CA48DU"
},
{
"SchoolName": "Great Orton Primary School",
"Postcode": "CA56NA"
},
{
"SchoolName": "Greystoke School",
"Postcode": "CA110TP"
},
{
"SchoolName": "Holme St Cuthbert School",
"Postcode": "CA156QZ"
},
{
"SchoolName": "Irthington Village School",
"Postcode": "CA64NJ"
},
{
"SchoolName": "Kirkbride Primary School",
"Postcode": "CA75JR"
},
{
"SchoolName": "Nenthead Primary School",
"Postcode": "CA93LS"
},
{
"SchoolName": "Brunswick School",
"Postcode": "CA117LX"
},
{
"SchoolName": "North Lakes School",
"Postcode": "CA118NU"
},
{
"SchoolName": "Penruddock Primary School",
"Postcode": "CA110QU"
},
{
"SchoolName": "Plumpton School",
"Postcode": "CA119PA"
},
{
"SchoolName": "Skelton School",
"Postcode": "CA119SE"
},
{
"SchoolName": "Stoneraise School",
"Postcode": "CA57AT"
},
{
"SchoolName": "Thursby Primary School",
"Postcode": "CA56PN"
},
{
"SchoolName": "Thomlinson Junior School",
"Postcode": "CA79PG"
},
{
"SchoolName": "Wigton Infant School",
"Postcode": "CA79JR"
},
{
"SchoolName": "Aspatria Richmond Hill School",
"Postcode": "CA73BQ"
},
{
"SchoolName": "Bassenthwaite Primary School",
"Postcode": "CA124QH"
},
{
"SchoolName": "Broughton Moor Primary School",
"Postcode": "CA157RZ"
},
{
"SchoolName": "Grasslot Infant School",
"Postcode": "CA158BT"
},
{
"SchoolName": "Ellenborough and Ewanrigg Infant School",
"Postcode": "CA157NE"
},
{
"SchoolName": "Maryport Infant School",
"Postcode": "CA156JN"
},
{
"SchoolName": "Ewanrigg Junior School",
"Postcode": "CA158HN"
},
{
"SchoolName": "Netherton Infant School",
"Postcode": "CA157LT"
},
{
"SchoolName": "Oughterside Primary School",
"Postcode": "CA72PY"
},
{
"SchoolName": "St Michael's Nursery and Infant School",
"Postcode": "CA142UY"
},
{
"SchoolName": "Victoria Infant and Nursery School",
"Postcode": "CA143XB"
},
{
"SchoolName": "Victoria Junior School",
"Postcode": "CA142RE"
},
{
"SchoolName": "Ashfield Infant & Nursery School",
"Postcode": "CA143JG"
},
{
"SchoolName": "Ashfield Junior School",
"Postcode": "CA144ES"
},
{
"SchoolName": "Arlecdon Primary School",
"Postcode": "CA263XA"
},
{
"SchoolName": "Bookwell Primary School",
"Postcode": "CA222LT"
},
{
"SchoolName": "Frizington Community Primary School",
"Postcode": "CA263PF"
},
{
"SchoolName": "Haverigg Primary School",
"Postcode": "LA184HA"
},
{
"SchoolName": "Lowca Community School",
"Postcode": "CA286QS"
},
{
"SchoolName": "Millom Infant School",
"Postcode": "LA184LP"
},
{
"SchoolName": "Black Combe Junior School",
"Postcode": "LA185DT"
},
{
"SchoolName": "Moor Row Community Primary School",
"Postcode": "CA243JW"
},
{
"SchoolName": "Moresby Primary School",
"Postcode": "CA288UX"
},
{
"SchoolName": "Seascale Primary School",
"Postcode": "CA201LZ"
},
{
"SchoolName": "St Bees Village Primary School",
"Postcode": "CA270AA"
},
{
"SchoolName": "Thornhill Primary School",
"Postcode": "CA222SJ"
},
{
"SchoolName": "Thwaites School",
"Postcode": "LA185HP"
},
{
"SchoolName": "Bransty Primary School",
"Postcode": "CA286EG"
},
{
"SchoolName": "Kells Infant School",
"Postcode": "CA289PQ"
},
{
"SchoolName": "Monkwray Junior School",
"Postcode": "CA289DT"
},
{
"SchoolName": "Jericho Primary School",
"Postcode": "CA286UX"
},
{
"SchoolName": "Bolton Primary School",
"Postcode": "CA166AW"
},
{
"SchoolName": "Brough Primary School",
"Postcode": "CA174EW"
},
{
"SchoolName": "Clifton Primary School",
"Postcode": "CA102EG"
},
{
"SchoolName": "Holme Primary School",
"Postcode": "LA61QA"
},
{
"SchoolName": "Kirkby Stephen Primary School",
"Postcode": "CA174AE"
},
{
"SchoolName": "Kirkby Thore School",
"Postcode": "CA101UU"
},
{
"SchoolName": "Long Marton School",
"Postcode": "CA166BT"
},
{
"SchoolName": "Milburn School",
"Postcode": "CA101TN"
},
{
"SchoolName": "Milnthorpe Primary School",
"Postcode": "LA77QF"
},
{
"SchoolName": "Heron Hill Primary School",
"Postcode": "LA97JH"
},
{
"SchoolName": "Goodly Dale Primary School",
"Postcode": "LA232JX"
},
{
"SchoolName": "Chapel Street Infants and Nursery School",
"Postcode": "LA158RX"
},
{
"SchoolName": "Lindal and Marton Primary School",
"Postcode": "LA120NB"
},
{
"SchoolName": "Newton Primary School",
"Postcode": "LA130LT"
},
{
"SchoolName": "Hawkshead Esthwaite Primary School",
"Postcode": "LA220NT"
},
{
"SchoolName": "Croftlands Infant School",
"Postcode": "LA129JU"
},
{
"SchoolName": "Croftlands Junior School",
"Postcode": "LA129JU"
},
{
"SchoolName": "Brisbane Park Infant School",
"Postcode": "LA141NY"
},
{
"SchoolName": "Greengate Junior School",
"Postcode": "LA141BG"
},
{
"SchoolName": "Roose School",
"Postcode": "LA130HF"
},
{
"SchoolName": "Ramsden Infant School",
"Postcode": "LA141AN"
},
{
"SchoolName": "Vickerstown School",
"Postcode": "LA143XY"
},
{
"SchoolName": "Victoria Infant and Nursery School",
"Postcode": "LA145QN"
},
{
"SchoolName": "South Walney Junior School",
"Postcode": "LA143BG"
},
{
"SchoolName": "South Walney Infant and Nursery School",
"Postcode": "LA143BZ"
},
{
"SchoolName": "Dane Ghyll School",
"Postcode": "LA144PG"
},
{
"SchoolName": "Inglewood Junior School",
"Postcode": "CA13QA"
},
{
"SchoolName": "Inglewood Infant School",
"Postcode": "CA13LX"
},
{
"SchoolName": "Newtown Community Primary School",
"Postcode": "CA27LW"
},
{
"SchoolName": "Norman Street Primary School",
"Postcode": "CA12BQ"
},
{
"SchoolName": "Petteril Bank School",
"Postcode": "CA13BX"
},
{
"SchoolName": "Newlaithes Junior School",
"Postcode": "CA26DX"
},
{
"SchoolName": "Newlaithes Infant School",
"Postcode": "CA26DX"
},
{
"SchoolName": "Belle Vue Primary School",
"Postcode": "CA27PT"
},
{
"SchoolName": "Kingmoor Junior School",
"Postcode": "CA30DU"
},
{
"SchoolName": "Kingmoor Nursery and Infant School",
"Postcode": "CA30ES"
},
{
"SchoolName": "Brook Street Primary School",
"Postcode": "CA12JB"
},
{
"SchoolName": "S<NAME> Barrow School",
"Postcode": "LA120BD"
},
{
"SchoolName": "Sedbergh Primary School",
"Postcode": "LA105AL"
},
{
"SchoolName": "<NAME> Junior School",
"Postcode": "LA158SE"
},
{
"SchoolName": "Silloth Primary School",
"Postcode": "CA74DR"
},
{
"SchoolName": "Barrow Island Community Primary School",
"Postcode": "LA142SJ"
},
{
"SchoolName": "Caldew Lea School",
"Postcode": "CA27BE"
},
{
"SchoolName": "Fellview Primary School",
"Postcode": "CA78HF"
},
{
"SchoolName": "Derwent Vale Primary and Nursery School",
"Postcode": "CA141WA"
},
{
"SchoolName": "North Walney Primary, Nursery & Pre- School",
"Postcode": "LA143TN"
},
{
"SchoolName": "Robert Ferguson Primary School",
"Postcode": "CA25LA"
},
{
"SchoolName": "Upperby Primary School",
"Postcode": "CA24JT"
},
{
"SchoolName": "Newbarns Primary & Nursery School",
"Postcode": "LA139ET"
},
{
"SchoolName": "Boltons CofE School",
"Postcode": "CA78PA"
},
{
"SchoolName": "St Michael's CofE Primary School",
"Postcode": "CA57LN"
},
{
"SchoolName": "High Hesket CofE School",
"Postcode": "CA40HU"
},
{
"SchoolName": "Holm Cultram Abbey CofE School",
"Postcode": "CA74RU"
},
{
"SchoolName": "Houghton CofE School",
"Postcode": "CA30PA"
},
{
"SchoolName": "Ireby CofE School",
"Postcode": "CA71DS"
},
{
"SchoolName": "Kirkbampton CofE School",
"Postcode": "CA56HX"
},
{
"SchoolName": "Kirkoswald CofE School",
"Postcode": "CA101EN"
},
{
"SchoolName": "Lanercost CofE Primary School",
"Postcode": "CA82HL"
},
{
"SchoolName": "Langwathby CofE Primary School",
"Postcode": "CA101ND"
},
{
"SchoolName": "Lees Hill CofE School",
"Postcode": "CA82BB"
},
{
"SchoolName": "Raughton Head CofE School",
"Postcode": "CA57DD"
},
{
"SchoolName": "Rockcliffe CofE School",
"Postcode": "CA64AA"
},
{
"SchoolName": "Shankhill CofE Primary School",
"Postcode": "CA66JA"
},
{
"SchoolName": "Wreay CofE Primary School",
"Postcode": "CA40RL"
},
{
"SchoolName": "Levens CofE School",
"Postcode": "LA88PU"
},
{
"SchoolName": "Old Hutton CofE School",
"Postcode": "LA80NQ"
},
{
"SchoolName": "Staveley CofE School",
"Postcode": "LA89PH"
},
{
"SchoolName": "Storth CofE School",
"Postcode": "LA77JA"
},
{
"SchoolName": "Temple Sowerby CofE Primary School",
"Postcode": "CA101RZ"
},
{
"SchoolName": "Asby Endowed School",
"Postcode": "CA166EX"
},
{
"SchoolName": "Vicarage Park CofE Primary School",
"Postcode": "LA95BP"
},
{
"SchoolName": "Bridekirk Dovenby CofE Primary School",
"Postcode": "CA130PG"
},
{
"SchoolName": "St Bridget's CofE School",
"Postcode": "CA130TU"
},
{
"SchoolName": "All Saints' CofE School",
"Postcode": "CA139BH"
},
{
"SchoolName": "Crosscanonby St John's CofE School",
"Postcode": "CA156RX"
},
{
"SchoolName": "Maryport C of E Junior School",
"Postcode": "CA156JN"
},
{
"SchoolName": "Plumbland CofE School",
"Postcode": "CA72DQ"
},
{
"SchoolName": "Threlkeld CofE Primary School",
"Postcode": "CA124RX"
},
{
"SchoolName": "Seaton St. Paul's CofE Junior School",
"Postcode": "CA141HA"
},
{
"SchoolName": "Coniston CofE Primary School",
"Postcode": "LA218AL"
},
{
"SchoolName": "Grange CofE Primary School",
"Postcode": "LA117JF"
},
{
"SchoolName": "Burlington CofE School",
"Postcode": "LA177UH"
},
{
"SchoolName": "Allithwaite CofE Primary School",
"Postcode": "LA117RD"
},
{
"SchoolName": "Cartmel CofE Primary School",
"Postcode": "LA116PR"
},
{
"SchoolName": "Pennington CofE School",
"Postcode": "LA120RR"
},
{
"SchoolName": "Lindale CofE Primary School",
"Postcode": "LA116LE"
},
{
"SchoolName": "Broughton CofE School",
"Postcode": "LA206BJ"
},
{
"SchoolName": "St George's CofE School",
"Postcode": "LA142JN"
},
{
"SchoolName": "Captain Shaw's CofE School",
"Postcode": "LA195TG"
},
{
"SchoolName": "Ennerdale and Kinniside CofE Primary School",
"Postcode": "CA233AR"
},
{
"SchoolName": "Gosforth CofE School",
"Postcode": "CA201AZ"
},
{
"SchoolName": "Lamplugh CofE School",
"Postcode": "CA263XU"
},
{
"SchoolName": "St Bridget's CofE School",
"Postcode": "CA286NY"
},
{
"SchoolName": "St James' CofE Infant School",
"Postcode": "CA287PZ"
},
{
"SchoolName": "St James' CofE Junior School",
"Postcode": "CA287HG"
},
{
"SchoolName": "Low Furness CofE Primary School",
"Postcode": "LA120TA"
},
{
"SchoolName": "Blackford CofE Primary School",
"Postcode": "CA64ES"
},
{
"SchoolName": "Calthwaite CofE School",
"Postcode": "CA119QT"
},
{
"SchoolName": "Culgaith CofE School",
"Postcode": "CA101QL"
},
{
"SchoolName": "Ivegill CofE School",
"Postcode": "CA40PA"
},
{
"SchoolName": "St Catherine's Catholic Primary School",
"Postcode": "CA119EL"
},
{
"SchoolName": "Rosley CofE School",
"Postcode": "CA78AU"
},
{
"SchoolName": "Stainton CofE Primary School",
"Postcode": "CA110ET"
},
{
"SchoolName": "St Matthew's CofE School",
"Postcode": "CA73NT"
},
{
"SchoolName": "Wiggonby CofE School",
"Postcode": "CA70JR"
},
{
"SchoolName": "St Cuthbert's Catholic Primary School",
"Postcode": "CA79HZ"
},
{
"SchoolName": "Beetham CofE Primary School",
"Postcode": "LA77AS"
},
{
"SchoolName": "St Oswald's CofE Primary School",
"Postcode": "LA96QR"
},
{
"SchoolName": "<NAME> CofE School",
"Postcode": "CA103JJ"
},
{
"SchoolName": "Crosscrake CofE Primary School",
"Postcode": "LA80LB"
},
{
"SchoolName": "Crosthwaite CofE School",
"Postcode": "LA88HT"
},
{
"SchoolName": "St Patrick's CofE School",
"Postcode": "LA80HH"
},
{
"SchoolName": "Grasmere CofE Primary School",
"Postcode": "LA229SJ"
},
{
"SchoolName": "Grayrigg CofE School",
"Postcode": "LA89BU"
},
{
"SchoolName": "Langdale CofE School",
"Postcode": "LA229JE"
},
{
"SchoolName": "St Thomas's CofE Primary School",
"Postcode": "LA95PP"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "LA62DN"
},
{
"SchoolName": "Morland Area CofE Primary School",
"Postcode": "CA103AT"
},
{
"SchoolName": "St Mark's CofE Primary School",
"Postcode": "LA97QH"
},
{
"SchoolName": "Patterdale CofE School",
"Postcode": "CA110NL"
},
{
"SchoolName": "Selside Endowed CofE Primary School",
"Postcode": "LA89LB"
},
{
"SchoolName": "Shap Endowed CofE Primary School",
"Postcode": "CA103NL"
},
{
"SchoolName": "Dent CofE Voluntary Aided Primary School",
"Postcode": "LA105QJ"
},
{
"SchoolName": "St Michael's CofE Primary School",
"Postcode": "CA72HN"
},
{
"SchoolName": "Borrowdale CofE Primary School",
"Postcode": "CA125XG"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "CA130DG"
},
{
"SchoolName": "Dean CofE School",
"Postcode": "CA144TH"
},
{
"SchoolName": "Our Lady and St Patrick's, Catholic Primary",
"Postcode": "CA158HN"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "CA145LN"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "CA143PD"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "CA142DW"
},
{
"SchoolName": "Dean Gibson Catholic Primary School",
"Postcode": "LA95HB"
},
{
"SchoolName": "Lowther Endowed School",
"Postcode": "CA102HT"
},
{
"SchoolName": "Dean Barwick School",
"Postcode": "LA116RS"
},
{
"SchoolName": "St Cuthbert's Catholic Primary School",
"Postcode": "LA232DD"
},
{
"SchoolName": "Beckermet CofE School",
"Postcode": "CA212YD"
},
{
"SchoolName": "St Bridget's Catholic Primary School",
"Postcode": "CA222BD"
},
{
"SchoolName": "St Bega's CofE Primary School",
"Postcode": "CA191TW"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "CA263PX"
},
{
"SchoolName": "St James' Catholic Primary School",
"Postcode": "LA184AS"
},
{
"SchoolName": "Waberthwaite CofE School",
"Postcode": "LA195YJ"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "CA289PG"
},
{
"SchoolName": "St Begh's Catholic Junior School",
"Postcode": "CA287TE"
},
{
"SchoolName": "St Gregory and St Patrick's Catholic Infant School",
"Postcode": "CA288AJ"
},
{
"SchoolName": "Leven Valley CofE Primary School",
"Postcode": "LA128QF"
},
{
"SchoolName": "Our Lady of the Rosary Catholic Primary School",
"Postcode": "LA158LB"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "LA120EA"
},
{
"SchoolName": "Church Walk CofE Primary School",
"Postcode": "LA127EN"
},
{
"SchoolName": "St James' CofE Junior School",
"Postcode": "LA141NY"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "LA142BA"
},
{
"SchoolName": "St Columba's Catholic Primary School",
"Postcode": "LA143AD"
},
{
"SchoolName": "St Pius X Catholic Primary School",
"Postcode": "LA144AA"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "LA139LR"
},
{
"SchoolName": "St Bede's Catholic Primary School",
"Postcode": "CA27DS"
},
{
"SchoolName": "St Cuthbert's Catholic Community School",
"Postcode": "CA12UE"
},
{
"SchoolName": "St <NAME>ary Catholic Primary School",
"Postcode": "CA24JD"
},
{
"SchoolName": "Warcop CofE Primary School",
"Postcode": "CA166NX"
},
{
"SchoolName": "Beacon Hill Community School",
"Postcode": "CA73EZ"
},
{
"SchoolName": "Solway Community Technology College",
"Postcode": "CA74DD"
},
{
"SchoolName": "Sam<NAME>'s School",
"Postcode": "CA93QU"
},
{
"SchoolName": "The Lakes School",
"Postcode": "LA231HW"
},
{
"SchoolName": "Netherhall School",
"Postcode": "CA156NT"
},
{
"SchoolName": "Dowdales School",
"Postcode": "LA158AH"
},
{
"SchoolName": "John Ruskin School",
"Postcode": "LA218EW"
},
{
"SchoolName": "Ulverston Victoria High School",
"Postcode": "LA120EB"
},
{
"SchoolName": "Millom School",
"Postcode": "LA185AB"
},
{
"SchoolName": "Ullswater Community College",
"Postcode": "CA118NG"
},
{
"SchoolName": "The Nelson Thomlinson School",
"Postcode": "CA79PX"
},
{
"SchoolName": "St Benedict's Catholic High School",
"Postcode": "CA288UG"
},
{
"SchoolName": "Newman Catholic School",
"Postcode": "CA11NA"
},
{
"SchoolName": "St Bernard's Catholic High School",
"Postcode": "LA139LE"
},
{
"SchoolName": "St Joseph's Catholic High School, Business and Enterprise College",
"Postcode": "CA143EE"
},
{
"SchoolName": "Hayton CofE Primary School",
"Postcode": "CA89HR"
},
{
"SchoolName": "Scotby CofE Primary School",
"Postcode": "CA48AT"
},
{
"SchoolName": "Warwick Bridge Primary School",
"Postcode": "CA48RE"
},
{
"SchoolName": "Brampton Primary School",
"Postcode": "CA81BZ"
},
{
"SchoolName": "St Paul's CofE Junior School",
"Postcode": "LA144HF"
},
{
"SchoolName": "Appleby Primary School",
"Postcode": "CA166TX"
},
{
"SchoolName": "Askam Village School",
"Postcode": "LA167DA"
},
{
"SchoolName": "Flookburgh CofE Primary School",
"Postcode": "LA117LE"
},
{
"SchoolName": "Dalton St Mary's CofE Primary School",
"Postcode": "LA158QR"
},
{
"SchoolName": "Bowness-on-Solway Primary School",
"Postcode": "CA75AF"
},
{
"SchoolName": "Ireleth St Peter's CofE Primary School",
"Postcode": "LA167EY"
},
{
"SchoolName": "Hallbankgate Village School",
"Postcode": "CA82NJ"
},
{
"SchoolName": "Orton CofE School",
"Postcode": "CA103RG"
},
{
"SchoolName": "Fir Ends Primary School",
"Postcode": "CA66AY"
},
{
"SchoolName": "Flimby Primary School",
"Postcode": "CA158PJ"
},
{
"SchoolName": "Beaconside CofE Primary School",
"Postcode": "CA118EN"
},
{
"SchoolName": "Lime House School",
"Postcode": "CA57BX"
},
{
"SchoolName": "Casterton, Sedbergh Preparatory School",
"Postcode": "LA62SG"
},
{
"SchoolName": "Windermere School",
"Postcode": "LA231NW"
},
{
"SchoolName": "Sedbergh School",
"Postcode": "LA105RY"
},
{
"SchoolName": "Oversands School",
"Postcode": "LA116SD"
},
{
"SchoolName": "<NAME>",
"Postcode": "CA39PB"
},
{
"SchoolName": "Cedar House School",
"Postcode": "LA27DD"
},
{
"SchoolName": "Hunter Hall School",
"Postcode": "CA118UA"
},
{
"SchoolName": "Underley Garden School",
"Postcode": "LA62DZ"
},
{
"SchoolName": "Mayfield School",
"Postcode": "CA288TU"
},
{
"SchoolName": "Sandgate School",
"Postcode": "LA96JG"
},
{
"SchoolName": "Sandside Lodge School",
"Postcode": "LA129EF"
},
{
"SchoolName": "James Rennie School",
"Postcode": "CA30BU"
},
{
"SchoolName": "Hadfield Nursery School",
"Postcode": "SK132DW"
},
{
"SchoolName": "Gamesley Early Excellence Centre",
"Postcode": "SK130LU"
},
{
"SchoolName": "Lord Street Nursery School",
"Postcode": "DE249AX"
},
{
"SchoolName": "Central Community Nursery School",
"Postcode": "DE13LR"
},
{
"SchoolName": "Harrington Nursery School",
"Postcode": "DE238PE"
},
{
"SchoolName": "Walbrook Nursery School",
"Postcode": "DE238QJ"
},
{
"SchoolName": "Stonehill Nursery School",
"Postcode": "DE236TJ"
},
{
"SchoolName": "New Mills Nursery School",
"Postcode": "SK224AQ"
},
{
"SchoolName": "Ripley Nursery School",
"Postcode": "DE53HE"
},
{
"SchoolName": "Ashgate Nursery School",
"Postcode": "DE11GJ"
},
{
"SchoolName": "Whitecross Nursery School",
"Postcode": "DE13PJ"
},
{
"SchoolName": "Flagg Nursery School",
"Postcode": "SK179QT"
},
{
"SchoolName": "Pinxton Nursery School",
"Postcode": "NG166NA"
},
{
"SchoolName": "South Normanton Nursery School",
"Postcode": "DE552JB"
},
{
"SchoolName": "Alfreton Nursery School",
"Postcode": "DE557JA"
},
{
"SchoolName": "Leys Junior School",
"Postcode": "DE557HA"
},
{
"SchoolName": "Croft Infant School",
"Postcode": "DE557BW"
},
{
"SchoolName": "Woodbridge Junior School",
"Postcode": "DE557JA"
},
{
"SchoolName": "Ironville and Codnor Park Primary School",
"Postcode": "NG165NB"
},
{
"SchoolName": "Riddings Infant and Nursery School",
"Postcode": "DE554EW"
},
{
"SchoolName": "Riddings Junior School",
"Postcode": "DE554BW"
},
{
"SchoolName": "Somerlea Park Junior School",
"Postcode": "DE554JE"
},
{
"SchoolName": "Swanwick Primary School",
"Postcode": "DE551BZ"
},
{
"SchoolName": "Ashover Primary School",
"Postcode": "S450AU"
},
{
"SchoolName": "Aston-on-Trent Primary School",
"Postcode": "DE722UH"
},
{
"SchoolName": "Bramley Vale Primary School",
"Postcode": "S445PF"
},
{
"SchoolName": "Bamford Primary School",
"Postcode": "S330AR"
},
{
"SchoolName": "Barlborough Primary School",
"Postcode": "S434ET"
},
{
"SchoolName": "Blackwell Community Primary and Nursery School",
"Postcode": "DE555JG"
},
{
"SchoolName": "Newton Primary School",
"Postcode": "DE555TL"
},
{
"SchoolName": "Westhouses Primary School",
"Postcode": "DE555AF"
},
{
"SchoolName": "New Bolsover Primary and Nursery School",
"Postcode": "S446PY"
},
{
"SchoolName": "Brockley Primary School",
"Postcode": "S446AF"
},
{
"SchoolName": "Bolsover Infant School",
"Postcode": "S446DE"
},
{
"SchoolName": "Bradwell Junior School",
"Postcode": "S339JB"
},
{
"SchoolName": "Cutthorpe Primary School",
"Postcode": "S427AS"
},
{
"SchoolName": "Wigley Primary School",
"Postcode": "S427JJ"
},
{
"SchoolName": "Brassington Primary School",
"Postcode": "DE44HB"
},
{
"SchoolName": "Firfield Primary School",
"Postcode": "DE723EG"
},
{
"SchoolName": "<NAME> Infant School",
"Postcode": "S431HR"
},
{
"SchoolName": "Burbage Primary School",
"Postcode": "SK179AE"
},
{
"SchoolName": "Buxton Junior School",
"Postcode": "SK179DR"
},
{
"SchoolName": "Buxton Infant School",
"Postcode": "SK176QB"
},
{
"SchoolName": "Harpur Hill Primary School",
"Postcode": "SK179LP"
},
{
"SchoolName": "Combs Infant School",
"Postcode": "SK239UZ"
},
{
"SchoolName": "Buxworth Primary School",
"Postcode": "SK237NJ"
},
{
"SchoolName": "Chinley Primary School",
"Postcode": "SK236DR"
},
{
"SchoolName": "Holmgate Primary School and Nursery",
"Postcode": "S459QD"
},
{
"SchoolName": "Clowne Junior School",
"Postcode": "S434BS"
},
{
"SchoolName": "Clowne Infant and Nursery School",
"Postcode": "S434DB"
},
{
"SchoolName": "Crich Junior School",
"Postcode": "DE45DF"
},
{
"SchoolName": "Curbar Primary School",
"Postcode": "S323XA"
},
{
"SchoolName": "Lea Primary School",
"Postcode": "DE45JP"
},
{
"SchoolName": "Doveridge Primary School",
"Postcode": "DE65JY"
},
{
"SchoolName": "Draycott Community Primary School",
"Postcode": "DE723NH"
},
{
"SchoolName": "Dronfield Junior School",
"Postcode": "S181RY"
},
{
"SchoolName": "Dronfield Infant School",
"Postcode": "S181RY"
},
{
"SchoolName": "William Levick Primary School",
"Postcode": "S188YB"
},
{
"SchoolName": "Birk Hill Infant School",
"Postcode": "S214BE"
},
{
"SchoolName": "Marsh Lane Primary School",
"Postcode": "S215RS"
},
{
"SchoolName": "Renishaw Primary School",
"Postcode": "S213UR"
},
{
"SchoolName": "Ridgeway Primary School",
"Postcode": "S123XR"
},
{
"SchoolName": "Egginton Primary School",
"Postcode": "DE656HP"
},
{
"SchoolName": "Creswell Junior School",
"Postcode": "S804JD"
},
{
"SchoolName": "Etwall Primary School",
"Postcode": "DE656NB"
},
{
"SchoolName": "Grindleford Primary School",
"Postcode": "S322HS"
},
{
"SchoolName": "Findern Primary School",
"Postcode": "DE656AR"
},
{
"SchoolName": "Padfield Community Primary School",
"Postcode": "SK131EQ"
},
{
"SchoolName": "Grassmoor Primary School",
"Postcode": "S425EP"
},
{
"SchoolName": "Hayfield Primary School",
"Postcode": "SK222HB"
},
{
"SchoolName": "Aldercar Infant School",
"Postcode": "NG164GL"
},
{
"SchoolName": "Heanor Langley Infant School",
"Postcode": "DE757HJ"
},
{
"SchoolName": "Langley Mill Junior School",
"Postcode": "NG164FZ"
},
{
"SchoolName": "Marlpool Junior School",
"Postcode": "DE757HS"
},
{
"SchoolName": "Marlpool Infant School",
"Postcode": "DE757NF"
},
{
"SchoolName": "Coppice Primary School",
"Postcode": "DE757BZ"
},
{
"SchoolName": "Heath Primary School",
"Postcode": "S445RH"
},
{
"SchoolName": "Penny Acres Primary School",
"Postcode": "S187WP"
},
{
"SchoolName": "Hope Primary School",
"Postcode": "S336ZF"
},
{
"SchoolName": "Horsley Woodhouse Primary School",
"Postcode": "DE76AT"
},
{
"SchoolName": "Chaucer Infant School",
"Postcode": "DE75LN"
},
{
"SchoolName": "Cotmanhay Junior School",
"Postcode": "DE78RR"
},
{
"SchoolName": "Cotmanhay Infant School",
"Postcode": "DE78RR"
},
{
"SchoolName": "Granby Junior School",
"Postcode": "DE78DX"
},
{
"SchoolName": "Hallam Fields Junior School",
"Postcode": "DE74DB"
},
{
"SchoolName": "Kensington Junior School",
"Postcode": "DE75PA"
},
{
"SchoolName": "Field House Infant School",
"Postcode": "DE74LT"
},
{
"SchoolName": "Charlotte Nursery and Infant School",
"Postcode": "DE78LQ"
},
{
"SchoolName": "Kilburn Junior School",
"Postcode": "DE560LA"
},
{
"SchoolName": "Kilburn Infant and Nursery School",
"Postcode": "DE560LA"
},
{
"SchoolName": "Killamarsh Junior School",
"Postcode": "S212EA"
},
{
"SchoolName": "Killamarsh Infant School",
"Postcode": "S212DX"
},
{
"SchoolName": "Little Eaton Primary School",
"Postcode": "DE215AB"
},
{
"SchoolName": "Harrington Junior School",
"Postcode": "NG104BQ"
},
{
"SchoolName": "Parklands Infant and Nursery School",
"Postcode": "NG104BJ"
},
{
"SchoolName": "Grange Primary School",
"Postcode": "NG102DU"
},
{
"SchoolName": "Longmoor Primary School",
"Postcode": "NG104JG"
},
{
"SchoolName": "Marston Montgomery Primary School",
"Postcode": "DE62FF"
},
{
"SchoolName": "Darley Dale Primary School",
"Postcode": "DE42QB"
},
{
"SchoolName": "Tansley Primary School",
"Postcode": "DE45FG"
},
{
"SchoolName": "Melbourne Junior School",
"Postcode": "DE738JE"
},
{
"SchoolName": "Melbourne Infant School",
"Postcode": "DE738JE"
},
{
"SchoolName": "Morley Primary School",
"Postcode": "DE76DF"
},
{
"SchoolName": "Morton Primary School",
"Postcode": "DE556HH"
},
{
"SchoolName": "New Mills Primary School",
"Postcode": "SK224AY"
},
{
"SchoolName": "Hague Bar Primary School",
"Postcode": "SK223AP"
},
{
"SchoolName": "Newtown Primary School",
"Postcode": "SK223JS"
},
{
"SchoolName": "Thornsett Primary School",
"Postcode": "SK221AT"
},
{
"SchoolName": "Ashbrook Junior School",
"Postcode": "DE723HF"
},
{
"SchoolName": "Overseal Primary School",
"Postcode": "DE126LU"
},
{
"SchoolName": "Parwich Primary School",
"Postcode": "DE61QJ"
},
{
"SchoolName": "Pilsley Primary School",
"Postcode": "S458EU"
},
{
"SchoolName": "Park House Primary School",
"Postcode": "S458DB"
},
{
"SchoolName": "John King Infant School",
"Postcode": "NG166NB"
},
{
"SchoolName": "Pinxton Kirkstead Junior School",
"Postcode": "NG166NA"
},
{
"SchoolName": "Longwood Community Infant School",
"Postcode": "NG166PA"
},
{
"SchoolName": "Anthony Bek Community Primary School",
"Postcode": "NG197PG"
},
{
"SchoolName": "Ripley Junior School",
"Postcode": "DE53PN"
},
{
"SchoolName": "Ripley Infant School",
"Postcode": "DE53RY"
},
{
"SchoolName": "Street Lane Primary School",
"Postcode": "DE58NE"
},
{
"SchoolName": "Ladycross Infant School",
"Postcode": "NG105JD"
},
{
"SchoolName": "Scarcliffe Primary School",
"Postcode": "S446TH"
},
{
"SchoolName": "Langwith Bassett Primary School",
"Postcode": "NG209RD"
},
{
"SchoolName": "Palterton Primary School",
"Postcode": "S446UN"
},
{
"SchoolName": "Brookfield Primary School",
"Postcode": "NG209AD"
},
{
"SchoolName": "Shirland Primary School",
"Postcode": "DE556BH"
},
{
"SchoolName": "Stonebroom Primary and Nursery School",
"Postcode": "DE556JY"
},
{
"SchoolName": "The Green Infant School",
"Postcode": "DE552BS"
},
{
"SchoolName": "The Brigg Infant School",
"Postcode": "DE552DA"
},
{
"SchoolName": "Glebe Junior School",
"Postcode": "DE552JB"
},
{
"SchoolName": "South Wingfield Primary School",
"Postcode": "DE557NJ"
},
{
"SchoolName": "Staveley Junior School",
"Postcode": "S433XE"
},
{
"SchoolName": "Speedwell Infant School",
"Postcode": "S433JJ"
},
{
"SchoolName": "Duckmanton Primary School",
"Postcode": "S445HD"
},
{
"SchoolName": "Sudbury Primary School",
"Postcode": "DE65HZ"
},
{
"SchoolName": "Arkwright Primary School",
"Postcode": "S445BZ"
},
{
"SchoolName": "Church Gresley Infant and Nursery School",
"Postcode": "DE119EY"
},
{
"SchoolName": "Newhall Community Junior School",
"Postcode": "DE110TR"
},
{
"SchoolName": "Newhall Infant School",
"Postcode": "DE110TJ"
},
{
"SchoolName": "Stanton Primary School",
"Postcode": "DE159TJ"
},
{
"SchoolName": "Town End Junior School",
"Postcode": "DE555PB"
},
{
"SchoolName": "Tibshelf Infant School",
"Postcode": "DE555PP"
},
{
"SchoolName": "Tupton Primary and Nursery School",
"Postcode": "S426DY"
},
{
"SchoolName": "Unstone Junior School",
"Postcode": "S184AB"
},
{
"SchoolName": "Unstone St Mary's Infant School",
"Postcode": "S184AL"
},
{
"SchoolName": "Walton Holymoorside Primary School",
"Postcode": "S427DU"
},
{
"SchoolName": "Wessington Primary School",
"Postcode": "DE556DQ"
},
{
"SchoolName": "Whaley Bridge Primary School",
"Postcode": "SK237HX"
},
{
"SchoolName": "Furness Vale Primary School",
"Postcode": "SK237PQ"
},
{
"SchoolName": "Whitwell Primary School",
"Postcode": "S804NR"
},
{
"SchoolName": "Hodthorpe Primary School",
"Postcode": "S804UT"
},
{
"SchoolName": "Deer Park Primary School",
"Postcode": "S426TD"
},
{
"SchoolName": "Wirksworth Junior School",
"Postcode": "DE44FD"
},
{
"SchoolName": "Wirksworth Infant School",
"Postcode": "DE44GZ"
},
{
"SchoolName": "Middleton Community Primary School",
"Postcode": "DE44LQ"
},
{
"SchoolName": "Woodville Infant School",
"Postcode": "DE117EA"
},
{
"SchoolName": "Peak Dale Primary School",
"Postcode": "SK178AJ"
},
{
"SchoolName": "Cavendish Junior School",
"Postcode": "S418TD"
},
{
"SchoolName": "Spire Nursery and Infant School",
"Postcode": "S402EU"
},
{
"SchoolName": "Spire Junior School",
"Postcode": "S402EN"
},
{
"SchoolName": "Gilbert Heathcote Nursery and Infant School",
"Postcode": "S418NF"
},
{
"SchoolName": "Hasland Junior School",
"Postcode": "S410LY"
},
{
"SchoolName": "Hasland Infant School",
"Postcode": "S410PE"
},
{
"SchoolName": "Hady Primary School",
"Postcode": "S410DF"
},
{
"SchoolName": "Highfield Hall Primary School",
"Postcode": "S418AZ"
},
{
"SchoolName": "Old Hall Junior School",
"Postcode": "S403QR"
},
{
"SchoolName": "Abercrombie Primary School",
"Postcode": "S417QE"
},
{
"SchoolName": "William Rhodes Primary School",
"Postcode": "S402NR"
},
{
"SchoolName": "The Park Infant & Nursery School",
"Postcode": "NG208JX"
},
{
"SchoolName": "Brockwell Nursery and Infant School",
"Postcode": "S404NP"
},
{
"SchoolName": "Westfield Infant School",
"Postcode": "S403NW"
},
{
"SchoolName": "Dallimore Primary School",
"Postcode": "DE74GZ"
},
{
"SchoolName": "Mickley Infant School",
"Postcode": "DE556GG"
},
{
"SchoolName": "Eureka Primary School",
"Postcode": "DE117LA"
},
{
"SchoolName": "Parkside Junior School",
"Postcode": "DE61EJ"
},
{
"SchoolName": "Heath Fields Primary School",
"Postcode": "DE655EQ"
},
{
"SchoolName": "Holmesdale Infant School",
"Postcode": "S182LR"
},
{
"SchoolName": "Ladywood Primary School",
"Postcode": "DE74NH"
},
{
"SchoolName": "The Park Junior School",
"Postcode": "NG208JX"
},
{
"SchoolName": "Northfield Junior School",
"Postcode": "S182ED"
},
{
"SchoolName": "Ashbourne Hilltop Infant School",
"Postcode": "DE61NB"
},
{
"SchoolName": "Copthorne Community Infant School",
"Postcode": "DE557FF"
},
{
"SchoolName": "Ashbrook Infant School",
"Postcode": "DE723HF"
},
{
"SchoolName": "Duffield the Meadows Primary School",
"Postcode": "DE564GT"
},
{
"SchoolName": "Brockwell Junior School",
"Postcode": "S404NP"
},
{
"SchoolName": "Hadfield Infant School",
"Postcode": "SK131PN"
},
{
"SchoolName": "Gamesley Community Primary School",
"Postcode": "SK136HW"
},
{
"SchoolName": "Elmsleigh Infant and Nursery School",
"Postcode": "DE110EG"
},
{
"SchoolName": "Lenthall Infant and Nursery School",
"Postcode": "S182HB"
},
{
"SchoolName": "Hunloke Park Primary School",
"Postcode": "S426PT"
},
{
"SchoolName": "Dronfield Stonelow Junior School",
"Postcode": "S182EP"
},
{
"SchoolName": "Fairfield Infant and Nursery School",
"Postcode": "SK177PQ"
},
{
"SchoolName": "Willington Primary School",
"Postcode": "DE656DN"
},
{
"SchoolName": "Sandiacre Cloudside Junior School",
"Postcode": "NG105DE"
},
{
"SchoolName": "Hilton Primary School",
"Postcode": "DE655GH"
},
{
"SchoolName": "Waingroves Primary School",
"Postcode": "DE59TD"
},
{
"SchoolName": "Norbriggs Primary School",
"Postcode": "S433BW"
},
{
"SchoolName": "Simmondley Primary School",
"Postcode": "SK136NN"
},
{
"SchoolName": "Larklands Infant School",
"Postcode": "DE75DR"
},
{
"SchoolName": "Chaucer Junior School",
"Postcode": "DE75JH"
},
{
"SchoolName": "Lons Infant School",
"Postcode": "DE53SE"
},
{
"SchoolName": "Becket Primary School",
"Postcode": "DE223QB"
},
{
"SchoolName": "Dale Community Primary School",
"Postcode": "DE236NL"
},
{
"SchoolName": "Pear Tree Community Junior School",
"Postcode": "DE238PN"
},
{
"SchoolName": "Pear Tree Infant School",
"Postcode": "DE238PN"
},
{
"SchoolName": "Rosehill Infant and Nursery School",
"Postcode": "DE238FQ"
},
{
"SchoolName": "Cottons Farm Primary School",
"Postcode": "DE249HG"
},
{
"SchoolName": "Brackensdale Junior School",
"Postcode": "DE224BS"
},
{
"SchoolName": "Brackensdale Infant School",
"Postcode": "DE224BS"
},
{
"SchoolName": "Lakeside Community Primary School",
"Postcode": "DE248UY"
},
{
"SchoolName": "Markeaton Primary School",
"Postcode": "DE221HL"
},
{
"SchoolName": "Portway Infant School",
"Postcode": "DE222HE"
},
{
"SchoolName": "Portway Junior School",
"Postcode": "DE222GL"
},
{
"SchoolName": "Alvaston Junior School",
"Postcode": "DE240PU"
},
{
"SchoolName": "Alvaston Infant and Nursery School",
"Postcode": "DE240PU"
},
{
"SchoolName": "Shelton Infant School",
"Postcode": "DE249EJ"
},
{
"SchoolName": "Breadsall Hill Top Primary School",
"Postcode": "DE214ET"
},
{
"SchoolName": "Cavendish Close Junior School",
"Postcode": "DE214RJ"
},
{
"SchoolName": "Cavendish Close Infant School",
"Postcode": "DE214LY"
},
{
"SchoolName": "Cherry Tree Hill Primary School",
"Postcode": "DE216WL"
},
{
"SchoolName": "Meadow Farm Community Primary School",
"Postcode": "DE216TZ"
},
{
"SchoolName": "Chellaston Infant School",
"Postcode": "DE736TA"
},
{
"SchoolName": "Carlyle Infant and Nursery School",
"Postcode": "DE233ES"
},
{
"SchoolName": "Gayton Junior School",
"Postcode": "DE231GA"
},
{
"SchoolName": "Ridgeway Infant School",
"Postcode": "DE231GG"
},
{
"SchoolName": "Wren Park Primary School",
"Postcode": "DE39AY"
},
{
"SchoolName": "Ravensdale Infant and Nursery School",
"Postcode": "DE39HE"
},
{
"SchoolName": "Ravensdale Junior School",
"Postcode": "DE39EY"
},
{
"SchoolName": "Asterdale Primary School",
"Postcode": "DE217PH"
},
{
"SchoolName": "Springfield Primary School",
"Postcode": "DE217AB"
},
{
"SchoolName": "Chaddesden Park Primary School",
"Postcode": "DE216LF"
},
{
"SchoolName": "Silverhill Primary School",
"Postcode": "DE30QE"
},
{
"SchoolName": "Oakwood Junior School",
"Postcode": "DE240DD"
},
{
"SchoolName": "Oakwood Infant and Nursery School",
"Postcode": "DE240GZ"
},
{
"SchoolName": "Redwood Primary School",
"Postcode": "DE249PG"
},
{
"SchoolName": "Ash Croft Primary School",
"Postcode": "DE243HF"
},
{
"SchoolName": "Holme Hall Primary School",
"Postcode": "S404RL"
},
{
"SchoolName": "Heage Primary School",
"Postcode": "DE562AL"
},
{
"SchoolName": "Brookfield Primary School",
"Postcode": "DE30BW"
},
{
"SchoolName": "Dunston Primary and Nursery School",
"Postcode": "S418EY"
},
{
"SchoolName": "Lawn Primary School",
"Postcode": "DE222QR"
},
{
"SchoolName": "Stenson Fields Primary Community School",
"Postcode": "DE243BW"
},
{
"SchoolName": "Model Village Primary School",
"Postcode": "NG208BQ"
},
{
"SchoolName": "Long Row Primary School",
"Postcode": "DE561DR"
},
{
"SchoolName": "Ambergate Primary School",
"Postcode": "DE562GN"
},
{
"SchoolName": "Pottery Primary School",
"Postcode": "DE561HA"
},
{
"SchoolName": "Milford Primary School",
"Postcode": "DE560QH"
},
{
"SchoolName": "<NAME>utt Primary School",
"Postcode": "DE561SH"
},
{
"SchoolName": "Mickleover Primary School",
"Postcode": "DE30EY"
},
{
"SchoolName": "Arboretum Primary School",
"Postcode": "DE238GP"
},
{
"SchoolName": "Whaley Thorns Primary School",
"Postcode": "NG209HB"
},
{
"SchoolName": "Hollingwood Primary School",
"Postcode": "S432JG"
},
{
"SchoolName": "St Oswald's CofE Infant School",
"Postcode": "DE61AS"
},
{
"SchoolName": "Bakewell CofE Infant School",
"Postcode": "DE451BX"
},
{
"SchoolName": "Barlow CofE Primary School",
"Postcode": "S187TA"
},
{
"SchoolName": "Sale and Davys Church of England Primary School",
"Postcode": "DE737HA"
},
{
"SchoolName": "St Anne's CofE Primary School",
"Postcode": "DE451RZ"
},
{
"SchoolName": "Bolsover Church of England Junior School",
"Postcode": "S446XH"
},
{
"SchoolName": "Bradley CofE Primary School",
"Postcode": "DE61PG"
},
{
"SchoolName": "Bradwell CofE (Controlled) Infant School",
"Postcode": "S339HJ"
},
{
"SchoolName": "Brailsford CofE Primary School",
"Postcode": "DE63BY"
},
{
"SchoolName": "Breadsall CofE VC Primary School",
"Postcode": "DE215LA"
},
{
"SchoolName": "Fairfield Endowed CofE (C) Junior School",
"Postcode": "SK177NA"
},
{
"SchoolName": "Castleton CofE Primary School",
"Postcode": "S338WE"
},
{
"SchoolName": "Dove Holes CofE Primary School",
"Postcode": "SK178BJ"
},
{
"SchoolName": "Clifton CofE Primary School",
"Postcode": "DE62GJ"
},
{
"SchoolName": "Coton-in-the-Elms Cof E Primary School",
"Postcode": "DE128HE"
},
{
"SchoolName": "Edale CofE Primary School",
"Postcode": "S337ZD"
},
{
"SchoolName": "Creswell CofE Controlled Infant and Nursery",
"Postcode": "S804HY"
},
{
"SchoolName": "Elton CofE Primary School",
"Postcode": "DE42BW"
},
{
"SchoolName": "Eyam CofE Primary School",
"Postcode": "S325QH"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "SK137BS"
},
{
"SchoolName": "St James' CofE Controlled Primary School",
"Postcode": "SK138EF"
},
{
"SchoolName": "Great Hucklow CE Primary",
"Postcode": "SK178RG"
},
{
"SchoolName": "Rowsley CofE (Controlled) Primary School",
"Postcode": "DE42ED"
},
{
"SchoolName": "Earl Sterndale CofE Primary School",
"Postcode": "SK170BS"
},
{
"SchoolName": "Biggin CofE Primary School",
"Postcode": "SK170DQ"
},
{
"SchoolName": "Hartington CofE Primary School",
"Postcode": "SK170AS"
},
{
"SchoolName": "Hartshorne CofE Primary School",
"Postcode": "DE117ES"
},
{
"SchoolName": "Corfield CofE Infant School",
"Postcode": "DE757GQ"
},
{
"SchoolName": "Langley Mill CofE Infant School and Nursery",
"Postcode": "NG164DT"
},
{
"SchoolName": "Loscoe CofE Primary School and Nursery",
"Postcode": "DE757RT"
},
{
"SchoolName": "Mundy CofE Junior School",
"Postcode": "DE757EQ"
},
{
"SchoolName": "Horsley CofE (Controlled) Primary School",
"Postcode": "DE215BR"
},
{
"SchoolName": "Hulland CofE Primary School",
"Postcode": "DE63FS"
},
{
"SchoolName": "<NAME> C of E Primary School",
"Postcode": "DE63LD"
},
{
"SchoolName": "<NAME>y CofE Primary School",
"Postcode": "DE64LQ"
},
{
"SchoolName": "Kniveton CofE Primary School",
"Postcode": "DE61JJ"
},
{
"SchoolName": "Longford CofE Primary School",
"Postcode": "DE63DR"
},
{
"SchoolName": "Mapperley CofE Controlled Primary School",
"Postcode": "DE76BT"
},
{
"SchoolName": "Cromford CofE Primary School",
"Postcode": "DE43RG"
},
{
"SchoolName": "Matlock Bath Holy Trinity CofE Controlled Primary School",
"Postcode": "DE43PW"
},
{
"SchoolName": "South Darley CofE Primary School",
"Postcode": "DE42JT"
},
{
"SchoolName": "Monyash CofE Primary School",
"Postcode": "DE451JH"
},
{
"SchoolName": "Netherseal St Peter's CofE (C) Primary School",
"Postcode": "DE128BZ"
},
{
"SchoolName": "Norbury CofE Primary School",
"Postcode": "DE62EG"
},
{
"SchoolName": "Long Lane Church of England Primary School",
"Postcode": "DE65BJ"
},
{
"SchoolName": "Osmaston CofE (VC) Primary School",
"Postcode": "DE61LW"
},
{
"SchoolName": "Peak Forest Church of England Voluntary Controlled Primary School",
"Postcode": "SK178EG"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "DE53BD"
},
{
"SchoolName": "Risley Lower Grammar CE (VC) Primary School",
"Postcode": "DE723SU"
},
{
"SchoolName": "Rosliston CofE Primary School",
"Postcode": "DE128JW"
},
{
"SchoolName": "Richardson Endowed Primary School",
"Postcode": "DE76EF"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "DE76FB"
},
{
"SchoolName": "Stanley Common CofE Primary School",
"Postcode": "DE76FS"
},
{
"SchoolName": "Stanton-in-Peak CofE Primary School",
"Postcode": "DE42LX"
},
{
"SchoolName": "Woodthorpe CofE Primary School",
"Postcode": "S433DA"
},
{
"SchoolName": "Stoney Middleton CofE (C) Primary School",
"Postcode": "S324TL"
},
{
"SchoolName": "Stretton Handley Church of England Primary School",
"Postcode": "DE556FH"
},
{
"SchoolName": "St George's CofE Controlled Primary School",
"Postcode": "DE119NP"
},
{
"SchoolName": "Walton-on-Trent CofE School",
"Postcode": "DE128NL"
},
{
"SchoolName": "Mugginton CofE Primary School",
"Postcode": "DE64PL"
},
{
"SchoolName": "Winster CofE Primary School",
"Postcode": "DE42DH"
},
{
"SchoolName": "Wirksworth CofE Infant School",
"Postcode": "DE44FG"
},
{
"SchoolName": "Woodville CofE Junior School",
"Postcode": "DE117EA"
},
{
"SchoolName": "Crich Carr CofE Primary School",
"Postcode": "DE45EF"
},
{
"SchoolName": "Crich CofE Infant School",
"Postcode": "DE45DG"
},
{
"SchoolName": "Duke of Norfolk CofE Primary School",
"Postcode": "SK137RD"
},
{
"SchoolName": "St Andrew's CofE Junior School",
"Postcode": "SK132DR"
},
{
"SchoolName": "Bakewell Methodist Junior School",
"Postcode": "DE451FR"
},
{
"SchoolName": "Church Broughton CofE Primary School",
"Postcode": "DE655AS"
},
{
"SchoolName": "Taxal and Fernilee CofE Primary School",
"Postcode": "SK237DL"
},
{
"SchoolName": "Derby St Chad's CofE (VC) Nursery and Infant School",
"Postcode": "DE236WR"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "DE561GY"
},
{
"SchoolName": "Calow CofE VC Primary School",
"Postcode": "S445BD"
},
{
"SchoolName": "Charlesworth Voluntary Controlled Primary School",
"Postcode": "SK135ET"
},
{
"SchoolName": "Carsington and Hopton Primary School",
"Postcode": "DE44DE"
},
{
"SchoolName": "Fritchley CofE (Aided) Primary School",
"Postcode": "DE562FQ"
},
{
"SchoolName": "Denby Free CofE VA Primary School",
"Postcode": "DE58PH"
},
{
"SchoolName": "Camms CofE (Aided) Primary School",
"Postcode": "S214AU"
},
{
"SchoolName": "Fitzherbert CofE (Aided) Primary School",
"Postcode": "DE61LD"
},
{
"SchoolName": "Dinting Church of England Voluntary Aided Primary School",
"Postcode": "SK136NX"
},
{
"SchoolName": "Hathersage St Michael's CofE (Aided) Primary School",
"Postcode": "S321BZ"
},
{
"SchoolName": "Litton CofE Primary School",
"Postcode": "SK178QU"
},
{
"SchoolName": "Longstone CofE Primary School",
"Postcode": "DE451TZ"
},
{
"SchoolName": "Bonsall CofE (A) Primary School",
"Postcode": "DE42AE"
},
{
"SchoolName": "St George's CofE Primary School (VA)",
"Postcode": "SK224NP"
},
{
"SchoolName": "New<NAME>ney CofE (Aided) Infant School",
"Postcode": "DE150SF"
},
{
"SchoolName": "Pilsley CofE Primary School",
"Postcode": "DE451UF"
},
{
"SchoolName": "Taddington and Priestcliffe School",
"Postcode": "SK179TW"
},
{
"SchoolName": "Bishop Pursglove CofE (A) Primary School",
"Postcode": "SK178NE"
},
{
"SchoolName": "Scargill CofE (Aided) Primary School",
"Postcode": "DE76GU"
},
{
"SchoolName": "Weston-on-Trent CofE (VA) Primary School",
"Postcode": "DE722HX"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "SK177AN"
},
{
"SchoolName": "St Mary's Catholic Primary",
"Postcode": "S404ST"
},
{
"SchoolName": "All Saints Catholic Primary School",
"Postcode": "SK137RJ"
},
{
"SchoolName": "Saint Mary's Catholic Primary",
"Postcode": "SK138NE"
},
{
"SchoolName": "St Charles's Catholic Primary",
"Postcode": "SK131PJ"
},
{
"SchoolName": "St Thomas Catholic Primary",
"Postcode": "DE74LF"
},
{
"SchoolName": "St Mary's Catholic Primary",
"Postcode": "SK223BL"
},
{
"SchoolName": "St Elizabeth's Catholic Primary School",
"Postcode": "DE562JD"
},
{
"SchoolName": "Christ The King Catholic Primary",
"Postcode": "DE557EN"
},
{
"SchoolName": "St Margaret's Catholic Primary",
"Postcode": "SK136JH"
},
{
"SchoolName": "St Andrew's CofE Methodist (Aided) Primary School",
"Postcode": "S188ZQ"
},
{
"SchoolName": "St James' Church of England Aided Infant School",
"Postcode": "DE238EG"
},
{
"SchoolName": "St Mary's Catholic Primary School and Nursery",
"Postcode": "DE221AU"
},
{
"SchoolName": "St Werburgh's Church of England VA Primary School",
"Postcode": "DE217LL"
},
{
"SchoolName": "St Peter's Church of England Aided Junior School",
"Postcode": "DE236FZ"
},
{
"SchoolName": "St James' Church of England Aided Junior School",
"Postcode": "DE238FQ"
},
{
"SchoolName": "Tintwistle CofE (Aided) Primary School",
"Postcode": "SK131LY"
},
{
"SchoolName": "Youlgrave All Saints CofE Voluntary Aided Primary School",
"Postcode": "DE451WN"
},
{
"SchoolName": "St Giles CE VA Primary School",
"Postcode": "S211DU"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Derby",
"Postcode": "DE236SB"
},
{
"SchoolName": "St Alban's Catholic Primary School, Chaddesden, Derby",
"Postcode": "DE216NU"
},
{
"SchoolName": "Chapel-en-le-Frith High School",
"Postcode": "SK230TQ"
},
{
"SchoolName": "Tupton Hall School",
"Postcode": "S426LG"
},
{
"SchoolName": "Wilsthorpe Community School",
"Postcode": "NG104WT"
},
{
"SchoolName": "New Mills School & Sixth Form",
"Postcode": "SK224NR"
},
{
"SchoolName": "William Allitt School",
"Postcode": "DE110TL"
},
{
"SchoolName": "Aldercar High School",
"Postcode": "NG164HL"
},
{
"SchoolName": "Granville Sports College",
"Postcode": "DE117JR"
},
{
"SchoolName": "<NAME>",
"Postcode": "DE552ER"
},
{
"SchoolName": "Eckington School",
"Postcode": "S214GN"
},
{
"SchoolName": "Tibshelf Community School",
"Postcode": "DE555LZ"
},
{
"SchoolName": "Highfields School",
"Postcode": "DE45NA"
},
{
"SchoolName": "The Bemrose School",
"Postcode": "DE223HU"
},
{
"SchoolName": "Derby Moor Community Sports College",
"Postcode": "DE232FS"
},
{
"SchoolName": "Littleover Community School",
"Postcode": "DE234BZ"
},
{
"SchoolName": "Glossopdale Community College",
"Postcode": "SK137DR"
},
{
"SchoolName": "Whittington Green School",
"Postcode": "S419LG"
},
{
"SchoolName": "Hasland Hall Community School",
"Postcode": "S410LP"
},
{
"SchoolName": "Parkside Community School",
"Postcode": "S402NS"
},
{
"SchoolName": "Heritage High School",
"Postcode": "S434QG"
},
{
"SchoolName": "Springwell Community College",
"Postcode": "S433NQ"
},
{
"SchoolName": "Anthony Gell School",
"Postcode": "DE44DX"
},
{
"SchoolName": "<NAME>e School",
"Postcode": "S182FZ"
},
{
"SchoolName": "Buxton Community School",
"Postcode": "SK179EA"
},
{
"SchoolName": "St Thomas More Catholic School Buxton",
"Postcode": "SK176AF"
},
{
"SchoolName": "Belmont Primary School",
"Postcode": "DE118JZ"
},
{
"SchoolName": "Borrow Wood Primary School",
"Postcode": "DE217QW"
},
{
"SchoolName": "Repton Primary School",
"Postcode": "DE656GN"
},
{
"SchoolName": "Chellaston Junior School",
"Postcode": "DE736PZ"
},
{
"SchoolName": "Linton Primary School",
"Postcode": "DE126QA"
},
{
"SchoolName": "The Curzon CofE Primary School",
"Postcode": "DE225JA"
},
{
"SchoolName": "Fairmeadows Foundation Primary School",
"Postcode": "DE110SW"
},
{
"SchoolName": "Shelton Junior School",
"Postcode": "DE249EJ"
},
{
"SchoolName": "Belper School and Sixth Form Centre",
"Postcode": "DE560DA"
},
{
"SchoolName": "Murray Park Community School",
"Postcode": "DE39LL"
},
{
"SchoolName": "Friesland School",
"Postcode": "NG105AF"
},
{
"SchoolName": "Lady Manners School",
"Postcode": "DE451JA"
},
{
"SchoolName": "St Anselm's School",
"Postcode": "DE451DP"
},
{
"SchoolName": "Abbotsholme School",
"Postcode": "ST145BS"
},
{
"SchoolName": "Trent College",
"Postcode": "NG104AD"
},
{
"SchoolName": "Ockbrook School",
"Postcode": "DE723RJ"
},
{
"SchoolName": "St Wystan's School",
"Postcode": "DE656GE"
},
{
"SchoolName": "Repton School",
"Postcode": "DE656FH"
},
{
"SchoolName": "Mount St Mary's College",
"Postcode": "S213YL"
},
{
"SchoolName": "Old Vicarage School",
"Postcode": "DE221EW"
},
{
"SchoolName": "Michael House School",
"Postcode": "DE757JH"
},
{
"SchoolName": "St Peter and St Paul School",
"Postcode": "S410EF"
},
{
"SchoolName": "Derby High School",
"Postcode": "DE233DT"
},
{
"SchoolName": "Barlborough Hall School",
"Postcode": "S434TJ"
},
{
"SchoolName": "Bladon House School",
"Postcode": "DE150TA"
},
{
"SchoolName": "Alderwasley Hall School",
"Postcode": "DE562SR"
},
{
"SchoolName": "Foremarke Hall",
"Postcode": "DE656EJ"
},
{
"SchoolName": "<NAME>ur's School",
"Postcode": "DE737JW"
},
{
"SchoolName": "Emmanuel School",
"Postcode": "DE221FP"
},
{
"SchoolName": "Eastwood Grange School",
"Postcode": "S450BA"
},
{
"SchoolName": "Derby Grammar School",
"Postcode": "DE234BX"
},
{
"SchoolName": "Brackenfield Special School",
"Postcode": "NG104DA"
},
{
"SchoolName": "Ashgate Croft School",
"Postcode": "S404BN"
},
{
"SchoolName": "Swanwick School and Sports College",
"Postcode": "DE551AR"
},
{
"SchoolName": "Stubbin Wood School",
"Postcode": "NG208QF"
},
{
"SchoolName": "Bennerley Fields Specialist Speech and Language College",
"Postcode": "DE78QZ"
},
{
"SchoolName": "Peak School",
"Postcode": "SK236ES"
},
{
"SchoolName": "Alfreton Park Community Special School",
"Postcode": "DE557AL"
},
{
"SchoolName": "Stanton Vale School",
"Postcode": "NG103NP"
},
{
"SchoolName": "St Martins School",
"Postcode": "DE240BR"
},
{
"SchoolName": "Royal School for the Deaf Derby",
"Postcode": "DE223BH"
},
{
"SchoolName": "St Giles' School",
"Postcode": "DE216BT"
},
{
"SchoolName": "St Clare's School",
"Postcode": "DE39AZ"
},
{
"SchoolName": "Ivy House School",
"Postcode": "DE232FS"
},
{
"SchoolName": "St Andrew's School",
"Postcode": "DE214EW"
},
{
"SchoolName": "Chestnut Nursery",
"Postcode": "EX26DJ"
},
{
"SchoolName": "Ham Drive Nursery School and Day Care",
"Postcode": "PL22NJ"
},
{
"SchoolName": "Plym Bridge Nursery and Day Care",
"Postcode": "PL68UN"
},
{
"SchoolName": "Bow Community Primary School",
"Postcode": "EX176HU"
},
{
"SchoolName": "Cheriton Bishop Community Primary School",
"Postcode": "EX66HY"
},
{
"SchoolName": "Cheriton Fitzpaine Primary School",
"Postcode": "EX174AN"
},
{
"SchoolName": "Clyst Hydon Primary School",
"Postcode": "EX152ND"
},
{
"SchoolName": "Clyst St Mary Primary School",
"Postcode": "EX51BG"
},
{
"SchoolName": "Colyton Primary School",
"Postcode": "EX246NU"
},
{
"SchoolName": "Copplestone Primary School",
"Postcode": "EX175NX"
},
{
"SchoolName": "Hayward's Primary School",
"Postcode": "EX173AX"
},
{
"SchoolName": "Culmstock Primary School",
"Postcode": "EX153JP"
},
{
"SchoolName": "Ladysmith Infant & Nursery School",
"Postcode": "EX12PS"
},
{
"SchoolName": "Ladysmith Junior School",
"Postcode": "EX12PT"
},
{
"SchoolName": "Newtown Primary School",
"Postcode": "EX12BP"
},
{
"SchoolName": "Stoke Hill Infants and Nursery School",
"Postcode": "EX47DB"
},
{
"SchoolName": "Stoke Hill Junior School",
"Postcode": "EX47DP"
},
{
"SchoolName": "Whipton Barton Infants and Nursery School",
"Postcode": "EX13JP"
},
{
"SchoolName": "Whipton Barton Junior School",
"Postcode": "EX13JP"
},
{
"SchoolName": "Exeter Road Community Primary School",
"Postcode": "EX81PU"
},
{
"SchoolName": "Marpool Primary School",
"Postcode": "EX83QW"
},
{
"SchoolName": "Honiton Primary School",
"Postcode": "EX141QF"
},
{
"SchoolName": "Kilmington Primary School",
"Postcode": "EX137RG"
},
{
"SchoolName": "Newton Poppleford Primary School",
"Postcode": "EX100EL"
},
{
"SchoolName": "Newton St Cyres Primary School",
"Postcode": "EX55DD"
},
{
"SchoolName": "Ottery St Mary Primary School",
"Postcode": "EX111HY"
},
{
"SchoolName": "West Hill Primary School",
"Postcode": "EX111UQ"
},
{
"SchoolName": "Sandford School",
"Postcode": "EX174NE"
},
{
"SchoolName": "Seaton Primary School",
"Postcode": "EX122HF"
},
{
"SchoolName": "Shute Community Primary School",
"Postcode": "EX137QR"
},
{
"SchoolName": "Upottery Primary School",
"Postcode": "EX149QT"
},
{
"SchoolName": "Whimple Primary School",
"Postcode": "EX52TS"
},
{
"SchoolName": "Willand School",
"Postcode": "EX152QL"
},
{
"SchoolName": "Yeoford Community Primary School",
"Postcode": "EX175HZ"
},
{
"SchoolName": "Landscore Primary School",
"Postcode": "EX173JH"
},
{
"SchoolName": "Willowbank Primary School",
"Postcode": "EX151EZ"
},
{
"SchoolName": "Bassetts Farm Primary School",
"Postcode": "EX84GB"
},
{
"SchoolName": "Tedburn St Mary School",
"Postcode": "EX66AA"
},
{
"SchoolName": "Spreyton School",
"Postcode": "EX175AJ"
},
{
"SchoolName": "Appledore School",
"Postcode": "EX391PF"
},
{
"SchoolName": "Ashwater Primary School",
"Postcode": "EX215EW"
},
{
"SchoolName": "Forches Cross Community Primary School",
"Postcode": "EX328EF"
},
{
"SchoolName": "Pilton Infants' School",
"Postcode": "EX311JU"
},
{
"SchoolName": "Beaford Community Primary & Nursery School",
"Postcode": "EX198LJ"
},
{
"SchoolName": "East-the-Water Community Primary School",
"Postcode": "EX394BZ"
},
{
"SchoolName": "West Croft School",
"Postcode": "EX393DE"
},
{
"SchoolName": "Bishops Nympton Primary School",
"Postcode": "EX364PU"
},
{
"SchoolName": "Bishops Tawton Primary School",
"Postcode": "EX320AE"
},
{
"SchoolName": "Bradford Primary School",
"Postcode": "EX227AB"
},
{
"SchoolName": "Bratton Fleming Community Primary School",
"Postcode": "EX314SB"
},
{
"SchoolName": "Caen Community Primary School",
"Postcode": "EX331AD"
},
{
"SchoolName": "Southmead School",
"Postcode": "EX332BU"
},
{
"SchoolName": "Buckland Brewer Primary School",
"Postcode": "EX395LX"
},
{
"SchoolName": "Clawton Primary School",
"Postcode": "EX226QN"
},
{
"SchoolName": "Combe Martin Primary School",
"Postcode": "EX340DF"
},
{
"SchoolName": "East Anstey Primary School",
"Postcode": "EX169JP"
},
{
"SchoolName": "Filleigh Community Primary School",
"Postcode": "EX320RS"
},
{
"SchoolName": "Fremington Community Primary and Nursery School",
"Postcode": "EX313DD"
},
{
"SchoolName": "Halwill Community Primary School",
"Postcode": "EX215XU"
},
{
"SchoolName": "Hartland Primary School",
"Postcode": "EX396BP"
},
{
"SchoolName": "Horwood and Newton Tracey Community Primary School",
"Postcode": "EX313PU"
},
{
"SchoolName": "Ilfracombe Infant and Nursery School",
"Postcode": "EX348JL"
},
{
"SchoolName": "Instow Community Primary School",
"Postcode": "EX394LU"
},
{
"SchoolName": "Kentisbury Primary School",
"Postcode": "EX314NG"
},
{
"SchoolName": "Kings Nympton Community Primary School",
"Postcode": "EX379SP"
},
{
"SchoolName": "Landkey Primary School",
"Postcode": "EX320LJ"
},
{
"SchoolName": "Langtree Community School and Nursery Unit",
"Postcode": "EX388NF"
},
{
"SchoolName": "Marwood School",
"Postcode": "EX314HF"
},
{
"SchoolName": "Monkleigh Primary School",
"Postcode": "EX395JY"
},
{
"SchoolName": "North Molton School",
"Postcode": "EX363HL"
},
{
"SchoolName": "Parkham Primary School",
"Postcode": "EX395PL"
},
{
"SchoolName": "St Giles-on-the-Heath Community School",
"Postcode": "PL159SD"
},
{
"SchoolName": "Shebbear Community School",
"Postcode": "EX215SG"
},
{
"SchoolName": "Shirwell Community Primary School",
"Postcode": "EX314JT"
},
{
"SchoolName": "South Molton Community Primary School",
"Postcode": "EX363BA"
},
{
"SchoolName": "Sticklepath Community School",
"Postcode": "EX312HH"
},
{
"SchoolName": "West Down School",
"Postcode": "EX348NF"
},
{
"SchoolName": "Winkleigh Primary School",
"Postcode": "EX198JQ"
},
{
"SchoolName": "Woolacombe School",
"Postcode": "EX347BT"
},
{
"SchoolName": "Woolsery Primary School",
"Postcode": "EX395QS"
},
{
"SchoolName": "Highampton Community Primary School",
"Postcode": "EX215LE"
},
{
"SchoolName": "Yeo Valley Primary School",
"Postcode": "EX327HB"
},
{
"SchoolName": "Kingsacre Primary School",
"Postcode": "EX331BQ"
},
{
"SchoolName": "Abbotskerswell Primary School",
"Postcode": "TQ125NS"
},
{
"SchoolName": "Bishopsteignton School",
"Postcode": "TQ149RJ"
},
{
"SchoolName": "Bovey Tracey Primary School",
"Postcode": "TQ139HZ"
},
{
"SchoolName": "Furzeham Primary School",
"Postcode": "TQ58BL"
},
{
"SchoolName": "Broadhempston Village Primary School",
"Postcode": "TQ96BL"
},
{
"SchoolName": "Cockwood Primary School",
"Postcode": "EX68RB"
},
{
"SchoolName": "Denbury Primary School",
"Postcode": "TQ126DP"
},
{
"SchoolName": "Doddiscombsleigh Primary School",
"Postcode": "EX67PR"
},
{
"SchoolName": "Dunsford Community Primary School",
"Postcode": "EX67DD"
},
{
"SchoolName": "Exminster Community Primary",
"Postcode": "EX68AJ"
},
{
"SchoolName": "Ipplepen Primary School",
"Postcode": "TQ125QL"
},
{
"SchoolName": "Kenton Primary School",
"Postcode": "EX68LX"
},
{
"SchoolName": "Kingsbridge Community Primary School",
"Postcode": "TQ71NL"
},
{
"SchoolName": "Loddiswell Primary School",
"Postcode": "TQ74QU"
},
{
"SchoolName": "Decoy Primary School",
"Postcode": "TQ121DH"
},
{
"SchoolName": "Highweek Community Primary and Nursery School",
"Postcode": "TQ121TX"
},
{
"SchoolName": "White Rock Primary School",
"Postcode": "TQ47AW"
},
{
"SchoolName": "Starcross Primary School",
"Postcode": "EX68QD"
},
{
"SchoolName": "Stokeinteignhead School",
"Postcode": "TQ124QE"
},
{
"SchoolName": "Stokenham Area Primary School",
"Postcode": "TQ72SJ"
},
{
"SchoolName": "Hazeldown School",
"Postcode": "TQ148SE"
},
{
"SchoolName": "Homelands Primary School",
"Postcode": "TQ14NT"
},
{
"SchoolName": "Watcombe Primary School",
"Postcode": "TQ28NU"
},
{
"SchoolName": "The Grove School",
"Postcode": "TQ95ED"
},
{
"SchoolName": "Sherwell Valley Primary School",
"Postcode": "TQ26ES"
},
{
"SchoolName": "Bradley Barton Primary School and Nursery Unit",
"Postcode": "TQ121PR"
},
{
"SchoolName": "Canada Hill Community Primary School",
"Postcode": "TQ126YS"
},
{
"SchoolName": "Bere Alston Primary School",
"Postcode": "PL207AU"
},
{
"SchoolName": "Boasley Cross Community Primary School",
"Postcode": "EX204JH"
},
{
"SchoolName": "Bridestowe Primary School",
"Postcode": "EX204EL"
},
{
"SchoolName": "Ermington Primary School",
"Postcode": "PL219NH"
},
{
"SchoolName": "Gulworthy Primary School",
"Postcode": "PL198JA"
},
{
"SchoolName": "Hatherleigh Community Primary School",
"Postcode": "EX203JB"
},
{
"SchoolName": "Holbeton School",
"Postcode": "PL81LT"
},
{
"SchoolName": "Horrabridge Primary & Nursery School",
"Postcode": "PL207SZ"
},
{
"SchoolName": "The Erme Primary School",
"Postcode": "PL210AJ"
},
{
"SchoolName": "Manor Primary School, Ivybridge",
"Postcode": "PL219BG"
},
{
"SchoolName": "Lifton Community Primary School",
"Postcode": "PL160EH"
},
{
"SchoolName": "Lydford Primary School",
"Postcode": "EX204AU"
},
{
"SchoolName": "<NAME> School",
"Postcode": "PL190PS"
},
{
"SchoolName": "North Tawton Community Primary School and Nursery",
"Postcode": "EX202HB"
},
{
"SchoolName": "Okehampton Primary School and Foundation Unit",
"Postcode": "EX201JB"
},
{
"SchoolName": "Princetown Community Primary School",
"Postcode": "PL206QE"
},
{
"SchoolName": "Shaugh Prior Primary School",
"Postcode": "PL75HA"
},
{
"SchoolName": "South Tawton Primary School",
"Postcode": "EX202LG"
},
{
"SchoolName": "<NAME> and Brentor Community Primary School",
"Postcode": "PL199PR"
},
{
"SchoolName": "Tavistock Community Primary & Nursery School",
"Postcode": "PL198BX"
},
{
"SchoolName": "Wembury Primary School",
"Postcode": "PL90EB"
},
{
"SchoolName": "Whitchurch Community Primary School",
"Postcode": "PL199SR"
},
{
"SchoolName": "Ford Primary School",
"Postcode": "PL21PU"
},
{
"SchoolName": "Hyde Park Junior School",
"Postcode": "PL34RH"
},
{
"SchoolName": "Hyde Park Infants' School",
"Postcode": "PL34RS"
},
{
"SchoolName": "College Road Primary School",
"Postcode": "PL21NS"
},
{
"SchoolName": "Knowle Primary School",
"Postcode": "PL53QG"
},
{
"SchoolName": "Laira Green Primary School",
"Postcode": "PL36BP"
},
{
"SchoolName": "Mount Street Primary School",
"Postcode": "PL48NZ"
},
{
"SchoolName": "Stoke Damerel Primary School",
"Postcode": "PL15PA"
},
{
"SchoolName": "Stuart Road Primary School",
"Postcode": "PL15LL"
},
{
"SchoolName": "Victoria Road Primary School",
"Postcode": "PL51RH"
},
{
"SchoolName": "Drake Primary School",
"Postcode": "PL22EN"
},
{
"SchoolName": "Plaistow Hill Infant and Nursery School",
"Postcode": "PL52DT"
},
{
"SchoolName": "Pennycross Primary School",
"Postcode": "PL23RL"
},
{
"SchoolName": "Lipson Vale Primary School",
"Postcode": "PL47HW"
},
{
"SchoolName": "Mount Wise Community Primary School",
"Postcode": "PL14LA"
},
{
"SchoolName": "Dunstone Community Primary School",
"Postcode": "PL98TQ"
},
{
"SchoolName": "Tor Bridge Primary School",
"Postcode": "PL68UN"
},
{
"SchoolName": "Yealmpstone Farm Primary School",
"Postcode": "PL71XQ"
},
{
"SchoolName": "Ugborough Primary School",
"Postcode": "PL210NJ"
},
{
"SchoolName": "Modbury Primary School",
"Postcode": "PL210RB"
},
{
"SchoolName": "Bolham Community Primary School",
"Postcode": "EX167RA"
},
{
"SchoolName": "Halberton Primary School",
"Postcode": "EX167AT"
},
{
"SchoolName": "The Castle Primary School",
"Postcode": "EX166QR"
},
{
"SchoolName": "Two Moors Primary School",
"Postcode": "EX166HH"
},
{
"SchoolName": "Heathcoat Primary School",
"Postcode": "EX165HE"
},
{
"SchoolName": "Brampford Speke Church of England Primary School",
"Postcode": "EX55HE"
},
{
"SchoolName": "Branscombe Church of England Primary School",
"Postcode": "EX123DA"
},
{
"SchoolName": "Broadhembury Church of England Primary School",
"Postcode": "EX143NF"
},
{
"SchoolName": "Burlescombe Church of England Primary School",
"Postcode": "EX167JH"
},
{
"SchoolName": "St Martin's CofE Primary & Nursery School",
"Postcode": "EX57DT"
},
{
"SchoolName": "Withycombe Raleigh Church of England Primary School",
"Postcode": "EX83BA"
},
{
"SchoolName": "Kentisbeare Church of England Primary School",
"Postcode": "EX152AD"
},
{
"SchoolName": "Lympstone Church of England Primary School",
"Postcode": "EX85JY"
},
{
"SchoolName": "Offwell Church of England Primary School",
"Postcode": "EX149SA"
},
{
"SchoolName": "Payhembury Church of England Primary School",
"Postcode": "EX143HT"
},
{
"SchoolName": "Plymtree Church of England Primary School",
"Postcode": "EX152JU"
},
{
"SchoolName": "Silverton Church of England Primary School",
"Postcode": "EX54JY"
},
{
"SchoolName": "Stoke Canon Church of England Primary School",
"Postcode": "EX54AS"
},
{
"SchoolName": "Thorverton Church of England Primary School",
"Postcode": "EX55NR"
},
{
"SchoolName": "Uplowman Church of England Primary School",
"Postcode": "EX167DR"
},
{
"SchoolName": "Littleham Church of England Primary School",
"Postcode": "EX82QY"
},
{
"SchoolName": "Berrynarbor Church of England Primary School",
"Postcode": "EX349SE"
},
{
"SchoolName": "Black Torrington Church of England Primary School",
"Postcode": "EX215PU"
},
{
"SchoolName": "Bridgerule Church of England Primary School",
"Postcode": "EX227EN"
},
{
"SchoolName": "Georgeham Church of England (VC) Primary School",
"Postcode": "EX331JT"
},
{
"SchoolName": "Goodleigh Church of England Primary School",
"Postcode": "EX327LU"
},
{
"SchoolName": "Great Torrington Bluecoat Church of England Primary School",
"Postcode": "EX387NU"
},
{
"SchoolName": "High Bickington Church of England Primary School",
"Postcode": "EX379AY"
},
{
"SchoolName": "Holywell Church of England Primary School",
"Postcode": "EX313HZ"
},
{
"SchoolName": "Ilfracombe Church of England Junior School",
"Postcode": "EX349LW"
},
{
"SchoolName": "Parracombe Church of England Primary School",
"Postcode": "EX314QJ"
},
{
"SchoolName": "Witheridge Church of England Primary School",
"Postcode": "EX168AH"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "EX392QN"
},
{
"SchoolName": "Ashleigh CofE (VC) Primary School",
"Postcode": "EX328LJ"
},
{
"SchoolName": "Berry Pomeroy Parochial Church of England Primary School",
"Postcode": "TQ96LH"
},
{
"SchoolName": "Brixham Church of England Primary School",
"Postcode": "TQ59HF"
},
{
"SchoolName": "Chudleigh Church of England Community Primary School",
"Postcode": "TQ130LS"
},
{
"SchoolName": "Dartington Church of England Primary School",
"Postcode": "TQ96JU"
},
{
"SchoolName": "Kenn Church of England Primary School",
"Postcode": "EX67TX"
},
{
"SchoolName": "Kingskerswell Church of England Primary School",
"Postcode": "TQ125HN"
},
{
"SchoolName": "Malborough with South Huish Church of England Primary School",
"Postcode": "TQ73RN"
},
{
"SchoolName": "Totnes St John's Church of England Primary School",
"Postcode": "TQ95TZ"
},
{
"SchoolName": "St Michael's Church of England Primary School",
"Postcode": "TQ123BQ"
},
{
"SchoolName": "Chagford Church of England Primary School",
"Postcode": "TQ138BZ"
},
{
"SchoolName": "Cornwood Church of England Primary School",
"Postcode": "PL219PZ"
},
{
"SchoolName": "Exbourne Church of England Primary School",
"Postcode": "EX203SQ"
},
{
"SchoolName": "Lamerton Church of England Voluntary Controlled Primary School",
"Postcode": "PL198RJ"
},
{
"SchoolName": "Lew Trenchard Church of England Primary School",
"Postcode": "EX204DP"
},
{
"SchoolName": "Northlew and Ashbury Parochial Church of England Primary School",
"Postcode": "EX203PB"
},
{
"SchoolName": "Compton CofE Primary School",
"Postcode": "PL35JB"
},
{
"SchoolName": "St Andrew's Cof E VA Primary School",
"Postcode": "PL13AY"
},
{
"SchoolName": "<NAME>'s CofE Primary School",
"Postcode": "PL54LS"
},
{
"SchoolName": "Awliscombe Church of England Primary School",
"Postcode": "EX143PJ"
},
{
"SchoolName": "St Peter's Church of England Primary School",
"Postcode": "EX96QF"
},
{
"SchoolName": "Drake's Church of England Primary School",
"Postcode": "EX97DQ"
},
{
"SchoolName": "The Beacon Church of England (VA) Primary School",
"Postcode": "EX82SR"
},
{
"SchoolName": "Farway Church of England Primary School",
"Postcode": "EX246EQ"
},
{
"SchoolName": "Feniton Church of England Primary School",
"Postcode": "EX143EA"
},
{
"SchoolName": "Webber's Church of England Primary School",
"Postcode": "TA210PE"
},
{
"SchoolName": "Otterton Church of England Primary School",
"Postcode": "EX97HU"
},
{
"SchoolName": "Rockbeare Church of England Primary School and Pre-School",
"Postcode": "EX52EQ"
},
{
"SchoolName": "Tipton St John Church of England Primary School",
"Postcode": "EX100AG"
},
{
"SchoolName": "Woodbury Church of England Primary School",
"Postcode": "EX51EA"
},
{
"SchoolName": "Woodbury Salterton Church of England Primary School",
"Postcode": "EX51PP"
},
{
"SchoolName": "St Sidwell's Church of England Primary School",
"Postcode": "EX46PG"
},
{
"SchoolName": "Pinhoe Church of England Primary School",
"Postcode": "EX48PE"
},
{
"SchoolName": "St Helen's Church of England Primary School",
"Postcode": "EX395AP"
},
{
"SchoolName": "Chittlehampton Church of England Primary School",
"Postcode": "EX379QW"
},
{
"SchoolName": "Dolton Church of England Primary School",
"Postcode": "EX198QF"
},
{
"SchoolName": "Lynton Church of England Primary School",
"Postcode": "EX356AF"
},
{
"SchoolName": "The Clinton Church of England Primary School",
"Postcode": "EX203EQ"
},
{
"SchoolName": "St Margaret's Church of England (Aided) Junior School",
"Postcode": "EX391EL"
},
{
"SchoolName": "South Molton United Church of England Primary School",
"Postcode": "EX363GN"
},
{
"SchoolName": "Swimbridge Church of England Primary School",
"Postcode": "EX320PJ"
},
{
"SchoolName": "St George's Church of England (VA) Infant and Nursery School",
"Postcode": "EX391HT"
},
{
"SchoolName": "Morchard Bishop Church of England Primary School",
"Postcode": "EX176PJ"
},
{
"SchoolName": "Galmpton Church of England Primary School",
"Postcode": "TQ50LT"
},
{
"SchoolName": "St Catherine's CofE Nursery & Primary School",
"Postcode": "TQ126SB"
},
{
"SchoolName": "Marldon Church of England Primary School",
"Postcode": "TQ31PD"
},
{
"SchoolName": "Collaton St Mary Church of England Primary School",
"Postcode": "TQ33YA"
},
{
"SchoolName": "Wolborough Church of England (Aided) Nursery and Primary School",
"Postcode": "TQ122JX"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "PL82AG"
},
{
"SchoolName": "St Andrew's Church of England Primary School",
"Postcode": "PL207NA"
},
{
"SchoolName": "St Budeaux Foundation CofE (Aided) Junior School",
"Postcode": "PL52DW"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "PL11TP"
},
{
"SchoolName": "Plympton St Mary's CofE Infant School",
"Postcode": "PL71QW"
},
{
"SchoolName": "Bickleigh Down Church of England Primary School",
"Postcode": "PL67JW"
},
{
"SchoolName": "Bampton Church of England Primary School",
"Postcode": "EX169NW"
},
{
"SchoolName": "Rackenford Church of England Primary School",
"Postcode": "EX168DU"
},
{
"SchoolName": "The Axe Valley Community College",
"Postcode": "EX135EA"
},
{
"SchoolName": "Cullompton Community College",
"Postcode": "EX151DX"
},
{
"SchoolName": "Sidmouth College",
"Postcode": "EX109LG"
},
{
"SchoolName": "West Exe School",
"Postcode": "EX29JU"
},
{
"SchoolName": "Holsworthy Community College",
"Postcode": "EX226JD"
},
{
"SchoolName": "South Molton Community College",
"Postcode": "EX364LA"
},
{
"SchoolName": "The Park Community School",
"Postcode": "EX329AX"
},
{
"SchoolName": "Dawlish Community College",
"Postcode": "EX70BY"
},
{
"SchoolName": "King Edward VI Community College",
"Postcode": "TQ95JX"
},
{
"SchoolName": "Plymouth High School for Girls",
"Postcode": "PL46HT"
},
{
"SchoolName": "S<NAME>unt Community Sports College",
"Postcode": "PL54AA"
},
{
"SchoolName": "Tavistock College",
"Postcode": "PL198DD"
},
{
"SchoolName": "Okehampton College",
"Postcode": "EX201PW"
},
{
"SchoolName": "Tiverton High School",
"Postcode": "EX166SQ"
},
{
"SchoolName": "St Luke's Science and Sports College",
"Postcode": "EX13RD"
},
{
"SchoolName": "St Cuthbert Mayne School",
"Postcode": "TQ14RN"
},
{
"SchoolName": "St Peter's Church of England Aided School",
"Postcode": "EX25AP"
},
{
"SchoolName": "Exeter Cathedral School",
"Postcode": "EX11HX"
},
{
"SchoolName": "Bramdean School",
"Postcode": "EX12QR"
},
{
"SchoolName": "Abbey School",
"Postcode": "TQ14PR"
},
{
"SchoolName": "St Wilfrid's School",
"Postcode": "EX44DA"
},
{
"SchoolName": "Vranch House School",
"Postcode": "EX48AD"
},
{
"SchoolName": "<NAME>",
"Postcode": "PL190HZ"
},
{
"SchoolName": "Trinity School",
"Postcode": "TQ148LY"
},
{
"SchoolName": "Blundell's School",
"Postcode": "EX164DN"
},
{
"SchoolName": "Blundell's Preparatory School",
"Postcode": "EX164NA"
},
{
"SchoolName": "Stover School",
"Postcode": "TQ126QG"
},
{
"SchoolName": "St John's International School",
"Postcode": "EX108RG"
},
{
"SchoolName": "St Peter's School",
"Postcode": "EX85AU"
},
{
"SchoolName": "Fletewood School at Derry Villas",
"Postcode": "PL46AN"
},
{
"SchoolName": "King's School",
"Postcode": "PL35LW"
},
{
"SchoolName": "South Devon Steiner School",
"Postcode": "TQ96AB"
},
{
"SchoolName": "Kingsley School",
"Postcode": "EX393LY"
},
{
"SchoolName": "Shebbear College",
"Postcode": "EX215HJ"
},
{
"SchoolName": "West Buckland School",
"Postcode": "EX320SX"
},
{
"SchoolName": "Exeter School",
"Postcode": "EX24NS"
},
{
"SchoolName": "The Maynard School",
"Postcode": "EX11SJ"
},
{
"SchoolName": "Plymouth College",
"Postcode": "PL46RN"
},
{
"SchoolName": "The Small School",
"Postcode": "EX396AB"
},
{
"SchoolName": "Tower House School",
"Postcode": "TQ45EW"
},
{
"SchoolName": "<NAME>",
"Postcode": "PL207EX"
},
{
"SchoolName": "Park School",
"Postcode": "TQ96EQ"
},
{
"SchoolName": "Sands School",
"Postcode": "TQ137AX"
},
{
"SchoolName": "Magdalen Court School",
"Postcode": "EX24NU"
},
{
"SchoolName": "The New School",
"Postcode": "EX68AT"
},
{
"SchoolName": "St Christophers School",
"Postcode": "TQ96PF"
},
{
"SchoolName": "Exeter Tutorial College",
"Postcode": "EX24TE"
},
{
"SchoolName": "Ellen Tinkham School",
"Postcode": "EX13RW"
},
{
"SchoolName": "Southbrook School",
"Postcode": "EX26JB"
},
{
"SchoolName": "Mill Water School",
"Postcode": "EX97BJ"
},
{
"SchoolName": "Barley Lane School",
"Postcode": "EX41TA"
},
{
"SchoolName": "The Lampard Community School",
"Postcode": "EX329DD"
},
{
"SchoolName": "Pathfield School",
"Postcode": "EX311JU"
},
{
"SchoolName": "Mayfield School",
"Postcode": "TQ28NH"
},
{
"SchoolName": "Oaklands Park School",
"Postcode": "EX79SF"
},
{
"SchoolName": "Bidwell Brook School",
"Postcode": "TQ96JU"
},
{
"SchoolName": "Woodlands School",
"Postcode": "PL65ES"
},
{
"SchoolName": "Cann Bridge School",
"Postcode": "PL68UN"
},
{
"SchoolName": "Brook Green Centre for Learning",
"Postcode": "PL54DZ"
},
{
"SchoolName": "Mount Tamar School",
"Postcode": "PL52EF"
},
{
"SchoolName": "Longcause Community Special School",
"Postcode": "PL71JB"
},
{
"SchoolName": "Mill Ford School",
"Postcode": "PL52PY"
},
{
"SchoolName": "Wesc Foundation School",
"Postcode": "EX26HA"
},
{
"SchoolName": "<NAME> School",
"Postcode": "PL219HQ"
},
{
"SchoolName": "Exeter Royal Academy for Deaf Education",
"Postcode": "EX24NF"
},
{
"SchoolName": "Ratcliffe School",
"Postcode": "EX79RZ"
},
{
"SchoolName": "Bere Regis School",
"Postcode": "BH207LP"
},
{
"SchoolName": "Downlands Community School",
"Postcode": "DT118BG"
},
{
"SchoolName": "Broadmayne First School",
"Postcode": "DT28PH"
},
{
"SchoolName": "Charmouth Primary School",
"Postcode": "DT66LR"
},
{
"SchoolName": "Cheselbourne Village School",
"Postcode": "DT27NT"
},
{
"SchoolName": "Damers First School",
"Postcode": "DT12LB"
},
{
"SchoolName": "Gillingham Primary School",
"Postcode": "SP84QR"
},
{
"SchoolName": "Ferndown First School",
"Postcode": "BH229FB"
},
{
"SchoolName": "Hazelbury Bryan Primary School",
"Postcode": "DT102ED"
},
{
"SchoolName": "Lytchett Matravers Primary School",
"Postcode": "BH166DY"
},
{
"SchoolName": "Upton Infants' School",
"Postcode": "BH165LQ"
},
{
"SchoolName": "Sherborne Primary School",
"Postcode": "DT94AJ"
},
{
"SchoolName": "Stower Provost Community School",
"Postcode": "SP85LX"
},
{
"SchoolName": "Sturminster Marshall First School",
"Postcode": "BH214AY"
},
{
"SchoolName": "William Barnes Primary School",
"Postcode": "DT101BZ"
},
{
"SchoolName": "Swanage Primary School",
"Postcode": "BH192EY"
},
{
"SchoolName": "Wimborne First School",
"Postcode": "BH211HQ"
},
{
"SchoolName": "Bovington Primary School",
"Postcode": "BH206LE"
},
{
"SchoolName": "Upton Junior School",
"Postcode": "BH165NQ"
},
{
"SchoolName": "Parley First School",
"Postcode": "BH228QE"
},
{
"SchoolName": "Hillside Community First School",
"Postcode": "BH317HE"
},
{
"SchoolName": "Rushcombe First School",
"Postcode": "BH213PX"
},
{
"SchoolName": "Sylvan Infant School",
"Postcode": "BH123DT"
},
{
"SchoolName": "Heatherlands Primary School",
"Postcode": "BH122BG"
},
{
"SchoolName": "Talbot Primary School",
"Postcode": "BH125ED"
},
{
"SchoolName": "Branksome Heath Junior School",
"Postcode": "BH123DX"
},
{
"SchoolName": "Wyke Regis Infant School and Nursery",
"Postcode": "DT49LU"
},
{
"SchoolName": "Bincombe Valley Primary School",
"Postcode": "DT36AW"
},
{
"SchoolName": "Radipole Primary School",
"Postcode": "DT35HS"
},
{
"SchoolName": "Southill Primary School",
"Postcode": "DT49UF"
},
{
"SchoolName": "Christchurch Junior School",
"Postcode": "BH232AA"
},
{
"SchoolName": "Christchurch Infant School",
"Postcode": "BH232AE"
},
{
"SchoolName": "Somerford Primary School",
"Postcode": "BH233AS"
},
{
"SchoolName": "Mudeford Community Infants' School",
"Postcode": "BH233HH"
},
{
"SchoolName": "Mudeford Junior School",
"Postcode": "BH233HP"
},
{
"SchoolName": "Wyke Primary School",
"Postcode": "SP84SH"
},
{
"SchoolName": "Henbury View First School",
"Postcode": "BH213TR"
},
{
"SchoolName": "The Prince of Wales School",
"Postcode": "DT12HH"
},
{
"SchoolName": "Stoborough Church of England Primary School",
"Postcode": "BH205AD"
},
{
"SchoolName": "Milldown Church of England Voluntary Controlled Primary School",
"Postcode": "DT117SN"
},
{
"SchoolName": "St George's Church of England School, Bourton",
"Postcode": "SP85BN"
},
{
"SchoolName": "Cerne Abbas Church of England Voluntary Controlled First School",
"Postcode": "DT27LA"
},
{
"SchoolName": "St James' Church of England Voluntary Controlled First School",
"Postcode": "BH214JN"
},
{
"SchoolName": "Maiden Newton, Greenford Church of England Primary School",
"Postcode": "DT20AX"
},
{
"SchoolName": "Pamphill Voluntary Controlled Church of England First School",
"Postcode": "BH214EE"
},
{
"SchoolName": "Sherborne Abbey Church of England Voluntary Controlled Primary School",
"Postcode": "DT96AQ"
},
{
"SchoolName": "Thorncombe, St Mary's Church of England Voluntary Controlled Primary School",
"Postcode": "TA204NE"
},
{
"SchoolName": "All Saints Church of England Voluntary Controlled Primary School",
"Postcode": "DT95NQ"
},
{
"SchoolName": "Pimperne Church of England VC Primary School",
"Postcode": "DT118WF"
},
{
"SchoolName": "Buckland Newton Church of England School",
"Postcode": "DT27BY"
},
{
"SchoolName": "Broadwindsor Church of England Voluntary Controlled Primary School",
"Postcode": "DT83QL"
},
{
"SchoolName": "Verwood Church of England First School",
"Postcode": "BH316JF"
},
{
"SchoolName": "St Andrew's Church of England Primary School, Yetminster",
"Postcode": "DT96LS"
},
{
"SchoolName": "St Mary's Church of England First School, Charminster",
"Postcode": "DT29RD"
},
{
"SchoolName": "Wyke Regis Church of England Junior School",
"Postcode": "DT49NU"
},
{
"SchoolName": "Burton Church of England Primary School",
"Postcode": "BH237JY"
},
{
"SchoolName": "Manor Park Church of England First School",
"Postcode": "DT12BH"
},
{
"SchoolName": "St Nicholas Church of England Voluntary Aided Primary School, Child Okeford",
"Postcode": "DT118EL"
},
{
"SchoolName": "Cranborne Church of England Voluntary Aided First School",
"Postcode": "BH215QB"
},
{
"SchoolName": "Durweston CofE VA Primary School",
"Postcode": "DT110QA"
},
{
"SchoolName": "Sticklands Church of England Voluntary Aided Primary School",
"Postcode": "DT20JP"
},
{
"SchoolName": "St Andrew's Church of England Primary School, <NAME>na",
"Postcode": "SP70PF"
},
{
"SchoolName": "Milton-on-Stour Church of England Primary School",
"Postcode": "SP85QD"
},
{
"SchoolName": "Hampreston Church of England Voluntary Aided First School",
"Postcode": "BH217LX"
},
{
"SchoolName": "St George's Church of England Primary School, <NAME>",
"Postcode": "BH193HB"
},
{
"SchoolName": "Thorner's Church of England School, <NAME>",
"Postcode": "DT29AU"
},
{
"SchoolName": "St Gregory's Church of England Primary School, Marnhull",
"Postcode": "DT101PZ"
},
{
"SchoolName": "Parrett and Axe Church of England Voluntary Aided Primary School",
"Postcode": "DT83JQ"
},
{
"SchoolName": "Salway Ash Church of England Voluntary Aided Primary School",
"Postcode": "DT65JE"
},
{
"SchoolName": "Okeford Fitzpaine Church of England Voluntary Aided School",
"Postcode": "DT110RF"
},
{
"SchoolName": "Powerstock Church of England Voluntary Aided Primary School",
"Postcode": "DT63TB"
},
{
"SchoolName": "Shillingstone Church of England Voluntary Aided Primary School",
"Postcode": "DT110TX"
},
{
"SchoolName": "Symondsbury Church of England Voluntary Aided Primary School",
"Postcode": "DT66HD"
},
{
"SchoolName": "Thornford Church of England Voluntary Aided Primary School",
"Postcode": "DT96QY"
},
{
"SchoolName": "Sandford St Martin's Church of England Voluntary Aided Primary School",
"Postcode": "BH207BN"
},
{
"SchoolName": "Winterbourne Valley Church of England Aided First School",
"Postcode": "DT29LW"
},
{
"SchoolName": "Wool Church of England Voluntary Aided Primary School",
"Postcode": "BH206BT"
},
{
"SchoolName": "Bishop Aldhelm's Church of England Voluntary Aided Primary School",
"Postcode": "BH121PG"
},
{
"SchoolName": "Portesham Church of England Primary School",
"Postcode": "DT34HP"
},
{
"SchoolName": "St Nicholas and St Laurence Church of England Primary School, Broadwey",
"Postcode": "DT35DQ"
},
{
"SchoolName": "St Andrew's Church of England Voluntary Aided School, Preston, Weymouth",
"Postcode": "DT36AA"
},
{
"SchoolName": "St John's Church of England Voluntary Aided School, Weymouth",
"Postcode": "DT47TP"
},
{
"SchoolName": "St Katharine's Church of England Primary School",
"Postcode": "BH64NA"
},
{
"SchoolName": "Corpus Christi Catholic Primary School",
"Postcode": "BH52BX"
},
{
"SchoolName": "The Priory Church of England Primary School",
"Postcode": "BH231HX"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Christchurch",
"Postcode": "BH233DA"
},
{
"SchoolName": "The Abbey CofE VA Primary School, Shaftesbury",
"Postcode": "SP78HQ"
},
{
"SchoolName": "St Michael's Church of England Voluntary Aided Primary School, Lyme Regis",
"Postcode": "DT73DY"
},
{
"SchoolName": "Cranborne Middle School",
"Postcode": "BH215RP"
},
{
"SchoolName": "Ferndown Upper School",
"Postcode": "BH229EY"
},
{
"SchoolName": "The Purbeck School",
"Postcode": "BH204PF"
},
{
"SchoolName": "West Moors Middle School",
"Postcode": "BH220DA"
},
{
"SchoolName": "Lockyer's Middle School",
"Postcode": "BH213HQ"
},
{
"SchoolName": "Lytchett Minster School",
"Postcode": "BH166JD"
},
{
"SchoolName": "Sturminster Newton High School",
"Postcode": "DT101DT"
},
{
"SchoolName": "Ferndown Middle School",
"Postcode": "BH229UP"
},
{
"SchoolName": "Gillingham School",
"Postcode": "SP84QP"
},
{
"SchoolName": "Beaminster School",
"Postcode": "DT83EP"
},
{
"SchoolName": "The Blandford School",
"Postcode": "DT117SQ"
},
{
"SchoolName": "St Edward's Roman Catholic/Church of England School, Poole",
"Postcode": "BH153HY"
},
{
"SchoolName": "Emmanuel Middle Church of England Voluntary Aided School",
"Postcode": "BH316JF"
},
{
"SchoolName": "All Saints' Church of England School, Weymouth",
"Postcode": "DT49BJ"
},
{
"SchoolName": "St Walburga's Catholic Primary School",
"Postcode": "BH93BY"
},
{
"SchoolName": "Stalbridge Church of England Primary School",
"Postcode": "DT102LP"
},
{
"SchoolName": "The Woodroffe School",
"Postcode": "DT73LX"
},
{
"SchoolName": "Budmouth College",
"Postcode": "DT49SY"
},
{
"SchoolName": "Poole High School",
"Postcode": "BH152BW"
},
{
"SchoolName": "Bryanston School",
"Postcode": "DT110PX"
},
{
"SchoolName": "Hanford School",
"Postcode": "DT118HN"
},
{
"SchoolName": "Clayesmore School",
"Postcode": "DT118LL"
},
{
"SchoolName": "Yarrells Preparatory School",
"Postcode": "BH165EU"
},
{
"SchoolName": "Port Regis Preparatory School",
"Postcode": "SP79QA"
},
{
"SchoolName": "Sherborne Preparatory School",
"Postcode": "DT93NY"
},
{
"SchoolName": "Sherborne School",
"Postcode": "DT93AP"
},
{
"SchoolName": "Sherborne School for Girls",
"Postcode": "DT93QN"
},
{
"SchoolName": "Leweston School",
"Postcode": "DT96EN"
},
{
"SchoolName": "Canford School",
"Postcode": "BH213AD"
},
{
"SchoolName": "Dumpton School",
"Postcode": "BH217AF"
},
{
"SchoolName": "Knighton House School",
"Postcode": "DT110PY"
},
{
"SchoolName": "Sunninghill Preparatory School",
"Postcode": "DT11EB"
},
{
"SchoolName": "Bournemouth Collegiate Preparatory School",
"Postcode": "BH149JY"
},
{
"SchoolName": "Buckholme Towers School",
"Postcode": "BH140JW"
},
{
"SchoolName": "Castle Court Preparatory School",
"Postcode": "BH213RF"
},
{
"SchoolName": "Milton Abbey School",
"Postcode": "DT110BZ"
},
{
"SchoolName": "Bournemouth Collegiate School",
"Postcode": "BH52DY"
},
{
"SchoolName": "Park School",
"Postcode": "BH89BJ"
},
{
"SchoolName": "St Martin's School",
"Postcode": "BH37NA"
},
{
"SchoolName": "Talbot House School",
"Postcode": "BH92LR"
},
{
"SchoolName": "Portfield School",
"Postcode": "BH236BP"
},
{
"SchoolName": "Ringwood Waldorf School",
"Postcode": "BH242NN"
},
{
"SchoolName": "St Thomas Garnet's School",
"Postcode": "BH52BH"
},
{
"SchoolName": "Talbot Heath School",
"Postcode": "BH49NJ"
},
{
"SchoolName": "Sherborne International",
"Postcode": "DT94EZ"
},
{
"SchoolName": "Clayesmore Preparatory School",
"Postcode": "DT118PH"
},
{
"SchoolName": "Purbeck View School",
"Postcode": "BH191PR"
},
{
"SchoolName": "Sheiling School",
"Postcode": "BH242EB"
},
{
"SchoolName": "Victoria Education Centre",
"Postcode": "BH136AS"
},
{
"SchoolName": "Winchelsea School",
"Postcode": "BH124LL"
},
{
"SchoolName": "Beaucroft Foundation School",
"Postcode": "BH212SS"
},
{
"SchoolName": "Mountjoy School",
"Postcode": "DT83HB"
},
{
"SchoolName": "Westfield Arts College",
"Postcode": "DT36AA"
},
{
"SchoolName": "Linwood School",
"Postcode": "BH91AJ"
},
{
"SchoolName": "Yewstock School",
"Postcode": "DT101EW"
},
{
"SchoolName": "Oxhill Nursery School",
"Postcode": "DH97LR"
},
{
"SchoolName": "Wingate Community Nursery School",
"Postcode": "TS285BD"
},
{
"SchoolName": "Aclet Close Nursery School",
"Postcode": "DL146PX"
},
{
"SchoolName": "Oxclose Nursery School",
"Postcode": "DL166RU"
},
{
"SchoolName": "Seaham Harbour Nursery School",
"Postcode": "SR77NN"
},
{
"SchoolName": "Etherley Lane Nursery School",
"Postcode": "DL147RF"
},
{
"SchoolName": "Langley Moor Nursery School",
"Postcode": "DH78LL"
},
{
"SchoolName": "Borough Road Nursery School",
"Postcode": "DL11SG"
},
{
"SchoolName": "George Dent Nursery School",
"Postcode": "DL37PY"
},
{
"SchoolName": "Beechdale Nursery School",
"Postcode": "DH86AY"
},
{
"SchoolName": "Horden Nursery School",
"Postcode": "SR84TB"
},
{
"SchoolName": "Rosemary Lane Nursery School",
"Postcode": "SR83BQ"
},
{
"SchoolName": "Tudhoe Moor Nursery School",
"Postcode": "DL166EX"
},
{
"SchoolName": "The Woodlands",
"Postcode": "DL178AN"
},
{
"SchoolName": "Ropery Walk Primary School",
"Postcode": "SR77JZ"
},
{
"SchoolName": "Westlea Primary School",
"Postcode": "SR78JU"
},
{
"SchoolName": "Edmondsley Primary School",
"Postcode": "DH76DU"
},
{
"SchoolName": "Lumley Junior School",
"Postcode": "DH34JJ"
},
{
"SchoolName": "Lumley Infant and Nursery School",
"Postcode": "DH34JL"
},
{
"SchoolName": "West Pelton Primary School",
"Postcode": "DH96SQ"
},
{
"SchoolName": "Nettlesworth Primary School",
"Postcode": "DH23PF"
},
{
"SchoolName": "THE Sacriston Primary School",
"Postcode": "DH76LQ"
},
{
"SchoolName": "Red Rose Primary School",
"Postcode": "DH33NA"
},
{
"SchoolName": "Woodlea Primary School",
"Postcode": "DH46AR"
},
{
"SchoolName": "Cestria Primary School",
"Postcode": "DH33PZ"
},
{
"SchoolName": "Ouston Primary School",
"Postcode": "DH21RQ"
},
{
"SchoolName": "Bournmoor Primary School",
"Postcode": "DH46HF"
},
{
"SchoolName": "Cotherstone Primary School",
"Postcode": "DL129QB"
},
{
"SchoolName": "Beamish Primary School",
"Postcode": "DH90QN"
},
{
"SchoolName": "Collierley Primary School",
"Postcode": "DH99DJ"
},
{
"SchoolName": "Catchgate Primary School",
"Postcode": "DH98LX"
},
{
"SchoolName": "Annfield Plain Junior School",
"Postcode": "DH97ST"
},
{
"SchoolName": "Annfield Plain Infant School",
"Postcode": "DH97UY"
},
{
"SchoolName": "East Stanley School",
"Postcode": "DH90TN"
},
{
"SchoolName": "South Stanley Junior School",
"Postcode": "DH96PZ"
},
{
"SchoolName": "Stanley Burnside Primary School",
"Postcode": "DH96QP"
},
{
"SchoolName": "Bloemfontein Primary School",
"Postcode": "DH96AG"
},
{
"SchoolName": "Burnopfield Primary School",
"Postcode": "NE166PT"
},
{
"SchoolName": "Shotley Bridge Primary School",
"Postcode": "DH80SQ"
},
{
"SchoolName": "Leadgate Primary School",
"Postcode": "DH87RH"
},
{
"SchoolName": "Burnhope Primary School",
"Postcode": "DH70AG"
},
{
"SchoolName": "Castleside Primary School",
"Postcode": "DH89RG"
},
{
"SchoolName": "Benfieldside Primary School",
"Postcode": "DH80JX"
},
{
"SchoolName": "The Grove Primary School",
"Postcode": "DH88AP"
},
{
"SchoolName": "Delves Lane Primary School",
"Postcode": "DH87ES"
},
{
"SchoolName": "Moorside Primary School",
"Postcode": "DH88EQ"
},
{
"SchoolName": "Consett Junior School",
"Postcode": "DH86AY"
},
{
"SchoolName": "Consett Infant School",
"Postcode": "DH86AF"
},
{
"SchoolName": "Hamsterley Primary School",
"Postcode": "DL133QF"
},
{
"SchoolName": "Hunwick Primary School",
"Postcode": "DL150JX"
},
{
"SchoolName": "Tow Law Millennium Primary School",
"Postcode": "DL134LF"
},
{
"SchoolName": "Crook Primary School",
"Postcode": "DL158QG"
},
{
"SchoolName": "Hartside Primary School",
"Postcode": "DL159NN"
},
{
"SchoolName": "Peases West Primary School",
"Postcode": "DL159SZ"
},
{
"SchoolName": "Stanley (Crook) Primary School",
"Postcode": "DL159AN"
},
{
"SchoolName": "Sunnybrow Primary School",
"Postcode": "DL150LT"
},
{
"SchoolName": "Howden-le-Wear Primary School",
"Postcode": "DL158HJ"
},
{
"SchoolName": "Frosterley Primary School",
"Postcode": "DL132SN"
},
{
"SchoolName": "Rookhope Primary School",
"Postcode": "DL132DA"
},
{
"SchoolName": "St John's Chapel Primary School",
"Postcode": "DL131QH"
},
{
"SchoolName": "Wearhead Primary School",
"Postcode": "DL131BN"
},
{
"SchoolName": "Willington Primary School",
"Postcode": "DL150EQ"
},
{
"SchoolName": "Witton-le-Wear Primary School",
"Postcode": "DL140BG"
},
{
"SchoolName": "Wolsingham Primary School",
"Postcode": "DL133ET"
},
{
"SchoolName": "Oakley Cross Primary School and Nursery",
"Postcode": "DL149UD"
},
{
"SchoolName": "Byers Green Primary School",
"Postcode": "DL167PN"
},
{
"SchoolName": "Bluebell Meadow Primary School",
"Postcode": "TS296EY"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "DL167JB"
},
{
"SchoolName": "Cassop Primary School",
"Postcode": "DH64RA"
},
{
"SchoolName": "Ferryhill Station Primary School",
"Postcode": "DL170DB"
},
{
"SchoolName": "West Cornforth Primary School",
"Postcode": "DL179HP"
},
{
"SchoolName": "Coxhoe Primary School",
"Postcode": "DH64EJ"
},
{
"SchoolName": "Kelloe Primary School",
"Postcode": "DH64PG"
},
{
"SchoolName": "Dean Bank Primary and Nursery School",
"Postcode": "DL178PP"
},
{
"SchoolName": "Bowburn Junior School",
"Postcode": "DH65DZ"
},
{
"SchoolName": "Bowburn Infant School",
"Postcode": "DH65BE"
},
{
"SchoolName": "Ox Close Primary School",
"Postcode": "DL166RU"
},
{
"SchoolName": "Fishburn Primary School",
"Postcode": "TS214AU"
},
{
"SchoolName": "Broom Cottages Primary & Nursery School",
"Postcode": "DL178AN"
},
{
"SchoolName": "Etherley Lane Primary School",
"Postcode": "DL147RB"
},
{
"SchoolName": "Ramshaw Primary School",
"Postcode": "DL149SD"
},
{
"SchoolName": "Forest of Teesdale Primary School",
"Postcode": "DL120HA"
},
{
"SchoolName": "Aycliffe Village Primary School",
"Postcode": "DL56LG"
},
{
"SchoolName": "Butterknowle Primary School",
"Postcode": "DL135PB"
},
{
"SchoolName": "Escomb Primary School",
"Postcode": "DL147SR"
},
{
"SchoolName": "St Helen Auckland Community Primary School",
"Postcode": "DL149EN"
},
{
"SchoolName": "Thornhill Primary School",
"Postcode": "DL41ES"
},
{
"SchoolName": "Toft Hill Primary School",
"Postcode": "DL140JA"
},
{
"SchoolName": "Woodland Primary School",
"Postcode": "DL135RF"
},
{
"SchoolName": "Middleton-in-Teesdale Nursery and Primary School",
"Postcode": "DL120TG"
},
{
"SchoolName": "Cockton Hill Junior School",
"Postcode": "DL146HW"
},
{
"SchoolName": "Cockton Hill Infant School",
"Postcode": "DL146HW"
},
{
"SchoolName": "Timothy Hackworth Primary School",
"Postcode": "DL41HN"
},
{
"SchoolName": "Cockfield Primary School",
"Postcode": "DL135EN"
},
{
"SchoolName": "Montalbo Nursery & Primary School",
"Postcode": "DL128TN"
},
{
"SchoolName": "New Brancepeth Primary School",
"Postcode": "DH77EU"
},
{
"SchoolName": "Langley Moor Primary School",
"Postcode": "DH78LL"
},
{
"SchoolName": "Witton Gilbert Primary School",
"Postcode": "DH76TF"
},
{
"SchoolName": "Pittington Primary School",
"Postcode": "DH61AF"
},
{
"SchoolName": "Ludworth Primary School",
"Postcode": "DH61LZ"
},
{
"SchoolName": "Sherburn Primary School",
"Postcode": "DH61DU"
},
{
"SchoolName": "West Rainton Primary School",
"Postcode": "DH46RN"
},
{
"SchoolName": "Bearpark Primary School",
"Postcode": "DH77AU"
},
{
"SchoolName": "Neville's Cross Primary School",
"Postcode": "DH14JG"
},
{
"SchoolName": "Durham Newton Hall Infants' School",
"Postcode": "DH15LP"
},
{
"SchoolName": "Esh Winning Primary School",
"Postcode": "DH79BE"
},
{
"SchoolName": "Belmont Cheveley Park Primary School",
"Postcode": "DH12TX"
},
{
"SchoolName": "Laurel Avenue Community Primary School",
"Postcode": "DH12EY"
},
{
"SchoolName": "Hesleden Primary School",
"Postcode": "TS274PT"
},
{
"SchoolName": "Deaf Hill Primary School",
"Postcode": "TS296BP"
},
{
"SchoolName": "Thornley Primary School",
"Postcode": "DH63DZ"
},
{
"SchoolName": "Wheatley Hill Community Primary School",
"Postcode": "DH63RQ"
},
{
"SchoolName": "Wingate Junior School",
"Postcode": "TS285BA"
},
{
"SchoolName": "Wingate Infants' School",
"Postcode": "TS285AQ"
},
{
"SchoolName": "Cotsford Junior School",
"Postcode": "SR84EH"
},
{
"SchoolName": "Cotsford Infant School",
"Postcode": "SR84TB"
},
{
"SchoolName": "Shotton Primary School",
"Postcode": "DH62JP"
},
{
"SchoolName": "Acre Rigg Infant School",
"Postcode": "SR82DU"
},
{
"SchoolName": "Sedgefield Primary School",
"Postcode": "TS212BJ"
},
{
"SchoolName": "Sedgefield Hardwick Primary School",
"Postcode": "TS213DA"
},
{
"SchoolName": "Red Hall Primary School",
"Postcode": "DL12ST"
},
{
"SchoolName": "Copeland Road Primary School",
"Postcode": "DL149JJ"
},
{
"SchoolName": "St Andrew's Primary School",
"Postcode": "DL146RY"
},
{
"SchoolName": "Byerley Park Primary School",
"Postcode": "DL57LE"
},
{
"SchoolName": "Horndale Infants' School",
"Postcode": "DL57HB"
},
{
"SchoolName": "Langley Park Primary School",
"Postcode": "DH79XN"
},
{
"SchoolName": "Yohden Primary School",
"Postcode": "SR84HP"
},
{
"SchoolName": "Howletch Lane Primary School",
"Postcode": "SR82NQ"
},
{
"SchoolName": "Blackhall Colliery Primary School",
"Postcode": "TS274NA"
},
{
"SchoolName": "Vane Road Primary School",
"Postcode": "DL55RH"
},
{
"SchoolName": "Sugar Hill Primary School",
"Postcode": "DL55NU"
},
{
"SchoolName": "Roseberry Primary and Nursery School",
"Postcode": "DH21NP"
},
{
"SchoolName": "Bullion Lane Primary School",
"Postcode": "DH22DP"
},
{
"SchoolName": "Easington Colliery Primary School",
"Postcode": "SR83DJ"
},
{
"SchoolName": "Durham Gilesgate Primary School",
"Postcode": "DH11PH"
},
{
"SchoolName": "Chester-Le-Street CofE (Controlled) Primary School",
"Postcode": "DH22JT"
},
{
"SchoolName": "Ebchester CofE Primary School",
"Postcode": "DH80QB"
},
{
"SchoolName": "St Stephen's Church of England Primary School",
"Postcode": "DL150QH"
},
{
"SchoolName": "<NAME> CofE Primary School",
"Postcode": "DL132NU"
},
{
"SchoolName": "Green Lane Church of England Controlled Primary School",
"Postcode": "DL128LG"
},
{
"SchoolName": "St Anne's CofE Primary School",
"Postcode": "DL146LS"
},
{
"SchoolName": "Evenwood CofE Primary School",
"Postcode": "DL149QZ"
},
{
"SchoolName": "Gainford CofE Primary School",
"Postcode": "DL23DR"
},
{
"SchoolName": "Ingleton CofE Primary School",
"Postcode": "DL23JE"
},
{
"SchoolName": "Staindrop CofE (Controlled) Primary School",
"Postcode": "DL23NL"
},
{
"SchoolName": "Belmont CofE (Controlled) Primary School",
"Postcode": "DH12QP"
},
{
"SchoolName": "St Oswald's Church of England Aided Primary and Nursery School",
"Postcode": "DH13DQ"
},
{
"SchoolName": "Shincliffe CofE (Controlled) Primary School",
"Postcode": "DH12PN"
},
{
"SchoolName": "St Margaret's Church of England Primary School",
"Postcode": "DH14QB"
},
{
"SchoolName": "Easington CofE Primary School",
"Postcode": "SR83BP"
},
{
"SchoolName": "<NAME> CofE (Controlled) Primary School",
"Postcode": "TS274RY"
},
{
"SchoolName": "St Cuthbert's Roman Catholic Voluntary Aided Primary School, New Seaham",
"Postcode": "SR70HW"
},
{
"SchoolName": "St Mary Magdalen's Roman Catholic Voluntary Aided Primary School, Seaham",
"Postcode": "SR77BJ"
},
{
"SchoolName": "<NAME>'s CofE (Aided) School",
"Postcode": "DL129LG"
},
{
"SchoolName": "St Teresa's RC Primary School",
"Postcode": "DL14NL"
},
{
"SchoolName": "St Cuthbert's Roman Catholic Voluntary Aided Primary School",
"Postcode": "DH33PH"
},
{
"SchoolName": "St Bede's Roman Catholic Voluntary Aided Primary School, Sacriston",
"Postcode": "DH76AB"
},
{
"SchoolName": "St Benet's Roman Catholic Voluntary Aided Primary School",
"Postcode": "DH21QX"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Stanley",
"Postcode": "DH90NP"
},
{
"SchoolName": "St Patrick's Roman Catholic Voluntary Aided Primary School, Dipton",
"Postcode": "DH99BB"
},
{
"SchoolName": "St Mary's Roman Catholic Voluntary Aided Primary School, South Moor",
"Postcode": "DH96PH"
},
{
"SchoolName": "St Mary's Roman Catholic Voluntary Aided Primary School, Blackhill",
"Postcode": "DH88JD"
},
{
"SchoolName": "St Pius X Roman Catholic Voluntary Aided Primary School",
"Postcode": "DH88AX"
},
{
"SchoolName": "St Patrick's Roman Catholic Voluntary Aided Primary School, Consett",
"Postcode": "DH86LN"
},
{
"SchoolName": "Esh CofE (Aided) Primary School",
"Postcode": "DH79QR"
},
{
"SchoolName": "St Michael's Roman Catholic Voluntary Aided Primary School, Esh Laude",
"Postcode": "DH79QY"
},
{
"SchoolName": "Our Lady and St Joseph's Roman Catholic Voluntary Aided Primary School, Brooms",
"Postcode": "DH87SN"
},
{
"SchoolName": "Bishop Ian Ramsey CofE Primary School",
"Postcode": "DH86QN"
},
{
"SchoolName": "All Saints' Catholic Voluntary Aided Primary School",
"Postcode": "DH70JG"
},
{
"SchoolName": "St Cuthberts Roman Catholic Voluntary Aided Primary School",
"Postcode": "DL159DN"
},
{
"SchoolName": "Our Lady and St Thomas Roman Catholic Voluntary Aided Primary",
"Postcode": "DL150PB"
},
{
"SchoolName": "St Michael's C of E Primary School",
"Postcode": "DL179AL"
},
{
"SchoolName": "St William's Roman Catholic Voluntary Aided Primary School",
"Postcode": "TS296HY"
},
{
"SchoolName": "St Charles' Roman Catholic Voluntary Aided Primary School",
"Postcode": "DL166SL"
},
{
"SchoolName": "St Mary's Roman Catholic Voluntary Aided Primary School, Barnard Castle",
"Postcode": "DL128JR"
},
{
"SchoolName": "St Wilfrid's Roman Catholic Voluntary Aided Primary School",
"Postcode": "DL146QH"
},
{
"SchoolName": "St Chad's Roman Catholic Voluntary Aided Primary School",
"Postcode": "DL140EP"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Coundon",
"Postcode": "DL148NN"
},
{
"SchoolName": "St Mary's Roman Catholic Voluntary Aided Primary School, Newton Aycliffe",
"Postcode": "DL55NP"
},
{
"SchoolName": "St Francis Church of England Aided Junior School",
"Postcode": "DL57HB"
},
{
"SchoolName": "St Patrick's Roman Catholic Voluntary Aided Primary School, Langley Moor",
"Postcode": "DH78JJ"
},
{
"SchoolName": "Our Lady Queen of Martyrs Roman Catholic Voluntary Aided Primary School, Newhouse",
"Postcode": "DH79PA"
},
{
"SchoolName": "St Hild's College Church of England Aided Primary School, Durham",
"Postcode": "DH12HZ"
},
{
"SchoolName": "St Godric's Roman Catholic Voluntary Aided Primary School, Durham",
"Postcode": "DH15LZ"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Ushaw Moor",
"Postcode": "DH77LF"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Durham",
"Postcode": "DH12JQ"
},
{
"SchoolName": "Blue Coat CofE (Aided) Junior School",
"Postcode": "DH15LP"
},
{
"SchoolName": "St Thomas More Roman Catholic Voluntary Aided Primary",
"Postcode": "DH12AQ"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Murton",
"Postcode": "SR79RD"
},
{
"SchoolName": "St Godric's Roman Catholic Voluntary Aided Primary School, Thornley",
"Postcode": "DH63NR"
},
{
"SchoolName": "Our Lady of Lourdes Roman Catholic Voluntary Aided Primary",
"Postcode": "DH62JQ"
},
{
"SchoolName": "St Mary's Roman Catholic Voluntary Aided Primary School, Wingate",
"Postcode": "TS285AN"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Blackhall",
"Postcode": "TS274HE"
},
{
"SchoolName": "Our Lady Star of the Sea Roman Catholic Voluntary Aided Primary",
"Postcode": "SR84AB"
},
{
"SchoolName": "Our Lady of the Rosary Roman Catholic Voluntary Aided Primary",
"Postcode": "SR81DE"
},
{
"SchoolName": "<NAME> Roman Catholic Voluntary Aided Primary",
"Postcode": "DL134AU"
},
{
"SchoolName": "St John's Church of England Aided Primary School, Shildon",
"Postcode": "DL42EQ"
},
{
"SchoolName": "Seaham High School",
"Postcode": "SR70BH"
},
{
"SchoolName": "Tanfield School, Specialist College of Science and Engineering",
"Postcode": "DH98AY"
},
{
"SchoolName": "Wolsingham School",
"Postcode": "DL133DJ"
},
{
"SchoolName": "Ferryhill Business Enterprise College",
"Postcode": "DL178RW"
},
{
"SchoolName": "Whitworth Park School and Sixth Form College",
"Postcode": "DL167LN"
},
{
"SchoolName": "Bishop Barrington School A Sports with Mathematics College",
"Postcode": "DL146LA"
},
{
"SchoolName": "Greenfield Community College, A Specialist Arts and Science School",
"Postcode": "DL57LF"
},
{
"SchoolName": "Belmont Community School",
"Postcode": "DH12QP"
},
{
"SchoolName": "Durham Sixth Form Centre",
"Postcode": "DH11SG"
},
{
"SchoolName": "Durham Johnston Comprehensive School",
"Postcode": "DH14SU"
},
{
"SchoolName": "Dene Community School",
"Postcode": "SR85RL"
},
{
"SchoolName": "Wellfield School",
"Postcode": "TS285AX"
},
{
"SchoolName": "Sedgefield Community College",
"Postcode": "TS213DD"
},
{
"SchoolName": "St Bede's Catholic Comprehensive School and Byron College",
"Postcode": "SR81DE"
},
{
"SchoolName": "Durham High School for Girls",
"Postcode": "DH13TB"
},
{
"SchoolName": "Durham School",
"Postcode": "DH14SZ"
},
{
"SchoolName": "The Chorister School",
"Postcode": "DH13EL"
},
{
"SchoolName": "Barnard Castle School",
"Postcode": "DL128UN"
},
{
"SchoolName": "Elemore Hall School",
"Postcode": "DH61QD"
},
{
"SchoolName": "Croft Community School",
"Postcode": "DH98PR"
},
{
"SchoolName": "Walworth School",
"Postcode": "DL57LP"
},
{
"SchoolName": "Villa Real School",
"Postcode": "DH86BH"
},
{
"SchoolName": "Windlestone School",
"Postcode": "DL170HP"
},
{
"SchoolName": "Durham Trinity School & Sports College",
"Postcode": "DH15TS"
},
{
"SchoolName": "Tarnerland Nursery School",
"Postcode": "BN20GR"
},
{
"SchoolName": "Royal Spa Nursery School",
"Postcode": "BN20BT"
},
{
"SchoolName": "Coombe Road Primary School",
"Postcode": "BN24BP"
},
{
"SchoolName": "Downs Junior School",
"Postcode": "BN16ED"
},
{
"SchoolName": "Downs Infant School",
"Postcode": "BN16JA"
},
{
"SchoolName": "Hertford Infant and Nursery School",
"Postcode": "BN17GF"
},
{
"SchoolName": "Middle Street Primary School",
"Postcode": "BN11AL"
},
{
"SchoolName": "Patcham Junior School",
"Postcode": "BN18TA"
},
{
"SchoolName": "Patcham Infant School",
"Postcode": "BN18WW"
},
{
"SchoolName": "St Luke's Primary School",
"Postcode": "BN29ZF"
},
{
"SchoolName": "Stanford Junior School",
"Postcode": "BN15PR"
},
{
"SchoolName": "Stanford Infant School",
"Postcode": "BN15PS"
},
{
"SchoolName": "Westdene Primary School",
"Postcode": "BN15GN"
},
{
"SchoolName": "Carlton Hill Primary School",
"Postcode": "BN29HS"
},
{
"SchoolName": "Balfour Primary School",
"Postcode": "BN16NE"
},
{
"SchoolName": "Hertford Junior School",
"Postcode": "BN17FP"
},
{
"SchoolName": "Coldean Primary School",
"Postcode": "BN19EN"
},
{
"SchoolName": "Alfriston School",
"Postcode": "BN265XB"
},
{
"SchoolName": "Brede Primary School",
"Postcode": "TN316DG"
},
{
"SchoolName": "Broad Oak Community Primary School",
"Postcode": "TN218UD"
},
{
"SchoolName": "Chiddingly Primary School",
"Postcode": "BN86HN"
},
{
"SchoolName": "Ashdown Primary School",
"Postcode": "TN62HW"
},
{
"SchoolName": "Grovelands Community Primary School",
"Postcode": "BN273UW"
},
{
"SchoolName": "Hamsey Community Primary School",
"Postcode": "BN84SJ"
},
{
"SchoolName": "Hankham Primary School",
"Postcode": "BN245AY"
},
{
"SchoolName": "Hellingly Community Primary School",
"Postcode": "BN274DS"
},
{
"SchoolName": "Goldstone Primary School",
"Postcode": "BN37JW"
},
{
"SchoolName": "Hangleton Primary School",
"Postcode": "BN38LF"
},
{
"SchoolName": "Hove Junior School",
"Postcode": "BN35JA"
},
{
"SchoolName": "Laughton Community Primary School",
"Postcode": "BN86AH"
},
{
"SchoolName": "Wallands Community Primary School",
"Postcode": "BN71PU"
},
{
"SchoolName": "Western Road Community Primary School",
"Postcode": "BN71JB"
},
{
"SchoolName": "Maynards Green Community Primary School",
"Postcode": "TN210DD"
},
{
"SchoolName": "Park Mead Primary School",
"Postcode": "BN273QP"
},
{
"SchoolName": "Plumpton Primary School",
"Postcode": "BN73EB"
},
{
"SchoolName": "St Peter's Community Primary School",
"Postcode": "BN411LS"
},
{
"SchoolName": "Benfield Primary School",
"Postcode": "BN411XS"
},
{
"SchoolName": "Brackenbury Primary School",
"Postcode": "BN412LA"
},
{
"SchoolName": "Punnetts Town Community Primary School",
"Postcode": "TN219DE"
},
{
"SchoolName": "Ringmer Primary and Nursery School",
"Postcode": "BN85LL"
},
{
"SchoolName": "Rotherfield Primary School",
"Postcode": "TN63NA"
},
{
"SchoolName": "Seaford Primary School",
"Postcode": "BN252JF"
},
{
"SchoolName": "Telscombe Cliffs Community Primary School",
"Postcode": "BN107DE"
},
{
"SchoolName": "Westfield School",
"Postcode": "TN354QE"
},
{
"SchoolName": "Willingdon Primary School",
"Postcode": "BN209RJ"
},
{
"SchoolName": "St Michael's Primary School",
"Postcode": "TN74BP"
},
{
"SchoolName": "Wivelsfield Primary School",
"Postcode": "RH177QN"
},
{
"SchoolName": "West Blatchington Primary and Nursery School",
"Postcode": "BN38BN"
},
{
"SchoolName": "Chyngton School",
"Postcode": "BN253ST"
},
{
"SchoolName": "Chantry Community Primary School",
"Postcode": "TN402AT"
},
{
"SchoolName": "West Hove Infant School",
"Postcode": "BN35JA"
},
{
"SchoolName": "Little Common School",
"Postcode": "TN394SQ"
},
{
"SchoolName": "Mile Oak Primary School",
"Postcode": "BN412WN"
},
{
"SchoolName": "Denton Community Primary School and Nursery",
"Postcode": "BN90QJ"
},
{
"SchoolName": "Cradle Hill Community Primary School",
"Postcode": "BN253BA"
},
{
"SchoolName": "Polegate Primary School",
"Postcode": "BN266PT"
},
{
"SchoolName": "Manor Primary School",
"Postcode": "TN221UB"
},
{
"SchoolName": "Harbour Primary and Nursery School",
"Postcode": "BN99LX"
},
{
"SchoolName": "Peter Gladwin Primary School",
"Postcode": "BN412PA"
},
{
"SchoolName": "Brunswick Primary School",
"Postcode": "BN31RP"
},
{
"SchoolName": "Sandown Primary School",
"Postcode": "TN342AA"
},
{
"SchoolName": "Langney Primary School",
"Postcode": "BN237EA"
},
{
"SchoolName": "Tollgate Community Junior School",
"Postcode": "BN236NL"
},
{
"SchoolName": "Roselands Infants' School",
"Postcode": "BN228PD"
},
{
"SchoolName": "Motcombe Infants' School",
"Postcode": "BN211SN"
},
{
"SchoolName": "Pashley Down Infant School",
"Postcode": "BN208NX"
},
{
"SchoolName": "Ocklynge Junior School",
"Postcode": "BN208XN"
},
{
"SchoolName": "Parkland Junior School",
"Postcode": "BN229QJ"
},
{
"SchoolName": "Parkland Infant School",
"Postcode": "BN229QJ"
},
{
"SchoolName": "West Rise Community Infant School",
"Postcode": "BN237SL"
},
{
"SchoolName": "West Rise Junior School",
"Postcode": "BN237SL"
},
{
"SchoolName": "Stafford Junior School",
"Postcode": "BN228UA"
},
{
"SchoolName": "Rocks Park Primary School",
"Postcode": "TN222AY"
},
{
"SchoolName": "Bourne Primary School",
"Postcode": "BN228BD"
},
{
"SchoolName": "Meridian Community Primary School and Nursery",
"Postcode": "BN108BZ"
},
{
"SchoolName": "Shinewater Primary School",
"Postcode": "BN238ED"
},
{
"SchoolName": "Elm Grove Primary School",
"Postcode": "BN23ES"
},
{
"SchoolName": "Queen's Park Primary School",
"Postcode": "BN20BN"
},
{
"SchoolName": "Saltdean Primary School",
"Postcode": "BN28HB"
},
{
"SchoolName": "Woodingdean Primary School",
"Postcode": "BN26BB"
},
{
"SchoolName": "Parkside Community Primary School",
"Postcode": "TN218QQ"
},
{
"SchoolName": "Stone Cross School",
"Postcode": "BN245EF"
},
{
"SchoolName": "Bevendean Primary School",
"Postcode": "BN24JP"
},
{
"SchoolName": "Rudyard Kipling Primary School & Nursery",
"Postcode": "BN26RH"
},
{
"SchoolName": "Fairlight Primary School",
"Postcode": "BN23AJ"
},
{
"SchoolName": "Barcombe Church of England Primary School",
"Postcode": "BN85DN"
},
{
"SchoolName": "Battle and Langton Church of England Primary School",
"Postcode": "TN330HQ"
},
{
"SchoolName": "Beckley Church of England Primary School",
"Postcode": "TN316RN"
},
{
"SchoolName": "All Saints Church of England Primary School, Bexhill",
"Postcode": "TN395HA"
},
{
"SchoolName": "Burwash CofE School",
"Postcode": "TN197DZ"
},
{
"SchoolName": "Buxted CofE Primary School",
"Postcode": "TN224BB"
},
{
"SchoolName": "Catsfield Church of England Primary School",
"Postcode": "TN339DP"
},
{
"SchoolName": "Chailey St Peter's Church of England Primary School",
"Postcode": "BN84DB"
},
{
"SchoolName": "Cross-in-Hand Church of England Primary School",
"Postcode": "TN210XG"
},
{
"SchoolName": "Crowhurst CofE Primary School",
"Postcode": "TN339AJ"
},
{
"SchoolName": "Dallington Church of England Primary School",
"Postcode": "TN219NH"
},
{
"SchoolName": "Danehill Church of England Primary School",
"Postcode": "RH177JB"
},
{
"SchoolName": "Ditchling (St Margaret's) Church of England Primary School",
"Postcode": "BN68TU"
},
{
"SchoolName": "East Hoathly CofE Primary School",
"Postcode": "BN86EQ"
},
{
"SchoolName": "Etchingham Church of England Primary School",
"Postcode": "TN197BY"
},
{
"SchoolName": "Fletching Church of England Primary School",
"Postcode": "TN223SP"
},
{
"SchoolName": "Forest Row Church of England Primary School",
"Postcode": "RH185EB"
},
{
"SchoolName": "Frant Church of England Primary School",
"Postcode": "TN39DX"
},
{
"SchoolName": "Herstmonceux Church of England Primary School",
"Postcode": "BN274LG"
},
{
"SchoolName": "High Hurstwood Church of England Primary School",
"Postcode": "TN224AD"
},
{
"SchoolName": "Hurst Green Church of England Primary School and Nursery",
"Postcode": "TN197PN"
},
{
"SchoolName": "South Malling CofE Primary and Nursery School",
"Postcode": "BN72HS"
},
{
"SchoolName": "Southover CofE Primary School",
"Postcode": "BN71JP"
},
{
"SchoolName": "Bonners CofE School",
"Postcode": "TN222EG"
},
{
"SchoolName": "Mayfield Church of England Primary School",
"Postcode": "TN206TA"
},
{
"SchoolName": "Netherfield CofE Primary School",
"Postcode": "TN339QF"
},
{
"SchoolName": "Ninfield Church of England Primary School",
"Postcode": "TN339JW"
},
{
"SchoolName": "Northiam Church of England Primary School",
"Postcode": "TN316NB"
},
{
"SchoolName": "Nutley Church of England Primary School",
"Postcode": "TN223NW"
},
{
"SchoolName": "Peasmarsh Church of England Primary School",
"Postcode": "TN316UW"
},
{
"SchoolName": "Pevensey and Westham CofE Primary School",
"Postcode": "BN245LP"
},
{
"SchoolName": "St Michael's Church of England Primary School",
"Postcode": "TN317PJ"
},
{
"SchoolName": "Salehurst Church of England Primary School",
"Postcode": "TN325BU"
},
{
"SchoolName": "Sedlescombe CofE Primary School",
"Postcode": "TN330RQ"
},
{
"SchoolName": "Stonegate Church of England Primary School",
"Postcode": "TN57EN"
},
{
"SchoolName": "Ticehurst and Flimwell Church of England Primary School",
"Postcode": "TN57DH"
},
{
"SchoolName": "Firle Church of England Primary School",
"Postcode": "BN86LF"
},
{
"SchoolName": "Five Ashes CofE Primary School",
"Postcode": "TN206HY"
},
{
"SchoolName": "Icklesham Church of England Primary School",
"Postcode": "TN364BX"
},
{
"SchoolName": "Newick Church of England Primary School",
"Postcode": "BN84NB"
},
{
"SchoolName": "Bodiam Church of England Primary School",
"Postcode": "TN325UH"
},
{
"SchoolName": "Iford and Kingston Church of England Primary School",
"Postcode": "BN73NR"
},
{
"SchoolName": "Staplecross Methodist Primary School",
"Postcode": "TN325QD"
},
{
"SchoolName": "Wadhurst CofE Primary School",
"Postcode": "TN56SR"
},
{
"SchoolName": "St Andrew's Church of England Infants School",
"Postcode": "BN227PP"
},
{
"SchoolName": "St Margaret's CofE Primary School, Rottingdean",
"Postcode": "BN27HB"
},
{
"SchoolName": "St Bartholomew's CofE Primary School",
"Postcode": "BN14GP"
},
{
"SchoolName": "St Martin's CofE Primary School",
"Postcode": "BN23LJ"
},
{
"SchoolName": "St John the Baptist Catholic Primary School",
"Postcode": "BN20AH"
},
{
"SchoolName": "St Mary Magdalen Catholic Primary School",
"Postcode": "BN13EF"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "BN17BF"
},
{
"SchoolName": "St Paul's CofE Primary School and Nursery",
"Postcode": "BN13LP"
},
{
"SchoolName": "Our Lady of Lourdes RC School",
"Postcode": "BN27HA"
},
{
"SchoolName": "St Mark's CofE Primary School",
"Postcode": "BN25EA"
},
{
"SchoolName": "St Bernadette's Catholic Primary School",
"Postcode": "BN16UT"
},
{
"SchoolName": "Blackboys Church of England Primary School",
"Postcode": "TN225LL"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "TN61SD"
},
{
"SchoolName": "Framfield Church of England Primary School",
"Postcode": "TN225NR"
},
{
"SchoolName": "Guestling Bradshaw Church of England Primary School",
"Postcode": "TN354LS"
},
{
"SchoolName": "St Mark's Church of England Primary School",
"Postcode": "TN224HY"
},
{
"SchoolName": "St Mary the Virgin Church of England Primary School",
"Postcode": "TN74AA"
},
{
"SchoolName": "All Saints' and St Richard's Church of England Primary School",
"Postcode": "TN219AE"
},
{
"SchoolName": "Aldrington CofE Primary School",
"Postcode": "BN37QD"
},
{
"SchoolName": "St Andrew's CofE (Aided) Primary School",
"Postcode": "BN33YT"
},
{
"SchoolName": "Little Horsted Church of England Primary School",
"Postcode": "TN225TS"
},
{
"SchoolName": "Mark Cross Church of England Aided Primary School",
"Postcode": "TN63PJ"
},
{
"SchoolName": "Groombridge St Thomas' Church of England Primary School",
"Postcode": "TN39SF"
},
{
"SchoolName": "St Nicolas' CofE Primary School",
"Postcode": "BN412LA"
},
{
"SchoolName": "Rodmell Church of England Primary School",
"Postcode": "BN73HF"
},
{
"SchoolName": "Holy Cross Church of England Primary School",
"Postcode": "TN221BP"
},
{
"SchoolName": "St Thomas' Church of England Aided Primary School",
"Postcode": "TN364ED"
},
{
"SchoolName": "St Peter and St Paul CofE Primary School",
"Postcode": "TN401QE"
},
{
"SchoolName": "St Mary Magdalene Catholic Primary School",
"Postcode": "TN402ND"
},
{
"SchoolName": "St Marys Catholic Primary School",
"Postcode": "TN62LB"
},
{
"SchoolName": "Cottesmore St Mary's Catholic Primary School",
"Postcode": "BN36NB"
},
{
"SchoolName": "St Pancras Catholic Primary School",
"Postcode": "BN71SR"
},
{
"SchoolName": "St Philip's Catholic Primary School",
"Postcode": "TN225DJ"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "BN411LB"
},
{
"SchoolName": "Annecy Catholic Primary School",
"Postcode": "BN254LF"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "TN376JJ"
},
{
"SchoolName": "St Mary Star of the Sea Catholic Primary School",
"Postcode": "TN376EU"
},
{
"SchoolName": "Sacred Heart Catholic Primary School, Hastings",
"Postcode": "TN355NA"
},
{
"SchoolName": "St John's Meads Church of England Primary School",
"Postcode": "BN207XS"
},
{
"SchoolName": "St Thomas A Becket Catholic Infant School",
"Postcode": "BN228XT"
},
{
"SchoolName": "St Thomas A Becket Catholic Junior School",
"Postcode": "BN228XT"
},
{
"SchoolName": "Varndean School",
"Postcode": "BN16NP"
},
{
"SchoolName": "Dorothy Stringer School",
"Postcode": "BN16PZ"
},
{
"SchoolName": "Longhill High School",
"Postcode": "BN27FR"
},
{
"SchoolName": "Claverham Community College",
"Postcode": "TN330HT"
},
{
"SchoolName": "Heathfield Community College",
"Postcode": "TN218RJ"
},
{
"SchoolName": "Robertsbridge Community College",
"Postcode": "TN325EA"
},
{
"SchoolName": "Uckfield Community Technology College",
"Postcode": "TN223DJ"
},
{
"SchoolName": "Uplands Community College",
"Postcode": "TN56AZ"
},
{
"SchoolName": "Willingdon Community School",
"Postcode": "BN209QX"
},
{
"SchoolName": "Chailey School",
"Postcode": "BN84PU"
},
{
"SchoolName": "Priory School",
"Postcode": "BN72XN"
},
{
"SchoolName": "Blatchington Mill School and Sixth Form College",
"Postcode": "BN37BW"
},
{
"SchoolName": "Hove Park School and Sixth Form Centre",
"Postcode": "BN37BN"
},
{
"SchoolName": "Patcham High School",
"Postcode": "BN18PB"
},
{
"SchoolName": "Cardinal Newman Catholic School",
"Postcode": "BN36ND"
},
{
"SchoolName": "St Richard's Catholic College",
"Postcode": "TN401SE"
},
{
"SchoolName": "Brighton College",
"Postcode": "BN20AL"
},
{
"SchoolName": "Roedean School",
"Postcode": "BN25RQ"
},
{
"SchoolName": "Windlesham School Trust Limited",
"Postcode": "BN15AA"
},
{
"SchoolName": "Hamilton Lodge School and College for Deaf Children",
"Postcode": "BN20LS"
},
{
"SchoolName": "Brighton College Prep School",
"Postcode": "BN20EU"
},
{
"SchoolName": "Battle Abbey School",
"Postcode": "TN330AD"
},
{
"SchoolName": "Cumnor House School",
"Postcode": "RH177HT"
},
{
"SchoolName": "Ashdown House School",
"Postcode": "RH185JY"
},
{
"SchoolName": "Michael Hall School",
"Postcode": "RH185JA"
},
{
"SchoolName": "Lancing College Preparatory School At Hove",
"Postcode": "BN36LU"
},
{
"SchoolName": "Mayfield School",
"Postcode": "TN206PH"
},
{
"SchoolName": "Vinehall School",
"Postcode": "TN325JL"
},
{
"SchoolName": "Skippers Hill Manor School",
"Postcode": "TN206HR"
},
{
"SchoolName": "Lewes Old Grammar School",
"Postcode": "BN71XS"
},
{
"SchoolName": "Frewen College",
"Postcode": "TN316NL"
},
{
"SchoolName": "Sacred Heart School",
"Postcode": "TN56DQ"
},
{
"SchoolName": "St Christopher's School",
"Postcode": "BN34AD"
},
{
"SchoolName": "Claremont School",
"Postcode": "TN377PW"
},
{
"SchoolName": "Deepdene School",
"Postcode": "BN34ED"
},
{
"SchoolName": "Bricklehurst Manor School",
"Postcode": "TN57EL"
},
{
"SchoolName": "Northease Manor School",
"Postcode": "BN73EY"
},
{
"SchoolName": "Darvell School",
"Postcode": "TN325DR"
},
{
"SchoolName": "Eastbourne College",
"Postcode": "BN214JY"
},
{
"SchoolName": "Moira House Girls' School",
"Postcode": "BN207TE"
},
{
"SchoolName": "St Andrew's Prep",
"Postcode": "BN207RP"
},
{
"SchoolName": "Bede's Prep School",
"Postcode": "BN207XL"
},
{
"SchoolName": "Brighton College Nursery and Pre-Prep School",
"Postcode": "BN25JJ"
},
{
"SchoolName": "Buckswood School",
"Postcode": "TN354LT"
},
{
"SchoolName": "Bede's Senior School",
"Postcode": "BN273QH"
},
{
"SchoolName": "Brighton and Hove High School",
"Postcode": "BN13AT"
},
{
"SchoolName": "Greenfields School",
"Postcode": "RH185JD"
},
{
"SchoolName": "Owlswick School",
"Postcode": "BN73NF"
},
{
"SchoolName": "Brighton Steiner School",
"Postcode": "BN25RA"
},
{
"SchoolName": "Bellerbys College Brighton",
"Postcode": "BN14LF"
},
{
"SchoolName": "The Dharma Primary School",
"Postcode": "BN18TB"
},
{
"SchoolName": "St John's School (Brighton)",
"Postcode": "BN252HU"
},
{
"SchoolName": "Homewood College",
"Postcode": "BN17LA"
},
{
"SchoolName": "Patcham House Special School",
"Postcode": "BN18XR"
},
{
"SchoolName": "Downs View Special School",
"Postcode": "BN26BB"
},
{
"SchoolName": "Chailey Heritage School",
"Postcode": "BN84EF"
},
{
"SchoolName": "Downs Park School",
"Postcode": "BN412FU"
},
{
"SchoolName": "Hillside School",
"Postcode": "BN412FU"
},
{
"SchoolName": "Grove Park School",
"Postcode": "TN61BN"
},
{
"SchoolName": "Hazel Court School",
"Postcode": "BN238EJ"
},
{
"SchoolName": "Tanglewood Nursery School",
"Postcode": "CM12DX"
},
{
"SchoolName": "Woodcroft Nursery School",
"Postcode": "CM29UB"
},
{
"SchoolName": "St George's New Town Junior School",
"Postcode": "CO27RU"
},
{
"SchoolName": "St George's Infant School and Nursery",
"Postcode": "CO27RW"
},
{
"SchoolName": "Hamilton Primary School",
"Postcode": "CO33GB"
},
{
"SchoolName": "Lexden Primary School with Unit for Hearing Impaired Pupils",
"Postcode": "CO39AS"
},
{
"SchoolName": "Myland Community Primary School",
"Postcode": "CO45LD"
},
{
"SchoolName": "North Primary School and Nursery",
"Postcode": "CO11RP"
},
{
"SchoolName": "Old Heath Community Primary School",
"Postcode": "CO28DD"
},
{
"SchoolName": "St John's Green Primary School",
"Postcode": "CO27HE"
},
{
"SchoolName": "King's Ford Infant School and Nursery",
"Postcode": "CO29AZ"
},
{
"SchoolName": "Chalkwell Hall Junior School",
"Postcode": "SS93NL"
},
{
"SchoolName": "Chalkwell Hall Infant School",
"Postcode": "SS93NL"
},
{
"SchoolName": "Earls Hall Primary School",
"Postcode": "SS00QN"
},
{
"SchoolName": "Oakwood Infant and Nursery School",
"Postcode": "CO152AH"
},
{
"SchoolName": "Frinton-on-Sea Primary School",
"Postcode": "CO139LQ"
},
{
"SchoolName": "De Vere Primary School",
"Postcode": "CO93EA"
},
{
"SchoolName": "Gosfield Community Primary School",
"Postcode": "CO91ST"
},
{
"SchoolName": "Stanley Drapkin Primary School, Steeple Bumpstead",
"Postcode": "CB97ED"
},
{
"SchoolName": "Langenhoe Community Primary School and Pre-School",
"Postcode": "CO57PG"
},
{
"SchoolName": "Langham Primary School",
"Postcode": "CO45PB"
},
{
"SchoolName": "Stanway Primary School",
"Postcode": "CO30RH"
},
{
"SchoolName": "Tiptree Heath Primary School",
"Postcode": "CO50PG"
},
{
"SchoolName": "Alresford Primary School",
"Postcode": "CO78AU"
},
{
"SchoolName": "Bradfield Primary School",
"Postcode": "CO112UZ"
},
{
"SchoolName": "Great Bentley Primary School",
"Postcode": "CO78LD"
},
{
"SchoolName": "Tendring Primary School",
"Postcode": "CO160BP"
},
{
"SchoolName": "Wix and Wrabness Primary School",
"Postcode": "CO112RS"
},
{
"SchoolName": "Gosbecks Primary School",
"Postcode": "CO29DG"
},
{
"SchoolName": "Prettygate Junior School",
"Postcode": "CO34PH"
},
{
"SchoolName": "Prettygate Infant School",
"Postcode": "CO34PH"
},
{
"SchoolName": "Hazelmere Junior School",
"Postcode": "CO43JP"
},
{
"SchoolName": "Hazelmere Infant School and Nursery",
"Postcode": "CO43JP"
},
{
"SchoolName": "The Mayflower Primary School",
"Postcode": "CO124AJ"
},
{
"SchoolName": "Montgomery Junior School, Colchester",
"Postcode": "CO29QG"
},
{
"SchoolName": "Montgomery Infant School and Nursery, Colchester",
"Postcode": "CO29QG"
},
{
"SchoolName": "Home Farm Primary School",
"Postcode": "CO34JL"
},
{
"SchoolName": "Brightlingsea Infant School and Nursery",
"Postcode": "CO70HU"
},
{
"SchoolName": "Broomgrove Infant School",
"Postcode": "CO79QB"
},
{
"SchoolName": "Brightlingsea Junior School",
"Postcode": "CO70HU"
},
{
"SchoolName": "Broomgrove Junior School",
"Postcode": "CO79QB"
},
{
"SchoolName": "Milldene Primary School",
"Postcode": "CO50EF"
},
{
"SchoolName": "Friars Grove Primary School",
"Postcode": "CO40PZ"
},
{
"SchoolName": "Stanway Fiveways Primary School",
"Postcode": "CO30QG"
},
{
"SchoolName": "Baynards Primary School",
"Postcode": "CO50ND"
},
{
"SchoolName": "Highfields Primary School",
"Postcode": "CO112BN"
},
{
"SchoolName": "Leigh North Street Primary School",
"Postcode": "SS91QE"
},
{
"SchoolName": "West Leigh Infant School",
"Postcode": "SS92JB"
},
{
"SchoolName": "Bournes Green Junior School",
"Postcode": "SS13PX"
},
{
"SchoolName": "Barons Court Primary School and Nursery",
"Postcode": "SS07PJ"
},
{
"SchoolName": "Heycroft Primary School",
"Postcode": "SS95SJ"
},
{
"SchoolName": "Temple Sutton Primary School",
"Postcode": "SS24BA"
},
{
"SchoolName": "Beckers Green Primary School",
"Postcode": "CM73PR"
},
{
"SchoolName": "Quilters Junior School",
"Postcode": "CM129LD"
},
{
"SchoolName": "Laindon Park Primary School",
"Postcode": "SS155SE"
},
{
"SchoolName": "Trinity Road Primary School",
"Postcode": "CM26HS"
},
{
"SchoolName": "Bocking Church Street Primary School",
"Postcode": "CM75LA"
},
{
"SchoolName": "Crays Hill Primary School",
"Postcode": "CM112UZ"
},
{
"SchoolName": "Vange Primary School and Nursery",
"Postcode": "SS164QA"
},
{
"SchoolName": "Wickford Junior School",
"Postcode": "SS120AG"
},
{
"SchoolName": "The Wickford Infant School",
"Postcode": "SS120AQ"
},
{
"SchoolName": "St Michael's Primary School and Nursery, Colchester",
"Postcode": "CO29RA"
},
{
"SchoolName": "<NAME>yan Primary School and Nursery",
"Postcode": "CM75UL"
},
{
"SchoolName": "Burnham-on-Crouch Primary School",
"Postcode": "CM08LG"
},
{
"SchoolName": "Canvey Junior School",
"Postcode": "SS80JG"
},
{
"SchoolName": "Roach Vale Primary School",
"Postcode": "CO43YN"
},
{
"SchoolName": "Chigwell Row Infant School",
"Postcode": "IG76EZ"
},
{
"SchoolName": "Chipping Hill Primary School",
"Postcode": "CM81FR"
},
{
"SchoolName": "Silver End Primary School",
"Postcode": "CM83RZ"
},
{
"SchoolName": "Cressing Primary School",
"Postcode": "CM778JE"
},
{
"SchoolName": "Spring Meadow Primary School & School House Nursery",
"Postcode": "CO124LB"
},
{
"SchoolName": "Great Bardfield Primary School",
"Postcode": "CM74RN"
},
{
"SchoolName": "Aveley Primary School",
"Postcode": "RM154AA"
},
{
"SchoolName": "Little Thurrock Primary School",
"Postcode": "RM175SW"
},
{
"SchoolName": "Fairways Primary School",
"Postcode": "SS94QW"
},
{
"SchoolName": "Harwich Community Primary School and Nursery",
"Postcode": "CO123NP"
},
{
"SchoolName": "Somers Heath Primary School",
"Postcode": "RM155LX"
},
{
"SchoolName": "Great Leighs Primary School",
"Postcode": "CM31RP"
},
{
"SchoolName": "Rettendon Primary School",
"Postcode": "CM38DW"
},
{
"SchoolName": "The Alderton Junior School",
"Postcode": "IG103HE"
},
{
"SchoolName": "Greensted Infant School and Nursery",
"Postcode": "SS141RX"
},
{
"SchoolName": "The Alderton Infant School",
"Postcode": "IG103HE"
},
{
"SchoolName": "Highwood Primary School",
"Postcode": "CM13QH"
},
{
"SchoolName": "White Bridge Primary School",
"Postcode": "IG103DR"
},
{
"SchoolName": "Felsted Primary School",
"Postcode": "CM63EB"
},
{
"SchoolName": "Holt Farm Infant School",
"Postcode": "SS41RS"
},
{
"SchoolName": "Oaklands Infant School",
"Postcode": "CM29PH"
},
{
"SchoolName": "Quilters Infant School",
"Postcode": "CM129LD"
},
{
"SchoolName": "Hilltop Infant School",
"Postcode": "SS118LT"
},
{
"SchoolName": "Galleywood Infant School",
"Postcode": "CM28RR"
},
{
"SchoolName": "Stebbing Primary School",
"Postcode": "CM63SH"
},
{
"SchoolName": "Glebe Primary School",
"Postcode": "SS69HG"
},
{
"SchoolName": "Mildmay Infant and Nursery School",
"Postcode": "CM28AU"
},
{
"SchoolName": "Baddow Hall Infant School",
"Postcode": "CM27QZ"
},
{
"SchoolName": "Fairhouse Community Primary School",
"Postcode": "SS141QP"
},
{
"SchoolName": "Long Ridings Primary School",
"Postcode": "CM131DU"
},
{
"SchoolName": "Cold Norton Primary School",
"Postcode": "CM36JE"
},
{
"SchoolName": "Ingatestone Infant School",
"Postcode": "CM40DF"
},
{
"SchoolName": "Sunnymede Junior School",
"Postcode": "CM112HL"
},
{
"SchoolName": "Millhouse Primary School",
"Postcode": "SS155QF"
},
{
"SchoolName": "Baddow Hall Junior School",
"Postcode": "CM27QZ"
},
{
"SchoolName": "Ghyllgrove Community Junior School",
"Postcode": "SS142BG"
},
{
"SchoolName": "Writtle Infant School",
"Postcode": "CM13HZ"
},
{
"SchoolName": "Ghyllgrove Community Infant School",
"Postcode": "SS142BY"
},
{
"SchoolName": "West Horndon Primary School",
"Postcode": "CM133TR"
},
{
"SchoolName": "Milwards Primary School and Nursery",
"Postcode": "CM194QX"
},
{
"SchoolName": "Perryfields Infant School",
"Postcode": "CM17PP"
},
{
"SchoolName": "Tollesbury School",
"Postcode": "CM98QE"
},
{
"SchoolName": "Blackmore Primary School",
"Postcode": "CM40QR"
},
{
"SchoolName": "Limes Farm Junior School",
"Postcode": "IG75LP"
},
{
"SchoolName": "Wentworth Primary School",
"Postcode": "CM96JN"
},
{
"SchoolName": "Hereward Primary School",
"Postcode": "IG102HR"
},
{
"SchoolName": "Down Hall Primary School",
"Postcode": "SS69LW"
},
{
"SchoolName": "Boreham Primary School",
"Postcode": "CM33DB"
},
{
"SchoolName": "High Ongar Primary School",
"Postcode": "CM59NB"
},
{
"SchoolName": "Tany's Dell Community Primary School",
"Postcode": "CM202LS"
},
{
"SchoolName": "John Ray Infant School",
"Postcode": "CM71HL"
},
{
"SchoolName": "Sunnymede Infant School",
"Postcode": "CM112HQ"
},
{
"SchoolName": "Powers Hall Infant School",
"Postcode": "CM81NA"
},
{
"SchoolName": "Kelvedon Hatch Community Primary School",
"Postcode": "CM150DH"
},
{
"SchoolName": "South Green Junior School",
"Postcode": "CM129RJ"
},
{
"SchoolName": "Chipping Ongar Primary School",
"Postcode": "CM59LA"
},
{
"SchoolName": "The Howbridge Infant School",
"Postcode": "CM81DJ"
},
{
"SchoolName": "Lambourne Primary School",
"Postcode": "RM41AU"
},
{
"SchoolName": "Stapleford Abbotts Primary School",
"Postcode": "RM41EJ"
},
{
"SchoolName": "Limes Farm Infant School and Nursery",
"Postcode": "IG75LP"
},
{
"SchoolName": "Ashdon Primary School",
"Postcode": "CB102HB"
},
{
"SchoolName": "Clavering Primary School",
"Postcode": "CB114PE"
},
{
"SchoolName": "Bonnygate Primary School",
"Postcode": "RM155BA"
},
{
"SchoolName": "Doddinghurst Infant School",
"Postcode": "CM150NJ"
},
{
"SchoolName": "Great Sampford Community Primary School",
"Postcode": "CB102RL"
},
{
"SchoolName": "Nazeing Primary School",
"Postcode": "EN92HS"
},
{
"SchoolName": "Hatfield Peverel Infant School",
"Postcode": "CM32RP"
},
{
"SchoolName": "Henham and Ugley Primary and Nursery School",
"Postcode": "CM226BP"
},
{
"SchoolName": "Bentfield Primary School",
"Postcode": "CM248DX"
},
{
"SchoolName": "Manuden Primary School",
"Postcode": "CM231DE"
},
{
"SchoolName": "Canvey Island Infant School",
"Postcode": "SS80JG"
},
{
"SchoolName": "Elm Hall Primary School",
"Postcode": "CM82SD"
},
{
"SchoolName": "Great Bradfords Junior School",
"Postcode": "CM79LW"
},
{
"SchoolName": "Newport Primary School",
"Postcode": "CB113PU"
},
{
"SchoolName": "White Court School",
"Postcode": "CM777UE"
},
{
"SchoolName": "Great Bradfords Infant and Nursery School",
"Postcode": "CM79LW"
},
{
"SchoolName": "Wimbish Primary School",
"Postcode": "CB102XE"
},
{
"SchoolName": "Danbury Park Community Primary School",
"Postcode": "CM34AB"
},
{
"SchoolName": "Beehive Lane Community Primary School",
"Postcode": "CM29SR"
},
{
"SchoolName": "Eversley Primary School",
"Postcode": "SS132EF"
},
{
"SchoolName": "Priory Primary School, Bicknacre",
"Postcode": "CM34ES"
},
{
"SchoolName": "Edward Francis Primary School",
"Postcode": "SS68AJ"
},
{
"SchoolName": "Ivy Chimneys Primary School",
"Postcode": "CM164EP"
},
{
"SchoolName": "The Downs Primary School and Nursery",
"Postcode": "CM203RB"
},
{
"SchoolName": "Hogarth Primary School",
"Postcode": "CM158BG"
},
{
"SchoolName": "Barnes Farm Junior School",
"Postcode": "CM26QH"
},
{
"SchoolName": "Ongar Primary School",
"Postcode": "CM50FF"
},
{
"SchoolName": "Jerounds Community Primary School",
"Postcode": "CM194PH"
},
{
"SchoolName": "Theydon Bois Primary School",
"Postcode": "CM167DH"
},
{
"SchoolName": "Westlands Community Primary School",
"Postcode": "CM12SB"
},
{
"SchoolName": "South Green Infant School",
"Postcode": "CM112TG"
},
{
"SchoolName": "Willowbrook Primary School",
"Postcode": "CM132TU"
},
{
"SchoolName": "Warley Primary School",
"Postcode": "CM145LF"
},
{
"SchoolName": "Barnes Farm Infant School",
"Postcode": "CM26QH"
},
{
"SchoolName": "Writtle Junior School",
"Postcode": "CM13HG"
},
{
"SchoolName": "Buckhurst Hill Community Primary School",
"Postcode": "IG96DS"
},
{
"SchoolName": "Harlowbury Primary School",
"Postcode": "CM170DX"
},
{
"SchoolName": "William Read Primary School",
"Postcode": "SS80JE"
},
{
"SchoolName": "Kendall Church of England Primary School",
"Postcode": "CO12HH"
},
{
"SchoolName": "St John's Church of England Voluntary Controlled Primary School, Colchester",
"Postcode": "CO40HH"
},
{
"SchoolName": "Holy Trinity Church of England Voluntary Controlled Primary School, Halstead",
"Postcode": "CO91JH"
},
{
"SchoolName": "Bulmer St Andrew's Church of England Voluntary Controlled Primary School",
"Postcode": "CO107EH"
},
{
"SchoolName": "St Giles' Church of England Primary School",
"Postcode": "CO92RG"
},
{
"SchoolName": "St Andrew's Church of England Voluntary Controlled Primary School, Great Yeldham",
"Postcode": "CO94PT"
},
{
"SchoolName": "St Peter's Church of England Voluntary Controlled Primary School, Sible Hedingham",
"Postcode": "CO93NR"
},
{
"SchoolName": "St Margaret's Church of England Voluntary Controlled Primary School Toppesfield",
"Postcode": "CO94DS"
},
{
"SchoolName": "Boxted St Peter's Church of England School",
"Postcode": "CO45YN"
},
{
"SchoolName": "Chappel Church of England Controlled Primary School",
"Postcode": "CO62DD"
},
{
"SchoolName": "Copford Church of England Voluntary Controlled Primary School",
"Postcode": "CO61BX"
},
{
"SchoolName": "Holy Trinity CofE Primary School, Eight Ash Green and Aldham",
"Postcode": "CO39UE"
},
{
"SchoolName": "Dedham Church of England Voluntary Controlled Primary School",
"Postcode": "CO76BZ"
},
{
"SchoolName": "St Lawrence Church of England Primary School, Rowhedge",
"Postcode": "CO57HR"
},
{
"SchoolName": "Fordham All Saints Church of England Voluntary Controlled Primary School",
"Postcode": "CO63NN"
},
{
"SchoolName": "Great Tey Church of England Voluntary Controlled Primary School",
"Postcode": "CO61AZ"
},
{
"SchoolName": "Layer-de-la-Haye Church of England Voluntary Controlled Primary School",
"Postcode": "CO20DS"
},
{
"SchoolName": "St Andrew's Church of England Voluntary Controlled Primary School, <NAME>",
"Postcode": "CO61HL"
},
{
"SchoolName": "St Luke's Church of England Controlled Primary School",
"Postcode": "CO50SU"
},
{
"SchoolName": "Heathlands Church of England Voluntary Controlled Primary School, West Bergholt",
"Postcode": "CO63JF"
},
{
"SchoolName": "St Mary's Church of England Voluntary Controlled Primary School, Ardleigh",
"Postcode": "CO77NS"
},
{
"SchoolName": "St George's Church of England Primary School, Great Bromley",
"Postcode": "CO77HX"
},
{
"SchoolName": "Parsons Heath Church of England Voluntary Controlled Primary School",
"Postcode": "CO43EZ"
},
{
"SchoolName": "St Nicholas' Church of England Voluntary Controlled Primary School, Rawreth",
"Postcode": "SS69NE"
},
{
"SchoolName": "Canewdon Endowed Church of England Voluntary Controlled Primary School",
"Postcode": "SS43QA"
},
{
"SchoolName": "Bulphan Church of England Voluntary Controlled Primary School",
"Postcode": "RM143RL"
},
{
"SchoolName": "Horndon-On-the-Hill CofE Primary School",
"Postcode": "SS178LR"
},
{
"SchoolName": "St John's Church of England Voluntary Controlled Primary School, Buckhurst Hill",
"Postcode": "IG95RX"
},
{
"SchoolName": "Coopersale and Theydon Garnon Church of England Voluntary Controlled Primary School",
"Postcode": "CM167QX"
},
{
"SchoolName": "High Beech Church of England Voluntary Controlled Primary School",
"Postcode": "IG104AP"
},
{
"SchoolName": "Epping Upland Church of England Primary School",
"Postcode": "CM166QJ"
},
{
"SchoolName": "Fawbert and Barnard's Primary School",
"Postcode": "CM170DA"
},
{
"SchoolName": "Sheering Church of England Voluntary Controlled Primary School",
"Postcode": "CM227LU"
},
{
"SchoolName": "William Martin Church of England Voluntary Controlled Junior School, Harlow",
"Postcode": "CM186PN"
},
{
"SchoolName": "<NAME> VC Infant and Nursery School, Harlow",
"Postcode": "CM186PN"
},
{
"SchoolName": "<NAME>el St Andrew's Junior School",
"Postcode": "CM32JX"
},
{
"SchoolName": "All Saints Maldon Church of England Voluntary Controlled Primary School",
"Postcode": "CM96HY"
},
{
"SchoolName": "Rivenhall Church of England Voluntary Controlled Primary School",
"Postcode": "CM83PQ"
},
{
"SchoolName": "Feering Church of England Voluntary Controlled Primary School",
"Postcode": "CO59QB"
},
{
"SchoolName": "Finchingfield Church of England Voluntary Controlled Primary School",
"Postcode": "CM74LD"
},
{
"SchoolName": "St Peter's Church of England Voluntary Controlled Primary School, Coggeshall",
"Postcode": "CO61YU"
},
{
"SchoolName": "Wethersfield Church of England Voluntary Controlled Primary School",
"Postcode": "CM74BP"
},
{
"SchoolName": "White Notley Church of England Voluntary Controlled Primary School",
"Postcode": "CM81RZ"
},
{
"SchoolName": "St John Church of England Voluntary Controlled Primary School Danbury",
"Postcode": "CM34NS"
},
{
"SchoolName": "East Hanningfield Church of England Primary School",
"Postcode": "CM38AE"
},
{
"SchoolName": "Great Waltham Church of England Voluntary Controlled Primary School",
"Postcode": "CM31DF"
},
{
"SchoolName": "Ford End Church of England Primary School",
"Postcode": "CM31LQ"
},
{
"SchoolName": "Margaretting Church of England Voluntary Controlled Primary School",
"Postcode": "CM40HA"
},
{
"SchoolName": "Mountnessing Church of England Voluntary Controlled Primary School",
"Postcode": "CM150UH"
},
{
"SchoolName": "Roxwell Church of England Voluntary Controlled Primary School",
"Postcode": "CM14PE"
},
{
"SchoolName": "Downham Church of England Voluntary Controlled Primary School",
"Postcode": "CM111NU"
},
{
"SchoolName": "Stock Church of England Primary School",
"Postcode": "CM49BQ"
},
{
"SchoolName": "St Nicholas Church of England Voluntary Controlled Primary School",
"Postcode": "CM07TJ"
},
{
"SchoolName": "Woodham Walter Church of England Voluntary Controlled Primary School",
"Postcode": "CM96RF"
},
{
"SchoolName": "Doddinghurst Church of England Voluntary Controlled Junior School",
"Postcode": "CM150NJ"
},
{
"SchoolName": "Dr Walker's Church of England Voluntary Controlled Primary School, Fyfield",
"Postcode": "CM50RG"
},
{
"SchoolName": "Matching Green Church of England Voluntary Controlled Primary School",
"Postcode": "CM170QB"
},
{
"SchoolName": "Birchanger Church of England Voluntary Controlled Primary School",
"Postcode": "CM235QL"
},
{
"SchoolName": "Elsenham Church of England Voluntary Controlled Primary School",
"Postcode": "CM226DD"
},
{
"SchoolName": "Rickling Church of England Voluntary Controlled Primary School",
"Postcode": "CB113YG"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Harwich",
"Postcode": "CO123SU"
},
{
"SchoolName": "St Andrew's Church of England Voluntary Aided Primary School, Halstead",
"Postcode": "CO92BH"
},
{
"SchoolName": "Belchamp St Paul Church of England Voluntary Aided Primary School",
"Postcode": "CO107BP"
},
{
"SchoolName": "Colne Engaine Church of England Voluntary Aided Primary School",
"Postcode": "CO62HA"
},
{
"SchoolName": "St John the Baptist Church of England Voluntary Aided Primary School Pebmarsh",
"Postcode": "CO92NH"
},
{
"SchoolName": "Birch Church of England Voluntary Aided Primary School",
"Postcode": "CO20LZ"
},
{
"SchoolName": "Fingringhoe Church of England Voluntary Aided Primary School",
"Postcode": "CO57BN"
},
{
"SchoolName": "All Saints Church of England Voluntary Aided Primary School, Great Oakley",
"Postcode": "CO125BA"
},
{
"SchoolName": "Ridgewell Church of England Voluntary Aided Primary School",
"Postcode": "CO94SA"
},
{
"SchoolName": "The Bishop William Ward Church of England Primary School",
"Postcode": "CO64AT"
},
{
"SchoolName": "St Mary's, Prittlewell, CofE Primary School",
"Postcode": "SS26JH"
},
{
"SchoolName": "Sacred Heart Catholic Primary School and Nursery",
"Postcode": "SS12RF"
},
{
"SchoolName": "St Helen's Catholic Primary School",
"Postcode": "SS07AY"
},
{
"SchoolName": "Our Lady of Lourdes Catholic Primary School",
"Postcode": "SS93HS"
},
{
"SchoolName": "St George's Catholic Primary School",
"Postcode": "SS39RN"
},
{
"SchoolName": "Bentley St Paul's Church of England Voluntary Aided Primary School",
"Postcode": "CM159SE"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Canvey Island",
"Postcode": "SS89DP"
},
{
"SchoolName": "Ingrave Johnstone Church of England Voluntary Aided Primary School",
"Postcode": "CM133NU"
},
{
"SchoolName": "St Mary's Church of England Voluntary Aided Primary School",
"Postcode": "CB101BQ"
},
{
"SchoolName": "St Anne Line Catholic Junior School",
"Postcode": "SS155AF"
},
{
"SchoolName": "St Michael's Church of England Voluntary Aided Primary School",
"Postcode": "CM72NS"
},
{
"SchoolName": "Holy Family Catholic Primary School, Benfleet",
"Postcode": "SS75PX"
},
{
"SchoolName": "St Mary's Church of England Voluntary Aided Primary School, Burnham-on-Crouch",
"Postcode": "CM08LZ"
},
{
"SchoolName": "St Anne Line Catholic Infant School",
"Postcode": "SS155AF"
},
{
"SchoolName": "Our Lady of Ransom Catholic Primary School",
"Postcode": "SS69EH"
},
{
"SchoolName": "St Peter's Church of England Voluntary Aided Primary School, South Weald",
"Postcode": "CM145QN"
},
{
"SchoolName": "St Teresa's Catholic Primary School, Hawkwell",
"Postcode": "SS41RF"
},
{
"SchoolName": "Terling Church of England Voluntary Aided Primary School",
"Postcode": "CM32PN"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "CM112UB"
},
{
"SchoolName": "Churchgate Church of England Voluntary Aided Primary School, Harlow",
"Postcode": "CM170LB"
},
{
"SchoolName": "Orsett Church of England Voluntary Aided Primary School",
"Postcode": "RM163JR"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "SS170PA"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "RM187QH"
},
{
"SchoolName": "Little Waltham Church of England Voluntary Aided Primary School",
"Postcode": "CM33NY"
},
{
"SchoolName": "St Mary's Church of England Voluntary Aided Primary School Woodham Ferrers",
"Postcode": "CM38RJ"
},
{
"SchoolName": "Great Easton Church of England Voluntary Aided Primary School",
"Postcode": "CM62DR"
},
{
"SchoolName": "St Mary's Church of England Voluntary Aided Primary School, Hatfield Broad Oak",
"Postcode": "CM227HH"
},
{
"SchoolName": "St Thomas of Canterbury Church of England Aided Junior School, Brentwood",
"Postcode": "CM159BX"
},
{
"SchoolName": "St Thomas of Canterbury Catholic Primary School",
"Postcode": "RM175RW"
},
{
"SchoolName": "Holy Cross Catholic Primary School",
"Postcode": "RM155RP"
},
{
"SchoolName": "Little Hallingbury Church of England Voluntary Aided Primary School",
"Postcode": "CM227RE"
},
{
"SchoolName": "St Joseph the Worker Catholic Primary School",
"Postcode": "CM131BJ"
},
{
"SchoolName": "St Thomas of Canterbury Church of England Aided Infant School",
"Postcode": "CM159BX"
},
{
"SchoolName": "T<NAME> St Nicholas CofE VA Primary School",
"Postcode": "CM98UB"
},
{
"SchoolName": "Moreton Church of England Voluntary Aided Primary School",
"Postcode": "CM50JD"
},
{
"SchoolName": "Farnham Church of England Primary School",
"Postcode": "CM231HR"
},
{
"SchoolName": "Radwinter Church of England Voluntary Aided Primary School",
"Postcode": "CB102TX"
},
{
"SchoolName": "St Pius X Catholic Primary School",
"Postcode": "CM14HY"
},
{
"SchoolName": "Ingatestone and Fryerning Church of England Voluntary Aided Junior School",
"Postcode": "CM40AL"
},
{
"SchoolName": "St Francis Catholic Primary School, Braintree",
"Postcode": "CM72SY"
},
{
"SchoolName": "Chrishall Holy Trinity and St Nicholas CofE (Aided) Primary School",
"Postcode": "SG88QE"
},
{
"SchoolName": "St Michael's Church of England Voluntary Aided Junior School",
"Postcode": "CM28RR"
},
{
"SchoolName": "St Francis Catholic Primary School, Maldon",
"Postcode": "CM96HN"
},
{
"SchoolName": "Holy Family Catholic Primary School, Witham",
"Postcode": "CM81DX"
},
{
"SchoolName": "Trinity St Mary's CofE Voluntary Aided Primary School, South Woodham Ferrers",
"Postcode": "CM35JX"
},
{
"SchoolName": "St Joseph's Catholic Primary School, SWF",
"Postcode": "CM35JX"
},
{
"SchoolName": "St Peters Church of England Voluntary Aided Primary School, West Hanningfield",
"Postcode": "CM28UQ"
},
{
"SchoolName": "All Saints' Church of England Voluntary Aided Primary School, Dovercourt",
"Postcode": "CO124HT"
},
{
"SchoolName": "The Bishops' Church of England and Roman Catholic Primary School",
"Postcode": "CM16ZQ"
},
{
"SchoolName": "Roding Valley High School",
"Postcode": "IG103JA"
},
{
"SchoolName": "Epping St John's Church of England VC School",
"Postcode": "CM165JB"
},
{
"SchoolName": "De La Salle School and Language College",
"Postcode": "SS142LA"
},
{
"SchoolName": "St John Payne Catholic School, Chelmsford",
"Postcode": "CM14BS"
},
{
"SchoolName": "Grays Convent High School",
"Postcode": "RM175UX"
},
{
"SchoolName": "Elmwood Primary School",
"Postcode": "CM35NB"
},
{
"SchoolName": "North Crescent Primary School",
"Postcode": "SS129AP"
},
{
"SchoolName": "Great Totham Primary School",
"Postcode": "CM98PN"
},
{
"SchoolName": "Katherines Primary School",
"Postcode": "CM195NJ"
},
{
"SchoolName": "Holland Haven Primary School",
"Postcode": "CO155PP"
},
{
"SchoolName": "Elmstead Primary School",
"Postcode": "CO77YQ"
},
{
"SchoolName": "Millfields Primary School",
"Postcode": "CO79RD"
},
{
"SchoolName": "St Katherine's Church of England Primary School",
"Postcode": "SS89QA"
},
{
"SchoolName": "Rodings Primary School",
"Postcode": "CM61PZ"
},
{
"SchoolName": "The Kingswood Primary School",
"Postcode": "SS165DE"
},
{
"SchoolName": "St Mary's CofE Foundation Primary School",
"Postcode": "CM248FE"
},
{
"SchoolName": "Buttsbury Infant School",
"Postcode": "CM120NX"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "CM166EH"
},
{
"SchoolName": "Leverton Primary School",
"Postcode": "EN93BE"
},
{
"SchoolName": "Waltham Holy Cross Primary School",
"Postcode": "EN91LG"
},
{
"SchoolName": "Hockley Primary School",
"Postcode": "SS54UR"
},
{
"SchoolName": "Thaxted Primary School",
"Postcode": "CM62LW"
},
{
"SchoolName": "The Cathedral Church of England Voluntary Aided Primary School, Chelmsford",
"Postcode": "CM11PA"
},
{
"SchoolName": "Broomfield Primary School",
"Postcode": "CM17DN"
},
{
"SchoolName": "St John Fisher Catholic Primary School",
"Postcode": "IG102DY"
},
{
"SchoolName": "Lawford Church of England Voluntary Aided Primary School",
"Postcode": "CO112EF"
},
{
"SchoolName": "Great Dunmow Primary School",
"Postcode": "CM61ZR"
},
{
"SchoolName": "Dunmow St Mary's Primary School",
"Postcode": "CM61EB"
},
{
"SchoolName": "Walton on the Naze Primary School",
"Postcode": "CO148PT"
},
{
"SchoolName": "Chase Lane Primary School and Nursery",
"Postcode": "CO124NB"
},
{
"SchoolName": "Wyburns Primary School",
"Postcode": "SS67PE"
},
{
"SchoolName": "Collingwood Primary School",
"Postcode": "CM35YJ"
},
{
"SchoolName": "St Helen's Catholic Infant School",
"Postcode": "CM159BY"
},
{
"SchoolName": "<NAME> Primary School and Nursery",
"Postcode": "IG103SR"
},
{
"SchoolName": "Upshire Primary Foundation School",
"Postcode": "EN93PX"
},
{
"SchoolName": "Mersea Island School",
"Postcode": "CO58QX"
},
{
"SchoolName": "Earls Colne Primary School and Nursery",
"Postcode": "CO62RH"
},
{
"SchoolName": "Milton Hall Primary School and Nursery",
"Postcode": "SS07AU"
},
{
"SchoolName": "Engaines Primary School and Nursery",
"Postcode": "CO169PH"
},
{
"SchoolName": "Beauchamps High School",
"Postcode": "SS118LY"
},
{
"SchoolName": "St Benedict's Catholic College",
"Postcode": "CO33US"
},
{
"SchoolName": "Braeside School",
"Postcode": "IG95SD"
},
{
"SchoolName": "New Hall School",
"Postcode": "CM33HS"
},
{
"SchoolName": "St Anne's School",
"Postcode": "CM20AW"
},
{
"SchoolName": "St Cedd's School",
"Postcode": "CM20AR"
},
{
"SchoolName": "Widford Lodge School",
"Postcode": "CM29AN"
},
{
"SchoolName": "Chigwell School",
"Postcode": "IG76QF"
},
{
"SchoolName": "Loyola Preparatory School",
"Postcode": "IG95NH"
},
{
"SchoolName": "St Mary's School for Girls",
"Postcode": "CO33RB"
},
{
"SchoolName": "Felsted School",
"Postcode": "CM63LL"
},
{
"SchoolName": "Gosfield School",
"Postcode": "CO91PF"
},
{
"SchoolName": "Walden School",
"Postcode": "CB113EB"
},
{
"SchoolName": "St John's School",
"Postcode": "CM120AR"
},
{
"SchoolName": "The Daiglen School",
"Postcode": "IG95LG"
},
{
"SchoolName": "St Michael's CofE Preparatory School",
"Postcode": "SS92LP"
},
{
"SchoolName": "Thorpe Hall School",
"Postcode": "SS13RD"
},
{
"SchoolName": "Alleyn Court Preparatory School",
"Postcode": "SS30PW"
},
{
"SchoolName": "Saint Pierre School",
"Postcode": "SS91LE"
},
{
"SchoolName": "Colchester High School",
"Postcode": "CO33HD"
},
{
"SchoolName": "Holmwood House School",
"Postcode": "CO39ST"
},
{
"SchoolName": "Elm Green Preparatory School",
"Postcode": "CM34SU"
},
{
"SchoolName": "Heathcote School",
"Postcode": "CM34QB"
},
{
"SchoolName": "Littlegarth School",
"Postcode": "CO64JR"
},
{
"SchoolName": "St Philomena's School",
"Postcode": "CO139HQ"
},
{
"SchoolName": "St Margaret's Preparatory School",
"Postcode": "CO91SE"
},
{
"SchoolName": "St Nicholas School",
"Postcode": "CM170NJ"
},
{
"SchoolName": "Herington House School",
"Postcode": "CM132NS"
},
{
"SchoolName": "Oaklands School",
"Postcode": "IG104RA"
},
{
"SchoolName": "Woodlands School",
"Postcode": "CM133LA"
},
{
"SchoolName": "Maldon Court Preparatory School",
"Postcode": "CM94QE"
},
{
"SchoolName": "Oxford House School",
"Postcode": "CO33NE"
},
{
"SchoolName": "Woodcroft School",
"Postcode": "IG101SQ"
},
{
"SchoolName": "Doucecroft School",
"Postcode": "CO63QL"
},
{
"SchoolName": "Ursuline Preparatory School",
"Postcode": "CM133HR"
},
{
"SchoolName": "Brentwood School",
"Postcode": "CM158EE"
},
{
"SchoolName": "Trinity School",
"Postcode": "CM145TB"
},
{
"SchoolName": "Howe Green House School",
"Postcode": "CM227UF"
},
{
"SchoolName": "Coopersale Hall School",
"Postcode": "CM167PE"
},
{
"SchoolName": "The Christian School (Takeley)",
"Postcode": "CM226QH"
},
{
"SchoolName": "Guru Gobind Singh Khalsa College",
"Postcode": "IG76BQ"
},
{
"SchoolName": "Kingsdown School",
"Postcode": "SS26XT"
},
{
"SchoolName": "St Nicholas School",
"Postcode": "SS24RL"
},
{
"SchoolName": "Lancaster School",
"Postcode": "SS00RT"
},
{
"SchoolName": "Southview School",
"Postcode": "CM82TA"
},
{
"SchoolName": "Wells Park School",
"Postcode": "IG76NN"
},
{
"SchoolName": "Kingswode Hoe School",
"Postcode": "CO33QJ"
},
{
"SchoolName": "Cedar Hall School",
"Postcode": "SS73UQ"
},
{
"SchoolName": "Oak View School",
"Postcode": "IG101TS"
},
{
"SchoolName": "The Endeavour School",
"Postcode": "CM158BE"
},
{
"SchoolName": "The Edith Borthwick School",
"Postcode": "CM72YN"
},
{
"SchoolName": "St John's RC School (Essex)",
"Postcode": "IG88AX"
},
{
"SchoolName": "Glenwood School",
"Postcode": "SS74LW"
},
{
"SchoolName": "Shorefields School",
"Postcode": "CO156HF"
},
{
"SchoolName": "Lexden Springs School",
"Postcode": "CO39AB"
},
{
"SchoolName": "Widden Primary School",
"Postcode": "GL14AW"
},
{
"SchoolName": "Tredworth Junior School",
"Postcode": "GL14QG"
},
{
"SchoolName": "Linden Primary School",
"Postcode": "GL15HU"
},
{
"SchoolName": "Hatherley Infant School",
"Postcode": "GL14PW"
},
{
"SchoolName": "Calton Primary School",
"Postcode": "GL15ET"
},
{
"SchoolName": "Elmbridge Primary School",
"Postcode": "GL20PE"
},
{
"SchoolName": "Harewood Infant School",
"Postcode": "GL40SS"
},
{
"SchoolName": "Harewood Junior School",
"Postcode": "GL40SS"
},
{
"SchoolName": "Hillview Primary School",
"Postcode": "GL33LH"
},
{
"SchoolName": "Dinglewell Junior School",
"Postcode": "GL33HS"
},
{
"SchoolName": "Longlevens Junior School",
"Postcode": "GL20AL"
},
{
"SchoolName": "Longlevens Infant School",
"Postcode": "GL20AX"
},
{
"SchoolName": "Dinglewell Infant School",
"Postcode": "GL33HS"
},
{
"SchoolName": "Ashchurch Primary School",
"Postcode": "GL208LA"
},
{
"SchoolName": "Avening Primary School",
"Postcode": "GL88NF"
},
{
"SchoolName": "Blakeney Primary School",
"Postcode": "GL154EB"
},
{
"SchoolName": "Eastcombe Primary School",
"Postcode": "GL67EA"
},
{
"SchoolName": "Bledington Primary School",
"Postcode": "OX76US"
},
{
"SchoolName": "Leighterton Primary School",
"Postcode": "GL88UH"
},
{
"SchoolName": "Chalford Hill Primary School",
"Postcode": "GL68LG"
},
{
"SchoolName": "Churcham Primary School",
"Postcode": "GL28BD"
},
{
"SchoolName": "Churchdown Parton Manor Infant School",
"Postcode": "GL32AG"
},
{
"SchoolName": "Churchdown Village Junior School",
"Postcode": "GL32JX"
},
{
"SchoolName": "Birdlip Primary School",
"Postcode": "GL48JH"
},
{
"SchoolName": "Drybrook Primary School",
"Postcode": "GL179JF"
},
{
"SchoolName": "Woodside Primary School",
"Postcode": "GL179XP"
},
{
"SchoolName": "St White's Primary School",
"Postcode": "GL143GD"
},
{
"SchoolName": "Soudley School",
"Postcode": "GL142UA"
},
{
"SchoolName": "Steam Mills Primary School",
"Postcode": "GL143JD"
},
{
"SchoolName": "Eastington Primary School",
"Postcode": "GL103SB"
},
{
"SchoolName": "The Rissington School",
"Postcode": "GL542LP"
},
{
"SchoolName": "Sharpness Primary School",
"Postcode": "GL139NU"
},
{
"SchoolName": "Kemble Primary School",
"Postcode": "GL76AG"
},
{
"SchoolName": "Kingswood Primary School",
"Postcode": "GL128RN"
},
{
"SchoolName": "Lydbrook Primary School",
"Postcode": "GL179PX"
},
{
"SchoolName": "Mickleton Primary School",
"Postcode": "GL556SJ"
},
{
"SchoolName": "Sheepscombe Primary School",
"Postcode": "GL67RL"
},
{
"SchoolName": "Rodmarton School",
"Postcode": "GL76PE"
},
{
"SchoolName": "Tredington Community Primary School",
"Postcode": "GL207BU"
},
{
"SchoolName": "Park Junior School",
"Postcode": "GL102NP"
},
{
"SchoolName": "Stow-on-the-Wold Primary School",
"Postcode": "GL541AW"
},
{
"SchoolName": "Stroud Valley Community Primary School",
"Postcode": "GL52HP"
},
{
"SchoolName": "Uplands Community Primary School",
"Postcode": "GL51TE"
},
{
"SchoolName": "Thrupp School",
"Postcode": "GL52EN"
},
{
"SchoolName": "Tibberton Community Primary School",
"Postcode": "GL193AQ"
},
{
"SchoolName": "Twyning School",
"Postcode": "GL206DF"
},
{
"SchoolName": "Walmore Hill Primary School",
"Postcode": "GL28LA"
},
{
"SchoolName": "Berry Hill Primary School",
"Postcode": "GL167AT"
},
{
"SchoolName": "Coalway Junior School",
"Postcode": "GL167HL"
},
{
"SchoolName": "Coalway Community Infant School",
"Postcode": "GL167HL"
},
{
"SchoolName": "Ellwood Primary School",
"Postcode": "GL167LY"
},
{
"SchoolName": "Parkend Primary School",
"Postcode": "GL154HL"
},
{
"SchoolName": "Pillowell Community Primary School",
"Postcode": "GL154QT"
},
{
"SchoolName": "Yorkley Primary School",
"Postcode": "GL154RR"
},
{
"SchoolName": "Woolaston Primary School",
"Postcode": "GL156PH"
},
{
"SchoolName": "Queen Margaret Primary School and Children's Centre",
"Postcode": "GL205HU"
},
{
"SchoolName": "Cashes Green Primary School",
"Postcode": "GL54NL"
},
{
"SchoolName": "Innsworth Junior School",
"Postcode": "GL31AX"
},
{
"SchoolName": "Northway Infant School",
"Postcode": "GL208PT"
},
{
"SchoolName": "Churchdown Parton Manor Junior School",
"Postcode": "GL32DR"
},
{
"SchoolName": "Rodborough Community Primary School",
"Postcode": "GL53RT"
},
{
"SchoolName": "The Croft Primary School",
"Postcode": "GL66RQ"
},
{
"SchoolName": "Castle Hill Primary School",
"Postcode": "GL34NU"
},
{
"SchoolName": "Callowell Primary School",
"Postcode": "GL54DG"
},
{
"SchoolName": "Foxmoor Primary School",
"Postcode": "GL54UJ"
},
{
"SchoolName": "Gastrells Community Primary School",
"Postcode": "GL53PS"
},
{
"SchoolName": "Cam Woodfield Infant School",
"Postcode": "GL116JJ"
},
{
"SchoolName": "Chesterton Primary School",
"Postcode": "GL71SS"
},
{
"SchoolName": "Woodmancote School",
"Postcode": "GL529HN"
},
{
"SchoolName": "Glenfall Community Primary School",
"Postcode": "GL526XZ"
},
{
"SchoolName": "Cam Everlands Primary School",
"Postcode": "GL115SF"
},
{
"SchoolName": "Innsworth Infant School",
"Postcode": "GL31HJ"
},
{
"SchoolName": "Stonehouse Park Infant School",
"Postcode": "GL102NP"
},
{
"SchoolName": "Dunalley Primary School",
"Postcode": "GL504LB"
},
{
"SchoolName": "Gloucester Road Primary School",
"Postcode": "GL518PB"
},
{
"SchoolName": "Greatfield Park Primary School",
"Postcode": "GL513FZ"
},
{
"SchoolName": "Naunton Park Primary School",
"Postcode": "GL537BT"
},
{
"SchoolName": "Rowanfield Infant School",
"Postcode": "GL518HY"
},
{
"SchoolName": "Lakeside Primary School",
"Postcode": "GL516HR"
},
{
"SchoolName": "Benhall Infant School",
"Postcode": "GL516PS"
},
{
"SchoolName": "Beech Green Primary School",
"Postcode": "GL24WD"
},
{
"SchoolName": "Abbeymead Primary School",
"Postcode": "GL45YS"
},
{
"SchoolName": "Tuffley Primary School",
"Postcode": "GL40JY"
},
{
"SchoolName": "Coney Hill Community Primary School",
"Postcode": "GL44NA"
},
{
"SchoolName": "St Paul's Church of England Primary School",
"Postcode": "GL15BD"
},
{
"SchoolName": "St James Church of England Junior School",
"Postcode": "GL14JU"
},
{
"SchoolName": "Kingsholm Church of England Primary School",
"Postcode": "GL13BN"
},
{
"SchoolName": "Hempsted Church of England Primary School",
"Postcode": "GL25LH"
},
{
"SchoolName": "Cold Aston Church of England Primary School",
"Postcode": "GL543BN"
},
{
"SchoolName": "Aylburton Church of England Primary School",
"Postcode": "GL156DB"
},
{
"SchoolName": "Bibury Church of England Primary School",
"Postcode": "GL75NR"
},
{
"SchoolName": "Bisley Blue Coat Church of England Primary School",
"Postcode": "GL67BE"
},
{
"SchoolName": "Watermoor Church of England Primary School",
"Postcode": "GL71SY"
},
{
"SchoolName": "Stratton Church of England Primary School",
"Postcode": "GL72NG"
},
{
"SchoolName": "Coaley Church of England Primary School",
"Postcode": "GL115EB"
},
{
"SchoolName": "Coberley Church of England Primary School",
"Postcode": "GL539QZ"
},
{
"SchoolName": "Deerhurst and Apperley Church of England Primary School",
"Postcode": "GL194DQ"
},
{
"SchoolName": "English Bicknor Church of England Primary School",
"Postcode": "GL167PG"
},
{
"SchoolName": "Fairford Church of England Primary School",
"Postcode": "GL74JQ"
},
{
"SchoolName": "Haresfield Church of England Primary School",
"Postcode": "GL103EF"
},
{
"SchoolName": "Hartpury Church of England Primary School",
"Postcode": "GL193BJ"
},
{
"SchoolName": "Hatherop Church of England Primary School",
"Postcode": "GL73NA"
},
{
"SchoolName": "Kempsford Church of England Primary School",
"Postcode": "GL74EY"
},
{
"SchoolName": "Littledean Church of England Primary School",
"Postcode": "GL143NL"
},
{
"SchoolName": "Longborough Church of England Primary School",
"Postcode": "GL560QD"
},
{
"SchoolName": "Lydney Church of England Community School (VC)",
"Postcode": "GL155JH"
},
{
"SchoolName": "Meysey Hampton Church of England Primary School",
"Postcode": "GL75JS"
},
{
"SchoolName": "Nailsworth Church of England Primary School",
"Postcode": "GL60ET"
},
{
"SchoolName": "Clearwell Church of England Primary School",
"Postcode": "GL168LG"
},
{
"SchoolName": "Redbrook Church of England Primary School",
"Postcode": "NP254LY"
},
{
"SchoolName": "Northleach Church of England Primary School",
"Postcode": "GL543HJ"
},
{
"SchoolName": "Norton Church of England Primary School",
"Postcode": "GL29LJ"
},
{
"SchoolName": "Pauntley Church of England Primary School",
"Postcode": "GL181LL"
},
{
"SchoolName": "Randwick Church of England Primary School",
"Postcode": "GL66HL"
},
{
"SchoolName": "Ruardean Church of England Primary School",
"Postcode": "GL179XQ"
},
{
"SchoolName": "Sherborne Church of England Primary School",
"Postcode": "GL543DH"
},
{
"SchoolName": "Shurdington Church of England Primary School",
"Postcode": "GL514UQ"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "GL75UW"
},
{
"SchoolName": "Southrop Church of England Primary School",
"Postcode": "GL73NU"
},
{
"SchoolName": "Swell Church of England Primary School",
"Postcode": "GL541LH"
},
{
"SchoolName": "Temple Guiting Church of England School",
"Postcode": "GL545RW"
},
{
"SchoolName": "Tewkesbury Church of England Primary School",
"Postcode": "GL205RQ"
},
{
"SchoolName": "Tutshill Church of England Primary School",
"Postcode": "NP167BJ"
},
{
"SchoolName": "Uley Church of England Primary School",
"Postcode": "GL115SW"
},
{
"SchoolName": "Upton St Leonards Church of England Primary School",
"Postcode": "GL48ED"
},
{
"SchoolName": "Bream Church of England Primary School",
"Postcode": "GL156JW"
},
{
"SchoolName": "Whitminster Endowed Church of England Primary School",
"Postcode": "GL27PJ"
},
{
"SchoolName": "Willersey Church of England Primary School",
"Postcode": "WR127PN"
},
{
"SchoolName": "Ashleworth Church of England Primary School",
"Postcode": "GL194HT"
},
{
"SchoolName": "Down Ampney Church of England Primary School",
"Postcode": "GL75QR"
},
{
"SchoolName": "Siddington Church of England Primary School",
"Postcode": "GL76HL"
},
{
"SchoolName": "Holy Trinity Church of England Primary School",
"Postcode": "GL522JP"
},
{
"SchoolName": "Leckhampton Church of England Primary School",
"Postcode": "GL530HP"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "GL522SN"
},
{
"SchoolName": "Oak Hill Church of England Primary School",
"Postcode": "GL208NP"
},
{
"SchoolName": "Ampney Crucis Church of England Primary School",
"Postcode": "GL75SD"
},
{
"SchoolName": "Oakridge Parochial School",
"Postcode": "GL67NR"
},
{
"SchoolName": "Bromesberrow St Mary's Church of England (Aided) Primary School",
"Postcode": "HR81RT"
},
{
"SchoolName": "Cam Hopton Church of England Primary School",
"Postcode": "GL115PA"
},
{
"SchoolName": "Christ Church Church of England Primary School",
"Postcode": "GL68PP"
},
{
"SchoolName": "Bussage Church of England Primary School",
"Postcode": "GL68FW"
},
{
"SchoolName": "Holy Apostles' Church of England Primary School",
"Postcode": "GL526QZ"
},
{
"SchoolName": "St Andrew's Church of England Primary School",
"Postcode": "GL544AJ"
},
{
"SchoolName": "Powell's Church of England Primary School",
"Postcode": "GL72DJ"
},
{
"SchoolName": "Cranham Church of England Primary School",
"Postcode": "GL48HS"
},
{
"SchoolName": "Ann Cam Church of England Primary School",
"Postcode": "GL182BH"
},
{
"SchoolName": "Horsley Church of England Primary School",
"Postcode": "GL60PU"
},
{
"SchoolName": "Huntley Church of England Primary School",
"Postcode": "GL193EX"
},
{
"SchoolName": "St Lawrence Church of England Primary School",
"Postcode": "GL73AU"
},
{
"SchoolName": "Leonard Stanley Church of England Primary School",
"Postcode": "GL103LY"
},
{
"SchoolName": "Amberley Parochial School",
"Postcode": "GL55JG"
},
{
"SchoolName": "Brimscombe Church of England (VA) Primary School",
"Postcode": "GL52QR"
},
{
"SchoolName": "Minsterworth Church of England Primary School",
"Postcode": "GL28JH"
},
{
"SchoolName": "Miserden Church of England Primary School",
"Postcode": "GL67JA"
},
{
"SchoolName": "Mitcheldean Endowed Primary School",
"Postcode": "GL170BS"
},
{
"SchoolName": "Newnham St Peter's Church of England Primary School",
"Postcode": "GL141AT"
},
{
"SchoolName": "North Nibley Church of England Primary School",
"Postcode": "GL116DL"
},
{
"SchoolName": "Prestbury St Mary's Church of England Junior School",
"Postcode": "GL525JB"
},
{
"SchoolName": "St Briavels Parochial Church of England Primary School",
"Postcode": "GL156TD"
},
{
"SchoolName": "Sapperton Church of England Primary School",
"Postcode": "GL76LQ"
},
{
"SchoolName": "St Matthew's Church of England Primary School",
"Postcode": "GL54JE"
},
{
"SchoolName": "St Mary's Church of England VA Primary School",
"Postcode": "GL88BW"
},
{
"SchoolName": "Westbury-on-Severn Church of England Primary School",
"Postcode": "GL141PA"
},
{
"SchoolName": "Withington Church of England Primary School",
"Postcode": "GL544BQ"
},
{
"SchoolName": "Woodchester Endowed Church of England Aided Primary School",
"Postcode": "GL55PD"
},
{
"SchoolName": "St Catharine's Catholic Primary School",
"Postcode": "GL556DZ"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "GL103TY"
},
{
"SchoolName": "St Thomas More Catholic Primary School",
"Postcode": "GL510HZ"
},
{
"SchoolName": "St Mary's Church of England Infant School",
"Postcode": "GL525JB"
},
{
"SchoolName": "St Mark's Church of England Junior School",
"Postcode": "GL516NU"
},
{
"SchoolName": "St James and Ebrington Church of England Primary School",
"Postcode": "GL556DB"
},
{
"SchoolName": "Barnwood Church of England Primary School",
"Postcode": "GL43JP"
},
{
"SchoolName": "Hillesley Church of England Primary School",
"Postcode": "GL127RH"
},
{
"SchoolName": "Barnwood Park Arts College",
"Postcode": "GL43QU"
},
{
"SchoolName": "Archway School",
"Postcode": "GL54AX"
},
{
"SchoolName": "The Catholic School of Saint Gregory the Great",
"Postcode": "GL503QG"
},
{
"SchoolName": "Picklenash Junior School",
"Postcode": "GL181BG"
},
{
"SchoolName": "Blue Coat CofE Primary School",
"Postcode": "GL127BD"
},
{
"SchoolName": "Andoversford Primary School",
"Postcode": "GL544HR"
},
{
"SchoolName": "Tirlebrook Primary School",
"Postcode": "GL208EW"
},
{
"SchoolName": "The British School",
"Postcode": "GL127JU"
},
{
"SchoolName": "Warden Hill Primary School",
"Postcode": "GL513DF"
},
{
"SchoolName": "Glebe Infants' School",
"Postcode": "GL181BL"
},
{
"SchoolName": "Cam Woodfield Junior School",
"Postcode": "GL116JJ"
},
{
"SchoolName": "Swindon Village Primary School",
"Postcode": "GL519QP"
},
{
"SchoolName": "Heron Primary School",
"Postcode": "GL44BN"
},
{
"SchoolName": "Carrant Brook Junior School",
"Postcode": "GL208RP"
},
{
"SchoolName": "Pittville School",
"Postcode": "GL523JD"
},
{
"SchoolName": "Maidenhill School",
"Postcode": "GL102HA"
},
{
"SchoolName": "The King's School, Gloucester",
"Postcode": "GL12BG"
},
{
"SchoolName": "Hatherop Castle School",
"Postcode": "GL73NB"
},
{
"SchoolName": "Dean Close St John's",
"Postcode": "NP167LE"
},
{
"SchoolName": "Beaudesert Park School",
"Postcode": "GL69AF"
},
{
"SchoolName": "Rendcomb College",
"Postcode": "GL77HA"
},
{
"SchoolName": "Wycliffe College",
"Postcode": "GL102JQ"
},
{
"SchoolName": "Westonbirt School",
"Postcode": "GL88QG"
},
{
"SchoolName": "Wynstones School",
"Postcode": "GL40UF"
},
{
"SchoolName": "St Edward's School",
"Postcode": "GL538EY"
},
{
"SchoolName": "Cheltenham College",
"Postcode": "GL537LD"
},
{
"SchoolName": "Dean Close Preparatory School",
"Postcode": "GL516QS"
},
{
"SchoolName": "Dean Close School",
"Postcode": "GL516HE"
},
{
"SchoolName": "Cheltenham Ladies' College",
"Postcode": "GL503EP"
},
{
"SchoolName": "Airthrie School With Hillfield Dyslexia Trust",
"Postcode": "GL502NY"
},
{
"SchoolName": "Berkhampstead School",
"Postcode": "GL522QA"
},
{
"SchoolName": "The Richard Pate School",
"Postcode": "GL539RP"
},
{
"SchoolName": "Cotswold Chine School",
"Postcode": "GL69AG"
},
{
"SchoolName": "Dormer House School",
"Postcode": "GL560AD"
},
{
"SchoolName": "Hopelands Preparatory School",
"Postcode": "GL102AD"
},
{
"SchoolName": "The Acorn School",
"Postcode": "GL60BP"
},
{
"SchoolName": "The Marlowe School",
"Postcode": "GL193BG"
},
{
"SchoolName": "Al-Ashraf Secondary School for Girls",
"Postcode": "GL14AW"
},
{
"SchoolName": "Coln House School",
"Postcode": "GL74DB"
},
{
"SchoolName": "St Rose's Special School",
"Postcode": "GL54AP"
},
{
"SchoolName": "Bettridge School",
"Postcode": "GL513AT"
},
{
"SchoolName": "The Shrubberies School",
"Postcode": "GL102DG"
},
{
"SchoolName": "Paternoster School",
"Postcode": "GL71JR"
},
{
"SchoolName": "Alderman Knight School",
"Postcode": "GL208JJ"
},
{
"SchoolName": "Battledown Centre for Children and Families",
"Postcode": "GL526PZ"
},
{
"SchoolName": "The Brambles Nursery School and Children's Centre",
"Postcode": "PO40DT"
},
{
"SchoolName": "Haven Early Years Centre",
"Postcode": "PO130UY"
},
{
"SchoolName": "Hardmoor Early Years Centre",
"Postcode": "SO163EP"
},
{
"SchoolName": "The Linden Education Centre",
"Postcode": "GU146JU"
},
{
"SchoolName": "Andover Education Centre",
"Postcode": "SP116JP"
},
{
"SchoolName": "The Bridge Education Centre",
"Postcode": "SO509DB"
},
{
"SchoolName": "Woodlands Education Centre",
"Postcode": "PO94AJ"
},
{
"SchoolName": "Greenwood School",
"Postcode": "SO455UG"
},
{
"SchoolName": "Alton Infant School",
"Postcode": "GU341DH"
},
{
"SchoolName": "Anstey Junior School",
"Postcode": "GU342DR"
},
{
"SchoolName": "Balksbury Junior School",
"Postcode": "SP103QP"
},
{
"SchoolName": "Portway Junior School",
"Postcode": "SP103NA"
},
{
"SchoolName": "Anton Junior School",
"Postcode": "SP102HA"
},
{
"SchoolName": "Ashley Infant School",
"Postcode": "BH255AA"
},
{
"SchoolName": "Awbridge Primary School",
"Postcode": "SO510HL"
},
{
"SchoolName": "Portway Infant School",
"Postcode": "SP103PE"
},
{
"SchoolName": "Winklebury Junior School",
"Postcode": "RG238AF"
},
{
"SchoolName": "Oakridge Infant School",
"Postcode": "RG215RR"
},
{
"SchoolName": "South View Junior School",
"Postcode": "RG215LL"
},
{
"SchoolName": "Beaulieu Village Primary School",
"Postcode": "SO427YD"
},
{
"SchoolName": "Stoke Park Infant School",
"Postcode": "SO508NZ"
},
{
"SchoolName": "Bishops Waltham Infant School",
"Postcode": "SO321EP"
},
{
"SchoolName": "Bordon Junior School",
"Postcode": "GU350JB"
},
{
"SchoolName": "Bordon Infant School",
"Postcode": "GU350JB"
},
{
"SchoolName": "Braishfield Primary School",
"Postcode": "SO510QF"
},
{
"SchoolName": "Broughton Primary School",
"Postcode": "SO208AN"
},
{
"SchoolName": "Burghclere Primary School",
"Postcode": "RG209HT"
},
{
"SchoolName": "Buriton Primary School",
"Postcode": "GU315RX"
},
{
"SchoolName": "Burley Primary School",
"Postcode": "BH244AP"
},
{
"SchoolName": "Stoke Park Junior School",
"Postcode": "SO506GR"
},
{
"SchoolName": "Chandler's Ford Infant School",
"Postcode": "SO532EY"
},
{
"SchoolName": "Merdon Junior School",
"Postcode": "SO531EJ"
},
{
"SchoolName": "Cheriton Primary School",
"Postcode": "SO240QA"
},
{
"SchoolName": "North Baddesley Infant School",
"Postcode": "SO529EE"
},
{
"SchoolName": "Clanfield Junior School",
"Postcode": "PO80RE"
},
{
"SchoolName": "Cliddesden Primary School",
"Postcode": "RG252QU"
},
{
"SchoolName": "Crondall Primary School",
"Postcode": "GU105QG"
},
{
"SchoolName": "Curdridge Primary School",
"Postcode": "SO322DR"
},
{
"SchoolName": "Crofton Anne Dale Junior School",
"Postcode": "PO143PH"
},
{
"SchoolName": "Droxford Junior School",
"Postcode": "SO323QR"
},
{
"SchoolName": "Denmead Infant School",
"Postcode": "PO76PN"
},
{
"SchoolName": "Wildground Junior School",
"Postcode": "SO454LG"
},
{
"SchoolName": "Fryern Junior School",
"Postcode": "SO532LN"
},
{
"SchoolName": "Wildground Infant School",
"Postcode": "SO454JX"
},
{
"SchoolName": "The Crescent Primary School",
"Postcode": "SO509DH"
},
{
"SchoolName": "Cherbourg Primary School",
"Postcode": "SO505QF"
},
{
"SchoolName": "Shakespeare Infant School",
"Postcode": "SO504FZ"
},
{
"SchoolName": "Wallisdean Junior School",
"Postcode": "PO141HU"
},
{
"SchoolName": "Uplands Primary School",
"Postcode": "PO167QP"
},
{
"SchoolName": "Fair Oak Infant School",
"Postcode": "SO507AN"
},
{
"SchoolName": "Redlands Primary School",
"Postcode": "PO160UD"
},
{
"SchoolName": "Wallisdean Infant School",
"Postcode": "PO141HT"
},
{
"SchoolName": "Grateley Primary School",
"Postcode": "SP118JS"
},
{
"SchoolName": "Greatham Primary School",
"Postcode": "GU336HA"
},
{
"SchoolName": "Waterside Primary School",
"Postcode": "SO456ET"
},
{
"SchoolName": "Hale Primary School",
"Postcode": "SP62NE"
},
{
"SchoolName": "Hamble Primary School",
"Postcode": "SO314ND"
},
{
"SchoolName": "Hambledon Primary School",
"Postcode": "PO74RT"
},
{
"SchoolName": "Oakwood Infant School",
"Postcode": "RG278DY"
},
{
"SchoolName": "Fairfield Infant School",
"Postcode": "PO91AY"
},
{
"SchoolName": "Riders Junior School",
"Postcode": "PO94RY"
},
{
"SchoolName": "Riders Infant School",
"Postcode": "PO94RY"
},
{
"SchoolName": "Trosnant Junior School and BESD Unit",
"Postcode": "PO93BD"
},
{
"SchoolName": "Trosnant Infant School",
"Postcode": "PO93BD"
},
{
"SchoolName": "Hawley Primary School",
"Postcode": "GU179BH"
},
{
"SchoolName": "Mill Rythe Junior School",
"Postcode": "PO110PA"
},
{
"SchoolName": "Tiptoe Primary School",
"Postcode": "SO416FU"
},
{
"SchoolName": "Hythe Primary School",
"Postcode": "SO456BL"
},
{
"SchoolName": "Freegrounds Infant School",
"Postcode": "SO300GG"
},
{
"SchoolName": "Bosmere Junior School",
"Postcode": "PO91DA"
},
{
"SchoolName": "Itchen Abbas Primary School",
"Postcode": "SO211BE"
},
{
"SchoolName": "Ashford Hill Primary School",
"Postcode": "RG198BB"
},
{
"SchoolName": "Kings Worthy Primary School",
"Postcode": "SO237QS"
},
{
"SchoolName": "Langrish Primary School",
"Postcode": "GU323PJ"
},
{
"SchoolName": "Liss Junior School",
"Postcode": "GU337LQ"
},
{
"SchoolName": "Locks Heath Junior School",
"Postcode": "SO319NZ"
},
{
"SchoolName": "New Milton Infant School",
"Postcode": "BH256PZ"
},
{
"SchoolName": "New Milton Junior School",
"Postcode": "BH256DS"
},
{
"SchoolName": "Sun Hill Junior School",
"Postcode": "SO249NB"
},
{
"SchoolName": "Newtown Soberton Infant School",
"Postcode": "PO176LJ"
},
{
"SchoolName": "North Waltham Primary School",
"Postcode": "RG252BL"
},
{
"SchoolName": "Buryfields Infant School",
"Postcode": "RG291NE"
},
{
"SchoolName": "Owslebury Primary School",
"Postcode": "SO211LS"
},
{
"SchoolName": "Northern Junior Community School",
"Postcode": "PO168DG"
},
{
"SchoolName": "Petersfield Infant School",
"Postcode": "GU323HX"
},
{
"SchoolName": "Purbrook Infant School",
"Postcode": "PO75NQ"
},
{
"SchoolName": "Wicor Primary School",
"Postcode": "PO169DL"
},
{
"SchoolName": "Springwood Infant School",
"Postcode": "PO78ED"
},
{
"SchoolName": "Herne Junior School",
"Postcode": "GU314BP"
},
{
"SchoolName": "Ringwood Junior School",
"Postcode": "BH241NH"
},
{
"SchoolName": "Cupernham Junior School",
"Postcode": "SO517JT"
},
{
"SchoolName": "St Mary Bourne Primary School",
"Postcode": "SP116AU"
},
{
"SchoolName": "Sheet Primary School",
"Postcode": "GU322AS"
},
{
"SchoolName": "Shipton Bellinger Primary School",
"Postcode": "SP97TW"
},
{
"SchoolName": "Sopley Primary School",
"Postcode": "BH238ET"
},
{
"SchoolName": "Stockbridge Primary School",
"Postcode": "SO206EJ"
},
{
"SchoolName": "Tadley Community Primary School",
"Postcode": "RG263PB"
},
{
"SchoolName": "Titchfield Primary School",
"Postcode": "PO144AU"
},
{
"SchoolName": "Lydlynch Infant School",
"Postcode": "SO403DW"
},
{
"SchoolName": "Eling Infant School and Nursery",
"Postcode": "SO409HX"
},
{
"SchoolName": "Foxhills Junior School",
"Postcode": "SO407ED"
},
{
"SchoolName": "Wallop Primary School",
"Postcode": "SO208EH"
},
{
"SchoolName": "Wellow School",
"Postcode": "SO516BG"
},
{
"SchoolName": "Wherwell Primary School",
"Postcode": "SP117JP"
},
{
"SchoolName": "Stanmore Primary School",
"Postcode": "SO224AJ"
},
{
"SchoolName": "Winnall Primary School",
"Postcode": "SO230NY"
},
{
"SchoolName": "Padnell Junior School",
"Postcode": "PO88EA"
},
{
"SchoolName": "Padnell Infant School",
"Postcode": "PO88DS"
},
{
"SchoolName": "Hart Plain Infant School",
"Postcode": "PO88RZ"
},
{
"SchoolName": "Crofton Anne Dale Infant School",
"Postcode": "PO143PH"
},
{
"SchoolName": "Fryern Infant School",
"Postcode": "SO532LN"
},
{
"SchoolName": "Vigo Primary School",
"Postcode": "SP101JZ"
},
{
"SchoolName": "Winklebury Infant School",
"Postcode": "RG238AF"
},
{
"SchoolName": "Shamblehurst Primary School",
"Postcode": "SO304EJ"
},
{
"SchoolName": "Anton Infant School",
"Postcode": "SP102HF"
},
{
"SchoolName": "Oakridge Junior School",
"Postcode": "RG215RR"
},
{
"SchoolName": "South View Infant and Nursery School",
"Postcode": "RG215LL"
},
{
"SchoolName": "Church Crookham Junior School",
"Postcode": "GU528BN"
},
{
"SchoolName": "Orchard Infant School",
"Postcode": "SO454SB"
},
{
"SchoolName": "Hiltingbury Infant School",
"Postcode": "SO535NP"
},
{
"SchoolName": "Frogmore Infant School",
"Postcode": "GU170NY"
},
{
"SchoolName": "Horndean Infant School",
"Postcode": "PO89LS"
},
{
"SchoolName": "Pennington Infant School",
"Postcode": "SO418HX"
},
{
"SchoolName": "Westfields Junior School",
"Postcode": "GU466NN"
},
{
"SchoolName": "Wootey Infant School",
"Postcode": "GU342JA"
},
{
"SchoolName": "Mengham Infant School",
"Postcode": "PO119DD"
},
{
"SchoolName": "Orchard Junior School",
"Postcode": "SO454SB"
},
{
"SchoolName": "Locks Heath Infant School",
"Postcode": "SO319NZ"
},
{
"SchoolName": "Harrison Primary School",
"Postcode": "PO167EQ"
},
{
"SchoolName": "Warren Park Primary School",
"Postcode": "PO94LR"
},
{
"SchoolName": "Sun Hill Infant School",
"Postcode": "SO249NB"
},
{
"SchoolName": "Oakfield Primary School",
"Postcode": "SO403LN"
},
{
"SchoolName": "Westfields Infant School",
"Postcode": "GU466NN"
},
{
"SchoolName": "Fair Oak Junior School",
"Postcode": "SO507AN"
},
{
"SchoolName": "North Baddesley Junior School",
"Postcode": "SO529EP"
},
{
"SchoolName": "Poulner Junior School",
"Postcode": "BH243LA"
},
{
"SchoolName": "Freegrounds Junior School",
"Postcode": "SO300GG"
},
{
"SchoolName": "Merton Junior School",
"Postcode": "RG249HB"
},
{
"SchoolName": "Heatherside Infant School",
"Postcode": "GU527TH"
},
{
"SchoolName": "Fleet Infant School",
"Postcode": "GU527LQ"
},
{
"SchoolName": "Merton Infant School",
"Postcode": "RG249HB"
},
{
"SchoolName": "Castle Hill Primary School",
"Postcode": "RG238BN"
},
{
"SchoolName": "Bishop's Waltham Junior School",
"Postcode": "SO321EP"
},
{
"SchoolName": "Hiltingbury Junior School",
"Postcode": "SO535NP"
},
{
"SchoolName": "Crofton Hammond Infant School",
"Postcode": "PO142DE"
},
{
"SchoolName": "Heatherside Junior School",
"Postcode": "GU527TH"
},
{
"SchoolName": "Sarisbury Infant School",
"Postcode": "SO317BJ"
},
{
"SchoolName": "Bishopswood Junior School",
"Postcode": "RG263NA"
},
{
"SchoolName": "Knight's Enham Junior School",
"Postcode": "SP104BS"
},
{
"SchoolName": "Manor Field Junior School",
"Postcode": "RG224DH"
},
{
"SchoolName": "Kempshott Junior School",
"Postcode": "RG225LL"
},
{
"SchoolName": "Marnel Junior School",
"Postcode": "RG249PT"
},
{
"SchoolName": "Weyford Junior School",
"Postcode": "GU350ET"
},
{
"SchoolName": "Ranvilles Junior School",
"Postcode": "PO143BN"
},
{
"SchoolName": "Tweseldown Infant School",
"Postcode": "GU528LL"
},
{
"SchoolName": "Liss Infant School",
"Postcode": "GU337LQ"
},
{
"SchoolName": "Purbrook Junior School",
"Postcode": "PO75NQ"
},
{
"SchoolName": "Marnel Community Infant School",
"Postcode": "RG249PT"
},
{
"SchoolName": "Foxhills Infant School",
"Postcode": "SO407ED"
},
{
"SchoolName": "The Butts Primary School",
"Postcode": "GU341PW"
},
{
"SchoolName": "Knights Enham Nursery and Infant School",
"Postcode": "SP104BS"
},
{
"SchoolName": "Bursledon Junior School(CA)",
"Postcode": "SO318BZ"
},
{
"SchoolName": "Ranvilles Infant School",
"Postcode": "PO143BN"
},
{
"SchoolName": "Northern Infant School",
"Postcode": "PO168DG"
},
{
"SchoolName": "Poulner Infant School",
"Postcode": "BH243LA"
},
{
"SchoolName": "Halterworth Community Primary School",
"Postcode": "SO519AD"
},
{
"SchoolName": "Park Gate Primary School",
"Postcode": "SO316LX"
},
{
"SchoolName": "South Wonston Primary School",
"Postcode": "SO213EH"
},
{
"SchoolName": "Bishopswood Infant School",
"Postcode": "RG263NA"
},
{
"SchoolName": "Kempshott Infant School",
"Postcode": "RG225LL"
},
{
"SchoolName": "Wootey Junior School",
"Postcode": "GU342JA"
},
{
"SchoolName": "Roman Way Primary School",
"Postcode": "SP105JY"
},
{
"SchoolName": "Old Basing Infant School",
"Postcode": "RG247DL"
},
{
"SchoolName": "Rucstall Primary School",
"Postcode": "RG213EX"
},
{
"SchoolName": "Castle Hill Infant School",
"Postcode": "RG238BN"
},
{
"SchoolName": "Scantabout Primary School",
"Postcode": "SO532NR"
},
{
"SchoolName": "Denmead Junior School",
"Postcode": "PO76PH"
},
{
"SchoolName": "Tavistock Infant School",
"Postcode": "GU514EB"
},
{
"SchoolName": "Hook Junior School",
"Postcode": "RG279NR"
},
{
"SchoolName": "Olivers Battery Primary School",
"Postcode": "SO224HP"
},
{
"SchoolName": "Oakley Infant School",
"Postcode": "RG237JZ"
},
{
"SchoolName": "Cupernham Infant School",
"Postcode": "SO517JT"
},
{
"SchoolName": "Calmore Infant School",
"Postcode": "SO402ZZ"
},
{
"SchoolName": "Lymington Junior School",
"Postcode": "SO419GP"
},
{
"SchoolName": "Mengham Junior School",
"Postcode": "PO119ET"
},
{
"SchoolName": "Bidbury Junior School",
"Postcode": "PO93EF"
},
{
"SchoolName": "Velmead Junior School",
"Postcode": "GU527LG"
},
{
"SchoolName": "Manor Field Infant School",
"Postcode": "RG224DH"
},
{
"SchoolName": "Liphook Infant School",
"Postcode": "GU307QE"
},
{
"SchoolName": "Chalk Ridge Primary School",
"Postcode": "RG224ER"
},
{
"SchoolName": "Crofton Hammond Junior School",
"Postcode": "PO142DE"
},
{
"SchoolName": "Potley Hill Primary School",
"Postcode": "GU466AG"
},
{
"SchoolName": "Kings Copse Primary School",
"Postcode": "SO300PQ"
},
{
"SchoolName": "Netley Abbey Junior School",
"Postcode": "SO315EL"
},
{
"SchoolName": "Balksbury Infant School",
"Postcode": "SP103QP"
},
{
"SchoolName": "Petersgate Infant School",
"Postcode": "PO80JU"
},
{
"SchoolName": "Springwood Junior School",
"Postcode": "PO78ED"
},
{
"SchoolName": "Fordingbridge Junior School",
"Postcode": "SP61HJ"
},
{
"SchoolName": "Fordingbridge Infant School",
"Postcode": "SP61HJ"
},
{
"SchoolName": "Netley Abbey Infant School",
"Postcode": "SO315EL"
},
{
"SchoolName": "Greenfields Junior School",
"Postcode": "RG278DQ"
},
{
"SchoolName": "Shakespeare Junior School",
"Postcode": "SO504JT"
},
{
"SchoolName": "Marchwood Junior School",
"Postcode": "SO404ZH"
},
{
"SchoolName": "Colden Common Primary School",
"Postcode": "SO506HW"
},
{
"SchoolName": "Mayhill Junior School",
"Postcode": "RG291NB"
},
{
"SchoolName": "Woolton Hill Junior School",
"Postcode": "RG209XE"
},
{
"SchoolName": "Norwood Primary School",
"Postcode": "SO505JL"
},
{
"SchoolName": "Red Barn Community Primary School",
"Postcode": "PO168HJ"
},
{
"SchoolName": "Newlands Primary School",
"Postcode": "GU466EY"
},
{
"SchoolName": "Four Lanes Infant School",
"Postcode": "RG248PQ"
},
{
"SchoolName": "Castle Primary School",
"Postcode": "PO169QQ"
},
{
"SchoolName": "Bidbury Infant School",
"Postcode": "PO93EF"
},
{
"SchoolName": "Bevois Town Primary School",
"Postcode": "SO146RU"
},
{
"SchoolName": "Bitterne Manor Primary School",
"Postcode": "SO181DP"
},
{
"SchoolName": "Bitterne Park Primary School",
"Postcode": "SO181NX"
},
{
"SchoolName": "Mount Pleasant Junior School",
"Postcode": "SO140WZ"
},
{
"SchoolName": "Maytree Nursery and Infants' School",
"Postcode": "SO140DY"
},
{
"SchoolName": "St Denys Primary School",
"Postcode": "SO172ND"
},
{
"SchoolName": "St John's Primary and Nursery School",
"Postcode": "SO142AU"
},
{
"SchoolName": "St Monica Primary School",
"Postcode": "SO198EZ"
},
{
"SchoolName": "Sholing Junior School",
"Postcode": "SO198PT"
},
{
"SchoolName": "Sholing Infant School",
"Postcode": "SO192QF"
},
{
"SchoolName": "Swaythling Primary School",
"Postcode": "SO173SZ"
},
{
"SchoolName": "Woolston Infant School",
"Postcode": "SO199DB"
},
{
"SchoolName": "Weston Park Primary School",
"Postcode": "SO199HX"
},
{
"SchoolName": "Banister Primary School",
"Postcode": "SO152LS"
},
{
"SchoolName": "Mansbridge Primary School",
"Postcode": "SO182LX"
},
{
"SchoolName": "Redbridge Primary School",
"Postcode": "SO169BB"
},
{
"SchoolName": "Moorlands Primary School",
"Postcode": "SO185RJ"
},
{
"SchoolName": "Weston Shore Infant School",
"Postcode": "SO199JQ"
},
{
"SchoolName": "Townhill Junior School",
"Postcode": "SO182NX"
},
{
"SchoolName": "Hatch Warren Infant School",
"Postcode": "RG224PQ"
},
{
"SchoolName": "Oakwood Primary School",
"Postcode": "SO168FD"
},
{
"SchoolName": "Cove Junior School",
"Postcode": "GU149SA"
},
{
"SchoolName": "Cove Infant School",
"Postcode": "GU149DP"
},
{
"SchoolName": "Tower Hill Primary School",
"Postcode": "GU140BW"
},
{
"SchoolName": "Marlborough Infant School",
"Postcode": "GU112HR"
},
{
"SchoolName": "South Farnborough Infant School",
"Postcode": "GU146JU"
},
{
"SchoolName": "North Farnborough Infant School",
"Postcode": "GU148AJ"
},
{
"SchoolName": "Manor Junior School",
"Postcode": "GU149DX"
},
{
"SchoolName": "Grange Community Junior School",
"Postcode": "GU148TA"
},
{
"SchoolName": "Farnborough Grange Nursery/Infant Community School",
"Postcode": "GU148HW"
},
{
"SchoolName": "Talavera Junior School",
"Postcode": "GU111RG"
},
{
"SchoolName": "Manor Infant School",
"Postcode": "GU149DX"
},
{
"SchoolName": "Talavera Infant School",
"Postcode": "GU111RG"
},
{
"SchoolName": "Parsonage Farm Nursery and Infant School",
"Postcode": "GU149TT"
},
{
"SchoolName": "South Farnborough Junior School",
"Postcode": "GU146PL"
},
{
"SchoolName": "Guillemont Junior School",
"Postcode": "GU149ES"
},
{
"SchoolName": "Pinewood Infant School",
"Postcode": "GU149LE"
},
{
"SchoolName": "Elson Junior School",
"Postcode": "PO124EX"
},
{
"SchoolName": "Elson Infant School",
"Postcode": "PO124EU"
},
{
"SchoolName": "Lee-on-the-Solent Junior School",
"Postcode": "PO139DL"
},
{
"SchoolName": "Haselworth Primary School",
"Postcode": "PO121SQ"
},
{
"SchoolName": "Woodcot Primary School",
"Postcode": "PO130SG"
},
{
"SchoolName": "Rowner Junior School",
"Postcode": "PO130BN"
},
{
"SchoolName": "Rowner Infant School",
"Postcode": "PO130DH"
},
{
"SchoolName": "Alverstoke Community Infant School",
"Postcode": "PO122LH"
},
{
"SchoolName": "Grange Junior School",
"Postcode": "PO139TS"
},
{
"SchoolName": "Grange Infant School",
"Postcode": "PO139TS"
},
{
"SchoolName": "Siskin Junior School",
"Postcode": "PO138AA"
},
{
"SchoolName": "Peel Common Infant School and Nursery Unit",
"Postcode": "PO130QD"
},
{
"SchoolName": "Siskin Infant and Nursery School",
"Postcode": "PO138AA"
},
{
"SchoolName": "Peel Common Junior School",
"Postcode": "PO130QD"
},
{
"SchoolName": "Gomer Infant School",
"Postcode": "PO122RP"
},
{
"SchoolName": "Brockhurst Primary School",
"Postcode": "PO124SL"
},
{
"SchoolName": "Lee-on-the-Solent Infant School",
"Postcode": "PO139DY"
},
{
"SchoolName": "Goldsmith Infant School",
"Postcode": "PO40DT"
},
{
"SchoolName": "Meredith Infant School",
"Postcode": "PO27JB"
},
{
"SchoolName": "Devonshire Infant School",
"Postcode": "PO40AG"
},
{
"SchoolName": "College Park Infant School",
"Postcode": "PO20LB"
},
{
"SchoolName": "Meon Infant School",
"Postcode": "PO48NT"
},
{
"SchoolName": "Northern Parade Junior School",
"Postcode": "PO29NE"
},
{
"SchoolName": "Northern Parade Infant School",
"Postcode": "PO29NJ"
},
{
"SchoolName": "Cumberland Infant School",
"Postcode": "PO49HJ"
},
{
"SchoolName": "Medina Primary School",
"Postcode": "PO63NH"
},
{
"SchoolName": "Southsea Infant School",
"Postcode": "PO52SR"
},
{
"SchoolName": "Cottage Grove Primary School",
"Postcode": "PO51HG"
},
{
"SchoolName": "Langstone Infant School",
"Postcode": "PO36HL"
},
{
"SchoolName": "Penhale Infant School & Nursery",
"Postcode": "PO15BG"
},
{
"SchoolName": "Stamshaw Infant School",
"Postcode": "PO28NW"
},
{
"SchoolName": "Wimborne Infant School",
"Postcode": "PO48DE"
},
{
"SchoolName": "Langstone Junior School",
"Postcode": "PO36EZ"
},
{
"SchoolName": "Wimborne Junior School",
"Postcode": "PO48DE"
},
{
"SchoolName": "Moorings Way Infant School",
"Postcode": "PO48YJ"
},
{
"SchoolName": "Fernhurst Junior School",
"Postcode": "PO40AG"
},
{
"SchoolName": "Meon Junior School",
"Postcode": "PO48NT"
},
{
"SchoolName": "Craneswater Junior School",
"Postcode": "PO40PX"
},
{
"SchoolName": "Orchard Lea Infant School",
"Postcode": "PO156BJ"
},
{
"SchoolName": "Orchard Lea Junior School",
"Postcode": "PO156BJ"
},
{
"SchoolName": "Manor Infant School",
"Postcode": "PO15QR"
},
{
"SchoolName": "Hook Infant School",
"Postcode": "RG279NR"
},
{
"SchoolName": "King's Furlong Infant School and Nursery",
"Postcode": "RG218YJ"
},
{
"SchoolName": "Kings Furlong Junior School",
"Postcode": "RG218YJ"
},
{
"SchoolName": "Fairfields Primary School",
"Postcode": "RG213DH"
},
{
"SchoolName": "Park Primary School",
"Postcode": "GU113SL"
},
{
"SchoolName": "Belle Vue Infant School",
"Postcode": "GU124RZ"
},
{
"SchoolName": "Park View Infant School",
"Postcode": "RG226RT"
},
{
"SchoolName": "Park View Junior School",
"Postcode": "RG226RT"
},
{
"SchoolName": "Fernhill Primary School",
"Postcode": "GU149FX"
},
{
"SchoolName": "Harestock Primary School",
"Postcode": "SO226LU"
},
{
"SchoolName": "Weeke Primary School",
"Postcode": "SO226DR"
},
{
"SchoolName": "Hazel Wood Infant School",
"Postcode": "SO408WU"
},
{
"SchoolName": "Hart Plain Junior School",
"Postcode": "PO88SA"
},
{
"SchoolName": "Southwood Infant School",
"Postcode": "GU140NE"
},
{
"SchoolName": "Four Lanes Community Junior School",
"Postcode": "RG248PQ"
},
{
"SchoolName": "Queen's Inclosure Primary School",
"Postcode": "PO78NT"
},
{
"SchoolName": "Berrywood Primary School",
"Postcode": "SO302TL"
},
{
"SchoolName": "Woodlea Primary School",
"Postcode": "GU359QX"
},
{
"SchoolName": "Fairisle Infant and Nursery School",
"Postcode": "SO168BY"
},
{
"SchoolName": "Fairisle Junior School",
"Postcode": "SO168BY"
},
{
"SchoolName": "Hatch Warren Junior School",
"Postcode": "RG224PQ"
},
{
"SchoolName": "Nightingale Primary School",
"Postcode": "SO509JW"
},
{
"SchoolName": "Portsdown Primary School",
"Postcode": "PO63JL"
},
{
"SchoolName": "Emsworth Primary School",
"Postcode": "PO107LX"
},
{
"SchoolName": "Foundry Lane Primary School",
"Postcode": "SO153JT"
},
{
"SchoolName": "Shirley Warren Learning Campus Primary & Nursery School",
"Postcode": "SO166AY"
},
{
"SchoolName": "Mason Moor Primary School",
"Postcode": "SO164AS"
},
{
"SchoolName": "Morelands Primary School",
"Postcode": "PO75QL"
},
{
"SchoolName": "Abbotts Ann Church of England Primary School",
"Postcode": "SP117FE"
},
{
"SchoolName": "Saint Lawrence Church of England Primary School",
"Postcode": "GU342BY"
},
{
"SchoolName": "Ampfield Church of England Primary School",
"Postcode": "SO519BT"
},
{
"SchoolName": "Andover Church of England Primary School",
"Postcode": "SP101EP"
},
{
"SchoolName": "Barton Stacey Church of England Primary School",
"Postcode": "SO213RY"
},
{
"SchoolName": "Binsted Church of England Primary School",
"Postcode": "GU344NX"
},
{
"SchoolName": "Botley Church of England Controlled Primary School",
"Postcode": "SO302EA"
},
{
"SchoolName": "Breamore Church of England Primary School",
"Postcode": "SP62EF"
},
{
"SchoolName": "Brockenhurst Church of England Primary School",
"Postcode": "SO427RX"
},
{
"SchoolName": "Bursledon Church of England Infant School",
"Postcode": "SO318BZ"
},
{
"SchoolName": "Bramley Church of England Primary School",
"Postcode": "RG265AH"
},
{
"SchoolName": "Bentley Church of England Primary School",
"Postcode": "GU105JP"
},
{
"SchoolName": "Catherington Church of England Infant School",
"Postcode": "PO80TD"
},
{
"SchoolName": "Chawton Church of England Primary School",
"Postcode": "GU341SG"
},
{
"SchoolName": "Copythorne CofE Infant School",
"Postcode": "SO402PB"
},
{
"SchoolName": "Durley Church of England Controlled Primary School",
"Postcode": "SO322AR"
},
{
"SchoolName": "East Meon Church of England Controlled Primary School",
"Postcode": "GU321NR"
},
{
"SchoolName": "Ecchinswell and Sydmonton Church of England Primary School",
"Postcode": "RG204UA"
},
{
"SchoolName": "St James Church of England Controlled Primary School",
"Postcode": "PO107PX"
},
{
"SchoolName": "Four Marks Church of England Primary School",
"Postcode": "GU345AS"
},
{
"SchoolName": "Froxfield Church of England Primary School",
"Postcode": "GU321EG"
},
{
"SchoolName": "Grayshott Church of England Controlled Primary School",
"Postcode": "GU266LR"
},
{
"SchoolName": "Horndean Church of England Junior School",
"Postcode": "PO89NW"
},
{
"SchoolName": "Hurstbourne Tarrant Church of England Primary School",
"Postcode": "SP110AX"
},
{
"SchoolName": "Hyde Church of England Primary School",
"Postcode": "SP62QL"
},
{
"SchoolName": "Kingsclere Church of England Primary School",
"Postcode": "RG205RE"
},
{
"SchoolName": "King's Somborne Church of England Primary School",
"Postcode": "SO206PN"
},
{
"SchoolName": "St John the Baptist Church of England Primary School",
"Postcode": "PO144NH"
},
{
"SchoolName": "Long Sutton Church of England Primary School",
"Postcode": "RG291ST"
},
{
"SchoolName": "Marchwood Church of England Infant School",
"Postcode": "SO404ZE"
},
{
"SchoolName": "Medstead Church of England Primary School",
"Postcode": "GU345LG"
},
{
"SchoolName": "Meonstoke Church of England Infant School",
"Postcode": "SO323NJ"
},
{
"SchoolName": "Netley Marsh Church of England Infant School",
"Postcode": "SO407GY"
},
{
"SchoolName": "Nursling Church of England Primary School",
"Postcode": "SO160XH"
},
{
"SchoolName": "Otterbourne Church of England Primary School",
"Postcode": "SO212EQ"
},
{
"SchoolName": "Overton Church of England Primary School",
"Postcode": "RG253ES"
},
{
"SchoolName": "Oakley Church of England Junior School",
"Postcode": "RG237JZ"
},
{
"SchoolName": "Pennington Church of England Junior School",
"Postcode": "SO418HX"
},
{
"SchoolName": "Preston Candover Church of England Primary School",
"Postcode": "RG252EE"
},
{
"SchoolName": "Ringwood Church of England Infant School",
"Postcode": "BH241LG"
},
{
"SchoolName": "Rowlands Castle St John's Church of England Controlled Primary School",
"Postcode": "PO96BB"
},
{
"SchoolName": "Rownhams St John's Church of England Primary School",
"Postcode": "SO168AD"
},
{
"SchoolName": "Ropley Church of England Primary School",
"Postcode": "SO240DS"
},
{
"SchoolName": "Sarisbury Church of England Junior School",
"Postcode": "SO317AP"
},
{
"SchoolName": "St John the Baptist Church of England Controlled Primary School",
"Postcode": "SO322LY"
},
{
"SchoolName": "Sherborne St John Church of England Primary School",
"Postcode": "RG249HT"
},
{
"SchoolName": "South Baddesley Church of England Primary School",
"Postcode": "SO415RP"
},
{
"SchoolName": "Sparsholt Church of England Primary School",
"Postcode": "SO212NR"
},
{
"SchoolName": "St Luke's Church of England Primary School",
"Postcode": "SO416AE"
},
{
"SchoolName": "Steep Church of England Voluntary Controlled Primary School",
"Postcode": "GU322DE"
},
{
"SchoolName": "Twyford St Mary's Church of England Primary School",
"Postcode": "SO211QQ"
},
{
"SchoolName": "<NAME>'s Church of England Primary School",
"Postcode": "SP110JY"
},
{
"SchoolName": "West Meon Church of England Voluntary Controlled Primary School",
"Postcode": "GU321LF"
},
{
"SchoolName": "West Tytherley Church of England Primary School",
"Postcode": "SP51JX"
},
{
"SchoolName": "Whitchurch Church of England Primary School",
"Postcode": "RG287LS"
},
{
"SchoolName": "Wickham Church of England Primary School",
"Postcode": "PO175HU"
},
{
"SchoolName": "All Saints Church of England Primary School",
"Postcode": "SO230PS"
},
{
"SchoolName": "Western Church of England Primary School",
"Postcode": "SO225AR"
},
{
"SchoolName": "St Thomas' Church of England Infant School, Woolton Hill",
"Postcode": "RG209XF"
},
{
"SchoolName": "St Bede Church of England Primary School",
"Postcode": "SO237DD"
},
{
"SchoolName": "Liphook Church of England Controlled Junior School",
"Postcode": "GU307QE"
},
{
"SchoolName": "Saint James' Church of England Primary School",
"Postcode": "SO303EG"
},
{
"SchoolName": "St Michael's Church of England Controlled Infant School",
"Postcode": "GU113PU"
},
{
"SchoolName": "St Michael's Church of England Controlled Junior School",
"Postcode": "GU113SS"
},
{
"SchoolName": "Leesland Church of England Controlled Junior School",
"Postcode": "PO123QF"
},
{
"SchoolName": "Leesland Church of England Controlled Infant School",
"Postcode": "PO123NL"
},
{
"SchoolName": "Newtown Church of England Voluntary Controlled Primary School",
"Postcode": "PO121JD"
},
{
"SchoolName": "Rowledge Church of England Controlled Primary School",
"Postcode": "GU104BW"
},
{
"SchoolName": "Bartley Church of England Junior School",
"Postcode": "SO402HR"
},
{
"SchoolName": "Bitterne CE Primary School",
"Postcode": "SO197BX"
},
{
"SchoolName": "St Mark's Church of England Voluntary Controlled Primary School",
"Postcode": "SO155TE"
},
{
"SchoolName": "St Mary's Church of England Voluntary Controlled Primary School",
"Postcode": "SO141LU"
},
{
"SchoolName": "St Jude's CofE Primary School",
"Postcode": "PO12NZ"
},
{
"SchoolName": "Whitewater Church of England Primary School",
"Postcode": "RG279BG"
},
{
"SchoolName": "St George's Beneficial Church of England (Voluntary Controlled) Primary School",
"Postcode": "PO13BN"
},
{
"SchoolName": "Amport Church of England Primary School",
"Postcode": "SP118BA"
},
{
"SchoolName": "Appleshaw St Peter's CofE Primary School",
"Postcode": "SP119HR"
},
{
"SchoolName": "St Mary's Church of England Voluntary Aided Junior School",
"Postcode": "RG247DE"
},
{
"SchoolName": "St Mary's Bentworth Church of England Primary School",
"Postcode": "GU345RE"
},
{
"SchoolName": "St Matthew's Church of England Aided Primary School",
"Postcode": "GU336BN"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "SO415QG"
},
{
"SchoolName": "Compton All Saints Church of England Primary School",
"Postcode": "SO212AS"
},
{
"SchoolName": "Dogmersfield Church of England Primary School",
"Postcode": "RG278SS"
},
{
"SchoolName": "St Martin's East Woodhay Church of England Voluntary Aided Primary School",
"Postcode": "RG200AF"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "RG270LX"
},
{
"SchoolName": "All Saints Church of England Aided Junior School",
"Postcode": "GU515AJ"
},
{
"SchoolName": "Hatherden Church of England Primary School",
"Postcode": "SP110HT"
},
{
"SchoolName": "Andrews' Endowed Church of England Primary School",
"Postcode": "GU344EL"
},
{
"SchoolName": "John Keble Church of England Primary School",
"Postcode": "SO212LA"
},
{
"SchoolName": "St Alban's Church of England Aided Primary School",
"Postcode": "PO92JX"
},
{
"SchoolName": "Lockerley Church of England Endowed Primary School",
"Postcode": "SO510JG"
},
{
"SchoolName": "Longparish Church of England Primary School",
"Postcode": "SP116PB"
},
{
"SchoolName": "Lymington Church of England Infant School",
"Postcode": "SO419GP"
},
{
"SchoolName": "St Michael and All Angels CofE Infant School",
"Postcode": "SO437BB"
},
{
"SchoolName": "Romsey Abbey Church of England Primary School",
"Postcode": "SO518EP"
},
{
"SchoolName": "Silchester Church of England Primary School",
"Postcode": "RG72NJ"
},
{
"SchoolName": "Smannell and Enham Church of England (Aided) Primary School",
"Postcode": "SP116JJ"
},
{
"SchoolName": "Swanmore Church of England Aided Primary School",
"Postcode": "SO322PA"
},
{
"SchoolName": "Upham Church of England Aided Primary School",
"Postcode": "SO321JD"
},
{
"SchoolName": "Clatford Church of England Primary School",
"Postcode": "SP117RE"
},
{
"SchoolName": "St Faith's Church of England Primary School",
"Postcode": "SO239QB"
},
{
"SchoolName": "Kimpton, Thruxton and Fyfield Church of England Primary School",
"Postcode": "SP118NT"
},
{
"SchoolName": "St Jude's Catholic Primary School",
"Postcode": "PO141ND"
},
{
"SchoolName": "St Thomas More's Catholic Primary School, Havant",
"Postcode": "PO93DR"
},
{
"SchoolName": "Our Lady and St Joseph Catholic Primary School",
"Postcode": "SO418GY"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "RG226RE"
},
{
"SchoolName": "St Bede's Catholic Primary School",
"Postcode": "RG249DX"
},
{
"SchoolName": "St Peter's Catholic Primary School, Winchester",
"Postcode": "SO224JB"
},
{
"SchoolName": "St John the Baptist Catholic Primary School, Andover",
"Postcode": "SP103PF"
},
{
"SchoolName": "Corpus Christi Catholic Primary School",
"Postcode": "PO29AX"
},
{
"SchoolName": "St John's Cathedral Catholic Primary School",
"Postcode": "PO11PX"
},
{
"SchoolName": "St Swithun's Catholic Primary School",
"Postcode": "PO52RG"
},
{
"SchoolName": "Western Downland Church of England Aided Primary School",
"Postcode": "SP63NA"
},
{
"SchoolName": "St Peter's Church of England Aided Junior School",
"Postcode": "GU147AP"
},
{
"SchoolName": "St Mark's Church of England Aided Primary School",
"Postcode": "GU146DU"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "GU147BW"
},
{
"SchoolName": "St Bernadette's Catholic Primary School",
"Postcode": "GU148LS"
},
{
"SchoolName": "Alverstoke Church of England Aided Junior School",
"Postcode": "PO122JS"
},
{
"SchoolName": "St John's, Gosport Church of England Voluntary Aided Primary School",
"Postcode": "PO124JH"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "PO123NB"
},
{
"SchoolName": "Highfield Church of England Primary School",
"Postcode": "SO171PX"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "SO169LP"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "SO192JE"
},
{
"SchoolName": "Selborne Church of England Primary School",
"Postcode": "GU343JA"
},
{
"SchoolName": "St John's Church of England Voluntary Aided Primary School",
"Postcode": "RG213JU"
},
{
"SchoolName": "St Francis Church of England Primary School",
"Postcode": "SO534ST"
},
{
"SchoolName": "Crookham Church of England Aided Infant School",
"Postcode": "GU526PU"
},
{
"SchoolName": "John Hanson Community School",
"Postcode": "SP103PB"
},
{
"SchoolName": "The Westgate School",
"Postcode": "SO225AZ"
},
{
"SchoolName": "The Toynbee School",
"Postcode": "SO532PL"
},
{
"SchoolName": "Court Moor School",
"Postcode": "GU527RY"
},
{
"SchoolName": "The Hamble School",
"Postcode": "SO314NE"
},
{
"SchoolName": "Portchester Community School",
"Postcode": "PO169BD"
},
{
"SchoolName": "Brookfield Community School",
"Postcode": "SO317DU"
},
{
"SchoolName": "The Hurst Community College",
"Postcode": "RG265NL"
},
{
"SchoolName": "The Hayling College",
"Postcode": "PO110NU"
},
{
"SchoolName": "Swanmore College",
"Postcode": "SO322RB"
},
{
"SchoolName": "Test Valley School",
"Postcode": "SO206HA"
},
{
"SchoolName": "Aldworth School",
"Postcode": "RG226HA"
},
{
"SchoolName": "Crookhorn College",
"Postcode": "PO75UD"
},
{
"SchoolName": "The Clere School",
"Postcode": "RG209HP"
},
{
"SchoolName": "Harrow Way Community School",
"Postcode": "SP103RH"
},
{
"SchoolName": "Cranbourne Business and Enterprise College",
"Postcode": "RG213NP"
},
{
"SchoolName": "Yateley School",
"Postcode": "GU466NW"
},
{
"SchoolName": "Calthorpe Park School",
"Postcode": "GU515JA"
},
{
"SchoolName": "Horndean Technology College",
"Postcode": "PO89PQ"
},
{
"SchoolName": "<NAME> School",
"Postcode": "SO226JJ"
},
{
"SchoolName": "The Vyne Community School",
"Postcode": "RG215PB"
},
{
"SchoolName": "Brighton Hill Community School",
"Postcode": "RG224HS"
},
{
"SchoolName": "Frogmore Community College",
"Postcode": "GU466AG"
},
{
"SchoolName": "Fort Hill Community School",
"Postcode": "RG238JQ"
},
{
"SchoolName": "Crestwood College for Business and Enterprise",
"Postcode": "SO504FZ"
},
{
"SchoolName": "Cove School",
"Postcode": "GU149RN"
},
{
"SchoolName": "Fernhill School",
"Postcode": "GU149BY"
},
{
"SchoolName": "The Wavell School",
"Postcode": "GU146BH"
},
{
"SchoolName": "Regents Park Community College",
"Postcode": "SO164GW"
},
{
"SchoolName": "The Sholing Technology College",
"Postcode": "SO198PH"
},
{
"SchoolName": "Redbridge Community School",
"Postcode": "SO169RJ"
},
{
"SchoolName": "Chamberlayne College for the Arts",
"Postcode": "SO199QP"
},
{
"SchoolName": "Bitterne Park School",
"Postcode": "SO181BU"
},
{
"SchoolName": "King Richard School",
"Postcode": "PO64QP"
},
{
"SchoolName": "Mayfield School",
"Postcode": "PO20RH"
},
{
"SchoolName": "Woodlands Community College",
"Postcode": "SO185FW"
},
{
"SchoolName": "The Henry Cort Community College",
"Postcode": "PO156PH"
},
{
"SchoolName": "Kings' School",
"Postcode": "SO225PN"
},
{
"SchoolName": "Cantell School",
"Postcode": "SO163GJ"
},
{
"SchoolName": "Park Community School",
"Postcode": "PO94BU"
},
{
"SchoolName": "Warblington School",
"Postcode": "PO92RR"
},
{
"SchoolName": "Bishop Challoner Catholic Secondary School",
"Postcode": "RG226SR"
},
{
"SchoolName": "Abbotswood Junior School",
"Postcode": "SO408EB"
},
{
"SchoolName": "Calmore Junior School",
"Postcode": "SO402ZZ"
},
{
"SchoolName": "Hordle CofE Primary School",
"Postcode": "SO410FB"
},
{
"SchoolName": "St Paul's Catholic Primary School",
"Postcode": "PO64JD"
},
{
"SchoolName": "Ashley Junior School",
"Postcode": "BH255FN"
},
{
"SchoolName": "St Peter's Catholic Primary School, Waterlooville",
"Postcode": "PO77BP"
},
{
"SchoolName": "Mill Rythe Infant School",
"Postcode": "PO110PA"
},
{
"SchoolName": "Crofton School",
"Postcode": "PO142AT"
},
{
"SchoolName": "Testbourne Community School",
"Postcode": "RG287JF"
},
{
"SchoolName": "Applemore College",
"Postcode": "SO454RQ"
},
{
"SchoolName": "St Edmund's Catholic School",
"Postcode": "PO11RX"
},
{
"SchoolName": "Purbrook Park School",
"Postcode": "PO75DS"
},
{
"SchoolName": "Saint George Catholic Voluntary Aided College Southampton",
"Postcode": "SO163DQ"
},
{
"SchoolName": "Osborne School",
"Postcode": "SO237GA"
},
{
"SchoolName": "Rookwood School",
"Postcode": "SP103AL"
},
{
"SchoolName": "Sherborne House School",
"Postcode": "SO531EU"
},
{
"SchoolName": "Hampshire Collegiate School",
"Postcode": "SO516ZE"
},
{
"SchoolName": "St Neot's School",
"Postcode": "RG270PN"
},
{
"SchoolName": "Farnborough Hill",
"Postcode": "GU148AT"
},
{
"SchoolName": "St Nicholas' School",
"Postcode": "GU520RF"
},
{
"SchoolName": "Forres Sandle Manor School",
"Postcode": "SP61NS"
},
{
"SchoolName": "Cheam School",
"Postcode": "RG198LD"
},
{
"SchoolName": "Lord Wandsworth College",
"Postcode": "RG291TB"
},
{
"SchoolName": "Durlston Court School",
"Postcode": "BH257AQ"
},
{
"SchoolName": "Ballard School",
"Postcode": "BH255SU"
},
{
"SchoolName": "Walhampton School",
"Postcode": "SO415ZG"
},
{
"SchoolName": "Horris Hill School",
"Postcode": "RG209DJ"
},
{
"SchoolName": "Bedales School",
"Postcode": "GU322DG"
},
{
"SchoolName": "Stroud, the King Edward VI Preparatory School",
"Postcode": "SO519ZH"
},
{
"SchoolName": "Winchester College",
"Postcode": "SO239NA"
},
{
"SchoolName": "St Swithun's School",
"Postcode": "SO211HA"
},
{
"SchoolName": "The Pilgrims School",
"Postcode": "SO239LT"
},
{
"SchoolName": "Twyford School",
"Postcode": "SO211NW"
},
{
"SchoolName": "Alton Convent School",
"Postcode": "GU342NG"
},
{
"SchoolName": "Woodhill Preparatory School",
"Postcode": "SO302ER"
},
{
"SchoolName": "Farleigh School",
"Postcode": "SP117PW"
},
{
"SchoolName": "Salesian College",
"Postcode": "GU146PA"
},
{
"SchoolName": "Grey House Preparatory School",
"Postcode": "RG278PW"
},
{
"SchoolName": "Daneshill School",
"Postcode": "RG270AR"
},
{
"SchoolName": "West Hill Park School",
"Postcode": "PO144BS"
},
{
"SchoolName": "Princes Mead School",
"Postcode": "SO211AN"
},
{
"SchoolName": "Yateley Manor School",
"Postcode": "GU467UQ"
},
{
"SchoolName": "Hawley Place School",
"Postcode": "GU179HU"
},
{
"SchoolName": "Boundary Oak School",
"Postcode": "PO175BL"
},
{
"SchoolName": "Moyles Court School",
"Postcode": "BH243NF"
},
{
"SchoolName": "Meoncross School",
"Postcode": "PO142EF"
},
{
"SchoolName": "Southlands School",
"Postcode": "SO415QB"
},
{
"SchoolName": "Hill House School",
"Postcode": "SO418NE"
},
{
"SchoolName": "St Mary's Independent School",
"Postcode": "SO184DJ"
},
{
"SchoolName": "The Gregg School",
"Postcode": "SO182GF"
},
{
"SchoolName": "St Winifred's School",
"Postcode": "SO171EJ"
},
{
"SchoolName": "Mayville High School",
"Postcode": "PO52PE"
},
{
"SchoolName": "Brockwood Park School",
"Postcode": "SO240LQ"
},
{
"SchoolName": "Ditcham Park School",
"Postcode": "GU315RN"
},
{
"SchoolName": "Churcher's College",
"Postcode": "GU314AS"
},
{
"SchoolName": "King Edward VI School",
"Postcode": "SO155UQ"
},
{
"SchoolName": "Portsmouth High School",
"Postcode": "PO53EQ"
},
{
"SchoolName": "St John's College",
"Postcode": "PO53QW"
},
{
"SchoolName": "The Portsmouth Grammar School",
"Postcode": "PO12LN"
},
{
"SchoolName": "St Edward's School",
"Postcode": "SO516ZR"
},
{
"SchoolName": "The King's School",
"Postcode": "RG218SR"
},
{
"SchoolName": "Coxlease School",
"Postcode": "SO437DE"
},
{
"SchoolName": "Grateley House School",
"Postcode": "SP118TA"
},
{
"SchoolName": "The Loddon School",
"Postcode": "RG270JD"
},
{
"SchoolName": "Thorngrove School",
"Postcode": "RG209PS"
},
{
"SchoolName": "The Forum School",
"Postcode": "DT110QS"
},
{
"SchoolName": "St Michael's School",
"Postcode": "RG209JW"
},
{
"SchoolName": "The King's School",
"Postcode": "SO507DB"
},
{
"SchoolName": "Riverside Community Special School",
"Postcode": "PO75QD"
},
{
"SchoolName": "Lakeside School",
"Postcode": "SO532DW"
},
{
"SchoolName": "Norman Gate School",
"Postcode": "SP101JZ"
},
{
"SchoolName": "Maple Ridge School",
"Postcode": "RG215SX"
},
{
"SchoolName": "Heathfield Special School",
"Postcode": "PO143BN"
},
{
"SchoolName": "Icknield School",
"Postcode": "SP116LT"
},
{
"SchoolName": "Rachel Madocks School",
"Postcode": "PO89XP"
},
{
"SchoolName": "Limington House School",
"Postcode": "RG226PS"
},
{
"SchoolName": "Baycroft School",
"Postcode": "PO142AE"
},
{
"SchoolName": "St Francis Special School",
"Postcode": "PO143BN"
},
{
"SchoolName": "Springwell School",
"Postcode": "SO196DH"
},
{
"SchoolName": "The Cedar School",
"Postcode": "SO160XN"
},
{
"SchoolName": "The Polygon School",
"Postcode": "SO152FH"
},
{
"SchoolName": "Vermont School",
"Postcode": "SO167LT"
},
{
"SchoolName": "The Waterloo School",
"Postcode": "PO77JJ"
},
{
"SchoolName": "Saxon Wood School",
"Postcode": "RG249NH"
},
{
"SchoolName": "Wolverdene Special School",
"Postcode": "SP102AF"
},
{
"SchoolName": "Treloar School",
"Postcode": "GU344GL"
},
{
"SchoolName": "Oak Lodge School",
"Postcode": "SO454RQ"
},
{
"SchoolName": "Glenwood School",
"Postcode": "PO107NN"
},
{
"SchoolName": "<NAME> Specialist Sports College",
"Postcode": "GU148SN"
},
{
"SchoolName": "The Mark Way School",
"Postcode": "SP101HR"
},
{
"SchoolName": "Shepherds Down Special School",
"Postcode": "SO212AJ"
},
{
"SchoolName": "Willows Centre for Children",
"Postcode": "PO20SN"
},
{
"SchoolName": "Almeley Primary School",
"Postcode": "HR36LH"
},
{
"SchoolName": "Crown Meadow First School & Nursery",
"Postcode": "B487TA"
},
{
"SchoolName": "Ashton-under-Hill First School",
"Postcode": "WR117SW"
},
{
"SchoolName": "Badsey First School",
"Postcode": "WR117ES"
},
{
"SchoolName": "Beoley First School",
"Postcode": "B989AN"
},
{
"SchoolName": "Bredenbury Primary School",
"Postcode": "HR74TF"
},
{
"SchoolName": "Bretforton First School",
"Postcode": "WR117JS"
},
{
"SchoolName": "Broadway First School",
"Postcode": "WR127BD"
},
{
"SchoolName": "Catshill First School",
"Postcode": "B610JP"
},
{
"SchoolName": "Charford First School",
"Postcode": "B603NH"
},
{
"SchoolName": "Finstall First School",
"Postcode": "B602HS"
},
{
"SchoolName": "Lickey End First School",
"Postcode": "B601JG"
},
{
"SchoolName": "Meadows First School",
"Postcode": "B610AH"
},
{
"SchoolName": "Millfields First School",
"Postcode": "B617BS"
},
{
"SchoolName": "Sidemoor First School and Nursery",
"Postcode": "B618QN"
},
{
"SchoolName": "Blackwell First School",
"Postcode": "B601BN"
},
{
"SchoolName": "St Peter's Primary School",
"Postcode": "HR74UY"
},
{
"SchoolName": "Clifford Primary School",
"Postcode": "HR35HA"
},
{
"SchoolName": "Clifton upon Teme Primary School",
"Postcode": "WR66DE"
},
{
"SchoolName": "Dodford First School",
"Postcode": "B619AW"
},
{
"SchoolName": "Westlands First School",
"Postcode": "WR99EQ"
},
{
"SchoolName": "Chawson First School",
"Postcode": "WR98BW"
},
{
"SchoolName": "Swan Lane First School",
"Postcode": "WR114QA"
},
{
"SchoolName": "Ewyas Harold Primary School",
"Postcode": "HR20EY"
},
{
"SchoolName": "Fairfield First School",
"Postcode": "B619LZ"
},
{
"SchoolName": "Flyford Flavell First School",
"Postcode": "WR74BS"
},
{
"SchoolName": "Garway Primary School",
"Postcode": "HR28RQ"
},
{
"SchoolName": "Hagley Primary School",
"Postcode": "DY90NS"
},
{
"SchoolName": "Broadlands Primary School",
"Postcode": "HR11HY"
},
{
"SchoolName": "Hampton Dene Primary School",
"Postcode": "HR11RT"
},
{
"SchoolName": "Marlbrook Primary School",
"Postcode": "HR27NT"
},
{
"SchoolName": "<NAME>'s Primary School",
"Postcode": "HR26AF"
},
{
"SchoolName": "Trinity Primary School",
"Postcode": "HR40NU"
},
{
"SchoolName": "Inkberrow First School",
"Postcode": "WR74HH"
},
{
"SchoolName": "Kington Primary School",
"Postcode": "HR53AL"
},
{
"SchoolName": "Ledbury Primary School",
"Postcode": "HR82BE"
},
{
"SchoolName": "Longtown Community Primary School",
"Postcode": "HR20LE"
},
{
"SchoolName": "Luston Primary School",
"Postcode": "HR60EA"
},
{
"SchoolName": "Madley Primary School",
"Postcode": "HR29PH"
},
{
"SchoolName": "Michaelchurch Escley Primary School",
"Postcode": "HR20PT"
},
{
"SchoolName": "Pebworth First School",
"Postcode": "CV378XA"
},
{
"SchoolName": "Abbey Park First and Nursery School",
"Postcode": "WR101DF"
},
{
"SchoolName": "Cherry Orchard First School",
"Postcode": "WR101ET"
},
{
"SchoolName": "Peterchurch Primary School",
"Postcode": "HR20RP"
},
{
"SchoolName": "Batchley First and Nursery School",
"Postcode": "B976PD"
},
{
"SchoolName": "Holyoakes Field First School",
"Postcode": "B976HH"
},
{
"SchoolName": "Tenacres First School",
"Postcode": "B980PB"
},
{
"SchoolName": "Ashfield Park Primary School",
"Postcode": "HR95AU"
},
{
"SchoolName": "Roman Way First School",
"Postcode": "B980LH"
},
{
"SchoolName": "Shobdon Primary School",
"Postcode": "HR69LX"
},
{
"SchoolName": "Stoke Prior First School",
"Postcode": "B604ND"
},
{
"SchoolName": "Stoke Prior Primary School",
"Postcode": "HR60ND"
},
{
"SchoolName": "St Weonard's Primary School",
"Postcode": "HR28NU"
},
{
"SchoolName": "Walford Primary School",
"Postcode": "HR95SA"
},
{
"SchoolName": "Welland Primary School",
"Postcode": "WR136NE"
},
{
"SchoolName": "Wellington Primary School",
"Postcode": "HR48AZ"
},
{
"SchoolName": "Weobley Primary School",
"Postcode": "HR48ST"
},
{
"SchoolName": "Withington Primary School",
"Postcode": "HR13QE"
},
{
"SchoolName": "Cherry Orchard Primary School",
"Postcode": "WR52DD"
},
{
"SchoolName": "Dines Green Primary School",
"Postcode": "WR25QH"
},
{
"SchoolName": "Nunnery Wood Primary School",
"Postcode": "WR51QE"
},
{
"SchoolName": "Perdiswell Primary School",
"Postcode": "WR38QA"
},
{
"SchoolName": "Stanley Road Primary School",
"Postcode": "WR51BD"
},
{
"SchoolName": "Wychbold First and Nursery School",
"Postcode": "WR97PU"
},
{
"SchoolName": "Wythall, Meadow Green Primary",
"Postcode": "B476EQ"
},
{
"SchoolName": "Moons Moat First School",
"Postcode": "B989HR"
},
{
"SchoolName": "Beaconside Primary and Nursery School",
"Postcode": "B459DX"
},
{
"SchoolName": "Pitmaston Primary School",
"Postcode": "WR24ZF"
},
{
"SchoolName": "Oldbury Park Primary School",
"Postcode": "WR26AA"
},
{
"SchoolName": "Lickey Hills Primary School and Nursery",
"Postcode": "B458EU"
},
{
"SchoolName": "Abbey Park Middle School",
"Postcode": "WR101DF"
},
{
"SchoolName": "Leigh and Bransford Primary School",
"Postcode": "WR135DX"
},
{
"SchoolName": "Westacre Middle School",
"Postcode": "WR90AA"
},
{
"SchoolName": "Witton Middle School",
"Postcode": "WR98BD"
},
{
"SchoolName": "Abberley Parochial VC Primary School",
"Postcode": "WR66AA"
},
{
"SchoolName": "Bayton CofE Primary School",
"Postcode": "DY149LG"
},
{
"SchoolName": "Belbroughton CofE Primary School",
"Postcode": "DY99TF"
},
{
"SchoolName": "Blakedown CofE Primary School",
"Postcode": "DY103JN"
},
{
"SchoolName": "Bosbury CofE Primary School",
"Postcode": "HR81PX"
},
{
"SchoolName": "Broadheath CofE Primary School",
"Postcode": "WR26QT"
},
{
"SchoolName": "Callow End CofE Primary School",
"Postcode": "WR24TE"
},
{
"SchoolName": "Castlemorton CofE Primary School",
"Postcode": "WR136BG"
},
{
"SchoolName": "Church Lench CofE First School",
"Postcode": "WR114UE"
},
{
"SchoolName": "Claines CofE Primary School",
"Postcode": "WR37RW"
},
{
"SchoolName": "Clehonger CofE Primary School",
"Postcode": "HR29SN"
},
{
"SchoolName": "Clent Parochial Primary School",
"Postcode": "DY99QP"
},
{
"SchoolName": "Colwall CofE Primary School",
"Postcode": "WR136DU"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "HR47DW"
},
{
"SchoolName": "Cropthorne-with-Charlton CofE First School",
"Postcode": "WR103NB"
},
{
"SchoolName": "Defford-Cum-Besford CofE School",
"Postcode": "WR89BH"
},
{
"SchoolName": "Eardisley CofE Primary School",
"Postcode": "HR36NS"
},
{
"SchoolName": "Eckington CofE First School",
"Postcode": "WR103AU"
},
{
"SchoolName": "Eldersfield Lawn CofE Primary School",
"Postcode": "GL194LZ"
},
{
"SchoolName": "Elmley Castle CofE First School",
"Postcode": "WR103HS"
},
{
"SchoolName": "St Richard's CofE First School",
"Postcode": "WR111DU"
},
{
"SchoolName": "St Andrew's CE School",
"Postcode": "WR112QN"
},
{
"SchoolName": "Goodrich CofE Primary School",
"Postcode": "HR96HY"
},
{
"SchoolName": "<NAME>offs Primary School",
"Postcode": "HR97SE"
},
{
"SchoolName": "Grimley and Holt CofE Primary School",
"Postcode": "WR26LU"
},
{
"SchoolName": "Hanbury CofE First School",
"Postcode": "B604BS"
},
{
"SchoolName": "Himbleton CofE First School",
"Postcode": "WR97LE"
},
{
"SchoolName": "Hindlip CofE First School",
"Postcode": "WR38RJ"
},
{
"SchoolName": "Little Dewchurch CofE Primary School",
"Postcode": "HR26PN"
},
{
"SchoolName": "<NAME> CofE Primary School",
"Postcode": "WR144ET"
},
{
"SchoolName": "Martley CofE Primary School",
"Postcode": "WR66QA"
},
{
"SchoolName": "Much Birch CofE Primary School",
"Postcode": "HR28HL"
},
{
"SchoolName": "Norton Juxta Kempsey First School",
"Postcode": "WR52QJ"
},
{
"SchoolName": "Orleton CofE Primary School",
"Postcode": "SY84HQ"
},
{
"SchoolName": "Overbury CofE First School",
"Postcode": "GL207NT"
},
{
"SchoolName": "Pendock CofE Primary School",
"Postcode": "GL193PW"
},
{
"SchoolName": "Powick CofE Primary School",
"Postcode": "WR24RT"
},
{
"SchoolName": "Feckenham CofE First School",
"Postcode": "B966QD"
},
{
"SchoolName": "St George's CofE First School",
"Postcode": "B988LU"
},
{
"SchoolName": "St Luke's CofE First School",
"Postcode": "B974NU"
},
{
"SchoolName": "St Stephen's CofE First School",
"Postcode": "B988HW"
},
{
"SchoolName": "Romsley St Kenelm's CofE Primary School",
"Postcode": "B620LF"
},
{
"SchoolName": "Rushwick CofE Primary School",
"Postcode": "WR25SU"
},
{
"SchoolName": "Sedgeberrow CofE First School",
"Postcode": "WR117UF"
},
{
"SchoolName": "Tibberton CofE First School",
"Postcode": "WR97NL"
},
{
"SchoolName": "Upton Snodsbury CofE First School",
"Postcode": "WR74NH"
},
{
"SchoolName": "Whittington CofE Primary School",
"Postcode": "WR52QZ"
},
{
"SchoolName": "St Barnabas CofE Primary School",
"Postcode": "WR38NZ"
},
{
"SchoolName": "Red Hill CofE Primary School",
"Postcode": "WR52HX"
},
{
"SchoolName": "Northleigh CofE Primary School",
"Postcode": "WR141QS"
},
{
"SchoolName": "Astley CofE Primary School",
"Postcode": "DY130RH"
},
{
"SchoolName": "St Andrew's CofE First School",
"Postcode": "B458NG"
},
{
"SchoolName": "Brampton Abbotts CofE Primary School",
"Postcode": "HR97FX"
},
{
"SchoolName": "The Bredon Hancock's Endowed First School",
"Postcode": "GL207LA"
},
{
"SchoolName": "Bridstow CofE Primary School",
"Postcode": "HR96PZ"
},
{
"SchoolName": "Broadwas CofE Aided Primary School",
"Postcode": "WR65NE"
},
{
"SchoolName": "Cradley CofE Primary School",
"Postcode": "WR135NG"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "WR90RY"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "HR14PG"
},
{
"SchoolName": "Hallow CofE Primary School",
"Postcode": "WR26LD"
},
{
"SchoolName": "Our Lady's RC Primary School",
"Postcode": "HR27RN"
},
{
"SchoolName": "St Francis Xavier's Primary School",
"Postcode": "HR11DT"
},
{
"SchoolName": "St James' CofE Primary School",
"Postcode": "HR12QN"
},
{
"SchoolName": "Kimbolton St James CofE Primary School",
"Postcode": "HR60HQ"
},
{
"SchoolName": "Kingsland CofE School",
"Postcode": "HR69QN"
},
{
"SchoolName": "Lea CofE Primary School",
"Postcode": "HR97JY"
},
{
"SchoolName": "Leintwardine Endowed CE Primary School",
"Postcode": "SY70LL"
},
{
"SchoolName": "Ivington CofE Primary School",
"Postcode": "HR60JH"
},
{
"SchoolName": "Lindridge St Lawrence CofE Primary School",
"Postcode": "WR158JQ"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "WR141PF"
},
{
"SchoolName": "Malvern Wells CofE Primary School",
"Postcode": "WR144HF"
},
{
"SchoolName": "St James' CofE Primary School",
"Postcode": "WR144BB"
},
{
"SchoolName": "Much Marcle CofE Primary School",
"Postcode": "HR82LY"
},
{
"SchoolName": "Ombersley Endowed First School",
"Postcode": "WR90DR"
},
{
"SchoolName": "Pembridge CofE Primary School",
"Postcode": "HR69EA"
},
{
"SchoolName": "Pencombe CofE Primary School",
"Postcode": "HR74SH"
},
{
"SchoolName": "Holy Redeemer Catholic Primary School",
"Postcode": "WR101EB"
},
{
"SchoolName": "St Thomas More Catholic First School",
"Postcode": "B987RY"
},
{
"SchoolName": "St Joseph's RC Primary School",
"Postcode": "HR95AW"
},
{
"SchoolName": "Staunton-on-Wye Endowed Primary School",
"Postcode": "HR47LT"
},
{
"SchoolName": "Sytchampton Endowed Primary School",
"Postcode": "DY139SX"
},
{
"SchoolName": "Tardebigge CofE First School",
"Postcode": "B603AH"
},
{
"SchoolName": "Weston-under-Penyard CofE Primary School",
"Postcode": "HR97PA"
},
{
"SchoolName": "Whitchurch CofE Primary School",
"Postcode": "HR96DA"
},
{
"SchoolName": "Our Lady Queen of Peace Catholic Primary",
"Postcode": "WR24EN"
},
{
"SchoolName": "St George's CofE Primary School",
"Postcode": "WR11RD"
},
{
"SchoolName": "St George's Catholic Primary School",
"Postcode": "WR13JY"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "WR49PG"
},
{
"SchoolName": "North Bromsgrove High School",
"Postcode": "B601BA"
},
{
"SchoolName": "The De Montfort School",
"Postcode": "WR111DQ"
},
{
"SchoolName": "Aylestone Business and Enterprise College",
"Postcode": "HR11HY"
},
{
"SchoolName": "Earl Mortimer College and Sixth Form Centre",
"Postcode": "HR68JJ"
},
{
"SchoolName": "Weobley High School",
"Postcode": "HR48ST"
},
{
"SchoolName": "Aston Fields Middle School",
"Postcode": "B602ET"
},
{
"SchoolName": "Catshill Middle School",
"Postcode": "B610JW"
},
{
"SchoolName": "Parkside Middle School",
"Postcode": "B610AH"
},
{
"SchoolName": "Blackminster Middle School",
"Postcode": "WR118TG"
},
{
"SchoolName": "Birchensale Middle School",
"Postcode": "B976HT"
},
{
"SchoolName": "St Egwin's CofE Middle School",
"Postcode": "WR114JU"
},
{
"SchoolName": "The Bishop of Hereford's Bluecoat School",
"Postcode": "HR11UU"
},
{
"SchoolName": "St Mary's RC High School",
"Postcode": "HR14DR"
},
{
"SchoolName": "Blessed Edward Oldcorne Catholic College",
"Postcode": "WR52XD"
},
{
"SchoolName": "The Downs, Malvern College Prep School",
"Postcode": "WR136EY"
},
{
"SchoolName": "The Elms School",
"Postcode": "WR136EF"
},
{
"SchoolName": "Abberley Hall School",
"Postcode": "WR66DD"
},
{
"SchoolName": "Bromsgrove School",
"Postcode": "B617DU"
},
{
"SchoolName": "The Knoll School",
"Postcode": "DY116EA"
},
{
"SchoolName": "Malvern College",
"Postcode": "WR143DF"
},
{
"SchoolName": "Malvern St James",
"Postcode": "WR143BA"
},
{
"SchoolName": "Heathfield School",
"Postcode": "DY103QE"
},
{
"SchoolName": "Dodderhill School",
"Postcode": "WR90BE"
},
{
"SchoolName": "Cambian New Elizabethan School",
"Postcode": "DY117TE"
},
{
"SchoolName": "Bredon School",
"Postcode": "GL206AH"
},
{
"SchoolName": "Sunfield Children's Home Limited",
"Postcode": "DY99PB"
},
{
"SchoolName": "Bowbrook House School",
"Postcode": "WR102EE"
},
{
"SchoolName": "Abbey College in Malvern",
"Postcode": "WR144JF"
},
{
"SchoolName": "Hereford Cathedral School",
"Postcode": "HR12NG"
},
{
"SchoolName": "The King's School",
"Postcode": "WR12LH"
},
{
"SchoolName": "Royal Grammar School Worcester",
"Postcode": "WR11HP"
},
{
"SchoolName": "The River School",
"Postcode": "WR37ST"
},
{
"SchoolName": "Rowden House School",
"Postcode": "HR74LS"
},
{
"SchoolName": "Madinatul Uloom Al Islamiya School",
"Postcode": "DY104BH"
},
{
"SchoolName": "Lucton School",
"Postcode": "HR69PN"
},
{
"SchoolName": "Saint Michael's College",
"Postcode": "WR158PH"
},
{
"SchoolName": "Hereford Cathedral Junior School",
"Postcode": "HR12NW"
},
{
"SchoolName": "Cambian Hereford School",
"Postcode": "HR68LL"
},
{
"SchoolName": "Rigby Hall Day Special School",
"Postcode": "B602EP"
},
{
"SchoolName": "Blackmarston School",
"Postcode": "HR27NX"
},
{
"SchoolName": "Westfield School",
"Postcode": "HR68NZ"
},
{
"SchoolName": "Pitcheroak School",
"Postcode": "B976PQ"
},
{
"SchoolName": "Chadsgrove School",
"Postcode": "B610JL"
},
{
"SchoolName": "New College Worcester (NMSS)",
"Postcode": "WR52JX"
},
{
"SchoolName": "Weston Way Nursery School",
"Postcode": "SG76HD"
},
{
"SchoolName": "Arlesdene Nursery School and Pre-School",
"Postcode": "EN89DW"
},
{
"SchoolName": "Greenfield Nursery School",
"Postcode": "EN88DH"
},
{
"SchoolName": "Batford Nursery School",
"Postcode": "AL55BQ"
},
{
"SchoolName": "Birchwood Nursery School",
"Postcode": "AL100PD"
},
{
"SchoolName": "Heath Lane Nursery School",
"Postcode": "HP11TT"
},
{
"SchoolName": "York Road Nursery School",
"Postcode": "SG51XA"
},
{
"SchoolName": "Rye Park Nursery School",
"Postcode": "EN110LN"
},
{
"SchoolName": "Kingswood Nursery School",
"Postcode": "WD250DX"
},
{
"SchoolName": "Oxhey Early Years Centre",
"Postcode": "WD194RL"
},
{
"SchoolName": "Tenterfield Nursery School",
"Postcode": "AL69JF"
},
{
"SchoolName": "Ludwick Nursery School",
"Postcode": "AL73RP"
},
{
"SchoolName": "Peartree Way Nursery School",
"Postcode": "SG29EA"
},
{
"SchoolName": "Abbots Langley School",
"Postcode": "WD50BQ"
},
{
"SchoolName": "Ashwell Primary School",
"Postcode": "SG75QL"
},
{
"SchoolName": "Jenyns First School and Nursery",
"Postcode": "SG112QJ"
},
{
"SchoolName": "Bushey Heath Primary School",
"Postcode": "WD231SP"
},
{
"SchoolName": "Highwood Primary School",
"Postcode": "WD232AW"
},
{
"SchoolName": "Merry Hill Infant School and Nursery",
"Postcode": "WD231ST"
},
{
"SchoolName": "Holdbrook Primary School",
"Postcode": "EN87QG"
},
{
"SchoolName": "Four Swannes Primary School",
"Postcode": "EN87HH"
},
{
"SchoolName": "Chorleywood Primary School",
"Postcode": "WD35HR"
},
{
"SchoolName": "Beechfield School",
"Postcode": "WD245TY"
},
{
"SchoolName": "Shepherd Primary",
"Postcode": "WD38JJ"
},
{
"SchoolName": "Hobletts Manor Junior School",
"Postcode": "HP25JS"
},
{
"SchoolName": "The Russell School",
"Postcode": "WD35RR"
},
{
"SchoolName": "Cowley Hill School",
"Postcode": "WD65DP"
},
{
"SchoolName": "Flamstead Village School",
"Postcode": "AL38DL"
},
{
"SchoolName": "Gaddesden Row JMI School",
"Postcode": "HP26HG"
},
{
"SchoolName": "Sauncey Wood Primary School",
"Postcode": "AL55HL"
},
{
"SchoolName": "Manland Primary School",
"Postcode": "AL54QW"
},
{
"SchoolName": "Green Lanes Primary School",
"Postcode": "AL109JY"
},
{
"SchoolName": "George Street Primary School",
"Postcode": "HP25HJ"
},
{
"SchoolName": "Boxmoor Primary School",
"Postcode": "HP11PF"
},
{
"SchoolName": "Two Waters Primary School",
"Postcode": "HP30AU"
},
{
"SchoolName": "Tudor Primary School",
"Postcode": "HP39ER"
},
{
"SchoolName": "South Hill Primary School",
"Postcode": "HP11TT"
},
{
"SchoolName": "Abel Smith School",
"Postcode": "SG138AE"
},
{
"SchoolName": "Hexton Junior Mixed and Infant School",
"Postcode": "SG53JL"
},
{
"SchoolName": "Highbury Infant School and Nursery",
"Postcode": "SG49AG"
},
{
"SchoolName": "Strathmore Infant and Nursery School",
"Postcode": "SG51XR"
},
{
"SchoolName": "Highover Junior Mixed and Infant School",
"Postcode": "SG40JP"
},
{
"SchoolName": "Hunsdon Junior Mixed and Infant School",
"Postcode": "SG128NT"
},
{
"SchoolName": "Kimpton Primary School",
"Postcode": "SG48RB"
},
{
"SchoolName": "Breachwood Green Junior Mixed and Infant School",
"Postcode": "SG48NP"
},
{
"SchoolName": "Knebworth Primary and Nursery School",
"Postcode": "SG36AA"
},
{
"SchoolName": "Wilbury Junior School",
"Postcode": "SG64DU"
},
{
"SchoolName": "Grange Junior School",
"Postcode": "SG64PY"
},
{
"SchoolName": "Hillshott Infant School and Nursery",
"Postcode": "SG61QE"
},
{
"SchoolName": "Hertford Heath Primary and Nursery School",
"Postcode": "SG137QW"
},
{
"SchoolName": "Little Hadham Primary School",
"Postcode": "SG112DX"
},
{
"SchoolName": "Markyate Village School and Nursery",
"Postcode": "AL38PT"
},
{
"SchoolName": "Pirton School",
"Postcode": "SG53PS"
},
{
"SchoolName": "Reed First School",
"Postcode": "SG88AB"
},
{
"SchoolName": "Yorke Mead Primary School",
"Postcode": "WD33PX"
},
{
"SchoolName": "Harvey Road Primary School",
"Postcode": "WD33BN"
},
{
"SchoolName": "Little Green Junior School",
"Postcode": "WD33NJ"
},
{
"SchoolName": "Malvern Way Infant and Nursery School",
"Postcode": "WD33QQ"
},
{
"SchoolName": "Tannery Drift School",
"Postcode": "SG85DE"
},
{
"SchoolName": "Bernards Heath Infant and Nursery School",
"Postcode": "AL14AP"
},
{
"SchoolName": "Camp Primary and Nursery School",
"Postcode": "AL15PG"
},
{
"SchoolName": "Garden Fields Junior Mixed and Infant School",
"Postcode": "AL35RL"
},
{
"SchoolName": "St Peter's School",
"Postcode": "AL11HL"
},
{
"SchoolName": "Aboyne Lodge Junior Mixed and Infant School",
"Postcode": "AL35NL"
},
{
"SchoolName": "Bernards Heath Junior School",
"Postcode": "AL35HP"
},
{
"SchoolName": "St Paul's Walden Primary School",
"Postcode": "SG48HX"
},
{
"SchoolName": "Colney Heath Junior Mixed Infant and Nursery School",
"Postcode": "AL40NP"
},
{
"SchoolName": "London Colney Primary & Nursery School",
"Postcode": "AL21JG"
},
{
"SchoolName": "Sandon Junior Mixed and Infant School",
"Postcode": "SG90QS"
},
{
"SchoolName": "Sandridge School",
"Postcode": "AL49EB"
},
{
"SchoolName": "Fawbert and Barnard Infants' School",
"Postcode": "CM219AT"
},
{
"SchoolName": "Shenley Primary School",
"Postcode": "WD79DX"
},
{
"SchoolName": "Letchmore Infants' and Nursery School",
"Postcode": "SG13PS"
},
{
"SchoolName": "Therfield First School",
"Postcode": "SG89PP"
},
{
"SchoolName": "Walkern Primary School",
"Postcode": "SG27NS"
},
{
"SchoolName": "The Orchard Primary School",
"Postcode": "WD245JW"
},
{
"SchoolName": "Central Primary School",
"Postcode": "WD172LX"
},
{
"SchoolName": "Bushey and Oxhey Infant School",
"Postcode": "WD232QH"
},
{
"SchoolName": "Chater Junior School",
"Postcode": "WD180WN"
},
{
"SchoolName": "Chater Infant School",
"Postcode": "WD187NJ"
},
{
"SchoolName": "Field Junior School",
"Postcode": "WD180AZ"
},
{
"SchoolName": "Watford Field School (Infant & Nursery)",
"Postcode": "WD180WF"
},
{
"SchoolName": "Parkgate Junior School",
"Postcode": "WD247DN"
},
{
"SchoolName": "Parkgate Infants' and Nursery School",
"Postcode": "WD247RL"
},
{
"SchoolName": "Knutsford School",
"Postcode": "WD247ER"
},
{
"SchoolName": "St Meryl School",
"Postcode": "WD195BT"
},
{
"SchoolName": "Cassiobury Junior School",
"Postcode": "WD173PD"
},
{
"SchoolName": "Kingsway Junior School",
"Postcode": "WD250JH"
},
{
"SchoolName": "Warren Dell Primary School",
"Postcode": "WD197UZ"
},
{
"SchoolName": "Oxhey Wood Primary School",
"Postcode": "WD197SL"
},
{
"SchoolName": "Watton-at-Stone Primary and Nursery School",
"Postcode": "SG143SG"
},
{
"SchoolName": "Peartree Primary School",
"Postcode": "AL73XW"
},
{
"SchoolName": "Templewood Primary School",
"Postcode": "AL87SD"
},
{
"SchoolName": "Holwell Primary School",
"Postcode": "AL73RP"
},
{
"SchoolName": "Widford School",
"Postcode": "SG128RE"
},
{
"SchoolName": "Wymondley Junior Mixed and Infant School",
"Postcode": "SG47HN"
},
{
"SchoolName": "Tanners Wood Junior Mixed and Infant School",
"Postcode": "WD50LG"
},
{
"SchoolName": "Hurst Drive Primary School",
"Postcode": "EN88DH"
},
{
"SchoolName": "Woodlands Primary School",
"Postcode": "WD65JF"
},
{
"SchoolName": "Summerswood Primary School",
"Postcode": "WD62DW"
},
{
"SchoolName": "Kenilworth Primary School",
"Postcode": "WD61QL"
},
{
"SchoolName": "Meryfield Primary School",
"Postcode": "WD64PA"
},
{
"SchoolName": "Icknield Infant and Nursery School",
"Postcode": "SG64UN"
},
{
"SchoolName": "Bowmansgreen Primary School",
"Postcode": "AL21PH"
},
{
"SchoolName": "Margaret Wix Primary School",
"Postcode": "AL36EL"
},
{
"SchoolName": "Broom Barns Community Primary School",
"Postcode": "SG11UE"
},
{
"SchoolName": "Greenfields Primary School",
"Postcode": "WD196QH"
},
{
"SchoolName": "Woodhall Primary School",
"Postcode": "WD196QX"
},
{
"SchoolName": "Saffron Green Primary School",
"Postcode": "WD62PP"
},
{
"SchoolName": "Hobletts Manor Infants' School",
"Postcode": "HP25JS"
},
{
"SchoolName": "Bedwell Primary School",
"Postcode": "SG11NJ"
},
{
"SchoolName": "Chaulden Infants' and Nursery",
"Postcode": "HP12JU"
},
{
"SchoolName": "Peartree Spring Primary School",
"Postcode": "SG29GG"
},
{
"SchoolName": "Roundwood Primary School",
"Postcode": "AL53AD"
},
{
"SchoolName": "Wheatfields Junior Mixed School",
"Postcode": "AL49NT"
},
{
"SchoolName": "Chambersbury Primary School",
"Postcode": "HP38JH"
},
{
"SchoolName": "Windermere Primary School",
"Postcode": "AL15QP"
},
{
"SchoolName": "Anstey First School",
"Postcode": "SG90BY"
},
{
"SchoolName": "Monksmead School",
"Postcode": "WD61HL"
},
{
"SchoolName": "Howe Dell Primary School",
"Postcode": "AL109AH"
},
{
"SchoolName": "Almond Hill Junior School",
"Postcode": "SG13RP"
},
{
"SchoolName": "Oakwood Primary School",
"Postcode": "AL40XA"
},
{
"SchoolName": "Northfields Infants and Nursery School",
"Postcode": "SG64PT"
},
{
"SchoolName": "Purwell Primary School",
"Postcode": "SG40PU"
},
{
"SchoolName": "Harwood Hill Junior Mixed Infant and Nursery School",
"Postcode": "AL87AG"
},
{
"SchoolName": "Creswick Primary and Nursery School",
"Postcode": "AL74FL"
},
{
"SchoolName": "Thorley Hill Primary School",
"Postcode": "CM233NH"
},
{
"SchoolName": "Micklem Primary School",
"Postcode": "HP12QH"
},
{
"SchoolName": "Brookland Junior School",
"Postcode": "EN80RX"
},
{
"SchoolName": "The Reddings Primary School",
"Postcode": "HP38DX"
},
{
"SchoolName": "How Wood Primary and Nursery School",
"Postcode": "AL22HU"
},
{
"SchoolName": "Redbourn Infants' and Nursery School",
"Postcode": "AL37EX"
},
{
"SchoolName": "Skyswood Primary & Nursery School",
"Postcode": "AL49RS"
},
{
"SchoolName": "Bushey Manor Junior School",
"Postcode": "WD232QL"
},
{
"SchoolName": "Goffs Oak Primary & Nursery School",
"Postcode": "EN75NS"
},
{
"SchoolName": "Eastbury Farm Primary School",
"Postcode": "HA63DG"
},
{
"SchoolName": "Bedmond Village Primary and Nursery School",
"Postcode": "WD50RD"
},
{
"SchoolName": "Gade Valley Primary School",
"Postcode": "HP13DT"
},
{
"SchoolName": "Cunningham Hill Junior School",
"Postcode": "AL15QJ"
},
{
"SchoolName": "Homerswood Primary and Nursery School",
"Postcode": "AL87RF"
},
{
"SchoolName": "Whitehill Junior School",
"Postcode": "SG49HT"
},
{
"SchoolName": "Westfield Primary School and Nursery",
"Postcode": "HP43PJ"
},
{
"SchoolName": "Downfield Primary School",
"Postcode": "EN88SS"
},
{
"SchoolName": "Pixies Hill Primary School",
"Postcode": "HP12BY"
},
{
"SchoolName": "Rowans Primary School",
"Postcode": "AL71NZ"
},
{
"SchoolName": "The Grove Junior School",
"Postcode": "AL51QB"
},
{
"SchoolName": "Pixmore Junior School",
"Postcode": "SG61RS"
},
{
"SchoolName": "Swing Gate Infant School and Nursery",
"Postcode": "HP42LJ"
},
{
"SchoolName": "Oaklands Primary School",
"Postcode": "AL60PX"
},
{
"SchoolName": "Hollybush Primary School",
"Postcode": "SG142DF"
},
{
"SchoolName": "Maple Cross Junior Mixed Infant and Nursery School",
"Postcode": "WD39SS"
},
{
"SchoolName": "Wheatfields Infants' and Nursery School",
"Postcode": "AL49NT"
},
{
"SchoolName": "Moss Bury Primary School and Nursery",
"Postcode": "SG15PA"
},
{
"SchoolName": "Westfield Community Primary School",
"Postcode": "EN118RA"
},
{
"SchoolName": "Priors Wood Primary School",
"Postcode": "SG127HZ"
},
{
"SchoolName": "Brookland Infant and Nursery School",
"Postcode": "EN80RX"
},
{
"SchoolName": "Goldfield Infants' and Nursery School",
"Postcode": "HP234EE"
},
{
"SchoolName": "Tower Primary School",
"Postcode": "SG127LP"
},
{
"SchoolName": "Greenway Primary and Nursery School",
"Postcode": "HP43NH"
},
{
"SchoolName": "Thorn Grove Primary School",
"Postcode": "CM235LD"
},
{
"SchoolName": "Icknield Walk First School",
"Postcode": "SG87EZ"
},
{
"SchoolName": "Cunningham Hill Infant School",
"Postcode": "AL15QJ"
},
{
"SchoolName": "Reedings Junior School",
"Postcode": "CM219DD"
},
{
"SchoolName": "The Grove Infant and Nursery School",
"Postcode": "AL51QD"
},
{
"SchoolName": "Kings Langley Primary School",
"Postcode": "WD48DQ"
},
{
"SchoolName": "Forres Primary School",
"Postcode": "EN110RW"
},
{
"SchoolName": "Martins Wood Primary School",
"Postcode": "SG15RT"
},
{
"SchoolName": "Dundale Primary School and Nursery",
"Postcode": "HP235DJ"
},
{
"SchoolName": "Redbourn Junior School",
"Postcode": "AL37EX"
},
{
"SchoolName": "Arnett Hills Junior Mixed and Infant School",
"Postcode": "WD34BT"
},
{
"SchoolName": "Holywell Primary School",
"Postcode": "WD186LL"
},
{
"SchoolName": "Trotts Hill Primary and Nursery School",
"Postcode": "SG15JD"
},
{
"SchoolName": "Cassiobury Infant and Nursery School",
"Postcode": "WD173PE"
},
{
"SchoolName": "Panshanger Primary School",
"Postcode": "AL71QY"
},
{
"SchoolName": "Bournehall Primary School",
"Postcode": "WD233AX"
},
{
"SchoolName": "Mill Mead Primary School",
"Postcode": "SG143AA"
},
{
"SchoolName": "Maple Primary School",
"Postcode": "AL13SW"
},
{
"SchoolName": "Round Diamond Primary School",
"Postcode": "SG16NH"
},
{
"SchoolName": "Hartsbourne Primary School",
"Postcode": "WD231SJ"
},
{
"SchoolName": "Beech Hyde Primary School and Nursery",
"Postcode": "AL48TP"
},
{
"SchoolName": "Andrews Lane Primary School",
"Postcode": "EN76LB"
},
{
"SchoolName": "Newberries Primary School",
"Postcode": "WD77EL"
},
{
"SchoolName": "Rickmansworth Park Junior Mixed and Infant School",
"Postcode": "WD31HU"
},
{
"SchoolName": "Mandeville Primary School",
"Postcode": "CM210BL"
},
{
"SchoolName": "Giles Junior School",
"Postcode": "SG14JQ"
},
{
"SchoolName": "Bromet Primary School",
"Postcode": "WD194SG"
},
{
"SchoolName": "Millfield First and Nursery School",
"Postcode": "SG99DT"
},
{
"SchoolName": "Hillmead Primary School",
"Postcode": "CM234PW"
},
{
"SchoolName": "Nascot Wood Junior School",
"Postcode": "WD174YS"
},
{
"SchoolName": "The Ryde School",
"Postcode": "AL95DR"
},
{
"SchoolName": "William Ransom Primary School",
"Postcode": "SG49QB"
},
{
"SchoolName": "Prae Wood Primary School",
"Postcode": "AL34HZ"
},
{
"SchoolName": "The Giles Infant and Nursery School",
"Postcode": "SG14JQ"
},
{
"SchoolName": "Kingsway Infants' School",
"Postcode": "WD250ES"
},
{
"SchoolName": "Kingshill Infant School",
"Postcode": "SG120RL"
},
{
"SchoolName": "Woodside Primary School",
"Postcode": "EN75JS"
},
{
"SchoolName": "Woolenwick Junior School",
"Postcode": "SG12NU"
},
{
"SchoolName": "Woolenwick Infant and Nursery School",
"Postcode": "SG12NU"
},
{
"SchoolName": "Leavesden JMI School",
"Postcode": "WD257QZ"
},
{
"SchoolName": "Springmead Primary School",
"Postcode": "AL72HB"
},
{
"SchoolName": "Longlands Primary School and Nursery",
"Postcode": "EN106AG"
},
{
"SchoolName": "The Lea Primary School and Nursery",
"Postcode": "AL54LE"
},
{
"SchoolName": "Wheatcroft Primary School",
"Postcode": "SG137HQ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SG40QA"
},
{
"SchoolName": "Lordship Farm Primary School",
"Postcode": "SG63UF"
},
{
"SchoolName": "Studlands Rise First School",
"Postcode": "SG89HB"
},
{
"SchoolName": "Roman Way First School",
"Postcode": "SG85EQ"
},
{
"SchoolName": "Lime Walk Primary School",
"Postcode": "HP39LN"
},
{
"SchoolName": "Fairfields Primary School and Nursery",
"Postcode": "EN76JG"
},
{
"SchoolName": "Aycliffe Drive Primary School",
"Postcode": "HP26LJ"
},
{
"SchoolName": "Holtsmere End Junior School",
"Postcode": "HP27JZ"
},
{
"SchoolName": "<NAME> Junior Mixed and Infant School",
"Postcode": "SG52JQ"
},
{
"SchoolName": "Cherry Tree Primary School",
"Postcode": "WD246ST"
},
{
"SchoolName": "Coates Way JMI and Nursery School",
"Postcode": "WD259NW"
},
{
"SchoolName": "Grove Road Primary School",
"Postcode": "HP235PD"
},
{
"SchoolName": "High Beeches Primary School",
"Postcode": "AL55SD"
},
{
"SchoolName": "Stonehill School",
"Postcode": "SG64SZ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "CM233NP"
},
{
"SchoolName": "Mount Pleasant Lane Junior Mixed and Infant School and Nursery",
"Postcode": "AL23XA"
},
{
"SchoolName": "Watchlytes Junior Mixed Infant and Nursery School",
"Postcode": "AL72AZ"
},
{
"SchoolName": "Brockswood Primary School",
"Postcode": "HP27QH"
},
{
"SchoolName": "Ashtree Primary School and Nursery",
"Postcode": "SG29JQ"
},
{
"SchoolName": "Sheredes Primary School",
"Postcode": "EN118LL"
},
{
"SchoolName": "Wood End School",
"Postcode": "AL53EF"
},
{
"SchoolName": "Bengeo Primary School",
"Postcode": "SG143DX"
},
{
"SchoolName": "Morgans Primary School & Nursery",
"Postcode": "SG138DR"
},
{
"SchoolName": "The Leys Primary and Nursery School",
"Postcode": "SG14QZ"
},
{
"SchoolName": "Belswains Primary School",
"Postcode": "HP39QJ"
},
{
"SchoolName": "Bonneygrove Primary School",
"Postcode": "EN75ED"
},
{
"SchoolName": "Burleigh Primary School",
"Postcode": "EN89DP"
},
{
"SchoolName": "Hobbs Hill Wood Primary School",
"Postcode": "HP38ER"
},
{
"SchoolName": "Cranborne Primary School",
"Postcode": "EN62BA"
},
{
"SchoolName": "Ladbrooke Junior Mixed and Infant School",
"Postcode": "EN61QB"
},
{
"SchoolName": "Oakmere Primary School",
"Postcode": "EN65NP"
},
{
"SchoolName": "Nascot Wood Infant and Nursery School",
"Postcode": "WD174YT"
},
{
"SchoolName": "Hartsfield Junior Mixed and Infant School",
"Postcode": "SG76PB"
},
{
"SchoolName": "Holtsmere End Infant and Nursery School",
"Postcode": "HP27JZ"
},
{
"SchoolName": "Commonswood Primary & Nursery School",
"Postcode": "AL74RU"
},
{
"SchoolName": "Millbrook School",
"Postcode": "EN89BX"
},
{
"SchoolName": "Manor Fields Primary School",
"Postcode": "CM234LE"
},
{
"SchoolName": "Aldbury Church of England Primary School",
"Postcode": "HP235RT"
},
{
"SchoolName": "St John's Church of England Infant and Nursery School",
"Postcode": "WD78DD"
},
{
"SchoolName": "St Mary's Infants' School",
"Postcode": "SG76HY"
},
{
"SchoolName": "St Mary's Junior Mixed School",
"Postcode": "SG76HY"
},
{
"SchoolName": "Barley Church of England Voluntary Controlled First School",
"Postcode": "SG88JW"
},
{
"SchoolName": "Bayford Church of England Voluntary Controlled Primary School",
"Postcode": "SG138PX"
},
{
"SchoolName": "Tonwell St Mary's Church of England Primary School",
"Postcode": "SG120HN"
},
{
"SchoolName": "Benington Church of England Primary School",
"Postcode": "SG27LP"
},
{
"SchoolName": "Layston Church of England First School",
"Postcode": "SG99EU"
},
{
"SchoolName": "Ashfield Junior School",
"Postcode": "WD231SR"
},
{
"SchoolName": "Codicote Church of England Primary School",
"Postcode": "SG48YL"
},
{
"SchoolName": "Essendon CofE (VC) Primary School",
"Postcode": "AL96HD"
},
{
"SchoolName": "Furneux Pelham Church of England School",
"Postcode": "SG90LH"
},
{
"SchoolName": "Graveley Primary School",
"Postcode": "SG47LJ"
},
{
"SchoolName": "Ponsbourne St Mary's Church of England Primary School",
"Postcode": "SG138RA"
},
{
"SchoolName": "Hertford St Andrew CofE Primary School",
"Postcode": "SG142EP"
},
{
"SchoolName": "High Wych Church of England Primary School",
"Postcode": "CM210JB"
},
{
"SchoolName": "Wormley Primary School",
"Postcode": "EN106QA"
},
{
"SchoolName": "Ickleford Primary School",
"Postcode": "SG53TG"
},
{
"SchoolName": "Little Munden Church of England Voluntary Controlled Primary School",
"Postcode": "SG120NR"
},
{
"SchoolName": "Preston Primary School",
"Postcode": "SG47UJ"
},
{
"SchoolName": "Sarratt Church of England Primary School",
"Postcode": "WD36AS"
},
{
"SchoolName": "Spellbrook Primary School",
"Postcode": "CM234BA"
},
{
"SchoolName": "Roger De Clare First CofE School",
"Postcode": "SG111TF"
},
{
"SchoolName": "St Andrew's Church of England Voluntary Controlled Primary School",
"Postcode": "SG128BZ"
},
{
"SchoolName": "Thundridge Church of England Primary School",
"Postcode": "SG120SY"
},
{
"SchoolName": "St Mary's Voluntary Controlled Church of England Junior School",
"Postcode": "SG120RL"
},
{
"SchoolName": "St Catherine's Church of England Primary School",
"Postcode": "SG120AW"
},
{
"SchoolName": "Wareside Church of England Primary School",
"Postcode": "SG127QR"
},
{
"SchoolName": "Weston Primary School",
"Postcode": "SG47AG"
},
{
"SchoolName": "Potten End CofE Primary School",
"Postcode": "HP42QY"
},
{
"SchoolName": "Dewhurst St Mary CofE Primary School",
"Postcode": "EN89ND"
},
{
"SchoolName": "Leverstock Green Church of England Primary School",
"Postcode": "HP24SA"
},
{
"SchoolName": "St Paul's Church of England Primary School, Langleybury",
"Postcode": "WD48RJ"
},
{
"SchoolName": "Nash Mills Church of England Primary School",
"Postcode": "HP39XB"
},
{
"SchoolName": "Albury Church of England Voluntary Aided Primary School",
"Postcode": "SG112JQ"
},
{
"SchoolName": "Ardeley St Lawrence Church of England Voluntary Aided Primary School",
"Postcode": "SG27AJ"
},
{
"SchoolName": "Aston St Mary's Church of England Aided Primary School",
"Postcode": "SG27HA"
},
{
"SchoolName": "Barkway VA Church of England First School",
"Postcode": "SG88EF"
},
{
"SchoolName": "Victoria Church of England Infant and Nursery School",
"Postcode": "HP43HA"
},
{
"SchoolName": "St Mary's CofE Primary School, Northchurch",
"Postcode": "HP43QZ"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "CM232NL"
},
{
"SchoolName": "St Michael's Church of England Primary School",
"Postcode": "CM233SN"
},
{
"SchoolName": "Holy Trinity Church of England Primary School",
"Postcode": "EN88LU"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "EN87EN"
},
{
"SchoolName": "All Saints Church of England Voluntary Aided Primary School, Datchworth",
"Postcode": "SG36RE"
},
{
"SchoolName": "St Nicholas Elstree Church of England VA Primary School",
"Postcode": "WD63EW"
},
{
"SchoolName": "St John the Baptist Voluntary Aided Church of England Primary School",
"Postcode": "SG129SE"
},
{
"SchoolName": "Great Gaddesden Church of England Primary School",
"Postcode": "HP13BT"
},
{
"SchoolName": "St Nicholas CofE VA Primary School",
"Postcode": "AL52TP"
},
{
"SchoolName": "St John's Voluntary Aided Church of England Primary School, Lemsford",
"Postcode": "AL87TR"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "SG142BU"
},
{
"SchoolName": "Broxbourne CofE Primary School",
"Postcode": "EN107AY"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "EN118DP"
},
{
"SchoolName": "Hormead Church of England (VA) First School",
"Postcode": "SG90NR"
},
{
"SchoolName": "St Ippolyts Church of England Aided Primary School",
"Postcode": "SG47PB"
},
{
"SchoolName": "St Paul's Church of England Voluntary Aided Primary School, Chipperfield",
"Postcode": "WD49BS"
},
{
"SchoolName": "Norton St Nicholas CofE (VA) Primary School",
"Postcode": "SG61AG"
},
{
"SchoolName": "Little Gaddesden Church of England Voluntary Aided Primary School",
"Postcode": "HP41NX"
},
{
"SchoolName": "St Andrew's CofE Primary School and Nursery",
"Postcode": "SG106DL"
},
{
"SchoolName": "Offley Endowed Primary School",
"Postcode": "SG53AT"
},
{
"SchoolName": "Cockernhoe Endowed CofE Primary School",
"Postcode": "LU28PY"
},
{
"SchoolName": "St Mary's Church of England Primary School, Rickmansworth",
"Postcode": "WD31NY"
},
{
"SchoolName": "St Peter's Church of England Voluntary Aided Primary School",
"Postcode": "WD38HD"
},
{
"SchoolName": "The Abbey Church of England Voluntary Aided Primary School, St Albans",
"Postcode": "AL11DQ"
},
{
"SchoolName": "St Alban and St Stephen Roman Catholic Infant and Nursery School",
"Postcode": "AL15EX"
},
{
"SchoolName": "St Michael's Church of England Voluntary Aided Primary School, St Albans",
"Postcode": "AL34SJ"
},
{
"SchoolName": "Park Street Church of England Voluntary Aided Primary School",
"Postcode": "AL22LX"
},
{
"SchoolName": "Puller Memorial, Church of England, Voluntary Aided Primary School",
"Postcode": "SG111AZ"
},
{
"SchoolName": "St Thomas of Canterbury Roman Catholic Primary School",
"Postcode": "SG111RZ"
},
{
"SchoolName": "Stapleford Primary School",
"Postcode": "SG143NB"
},
{
"SchoolName": "St Nicholas CofE (VA) Primary School and Nursery",
"Postcode": "SG20PZ"
},
{
"SchoolName": "Tewin Cowper Church of England Voluntary Aided Primary School",
"Postcode": "AL60JU"
},
{
"SchoolName": "Bishop Wood Church of England Junior School, Tring",
"Postcode": "HP235AU"
},
{
"SchoolName": "Long Marston VA Church of England Primary School",
"Postcode": "HP234QS"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "AL60BX"
},
{
"SchoolName": "St Michael's Woolmer Green CofE VA Primary School",
"Postcode": "SG36JP"
},
{
"SchoolName": "St Helen's Church of England Primary School",
"Postcode": "AL48AN"
},
{
"SchoolName": "St Bartholomew's Church of England Voluntary Aided Primary School, Wigginton",
"Postcode": "HP236EP"
},
{
"SchoolName": "Our Lady Roman Catholic Primary School",
"Postcode": "AL73TF"
},
{
"SchoolName": "St Joseph Catholic Primary School",
"Postcode": "WD197DW"
},
{
"SchoolName": "St Teresa Roman Catholic Primary School",
"Postcode": "WD65HL"
},
{
"SchoolName": "St Andrew's Church of England Voluntary Aided Primary School, Hitchin",
"Postcode": "SG49RD"
},
{
"SchoolName": "St <NAME>ne Catholic Junior School",
"Postcode": "HP13EA"
},
{
"SchoolName": "St <NAME>ard Catholic Primary School",
"Postcode": "AL108NN"
},
{
"SchoolName": "St Adrian Roman Catholic Primary School",
"Postcode": "AL12PB"
},
{
"SchoolName": "Saint Albert the Great Catholic Primary School",
"Postcode": "HP38DW"
},
{
"SchoolName": "All Saints Church of England Primary School and Nursery, Bishop's Stortford",
"Postcode": "CM235BE"
},
{
"SchoolName": "Christ Church CofE (VA) Primary School and Nursery, Ware",
"Postcode": "SG127BT"
},
{
"SchoolName": "St <NAME> Roman Catholic Primary School",
"Postcode": "SG28QJ"
},
{
"SchoolName": "St John Catholic Primary School",
"Postcode": "WD37HG"
},
{
"SchoolName": "St Dominic Catholic Primary School",
"Postcode": "AL51PF"
},
{
"SchoolName": "St Thomas More Roman Catholic Voluntary Aided Primary School",
"Postcode": "HP43LF"
},
{
"SchoolName": "St <NAME> Roman Catholic Primary School",
"Postcode": "AL49RW"
},
{
"SchoolName": "The Holy Family Catholic Primary School",
"Postcode": "AL71PG"
},
{
"SchoolName": "St Cross Catholic Primary School",
"Postcode": "EN118BN"
},
{
"SchoolName": "St Rose's Catholic Infants School",
"Postcode": "HP11QW"
},
{
"SchoolName": "Divine Saviour Roman Catholic Primary School",
"Postcode": "WD50HW"
},
{
"SchoolName": "Sacred Heart Catholic Primary School and Nursery",
"Postcode": "WD231SU"
},
{
"SchoolName": "Saint Bernadette Catholic Primary School",
"Postcode": "AL21NL"
},
{
"SchoolName": "Welwyn St Mary's Church of England Voluntary Aided Primary School",
"Postcode": "AL69DJ"
},
{
"SchoolName": "Saint Alban and St Stephen Catholic Junior School",
"Postcode": "AL15EG"
},
{
"SchoolName": "St Paul's Catholic Primary School",
"Postcode": "EN76LR"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "SG129HY"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "WD186BW"
},
{
"SchoolName": "Pope Paul Catholic Primary School",
"Postcode": "EN62ES"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "AL97NE"
},
{
"SchoolName": "Saint Vincent de Paul Catholic Primary School",
"Postcode": "SG11NJ"
},
{
"SchoolName": "The Priory School",
"Postcode": "SG52UR"
},
{
"SchoolName": "The Hemel Hempstead School",
"Postcode": "HP11TX"
},
{
"SchoolName": "Fearnhill School",
"Postcode": "SG64BA"
},
{
"SchoolName": "Adeyfield School",
"Postcode": "HP24DE"
},
{
"SchoolName": "Barclay School",
"Postcode": "SG13RB"
},
{
"SchoolName": "Barnwell School",
"Postcode": "SG29SW"
},
{
"SchoolName": "<NAME>",
"Postcode": "AL72AF"
},
{
"SchoolName": "The Cavendish School",
"Postcode": "HP13DW"
},
{
"SchoolName": "The Nobel School",
"Postcode": "SG20HS"
},
{
"SchoolName": "Marriotts School",
"Postcode": "SG28UT"
},
{
"SchoolName": "The Highfield School",
"Postcode": "SG63QA"
},
{
"SchoolName": "Bridgewater Primary School",
"Postcode": "HP41ES"
},
{
"SchoolName": "The Astley Cooper School",
"Postcode": "HP27HL"
},
{
"SchoolName": "Edwinstree Church of England Middle School",
"Postcode": "SG99AW"
},
{
"SchoolName": "Townsend CofE School",
"Postcode": "AL36DR"
},
{
"SchoolName": "<NAME> Catholic School",
"Postcode": "HP12PH"
},
{
"SchoolName": "The Thomas Coram Church of England School",
"Postcode": "HP42RP"
},
{
"SchoolName": "Parkside Community Primary School",
"Postcode": "WD64EP"
},
{
"SchoolName": "Hertingfordbury Cowper Primary School",
"Postcode": "SG142LR"
},
{
"SchoolName": "St Giles' CofE Primary School",
"Postcode": "EN63PE"
},
{
"SchoolName": "Cuffley School",
"Postcode": "EN64HN"
},
{
"SchoolName": "Little Heath Primary School",
"Postcode": "EN61JW"
},
{
"SchoolName": "Northaw Church of England Primary School",
"Postcode": "EN64PB"
},
{
"SchoolName": "Brookmans Park Primary School",
"Postcode": "AL97QY"
},
{
"SchoolName": "The Bishop's Stortford High School",
"Postcode": "CM233LU"
},
{
"SchoolName": "Ashlyns School",
"Postcode": "HP43AH"
},
{
"SchoolName": "Chancellor's School",
"Postcode": "AL97BN"
},
{
"SchoolName": "St Mary's Catholic School",
"Postcode": "CM232NQ"
},
{
"SchoolName": "Cheshunt School",
"Postcode": "EN89LY"
},
{
"SchoolName": "Abbot's Hill School",
"Postcode": "HP38RP"
},
{
"SchoolName": "Edge Grove School",
"Postcode": "WD258NL"
},
{
"SchoolName": "The Aldenham Foundation",
"Postcode": "WD63AJ"
},
{
"SchoolName": "Berkhamsted School",
"Postcode": "HP42DJ"
},
{
"SchoolName": "Bishop's Stortford College",
"Postcode": "CM232PJ"
},
{
"SchoolName": "St Margaret's School",
"Postcode": "WD231DT"
},
{
"SchoolName": "Haileybury and Imperial Service College",
"Postcode": "SG137NU"
},
{
"SchoolName": "Aldwickbury School",
"Postcode": "AL51AD"
},
{
"SchoolName": "Queenswood School",
"Postcode": "AL96NS"
},
{
"SchoolName": "Westbrook Hay Prep School",
"Postcode": "HP12RF"
},
{
"SchoolName": "Lockers Park School",
"Postcode": "HP11TL"
},
{
"SchoolName": "St Christopher School",
"Postcode": "SG63JZ"
},
{
"SchoolName": "St Francis College",
"Postcode": "SG63PJ"
},
{
"SchoolName": "Princess Helena College",
"Postcode": "SG47RT"
},
{
"SchoolName": "Radlett Preparatory School",
"Postcode": "WD77LY"
},
{
"SchoolName": "Merchant Taylors' School",
"Postcode": "HA62HT"
},
{
"SchoolName": "St Albans High School for Girls",
"Postcode": "AL13SJ"
},
{
"SchoolName": "Tring Park School for the Performing Arts",
"Postcode": "HP235LX"
},
{
"SchoolName": "Beechwood Park School",
"Postcode": "AL38AW"
},
{
"SchoolName": "Heath Mount School",
"Postcode": "SG143NG"
},
{
"SchoolName": "Sherrardswood School",
"Postcode": "AL60BJ"
},
{
"SchoolName": "Egerton-Rothesay School",
"Postcode": "HP43UJ"
},
{
"SchoolName": "St Hilda's School",
"Postcode": "WD233DA"
},
{
"SchoolName": "St Hilda's School",
"Postcode": "AL52ES"
},
{
"SchoolName": "Duncombe School",
"Postcode": "SG143JA"
},
{
"SchoolName": "St Joseph's in the Park",
"Postcode": "SG142LX"
},
{
"SchoolName": "Kingshott School",
"Postcode": "SG47JX"
},
{
"SchoolName": "Rudolf Steiner School",
"Postcode": "WD49HG"
},
{
"SchoolName": "St Edmund's College",
"Postcode": "SG111DS"
},
{
"SchoolName": "Charlotte House Preparatory School",
"Postcode": "WD34DU"
},
{
"SchoolName": "York House School",
"Postcode": "WD34LW"
},
{
"SchoolName": "St Columba's College",
"Postcode": "AL34AW"
},
{
"SchoolName": "Stanborough Secondary School",
"Postcode": "WD259JT"
},
{
"SchoolName": "Royal Masonic School for Girls",
"Postcode": "WD34HF"
},
{
"SchoolName": "Lochinver House School",
"Postcode": "EN61LW"
},
{
"SchoolName": "Stormont School",
"Postcode": "EN65HA"
},
{
"SchoolName": "Radlett Lodge School",
"Postcode": "WD79HW"
},
{
"SchoolName": "St Albans School",
"Postcode": "AL34HB"
},
{
"SchoolName": "Haberdashers' Aske's Boys' School",
"Postcode": "WD63AF"
},
{
"SchoolName": "Haberdashers' Aske's School for Girls",
"Postcode": "WD63BT"
},
{
"SchoolName": "The King's School",
"Postcode": "AL54DU"
},
{
"SchoolName": "Merchant Taylors' Prep School",
"Postcode": "WD31LW"
},
{
"SchoolName": "Berkhamsted Pre-Prep School",
"Postcode": "HP42SZ"
},
{
"SchoolName": "Bhaktivedanta Manor School",
"Postcode": "WD258EZ"
},
{
"SchoolName": "Immanuel College",
"Postcode": "WD234EB"
},
{
"SchoolName": "Manor Lodge School",
"Postcode": "WD79BG"
},
{
"SchoolName": "High Elms Manor School",
"Postcode": "WD250JX"
},
{
"SchoolName": "Longwood School & Nursery",
"Postcode": "WD232QG"
},
{
"SchoolName": "St Elizabeth's School",
"Postcode": "SG106EW"
},
{
"SchoolName": "Garston Manor School",
"Postcode": "WD257HR"
},
{
"SchoolName": "The Valley School",
"Postcode": "SG29AB"
},
{
"SchoolName": "Colnbrook School",
"Postcode": "WD197UY"
},
{
"SchoolName": "St Luke's School",
"Postcode": "AL37ET"
},
{
"SchoolName": "The Collett School",
"Postcode": "HP11TQ"
},
{
"SchoolName": "Batchwood School",
"Postcode": "AL35RP"
},
{
"SchoolName": "Middleton School",
"Postcode": "SG129PD"
},
{
"SchoolName": "Lonsdale School",
"Postcode": "SG28UT"
},
{
"SchoolName": "Lakeside School",
"Postcode": "AL86YN"
},
{
"SchoolName": "Breakspeare School",
"Postcode": "WD50BU"
},
{
"SchoolName": "Woodfield School",
"Postcode": "HP38RL"
},
{
"SchoolName": "Watling View School",
"Postcode": "AL12NU"
},
{
"SchoolName": "Amwell View School",
"Postcode": "SG128EH"
},
{
"SchoolName": "Heathlands School",
"Postcode": "AL35AY"
},
{
"SchoolName": "Falconer School",
"Postcode": "WD233AT"
},
{
"SchoolName": "Greenside School",
"Postcode": "SG29XS"
},
{
"SchoolName": "Meadow Wood School",
"Postcode": "WD234NN"
},
{
"SchoolName": "McMillan Nursery School",
"Postcode": "HU68HT"
},
{
"SchoolName": "Bridlington Nursery School",
"Postcode": "YO167BS"
},
{
"SchoolName": "Great Coates Village Nursery School",
"Postcode": "DN379NN"
},
{
"SchoolName": "Beverley Manor Nursery School",
"Postcode": "HU177BT"
},
{
"SchoolName": "Hornsea Nursery School",
"Postcode": "HU181PB"
},
{
"SchoolName": "Scartho Nursery School",
"Postcode": "DN332EW"
},
{
"SchoolName": "Rise Academy",
"Postcode": "HU20LH"
},
{
"SchoolName": "The Darley Centre",
"Postcode": "DN162TD"
},
{
"SchoolName": "Adelaide Primary School",
"Postcode": "HU32RA"
},
{
"SchoolName": "Cavendish Primary School",
"Postcode": "HU80JU"
},
{
"SchoolName": "Gillshill Primary School",
"Postcode": "HU80JU"
},
{
"SchoolName": "Clifton Primary School",
"Postcode": "HU29BP"
},
{
"SchoolName": "Alkborough Primary School",
"Postcode": "DN159JG"
},
{
"SchoolName": "Althorpe and Keadby Primary School",
"Postcode": "DN173BN"
},
{
"SchoolName": "Bottesford Junior School",
"Postcode": "DN163PB"
},
{
"SchoolName": "Brigg Primary School",
"Postcode": "DN208AR"
},
{
"SchoolName": "Broughton Primary School",
"Postcode": "DN200JW"
},
{
"SchoolName": "Burton-upon-Stather Primary School",
"Postcode": "DN159HB"
},
{
"SchoolName": "Queen Mary Avenue Infant School",
"Postcode": "DN357SY"
},
{
"SchoolName": "East Halton Primary School",
"Postcode": "DN403PJ"
},
{
"SchoolName": "Goxhill Primary School",
"Postcode": "DN197JR"
},
{
"SchoolName": "Kirton Lindsey Primary School",
"Postcode": "DN214EH"
},
{
"SchoolName": "Luddington and Garthorpe Primary School",
"Postcode": "DN174QP"
},
{
"SchoolName": "Messingham Primary School",
"Postcode": "DN173TN"
},
{
"SchoolName": "Killingholme Primary School",
"Postcode": "DN403HX"
},
{
"SchoolName": "Brumby Junior School",
"Postcode": "DN162HY"
},
{
"SchoolName": "Bushfield Road Infant School",
"Postcode": "DN161NA"
},
{
"SchoolName": "Frodingham Infant School",
"Postcode": "DN161ST"
},
{
"SchoolName": "South Ferriby Primary School",
"Postcode": "DN186HU"
},
{
"SchoolName": "Winteringham Primary School",
"Postcode": "DN159NL"
},
{
"SchoolName": "Priory Lane Community School",
"Postcode": "DN171HE"
},
{
"SchoolName": "Enderby Road Infant School",
"Postcode": "DN172TD"
},
{
"SchoolName": "Leys Farm Junior School",
"Postcode": "DN172PB"
},
{
"SchoolName": "Bottesford Infant School",
"Postcode": "DN163PB"
},
{
"SchoolName": "Berkeley Primary School",
"Postcode": "DN158AH"
},
{
"SchoolName": "Winterton Junior School",
"Postcode": "DN159QG"
},
{
"SchoolName": "Parkstone Primary School",
"Postcode": "HU67DE"
},
{
"SchoolName": "Marfleet Primary School",
"Postcode": "HU95RJ"
},
{
"SchoolName": "Oldfleet Primary School",
"Postcode": "HU94NH"
},
{
"SchoolName": "Holme Valley Primary School",
"Postcode": "DN163SL"
},
{
"SchoolName": "Bowmandale Primary School",
"Postcode": "DN185EE"
},
{
"SchoolName": "Rokeby Park Primary School",
"Postcode": "HU47NJ"
},
{
"SchoolName": "Sidmouth Primary School",
"Postcode": "HU52JY"
},
{
"SchoolName": "Stoneferry Primary School",
"Postcode": "HU70BA"
},
{
"SchoolName": "Thanet Primary School",
"Postcode": "HU94AY"
},
{
"SchoolName": "Aldbrough Primary School",
"Postcode": "HU114RR"
},
{
"SchoolName": "Barmby-on-the-Marsh Primary School",
"Postcode": "DN147HQ"
},
{
"SchoolName": "Bempton Primary School",
"Postcode": "YO151JA"
},
{
"SchoolName": "Beverley St Nicholas Community Primary School",
"Postcode": "HU170QP"
},
{
"SchoolName": "Bilton Community Primary School",
"Postcode": "HU114EG"
},
{
"SchoolName": "Boynton Primary School",
"Postcode": "YO164XQ"
},
{
"SchoolName": "Brandesburton Primary School",
"Postcode": "YO258RG"
},
{
"SchoolName": "Burlington Junior School",
"Postcode": "YO167AQ"
},
{
"SchoolName": "Burlington Infant School",
"Postcode": "YO167AQ"
},
{
"SchoolName": "Burstwick Community Primary School",
"Postcode": "HU129EA"
},
{
"SchoolName": "Burton Pidsea Primary School",
"Postcode": "HU129AU"
},
{
"SchoolName": "Driffield Junior School",
"Postcode": "YO255HN"
},
{
"SchoolName": "Eastrington Primary School",
"Postcode": "DN147QE"
},
{
"SchoolName": "Brough Primary School",
"Postcode": "HU151AE"
},
{
"SchoolName": "Gilberdyke Primary School",
"Postcode": "HU152SS"
},
{
"SchoolName": "Hedon Primary School",
"Postcode": "HU128BN"
},
{
"SchoolName": "Holme-upon-Spalding Moor Primary School",
"Postcode": "YO434HL"
},
{
"SchoolName": "Hornsea Community Primary School",
"Postcode": "HU181PB"
},
{
"SchoolName": "Howden Junior School",
"Postcode": "DN147SL"
},
{
"SchoolName": "Hutton Cranswick Community Primary School",
"Postcode": "YO259PD"
},
{
"SchoolName": "Nafferton Primary School",
"Postcode": "YO254LJ"
},
{
"SchoolName": "Newbald Primary School",
"Postcode": "YO434SQ"
},
{
"SchoolName": "Newport Primary School",
"Postcode": "HU152PP"
},
{
"SchoolName": "North Frodingham Primary School",
"Postcode": "YO258LA"
},
{
"SchoolName": "Paull Primary School",
"Postcode": "HU128AW"
},
{
"SchoolName": "Preston Primary School",
"Postcode": "HU128UY"
},
{
"SchoolName": "Walkington Primary School",
"Postcode": "HU178SB"
},
{
"SchoolName": "Wawne Primary School",
"Postcode": "HU75XT"
},
{
"SchoolName": "Welton Primary School",
"Postcode": "HU151TJ"
},
{
"SchoolName": "Leconfield Primary School",
"Postcode": "HU177NP"
},
{
"SchoolName": "Melbourne Community Primary School",
"Postcode": "YO424QE"
},
{
"SchoolName": "Cottingham Croxby Primary School",
"Postcode": "HU54TN"
},
{
"SchoolName": "Bacon Garth Primary School",
"Postcode": "HU165BP"
},
{
"SchoolName": "Bubwith Community Primary School",
"Postcode": "YO86LW"
},
{
"SchoolName": "Kirk Ella St Andrew's Community Primary School",
"Postcode": "HU107QL"
},
{
"SchoolName": "Skipsea Primary School",
"Postcode": "YO258ST"
},
{
"SchoolName": "Westfield Primary School",
"Postcode": "HU165PE"
},
{
"SchoolName": "Springhead Primary School",
"Postcode": "HU106TW"
},
{
"SchoolName": "Martongate Primary School",
"Postcode": "YO166YD"
},
{
"SchoolName": "Acre Heads Primary School",
"Postcode": "HU47ST"
},
{
"SchoolName": "Molescroft Primary School",
"Postcode": "HU177HF"
},
{
"SchoolName": "Elloughton Primary School",
"Postcode": "HU151HN"
},
{
"SchoolName": "Rawcliffe Primary School",
"Postcode": "DN148RG"
},
{
"SchoolName": "Rawcliffe Bridge Primary School",
"Postcode": "DN148NH"
},
{
"SchoolName": "Snaith Primary School",
"Postcode": "DN149RE"
},
{
"SchoolName": "Coomb Briggs Primary School",
"Postcode": "DN402DY"
},
{
"SchoolName": "New Pasture Lane Primary School",
"Postcode": "YO167NR"
},
{
"SchoolName": "Inmans Primary School",
"Postcode": "HU128NL"
},
{
"SchoolName": "Market Weighton Infant School",
"Postcode": "YO433EY"
},
{
"SchoolName": "Broadacre Primary School",
"Postcode": "HU75YS"
},
{
"SchoolName": "Griffin Primary School",
"Postcode": "HU94JL"
},
{
"SchoolName": "Northfield Infant School",
"Postcode": "YO255YN"
},
{
"SchoolName": "Western Primary School",
"Postcode": "DN345RS"
},
{
"SchoolName": "Mountbatten Primary School",
"Postcode": "HU94HR"
},
{
"SchoolName": "Woodland Primary School",
"Postcode": "HU95SN"
},
{
"SchoolName": "Crosby Primary School",
"Postcode": "DN156AS"
},
{
"SchoolName": "Parkside Primary School",
"Postcode": "DN146RQ"
},
{
"SchoolName": "Kingsway Primary School",
"Postcode": "DN145HQ"
},
{
"SchoolName": "Marshlands Primary School",
"Postcode": "DN145UE"
},
{
"SchoolName": "Reedness Primary School",
"Postcode": "DN148HG"
},
{
"SchoolName": "Airmyn Park Primary School",
"Postcode": "DN148NZ"
},
{
"SchoolName": "Boothferry Primary School",
"Postcode": "DN146TL"
},
{
"SchoolName": "Swinefleet Primary School",
"Postcode": "DN148BX"
},
{
"SchoolName": "Scartho Infants' School and Nursery",
"Postcode": "DN332DH"
},
{
"SchoolName": "Castledyke Primary School",
"Postcode": "DN185AW"
},
{
"SchoolName": "Beeford Church of England Voluntary Controlled Primary School",
"Postcode": "YO258AY"
},
{
"SchoolName": "Beswick and Watton CofE (VC) School",
"Postcode": "YO259AR"
},
{
"SchoolName": "Beverley Minster Church of England Voluntary Controlled Primary School",
"Postcode": "HU178LA"
},
{
"SchoolName": "Bishop Wilton Church of England Voluntary Controlled Primary School",
"Postcode": "YO421SP"
},
{
"SchoolName": "Burton Agnes Church of England Voluntary Controlled Primary School",
"Postcode": "YO254NE"
},
{
"SchoolName": "Driffield Church of England Voluntary Controlled Infant School",
"Postcode": "YO256RS"
},
{
"SchoolName": "Flamborough CofE Primary School",
"Postcode": "YO151LW"
},
{
"SchoolName": "Garton-on-the-Wolds Church of England Voluntary Controlled Primary School",
"Postcode": "YO253EX"
},
{
"SchoolName": "All Saints' Church of England Junior School",
"Postcode": "HU139JD"
},
{
"SchoolName": "All Saints Church of England Voluntary Controlled Infant School, Hessle",
"Postcode": "HU139JD"
},
{
"SchoolName": "Kilham Church of England Voluntary Controlled School",
"Postcode": "YO254SR"
},
{
"SchoolName": "Leven Church of England Voluntary Controlled Primary School",
"Postcode": "HU175NX"
},
{
"SchoolName": "Mount Pleasant Church of England Voluntary Controlled Junior School",
"Postcode": "YO433BY"
},
{
"SchoolName": "Middleton-on-the-Wolds Church of England Voluntary Controlled Primary School",
"Postcode": "YO259UQ"
},
{
"SchoolName": "North Cave Church of England Voluntary Controlled Primary School",
"Postcode": "HU152LA"
},
{
"SchoolName": "North Ferriby Church of England Voluntary Controlled Primary School",
"Postcode": "HU143BZ"
},
{
"SchoolName": "Pocklington Church of England Voluntary Controlled Infant School",
"Postcode": "YO422HE"
},
{
"SchoolName": "Riston Church of England Voluntary Controlled Primary School",
"Postcode": "HU115JF"
},
{
"SchoolName": "Roos Church of England Voluntary Controlled Primary School",
"Postcode": "HU120HB"
},
{
"SchoolName": "Little Weighton Rowley Church of England Voluntary Controlled Primary School",
"Postcode": "HU203XE"
},
{
"SchoolName": "Skidby Church of England Voluntary Controlled Primary School",
"Postcode": "HU165TX"
},
{
"SchoolName": "Skirlaugh Church of England Voluntary Controlled Primary School",
"Postcode": "HU115EB"
},
{
"SchoolName": "Tickton Church of England Voluntary Controlled Primary School",
"Postcode": "HU179RZ"
},
{
"SchoolName": "Warter Church of England Primary School",
"Postcode": "YO421XR"
},
{
"SchoolName": "Wetwang Church of England Voluntary Controlled Primary School",
"Postcode": "YO259XT"
},
{
"SchoolName": "Wilberfoss Church of England Voluntary Controlled Primary School",
"Postcode": "YO415ND"
},
{
"SchoolName": "Woodmansey Church of England Voluntary Controlled Primary School",
"Postcode": "HU170TH"
},
{
"SchoolName": "Bugthorpe Church of England Voluntary Controlled Primary School",
"Postcode": "YO411QQ"
},
{
"SchoolName": "Lockington Church of England Voluntary Controlled Primary School",
"Postcode": "YO259SH"
},
{
"SchoolName": "Cherry Burton Church of England Voluntary Controlled Primary School",
"Postcode": "HU177RF"
},
{
"SchoolName": "South Cave Church of England Voluntary Controlled Primary School",
"Postcode": "HU152EP"
},
{
"SchoolName": "St Barnabas CofE Primary School, Barnetby",
"Postcode": "DN386JD"
},
{
"SchoolName": "John Harrison CofE Primary School",
"Postcode": "DN197AP"
},
{
"SchoolName": "Barton St Peter's CofE Primary School",
"Postcode": "DN185HB"
},
{
"SchoolName": "Belton All Saints CofE Primary School",
"Postcode": "DN91LR"
},
{
"SchoolName": "Gunness and Burringham CofE Primary School",
"Postcode": "DN173LT"
},
{
"SchoolName": "Haxey CofE Primary School",
"Postcode": "DN92JQ"
},
{
"SchoolName": "The Humberston CofE Primary School",
"Postcode": "DN364HZ"
},
{
"SchoolName": "Kirmington CofE Primary School",
"Postcode": "DN396YP"
},
{
"SchoolName": "Stanford Junior and Infant School",
"Postcode": "DN377AX"
},
{
"SchoolName": "Scunthorpe CofE Primary School",
"Postcode": "DN156HP"
},
{
"SchoolName": "Stallingborough CofE Primary School",
"Postcode": "DN418AP"
},
{
"SchoolName": "West Butterwick C of E Primary School",
"Postcode": "DN173LB"
},
{
"SchoolName": "Winterton Church of England Infants' School",
"Postcode": "DN159QF"
},
{
"SchoolName": "Wrawby St Mary's CofE Primary School",
"Postcode": "DN208RY"
},
{
"SchoolName": "Wroot Travis Charity Church of England Primary School",
"Postcode": "DN92BN"
},
{
"SchoolName": "New Holland Church of England and Methodist Primary School",
"Postcode": "DN197RN"
},
{
"SchoolName": "Cowick Church of England Voluntary Controlled Primary School",
"Postcode": "DN149DG"
},
{
"SchoolName": "Sutton Upon Derwent Church of England Voluntary Controlled Primary School",
"Postcode": "YO414BN"
},
{
"SchoolName": "Sledmere Church of England Voluntary Controlled Primary School",
"Postcode": "YO253XP"
},
{
"SchoolName": "Hook Church of England Voluntary Controlled Primary School",
"Postcode": "DN145NW"
},
{
"SchoolName": "St Mary's Church of England Voluntary Controlled Primary School, Beverley",
"Postcode": "HU177HD"
},
{
"SchoolName": "St John of Beverley Roman Catholic Primary School, Beverley",
"Postcode": "HU170BU"
},
{
"SchoolName": "St Mary's Market Weighton, Roman Catholic Primary School",
"Postcode": "YO433DB"
},
{
"SchoolName": "St Martin's Church of England Voluntary Aided Primary School, Fangfoss",
"Postcode": "YO415QG"
},
{
"SchoolName": "St Mary and St Joseph Roman Catholic Voluntary Aided Primary School",
"Postcode": "YO422HE"
},
{
"SchoolName": "Our Lady and St Peter Roman Catholic Voluntary Aided Primary School Bridlington",
"Postcode": "YO153PS"
},
{
"SchoolName": "St Martin's CofE Primary School",
"Postcode": "DN91AY"
},
{
"SchoolName": "Wootton St Andrew's CofE Primary School",
"Postcode": "DN396SG"
},
{
"SchoolName": "Eastoft Church of England Primary School",
"Postcode": "DN174PG"
},
{
"SchoolName": "Pollington-Balne Church of England Primary School",
"Postcode": "DN140DZ"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "DN146HQ"
},
{
"SchoolName": "St Andrew's Church of England Voluntary Aided Primary School",
"Postcode": "HU74BL"
},
{
"SchoolName": "Alderman Cogan's CofE Primary School",
"Postcode": "HU93HJ"
},
{
"SchoolName": "Beverley High School",
"Postcode": "HU179EX"
},
{
"SchoolName": "Longcroft School and Sixth Form College",
"Postcode": "HU177EJ"
},
{
"SchoolName": "Withernsea High School",
"Postcode": "HU192EQ"
},
{
"SchoolName": "The Market Weighton School",
"Postcode": "YO433JF"
},
{
"SchoolName": "South Holderness Technology College",
"Postcode": "HU128UZ"
},
{
"SchoolName": "Hornsea School and Language College",
"Postcode": "HU181DW"
},
{
"SchoolName": "Wolfreton School and Sixth Form College",
"Postcode": "HU106HB"
},
{
"SchoolName": "Howden School",
"Postcode": "DN147AL"
},
{
"SchoolName": "Headlands School",
"Postcode": "YO166UR"
},
{
"SchoolName": "<NAME>",
"Postcode": "DN163NG"
},
{
"SchoolName": "Baysgarth School",
"Postcode": "DN186AE"
},
{
"SchoolName": "Bridlington School",
"Postcode": "YO164QU"
},
{
"SchoolName": "<NAME> School",
"Postcode": "DN208AA"
},
{
"SchoolName": "Wold Newton Foundation School",
"Postcode": "YO253YJ"
},
{
"SchoolName": "Howden Church of England Infant School",
"Postcode": "DN147SL"
},
{
"SchoolName": "Barmby Moor Church of England Primary School",
"Postcode": "YO424EQ"
},
{
"SchoolName": "Froebel House School",
"Postcode": "HU53JP"
},
{
"SchoolName": "St James' School",
"Postcode": "DN344SY"
},
{
"SchoolName": "St Martin's Preparatory School",
"Postcode": "DN345AA"
},
{
"SchoolName": "Hull Collegiate School",
"Postcode": "HU107EH"
},
{
"SchoolName": "Hessle Mount School",
"Postcode": "HU130JZ"
},
{
"SchoolName": "Hymers College",
"Postcode": "HU31LW"
},
{
"SchoolName": "Pocklington School",
"Postcode": "YO422NJ"
},
{
"SchoolName": "Northcott School",
"Postcode": "HU74EL"
},
{
"SchoolName": "<NAME> School",
"Postcode": "HU68JJ"
},
{
"SchoolName": "Oakfield",
"Postcode": "HU94HD"
},
{
"SchoolName": "Kings Mill School",
"Postcode": "YO256UG"
},
{
"SchoolName": "St Anne's School and Sixth Form College",
"Postcode": "HU151NR"
},
{
"SchoolName": "St Hugh's School",
"Postcode": "DN161NB"
},
{
"SchoolName": "St Luke's Primary School",
"Postcode": "DN161BN"
},
{
"SchoolName": "Riverside Special School",
"Postcode": "DN145JS"
},
{
"SchoolName": "Chillerton and Rookley Primary School",
"Postcode": "PO303EP"
},
{
"SchoolName": "Cowes Primary School",
"Postcode": "PO318HF"
},
{
"SchoolName": "Gatten and Lake Primary School",
"Postcode": "PO377DG"
},
{
"SchoolName": "Godshill Primary School",
"Postcode": "PO383HJ"
},
{
"SchoolName": "Gurnard Primary School",
"Postcode": "PO318DS"
},
{
"SchoolName": "Nettlestone Primary School",
"Postcode": "PO345DY"
},
{
"SchoolName": "Newchurch Primary School",
"Postcode": "PO360NL"
},
{
"SchoolName": "Barton Primary School",
"Postcode": "PO302AX"
},
{
"SchoolName": "Nine Acres Primary School",
"Postcode": "PO301QP"
},
{
"SchoolName": "Niton Primary School",
"Postcode": "PO382BP"
},
{
"SchoolName": "Hunnyhill Primary School",
"Postcode": "PO305SH"
},
{
"SchoolName": "Haylands Primary School",
"Postcode": "PO333HA"
},
{
"SchoolName": "St Helen's Primary School",
"Postcode": "PO331XH"
},
{
"SchoolName": "Wootton Community Primary School",
"Postcode": "PO334PT"
},
{
"SchoolName": "Wroxall Primary School",
"Postcode": "PO383DP"
},
{
"SchoolName": "Broadlea Primary School",
"Postcode": "PO369PE"
},
{
"SchoolName": "Binstead Primary School",
"Postcode": "PO333SA"
},
{
"SchoolName": "Green Mount Primary School",
"Postcode": "PO333PT"
},
{
"SchoolName": "Summerfields Primary School",
"Postcode": "PO302LJ"
},
{
"SchoolName": "Dover Park Primary School",
"Postcode": "PO332BN"
},
{
"SchoolName": "Arreton St George's Church of England Controlled Primary School",
"Postcode": "PO303AD"
},
{
"SchoolName": "Bembridge Church of England Primary School",
"Postcode": "PO355RH"
},
{
"SchoolName": "Brading Church of England Controlled Primary School",
"Postcode": "PO360DS"
},
{
"SchoolName": "Carisbrooke Church of England Controlled Primary School",
"Postcode": "PO305QT"
},
{
"SchoolName": "All Saints Church of England Primary School, Freshwater",
"Postcode": "PO409AX"
},
{
"SchoolName": "Shalfleet Church of England Primary School",
"Postcode": "PO304NN"
},
{
"SchoolName": "Brighstone Church of England Aided Primary School",
"Postcode": "PO304BB"
},
{
"SchoolName": "Oakfield Church of England Aided Primary School, Ryde",
"Postcode": "PO331NE"
},
{
"SchoolName": "Yarmouth Church of England Aided Primary School",
"Postcode": "PO410RA"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "PO331LJ"
},
{
"SchoolName": "St Saviour's Catholic Primary School",
"Postcode": "PO390HQ"
},
{
"SchoolName": "Holy Cross Catholic Primary School",
"Postcode": "PO326AS"
},
{
"SchoolName": "St Thomas of Canterbury Catholic Primary School",
"Postcode": "PO301NR"
},
{
"SchoolName": "Newport Church of England Aided Primary School",
"Postcode": "PO305GD"
},
{
"SchoolName": "Ryde School with Upper Chine",
"Postcode": "PO333BE"
},
{
"SchoolName": "Priory School",
"Postcode": "PO326LP"
},
{
"SchoolName": "St Catherine's School",
"Postcode": "PO381TT"
},
{
"SchoolName": "St George's School",
"Postcode": "PO301XW"
},
{
"SchoolName": "Medina House School",
"Postcode": "PO302HS"
},
{
"SchoolName": "Northfleet Nursery School",
"Postcode": "DA119JS"
},
{
"SchoolName": "Darenth Community Primary School",
"Postcode": "DA28DH"
},
{
"SchoolName": "Maypole Primary School",
"Postcode": "DA27UZ"
},
{
"SchoolName": "Crockenhill Primary School",
"Postcode": "BR88JG"
},
{
"SchoolName": "The Anthony Roper Primary School",
"Postcode": "DA40AA"
},
{
"SchoolName": "Cobham Primary School",
"Postcode": "DA123BN"
},
{
"SchoolName": "Cecil Road Primary and Nursery School",
"Postcode": "DA117BT"
},
{
"SchoolName": "Higham Primary School",
"Postcode": "ME37JL"
},
{
"SchoolName": "Lawn Primary School",
"Postcode": "DA119HB"
},
{
"SchoolName": "Shears Green Infant School",
"Postcode": "DA117JF"
},
{
"SchoolName": "Bean Primary School",
"Postcode": "DA28AW"
},
{
"SchoolName": "Paddock Wood Primary School",
"Postcode": "TN126JE"
},
{
"SchoolName": "Capel Primary School",
"Postcode": "TN126RP"
},
{
"SchoolName": "Dunton Green Primary School",
"Postcode": "TN132UR"
},
{
"SchoolName": "Hadlow Primary School",
"Postcode": "TN110EH"
},
{
"SchoolName": "Halstead Community Primary School",
"Postcode": "TN147EA"
},
{
"SchoolName": "Four Elms Primary School",
"Postcode": "TN86NE"
},
{
"SchoolName": "Horsmonden Primary School",
"Postcode": "TN128NJ"
},
{
"SchoolName": "Kemsing Primary School",
"Postcode": "TN156PU"
},
{
"SchoolName": "Leigh Primary School",
"Postcode": "TN118QP"
},
{
"SchoolName": "Otford Primary School",
"Postcode": "TN145PG"
},
{
"SchoolName": "Pembury School",
"Postcode": "TN24EB"
},
{
"SchoolName": "Sandhurst Primary School",
"Postcode": "TN185JE"
},
{
"SchoolName": "Weald Community Primary School",
"Postcode": "TN146PY"
},
{
"SchoolName": "Shoreham Village School",
"Postcode": "TN147SN"
},
{
"SchoolName": "Slade Primary School and Attached Unit for Children with Hearing Impairment",
"Postcode": "TN91HR"
},
{
"SchoolName": "Sussex Road Community Primary School",
"Postcode": "TN92TP"
},
{
"SchoolName": "Boughton Monchelsea Primary School",
"Postcode": "ME174HP"
},
{
"SchoolName": "East Farleigh Primary School",
"Postcode": "ME150LY"
},
{
"SchoolName": "East Peckham Primary School",
"Postcode": "TN125LH"
},
{
"SchoolName": "Headcorn Primary School",
"Postcode": "TN279QT"
},
{
"SchoolName": "Hollingbourne Primary School",
"Postcode": "ME171UA"
},
{
"SchoolName": "Ightham Primary School",
"Postcode": "TN159DD"
},
{
"SchoolName": "Lenham Primary School",
"Postcode": "ME172LL"
},
{
"SchoolName": "Platts Heath Primary School",
"Postcode": "ME172NH"
},
{
"SchoolName": "Brunswick House Primary School",
"Postcode": "ME160QQ"
},
{
"SchoolName": "East Borough Primary School",
"Postcode": "ME145DX"
},
{
"SchoolName": "North Borough Junior School",
"Postcode": "ME142BP"
},
{
"SchoolName": "Park Way Primary School",
"Postcode": "ME157AH"
},
{
"SchoolName": "Marden Primary School",
"Postcode": "TN129JX"
},
{
"SchoolName": "Mereworth Community Primary School",
"Postcode": "ME185ND"
},
{
"SchoolName": "Offham Primary School",
"Postcode": "ME195NX"
},
{
"SchoolName": "Plaxtol Primary School",
"Postcode": "TN150QD"
},
{
"SchoolName": "Ryarsh Primary School",
"Postcode": "ME195LS"
},
{
"SchoolName": "Shipbourne School",
"Postcode": "TN119PB"
},
{
"SchoolName": "St Katherine's School",
"Postcode": "ME65EJ"
},
{
"SchoolName": "Staplehurst School",
"Postcode": "TN120LZ"
},
{
"SchoolName": "Sutton Valence Primary School",
"Postcode": "ME173HT"
},
{
"SchoolName": "Greenvale Infant School",
"Postcode": "ME45UP"
},
{
"SchoolName": "Luton Junior School",
"Postcode": "ME45AW"
},
{
"SchoolName": "Luton Infant & Nursery School",
"Postcode": "ME45AP"
},
{
"SchoolName": "New Road Primary School",
"Postcode": "ME45QN"
},
{
"SchoolName": "Wainscott Primary School",
"Postcode": "ME24JX"
},
{
"SchoolName": "Halling Primary School",
"Postcode": "ME21ER"
},
{
"SchoolName": "Balfour Infant School",
"Postcode": "ME12QT"
},
{
"SchoolName": "Delce Infant School",
"Postcode": "ME12QA"
},
{
"SchoolName": "Eastling Primary School",
"Postcode": "ME130BA"
},
{
"SchoolName": "Ethelbert Road Primary School",
"Postcode": "ME138SQ"
},
{
"SchoolName": "Davington Primary School",
"Postcode": "ME137EQ"
},
{
"SchoolName": "Lower Halstow Primary School",
"Postcode": "ME97ES"
},
{
"SchoolName": "Queenborough School and Nursery",
"Postcode": "ME115DF"
},
{
"SchoolName": "Rodmersham School",
"Postcode": "ME90PS"
},
{
"SchoolName": "Rose Street Primary School",
"Postcode": "ME121AW"
},
{
"SchoolName": "Canterbury Road Primary School",
"Postcode": "ME104SE"
},
{
"SchoolName": "Blean Primary School",
"Postcode": "CT29ED"
},
{
"SchoolName": "Chartham Primary School",
"Postcode": "CT47QN"
},
{
"SchoolName": "Herne Bay Infant School",
"Postcode": "CT65SH"
},
{
"SchoolName": "Hoath Primary School",
"Postcode": "CT34LA"
},
{
"SchoolName": "Westmeads Community Infant School",
"Postcode": "CT51NA"
},
{
"SchoolName": "Whitstable Junior School",
"Postcode": "CT51DB"
},
{
"SchoolName": "Aldington Primary School",
"Postcode": "TN257EE"
},
{
"SchoolName": "East Stour Primary School",
"Postcode": "TN240DW"
},
{
"SchoolName": "Victoria Road Primary School",
"Postcode": "TN237HQ"
},
{
"SchoolName": "Willesborough Infant School",
"Postcode": "TN240JZ"
},
{
"SchoolName": "Willesborough Junior School",
"Postcode": "TN240JU"
},
{
"SchoolName": "Bethersden Primary School",
"Postcode": "TN263AH"
},
{
"SchoolName": "Brook Community Primary School",
"Postcode": "TN255PB"
},
{
"SchoolName": "Challock Primary School",
"Postcode": "TN254BU"
},
{
"SchoolName": "Great Chart Primary School",
"Postcode": "TN235LB"
},
{
"SchoolName": "Mersham Primary School",
"Postcode": "TN256NU"
},
{
"SchoolName": "Rolvenden Primary School",
"Postcode": "TN174LS"
},
{
"SchoolName": "Smeeth Community Primary School",
"Postcode": "TN256RX"
},
{
"SchoolName": "Mundella Primary School",
"Postcode": "CT195QX"
},
{
"SchoolName": "Hawkinge Primary School",
"Postcode": "CT187BN"
},
{
"SchoolName": "Sellindge Primary School",
"Postcode": "TN256JY"
},
{
"SchoolName": "River Primary School",
"Postcode": "CT170PP"
},
{
"SchoolName": "Langdon Primary School",
"Postcode": "CT155JQ"
},
{
"SchoolName": "Eythorne Elvington Community Primary School",
"Postcode": "CT154AN"
},
{
"SchoolName": "Lydden Primary School",
"Postcode": "CT157LA"
},
{
"SchoolName": "Preston Primary School",
"Postcode": "CT31HB"
},
{
"SchoolName": "Wingham Primary School",
"Postcode": "CT31BD"
},
{
"SchoolName": "Worth Primary School",
"Postcode": "CT140DF"
},
{
"SchoolName": "St Mildred's Primary Infant School",
"Postcode": "CT102BX"
},
{
"SchoolName": "<NAME>range Nursery and Infant School",
"Postcode": "CT103DG"
},
{
"SchoolName": "St Crispin's Community Primary Infant School",
"Postcode": "CT88EB"
},
{
"SchoolName": "Ellington Infant School",
"Postcode": "CT110QH"
},
{
"SchoolName": "Priory Infant School",
"Postcode": "CT119XT"
},
{
"SchoolName": "Barnsole Primary School",
"Postcode": "ME72JG"
},
{
"SchoolName": "Featherby Junior School",
"Postcode": "ME86BT"
},
{
"SchoolName": "Featherby Infant and Nursery School",
"Postcode": "ME86PD"
},
{
"SchoolName": "Hempstead Junior School",
"Postcode": "ME73HJ"
},
{
"SchoolName": "Shears Green Junior School",
"Postcode": "DA117JB"
},
{
"SchoolName": "Oaklands School",
"Postcode": "ME50QS"
},
{
"SchoolName": "West Minster Primary School",
"Postcode": "ME121ET"
},
{
"SchoolName": "Horsted Infant School",
"Postcode": "ME59TF"
},
{
"SchoolName": "Riverview Junior School",
"Postcode": "DA124SD"
},
{
"SchoolName": "Aycliffe Community Primary School",
"Postcode": "CT179HJ"
},
{
"SchoolName": "Riverhead Infants' School",
"Postcode": "TN132AS"
},
{
"SchoolName": "Minterne Community Junior School",
"Postcode": "ME101SB"
},
{
"SchoolName": "Claremont Primary School",
"Postcode": "TN25EB"
},
{
"SchoolName": "Whitfield Aspen School",
"Postcode": "CT163LJ"
},
{
"SchoolName": "St Paul's Infant School",
"Postcode": "ME142BS"
},
{
"SchoolName": "Langton Green Primary School",
"Postcode": "TN30JG"
},
{
"SchoolName": "Bishops Down Primary School",
"Postcode": "TN49SU"
},
{
"SchoolName": "Bligh Junior School",
"Postcode": "ME22XJ"
},
{
"SchoolName": "Park Wood Junior School",
"Postcode": "ME89LP"
},
{
"SchoolName": "Park Wood Infant School",
"Postcode": "ME89LP"
},
{
"SchoolName": "Hilltop Primary School",
"Postcode": "ME24QN"
},
{
"SchoolName": "Horsted Junior School",
"Postcode": "ME59TF"
},
{
"SchoolName": "Singlewell Primary School",
"Postcode": "DA125TY"
},
{
"SchoolName": "Cheriton Primary School",
"Postcode": "CT203EP"
},
{
"SchoolName": "The Oaks Community Infant School",
"Postcode": "ME101GL"
},
{
"SchoolName": "Brookfield Infant School",
"Postcode": "ME206PY"
},
{
"SchoolName": "Vigo Village School",
"Postcode": "DA130RL"
},
{
"SchoolName": "Madginford Primary School",
"Postcode": "ME158LH"
},
{
"SchoolName": "Palmarsh Primary School",
"Postcode": "CT216NE"
},
{
"SchoolName": "Painters Ash Primary School",
"Postcode": "DA118EL"
},
{
"SchoolName": "Tunbury Primary School",
"Postcode": "ME59HY"
},
{
"SchoolName": "Vale View Community School",
"Postcode": "CT179NP"
},
{
"SchoolName": "St Margaret's-at-Cliffe Primary School",
"Postcode": "CT156SS"
},
{
"SchoolName": "Bysing Wood Primary School",
"Postcode": "ME137NU"
},
{
"SchoolName": "Bligh Infant School",
"Postcode": "ME22XJ"
},
{
"SchoolName": "Stocks Green Primary School",
"Postcode": "TN119AE"
},
{
"SchoolName": "Sandgate Primary School",
"Postcode": "CT203QU"
},
{
"SchoolName": "Swingate Primary School",
"Postcode": "ME58TJ"
},
{
"SchoolName": "Sandling Primary School",
"Postcode": "ME142JG"
},
{
"SchoolName": "Capel-le-Ferne Primary School",
"Postcode": "CT187HB"
},
{
"SchoolName": "Lunsford Primary School",
"Postcode": "ME206PY"
},
{
"SchoolName": "Briary Primary School",
"Postcode": "CT67RS"
},
{
"SchoolName": "Downs View Infant School",
"Postcode": "TN254PJ"
},
{
"SchoolName": "Kingswood Primary School",
"Postcode": "ME173QF"
},
{
"SchoolName": "Maundene School",
"Postcode": "ME57QB"
},
{
"SchoolName": "Senacre Wood Primary School",
"Postcode": "ME158QQ"
},
{
"SchoolName": "Bromstone Primary School, Broadstairs",
"Postcode": "CT102PW"
},
{
"SchoolName": "Parkside Community Primary School",
"Postcode": "CT11EP"
},
{
"SchoolName": "St Stephen's Infant School",
"Postcode": "CT27AB"
},
{
"SchoolName": "High Firs Primary School",
"Postcode": "BR88NR"
},
{
"SchoolName": "Miers Court Primary School",
"Postcode": "ME88JR"
},
{
"SchoolName": "Sandwich Infant School",
"Postcode": "CT139HT"
},
{
"SchoolName": "Sandwich Junior School",
"Postcode": "CT130AS"
},
{
"SchoolName": "Holywell Primary School",
"Postcode": "ME97AE"
},
{
"SchoolName": "Sevenoaks Primary School",
"Postcode": "TN133LB"
},
{
"SchoolName": "Edenbridge Primary School",
"Postcode": "TN85AB"
},
{
"SchoolName": "Hempstead Infant School",
"Postcode": "ME73QG"
},
{
"SchoolName": "Swalecliffe Community Primary School",
"Postcode": "CT52PH"
},
{
"SchoolName": "Aylesham Primary School",
"Postcode": "CT33BS"
},
{
"SchoolName": "Broadwater Down Primary School",
"Postcode": "TN25RP"
},
{
"SchoolName": "West Borough Primary School",
"Postcode": "ME168TL"
},
{
"SchoolName": "Sandown School",
"Postcode": "CT146PY"
},
{
"SchoolName": "Cage Green Primary School",
"Postcode": "TN104PT"
},
{
"SchoolName": "Long Mead Community Primary School",
"Postcode": "TN103JU"
},
{
"SchoolName": "St Peter's Infant School",
"Postcode": "ME12HU"
},
{
"SchoolName": "Wrotham Road Primary School",
"Postcode": "DA110QF"
},
{
"SchoolName": "St Stephen's (Tonbridge) Primary School",
"Postcode": "TN92DQ"
},
{
"SchoolName": "Palm Bay Primary School",
"Postcode": "CT93PP"
},
{
"SchoolName": "Kings Farm Primary School",
"Postcode": "DA125JT"
},
{
"SchoolName": "West Hill Primary School",
"Postcode": "DA13DZ"
},
{
"SchoolName": "Coxheath Primary School",
"Postcode": "ME174PS"
},
{
"SchoolName": "St Pauls' Church of England Voluntary Controlled Primary School",
"Postcode": "BR87PJ"
},
{
"SchoolName": "Fawkham Church of England Voluntary Controlled Primary School",
"Postcode": "DA38NA"
},
{
"SchoolName": "Sedley's Church of England Voluntary Aided Primary School",
"Postcode": "DA139NR"
},
{
"SchoolName": "Benenden Church of England Primary School",
"Postcode": "TN174DN"
},
{
"SchoolName": "Bidborough Church of England Voluntary Controlled Primary School",
"Postcode": "TN30UE"
},
{
"SchoolName": "Cranbrook Church of England Primary School",
"Postcode": "TN173JZ"
},
{
"SchoolName": "Goudhurst and Kilndown Church of England Primary School",
"Postcode": "TN171DZ"
},
{
"SchoolName": "Hawkhurst Church of England Primary School",
"Postcode": "TN184JJ"
},
{
"SchoolName": "Hildenborough Church of England Primary School",
"Postcode": "TN119HY"
},
{
"SchoolName": "Lamberhurst St Mary's CofE (Voluntary Controlled) Primary School",
"Postcode": "TN38EJ"
},
{
"SchoolName": "Seal Church of England Voluntary Controlled Primary School",
"Postcode": "TN150DJ"
},
{
"SchoolName": "St John's Church of England Primary School, Sevenoaks",
"Postcode": "TN133XD"
},
{
"SchoolName": "Speldhurst Church of England Voluntary Aided Primary School",
"Postcode": "TN30NP"
},
{
"SchoolName": "Sundridge and Brasted Church of England Voluntary Controlled Primary School",
"Postcode": "TN146EA"
},
{
"SchoolName": "St James' Church of England Junior School",
"Postcode": "TN23PR"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "TN49EW"
},
{
"SchoolName": "St Mark's Church of England Primary School",
"Postcode": "TN48LN"
},
{
"SchoolName": "St Peter's Church of England Primary School",
"Postcode": "TN24UU"
},
{
"SchoolName": "Crockham Hill Church of England Voluntary Controlled Primary School",
"Postcode": "TN86RP"
},
{
"SchoolName": "Churchill Church of England Voluntary Controlled Primary School",
"Postcode": "TN161EZ"
},
{
"SchoolName": "St Peter's Church of England Primary School",
"Postcode": "ME207BE"
},
{
"SchoolName": "St Mark's Church of England Primary School, Eccles",
"Postcode": "ME207HS"
},
{
"SchoolName": "Bredhurst Church of England Voluntary Controlled Primary School",
"Postcode": "ME73JY"
},
{
"SchoolName": "Burham Church of England Primary School",
"Postcode": "ME13SY"
},
{
"SchoolName": "Harrietsham Church of England Primary School",
"Postcode": "ME171JZ"
},
{
"SchoolName": "Leeds and Broomfield Church of England Primary School",
"Postcode": "ME171RL"
},
{
"SchoolName": "Maidstone, St Michael's Church of England Junior School",
"Postcode": "ME168ER"
},
{
"SchoolName": "St Michael's Church of England Infant School Maidstone",
"Postcode": "ME168ER"
},
{
"SchoolName": "Thurnham Church of England Infant School",
"Postcode": "ME144BL"
},
{
"SchoolName": "Trottiscliffe Church of England Primary School",
"Postcode": "ME195EB"
},
{
"SchoolName": "Ulcombe Church of England Primary School",
"Postcode": "ME171DU"
},
{
"SchoolName": "Wateringbury Church of England Primary School",
"Postcode": "ME185EA"
},
{
"SchoolName": "Wouldham, All Saints Church of England Voluntary Controlled Primary School",
"Postcode": "ME13TS"
},
{
"SchoolName": "St George's Church of England Voluntary Controlled Primary School",
"Postcode": "TN157DL"
},
{
"SchoolName": "St Margaret's, Collier Street Church of England Voluntary Controlled School",
"Postcode": "TN129RR"
},
{
"SchoolName": "Laddingford St Mary's Church of England Voluntary Controlled Primary School",
"Postcode": "ME186BL"
},
{
"SchoolName": "Yalding, St Peter and St Paul Church of England Voluntary Controlled Primary School",
"Postcode": "ME186DP"
},
{
"SchoolName": "St Helen's Church of England Primary School, Cliffe",
"Postcode": "ME37PU"
},
{
"SchoolName": "St Nicholas Church of England Voluntary Controlled Infant School",
"Postcode": "ME23HU"
},
{
"SchoolName": "Eastchurch Church of England Primary School",
"Postcode": "ME124EJ"
},
{
"SchoolName": "Ospringe Church of England Primary School",
"Postcode": "ME138TX"
},
{
"SchoolName": "Hernhill Church of England Primary School",
"Postcode": "ME139JG"
},
{
"SchoolName": "Newington Church of England Primary School",
"Postcode": "ME97LB"
},
{
"SchoolName": "Teynham Parochial Church of England Primary School",
"Postcode": "ME99BQ"
},
{
"SchoolName": "Barham Church of England Primary School",
"Postcode": "CT46NX"
},
{
"SchoolName": "Bridge and Patrixbourne Church of England Primary School",
"Postcode": "CT45JX"
},
{
"SchoolName": "Chislet Church of England Primary School",
"Postcode": "CT34DU"
},
{
"SchoolName": "Littlebourne Church of England Primary School",
"Postcode": "CT31XS"
},
{
"SchoolName": "St Alphege Church of England Infant School",
"Postcode": "CT51DA"
},
{
"SchoolName": "Wickhambreaux Church of England Primary School",
"Postcode": "CT31RN"
},
{
"SchoolName": "<NAME> Church of England Primary School, Biddenden",
"Postcode": "TN278AL"
},
{
"SchoolName": "Brabourne Church of England Primary School",
"Postcode": "TN255LQ"
},
{
"SchoolName": "Brookland Church of England Primary School",
"Postcode": "TN299QR"
},
{
"SchoolName": "Chilham, St Mary's Church of England Primary School",
"Postcode": "CT48DE"
},
{
"SchoolName": "High Halden Church of England Primary School",
"Postcode": "TN263JB"
},
{
"SchoolName": "Woodchurch Church of England Primary School",
"Postcode": "TN263QJ"
},
{
"SchoolName": "Bodsham Church of England Primary School",
"Postcode": "TN255JQ"
},
{
"SchoolName": "Folkestone, St Martin's Church of England Primary School",
"Postcode": "CT203JJ"
},
{
"SchoolName": "Folkestone, St Peter's Church of England Primary School",
"Postcode": "CT196AL"
},
{
"SchoolName": "Seabrook Church of England Primary School",
"Postcode": "CT215RL"
},
{
"SchoolName": "Lyminge Church of England Primary School",
"Postcode": "CT188JA"
},
{
"SchoolName": "Lympne Church of England Primary School",
"Postcode": "CT214JG"
},
{
"SchoolName": "Stelling Minnis Church of England Primary School",
"Postcode": "CT46DU"
},
{
"SchoolName": "Stowting Church of England Primary School",
"Postcode": "TN256BE"
},
{
"SchoolName": "Selsted Church of England Primary School",
"Postcode": "CT157HH"
},
{
"SchoolName": "The Downs Church of England Primary School",
"Postcode": "CT147TL"
},
{
"SchoolName": "Eastry Church of England Primary School",
"Postcode": "CT130LR"
},
{
"SchoolName": "Goodnestone Church of England Primary School",
"Postcode": "CT31PQ"
},
{
"SchoolName": "Guston Church of England Primary School",
"Postcode": "CT155LR"
},
{
"SchoolName": "Nonington Church of England Primary School",
"Postcode": "CT154LB"
},
{
"SchoolName": "Northbourne Church of England Primary School",
"Postcode": "CT140LP"
},
{
"SchoolName": "Kingsdown and Ringwould CofE Primary School",
"Postcode": "CT148DD"
},
{
"SchoolName": "Sibertswold Church of England Primary School at Shepherdswell",
"Postcode": "CT157LF"
},
{
"SchoolName": "Birchington Church of England Primary School",
"Postcode": "CT70AS"
},
{
"SchoolName": "Margate, Holy Trinity and St John's Church of England Primary School",
"Postcode": "CT91LU"
},
{
"SchoolName": "St Saviour's Church of England Junior School",
"Postcode": "CT88LD"
},
{
"SchoolName": "Minster Church of England Primary School",
"Postcode": "CT124PS"
},
{
"SchoolName": "Monkton Church of England Primary School",
"Postcode": "CT124JQ"
},
{
"SchoolName": "St Nicholas At Wade Church of England Primary School",
"Postcode": "CT70PY"
},
{
"SchoolName": "Frittenden Church of England Primary School",
"Postcode": "TN172DD"
},
{
"SchoolName": "Egerton Church of England Primary School",
"Postcode": "TN279DR"
},
{
"SchoolName": "St Lawrence Church of England Primary School",
"Postcode": "TN150LN"
},
{
"SchoolName": "Boughton-under-Blean and Dunkirk Primary School",
"Postcode": "ME139AW"
},
{
"SchoolName": "<NAME> Endowed Primary School",
"Postcode": "TN255EA"
},
{
"SchoolName": "St Peter's Methodist Primary School",
"Postcode": "CT12DH"
},
{
"SchoolName": "St Margaret's at Troy Town CofE Voluntary Controlled Primary School",
"Postcode": "ME11YF"
},
{
"SchoolName": "St Matthew's High Brooms Church of England Voluntary Controlled Primary School",
"Postcode": "TN49DY"
},
{
"SchoolName": "Herne Church of England Infant School",
"Postcode": "CT67AH"
},
{
"SchoolName": "Langafel Church of England Voluntary Controlled Primary School",
"Postcode": "DA37PW"
},
{
"SchoolName": "Southborough CofE Primary School",
"Postcode": "TN40JY"
},
{
"SchoolName": "St Katharine's Knockholt Church of England Voluntary Aided Primary School",
"Postcode": "TN147LS"
},
{
"SchoolName": "Chevening, St Botolph's Church of England Voluntary Aided Primary School",
"Postcode": "TN132SA"
},
{
"SchoolName": "Colliers Green Church of England Primary School",
"Postcode": "TN172LR"
},
{
"SchoolName": "Sissinghurst Voluntary Aided Church of England Primary School",
"Postcode": "TN172BH"
},
{
"SchoolName": "Hever Church of England Voluntary Aided Primary School",
"Postcode": "TN87NH"
},
{
"SchoolName": "Fordcombe Church of England Primary School",
"Postcode": "TN30RY"
},
{
"SchoolName": "Penshurst Church of England Voluntary Aided Primary School",
"Postcode": "TN118BX"
},
{
"SchoolName": "L<NAME>'s Church of England Voluntary Aided Primary School, Sevenoaks",
"Postcode": "TN133RW"
},
{
"SchoolName": "Ide Hill Church of England Primary School",
"Postcode": "TN146JT"
},
{
"SchoolName": "St Barnabas CofE VA Primary School",
"Postcode": "TN12EY"
},
{
"SchoolName": "St James' Church of England Voluntary Aided Infant School",
"Postcode": "TN23PR"
},
{
"SchoolName": "Hunton Church of England Primary School",
"Postcode": "ME150SJ"
},
{
"SchoolName": "Platt Church of England Voluntary Aided Primary School",
"Postcode": "TN158JY"
},
{
"SchoolName": "Bapchild and Tonge Church of England Primary School",
"Postcode": "ME99NL"
},
{
"SchoolName": "Borden Church of England Primary School",
"Postcode": "ME98JS"
},
{
"SchoolName": "Bredgar Church of England Primary School",
"Postcode": "ME98HB"
},
{
"SchoolName": "Hartlip Endowed Church of England Primary School",
"Postcode": "ME97TL"
},
{
"SchoolName": "Tunstall Church of England (Aided) Primary School",
"Postcode": "ME101YG"
},
{
"SchoolName": "Herne Church of England Junior School",
"Postcode": "CT67AL"
},
{
"SchoolName": "Whitstable and Seasalter Endowed Church of England Junior School",
"Postcode": "CT51AY"
},
{
"SchoolName": "Ashford, St Mary's Church of England Primary School",
"Postcode": "TN231ND"
},
{
"SchoolName": "Charing Church of England Aided Primary School",
"Postcode": "TN270JN"
},
{
"SchoolName": "Wittersham Church of England Primary School",
"Postcode": "TN307EA"
},
{
"SchoolName": "Elham Church of England Primary School",
"Postcode": "CT46TT"
},
{
"SchoolName": "Saltwood CofE Primary School",
"Postcode": "CT214QS"
},
{
"SchoolName": "Cartwright and Kelsey Church of England Primary School",
"Postcode": "CT32JD"
},
{
"SchoolName": "Deal Parochial Church of England Primary School",
"Postcode": "CT147ER"
},
{
"SchoolName": "Dover, St Mary's Church of England Primary School",
"Postcode": "CT161QX"
},
{
"SchoolName": "Sholden Church of England Primary School",
"Postcode": "CT140AB"
},
{
"SchoolName": "St Peter-in-Thanet CofE Junior School",
"Postcode": "CT103EP"
},
{
"SchoolName": "Ramsgate, Holy Trinity Church of England Primary School",
"Postcode": "CT101RR"
},
{
"SchoolName": "St Mary's Church of England Voluntary Aided Primary School",
"Postcode": "BR87BU"
},
{
"SchoolName": "St Michael's RC Primary School",
"Postcode": "ME46PX"
},
{
"SchoolName": "St Teresa's Catholic Primary School, Ashford",
"Postcode": "TN248QN"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "CT214BE"
},
{
"SchoolName": "St Ethelbert's Catholic Primary School",
"Postcode": "CT117LS"
},
{
"SchoolName": "St Anselm's Catholic Primary School",
"Postcode": "DA15EA"
},
{
"SchoolName": "English Martyrs' Catholic Primary School",
"Postcode": "ME24JA"
},
{
"SchoolName": "St Thomas of Canterbury RC Primary School",
"Postcode": "ME86JH"
},
{
"SchoolName": "Our Lady's Catholic Primary School, Dartford",
"Postcode": "DA12HX"
},
{
"SchoolName": "St Thomas More Roman Catholic Primary School",
"Postcode": "ME50NF"
},
{
"SchoolName": "St William of Perth Roman Catholic Primary School",
"Postcode": "ME13EN"
},
{
"SchoolName": "St Thomas' Catholic Primary School, Canterbury",
"Postcode": "CT11NE"
},
{
"SchoolName": "St Augustine of Canterbury Catholic Primary School",
"Postcode": "ME89NP"
},
{
"SchoolName": "St Benedict's Catholic Primary School",
"Postcode": "ME58PU"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "TN49AL"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "ME71YH"
},
{
"SchoolName": "Dartford Science & Technology College",
"Postcode": "DA12LY"
},
{
"SchoolName": "Northfleet School for Girls",
"Postcode": "DA118AQ"
},
{
"SchoolName": "Tunbridge Wells Girls' Grammar School",
"Postcode": "TN49UJ"
},
{
"SchoolName": "Tunbridge Wells Grammar School for Boys",
"Postcode": "TN49XB"
},
{
"SchoolName": "The Holmesdale School",
"Postcode": "ME65HS"
},
{
"SchoolName": "Dover Grammar School for Girls",
"Postcode": "CT162PZ"
},
{
"SchoolName": "Maidstone Grammar School",
"Postcode": "ME157BT"
},
{
"SchoolName": "Maidstone Grammar School for Girls",
"Postcode": "ME160SF"
},
{
"SchoolName": "<NAME>' Grammar School",
"Postcode": "CT13EW"
},
{
"SchoolName": "The Judd School",
"Postcode": "TN92PN"
},
{
"SchoolName": "Snodland CofE Primary School",
"Postcode": "ME65HL"
},
{
"SchoolName": "Borough Green Primary School",
"Postcode": "TN158JZ"
},
{
"SchoolName": "Holy Trinity Church of England Voluntary Aided Primary School",
"Postcode": "DA121LU"
},
{
"SchoolName": "Roseacre Junior School",
"Postcode": "ME144BL"
},
{
"SchoolName": "Sutton-at-Hone CofE Primary School",
"Postcode": "DA49EX"
},
{
"SchoolName": "Herne Bay Junior School",
"Postcode": "CT65DA"
},
{
"SchoolName": "Ditton Church of England Junior School",
"Postcode": "ME206AE"
},
{
"SchoolName": "Ditton Infant School",
"Postcode": "ME206EB"
},
{
"SchoolName": "Holy Trinity Church of England Primary School, Dartford",
"Postcode": "DA15AF"
},
{
"SchoolName": "St Bartholomew's Catholic Primary School, Swanley",
"Postcode": "BR87AY"
},
{
"SchoolName": "Greatstone Primary School",
"Postcode": "TN288SY"
},
{
"SchoolName": "Wincheap Foundation Primary School",
"Postcode": "CT13SD"
},
{
"SchoolName": "Brookfield Junior School",
"Postcode": "ME206PY"
},
{
"SchoolName": "All Souls' Church of England Primary School",
"Postcode": "CT194LG"
},
{
"SchoolName": "Harcourt Primary School",
"Postcode": "CT194NE"
},
{
"SchoolName": "Thamesview School",
"Postcode": "DA124LF"
},
{
"SchoolName": "Aylesford School - Sports College",
"Postcode": "ME207JU"
},
{
"SchoolName": "<NAME> Grammar School for Boys",
"Postcode": "CT47AS"
},
{
"SchoolName": "The Malling School",
"Postcode": "ME196DH"
},
{
"SchoolName": "The Archbishop's School",
"Postcode": "CT27AP"
},
{
"SchoolName": "<NAME> Technology College",
"Postcode": "TN104PU"
},
{
"SchoolName": "<NAME> Catholic Comprehensive School",
"Postcode": "ME46SG"
},
{
"SchoolName": "St George's Church of England Foundation School",
"Postcode": "CT102LH"
},
{
"SchoolName": "Northfleet Technology College",
"Postcode": "DA118BG"
},
{
"SchoolName": "Dover Grammar School for Boys",
"Postcode": "CT170DQ"
},
{
"SchoolName": "St John's Catholic Comprehensive",
"Postcode": "DA122JW"
},
{
"SchoolName": "Ashford School",
"Postcode": "TN248PB"
},
{
"SchoolName": "Wellesley House School",
"Postcode": "CT102DG"
},
{
"SchoolName": "Benenden School",
"Postcode": "TN174AA"
},
{
"SchoolName": "Dover College",
"Postcode": "CT179RH"
},
{
"SchoolName": "Northbourne Park School",
"Postcode": "CT140NW"
},
{
"SchoolName": "Marlborough House School",
"Postcode": "TN184PY"
},
{
"SchoolName": "St Ronan's School",
"Postcode": "TN185DJ"
},
{
"SchoolName": "Gad's Hill School",
"Postcode": "ME37PA"
},
{
"SchoolName": "Kent College Pembury",
"Postcode": "TN24AX"
},
{
"SchoolName": "St Lawrence College",
"Postcode": "CT117AE"
},
{
"SchoolName": "King's School, Rochester",
"Postcode": "ME11TE"
},
{
"SchoolName": "Beechwood Sacred Heart School",
"Postcode": "TN23QD"
},
{
"SchoolName": "Holmewood House School",
"Postcode": "TN30EB"
},
{
"SchoolName": "Rose Hill School",
"Postcode": "TN49SY"
},
{
"SchoolName": "Sevenoaks School",
"Postcode": "TN131HU"
},
{
"SchoolName": "Sevenoaks Preparatory School",
"Postcode": "TN150JU"
},
{
"SchoolName": "St Michael's Prep School",
"Postcode": "TN145SA"
},
{
"SchoolName": "The New Beacon School",
"Postcode": "TN132PB"
},
{
"SchoolName": "Radnor House Sevenoaks Prep School",
"Postcode": "TN146AE"
},
{
"SchoolName": "Sutton Valence School",
"Postcode": "ME173HL"
},
{
"SchoolName": "Tonbridge School",
"Postcode": "TN91JP"
},
{
"SchoolName": "The Schools At Somerhill",
"Postcode": "TN110NJ"
},
{
"SchoolName": "Haddon Dene School",
"Postcode": "CT102HY"
},
{
"SchoolName": "Steephill School",
"Postcode": "DA37BG"
},
{
"SchoolName": "Bronte School",
"Postcode": "DA110HN"
},
{
"SchoolName": "The Granville School",
"Postcode": "TN133LJ"
},
{
"SchoolName": "Shernold School",
"Postcode": "ME160ER"
},
{
"SchoolName": "Hilden Grange School",
"Postcode": "TN103BX"
},
{
"SchoolName": "Hilden Oaks School",
"Postcode": "TN103BU"
},
{
"SchoolName": "The Mead School",
"Postcode": "TN25SN"
},
{
"SchoolName": "Chartfield School",
"Postcode": "CT88DA"
},
{
"SchoolName": "Bethany School",
"Postcode": "TN171LB"
},
{
"SchoolName": "Bryony School",
"Postcode": "ME80AJ"
},
{
"SchoolName": "Solefield School",
"Postcode": "TN131PH"
},
{
"SchoolName": "Russell House School",
"Postcode": "TN145QU"
},
{
"SchoolName": "St Andrew's School (Rochester)",
"Postcode": "ME11SA"
},
{
"SchoolName": "St Lawrence College Junior School",
"Postcode": "CT117AF"
},
{
"SchoolName": "St Joseph's Convent Independent Preparatory School",
"Postcode": "DA121NR"
},
{
"SchoolName": "Dulwich Preparatory School",
"Postcode": "TN173NP"
},
{
"SchoolName": "Cobham Hall",
"Postcode": "DA123BL"
},
{
"SchoolName": "Spring Grove School 2003 Ltd",
"Postcode": "TN255EZ"
},
{
"SchoolName": "Helen Allison School",
"Postcode": "DA130EW"
},
{
"SchoolName": "Ripplevale School",
"Postcode": "CT148JG"
},
{
"SchoolName": "The King's School Canterbury",
"Postcode": "CT12ES"
},
{
"SchoolName": "St Christopher's School",
"Postcode": "CT13DT"
},
{
"SchoolName": "St Edmund's School Canterbury",
"Postcode": "CT28HU"
},
{
"SchoolName": "Canterbury Steiner School Ltd",
"Postcode": "CT45RU"
},
{
"SchoolName": "Kent College (Canterbury)",
"Postcode": "CT29DT"
},
{
"SchoolName": "Walthamstow Hall",
"Postcode": "TN133UL"
},
{
"SchoolName": "Elliott Park School",
"Postcode": "ME122DP"
},
{
"SchoolName": "Rochester Independent College",
"Postcode": "ME11XF"
},
{
"SchoolName": "Sackville School",
"Postcode": "TN119HN"
},
{
"SchoolName": "St Faith's At Ash School Limited",
"Postcode": "CT32HH"
},
{
"SchoolName": "Heath Farm School",
"Postcode": "TN270AX"
},
{
"SchoolName": "Junior King's School",
"Postcode": "CT20AY"
},
{
"SchoolName": "Learning Opportunities Centre Secondary",
"Postcode": "CT148DW"
},
{
"SchoolName": "Lorenden Preparatory School",
"Postcode": "ME130EN"
},
{
"SchoolName": "ISP School (Kent)",
"Postcode": "ME103EG"
},
{
"SchoolName": "Fosse Bank School",
"Postcode": "TN118ND"
},
{
"SchoolName": "Kent College Nursery, Infant and Junior School",
"Postcode": "CT29AQ"
},
{
"SchoolName": "Brewood Secondary School",
"Postcode": "CT149TR"
},
{
"SchoolName": "Broomhill Bank School",
"Postcode": "TN30TB"
},
{
"SchoolName": "Caldecott Foundation School",
"Postcode": "TN256PW"
},
{
"SchoolName": "Meadows School",
"Postcode": "TN40RJ"
},
{
"SchoolName": "Valence School",
"Postcode": "TN161QN"
},
{
"SchoolName": "Bower Grove School",
"Postcode": "ME168NL"
},
{
"SchoolName": "St Anthony's School",
"Postcode": "CT93RA"
},
{
"SchoolName": "Ifield School",
"Postcode": "DA125JT"
},
{
"SchoolName": "The Foreland School",
"Postcode": "CT103NX"
},
{
"SchoolName": "Goldwyn School",
"Postcode": "TN233BT"
},
{
"SchoolName": "The Beacon Folkestone",
"Postcode": "CT195DN"
},
{
"SchoolName": "Rowhill School",
"Postcode": "DA37PW"
},
{
"SchoolName": "Elms School",
"Postcode": "CT179PS"
},
{
"SchoolName": "Ridge View School",
"Postcode": "TN104PT"
},
{
"SchoolName": "Grange Park School",
"Postcode": "TN157RD"
},
{
"SchoolName": "Abbey Court Foundation Special School",
"Postcode": "ME23SP"
},
{
"SchoolName": "Five Acre Wood School",
"Postcode": "ME159QF"
},
{
"SchoolName": "Stone Bay School",
"Postcode": "CT101EB"
},
{
"SchoolName": "The Orchard School",
"Postcode": "CT13QQ"
},
{
"SchoolName": "St Nicholas' School",
"Postcode": "CT13JJ"
},
{
"SchoolName": "Portal House School",
"Postcode": "CT156SS"
},
{
"SchoolName": "Lee Royd Nursery School",
"Postcode": "BB52LH"
},
{
"SchoolName": "Rockwood Nursery School",
"Postcode": "BB113PU"
},
{
"SchoolName": "Duke Street Nursery School",
"Postcode": "PR73DU"
},
{
"SchoolName": "Highfield Nursery School",
"Postcode": "PR60SL"
},
{
"SchoolName": "Rosegrove Nursery School",
"Postcode": "BB126AJ"
},
{
"SchoolName": "Ightenhill Nursery School",
"Postcode": "BB126DY"
},
{
"SchoolName": "Stoneyholme Nursery School",
"Postcode": "BB120BU"
},
{
"SchoolName": "Bradley Nursery School",
"Postcode": "BB97QH"
},
{
"SchoolName": "Walton Lane Nursery School",
"Postcode": "BB98BP"
},
{
"SchoolName": "Moorgate Nursery School",
"Postcode": "L394RY"
},
{
"SchoolName": "Stoneygate Children's Centre",
"Postcode": "PR13XU"
},
{
"SchoolName": "Longshaw Nursery School",
"Postcode": "BB23NF"
},
{
"SchoolName": "Fairfield Nursery School",
"Postcode": "BB50LD"
},
{
"SchoolName": "Woodfield Nursery School",
"Postcode": "BB95BE"
},
{
"SchoolName": "Ribblesdale Nursery School",
"Postcode": "BB71EL"
},
{
"SchoolName": "Newtown Nursery School",
"Postcode": "BB80JF"
},
{
"SchoolName": "Ashworth Nursery School",
"Postcode": "BB21QU"
},
{
"SchoolName": "Brunel Nursery School",
"Postcode": "BB11ES"
},
{
"SchoolName": "Hillside Nursery School",
"Postcode": "BB45NH"
},
{
"SchoolName": "McMillan Nursery School",
"Postcode": "BB99AG"
},
{
"SchoolName": "Whitegate Nursery School and Children's Centre",
"Postcode": "BB128TG"
},
{
"SchoolName": "Bacup Nursery School",
"Postcode": "OL138EF"
},
{
"SchoolName": "Turncroft Nursery School",
"Postcode": "BB32DN"
},
{
"SchoolName": "Staghills Nursery School",
"Postcode": "BB47UE"
},
{
"SchoolName": "Basnett Street Nursery School",
"Postcode": "BB103ES"
},
{
"SchoolName": "Stepping Stones School",
"Postcode": "LA14HT"
},
{
"SchoolName": "Golden Hill Pupil Referral Unit",
"Postcode": "PR251QS"
},
{
"SchoolName": "Hendon Brook School",
"Postcode": "BB98BP"
},
{
"SchoolName": "Larches House School",
"Postcode": "PR21QE"
},
{
"SchoolName": "Audley Junior School",
"Postcode": "BB11SE"
},
{
"SchoolName": "Griffin Park Primary School",
"Postcode": "BB22PN"
},
{
"SchoolName": "Intack Primary School",
"Postcode": "BB13HY"
},
{
"SchoolName": "Longshaw Community Junior School",
"Postcode": "BB23NX"
},
{
"SchoolName": "Lower Darwen Primary School",
"Postcode": "BB30RB"
},
{
"SchoolName": "Meadowhead Junior School",
"Postcode": "BB24QG"
},
{
"SchoolName": "Meadowhead Infant School",
"Postcode": "BB24TT"
},
{
"SchoolName": "Daisyfield Primary School",
"Postcode": "BB15LB"
},
{
"SchoolName": "Lammack Primary School",
"Postcode": "BB18LH"
},
{
"SchoolName": "Longshaw Infant School",
"Postcode": "BB23NF"
},
{
"SchoolName": "North Road Primary School",
"Postcode": "LA59LQ"
},
{
"SchoolName": "Roe Lee Park Primary School",
"Postcode": "BB19RP"
},
{
"SchoolName": "Forton Primary School",
"Postcode": "PR30AS"
},
{
"SchoolName": "Bowerham Primary & Nursery School",
"Postcode": "LA14BS"
},
{
"SchoolName": "Lancaster Dallas Road Community Primary School",
"Postcode": "LA11LD"
},
{
"SchoolName": "Ridge Community Primary School",
"Postcode": "LA13LE"
},
{
"SchoolName": "Lancaster Ryelands Primary School",
"Postcode": "LA12RJ"
},
{
"SchoolName": "Willow Lane Community Primary School",
"Postcode": "LA15PR"
},
{
"SchoolName": "Morecambe Bay Community Primary School",
"Postcode": "LA45JL"
},
{
"SchoolName": "Audley Infant School",
"Postcode": "BB11SE"
},
{
"SchoolName": "Lancaster Road Primary School",
"Postcode": "LA45TH"
},
{
"SchoolName": "Morecambe and Heysham Sandylands Community Primary School",
"Postcode": "LA31EJ"
},
{
"SchoolName": "West End Primary School",
"Postcode": "LA31BW"
},
{
"SchoolName": "Nateby Primary School",
"Postcode": "PR30JH"
},
{
"SchoolName": "Nether Kellet Community Primary School",
"Postcode": "LA61HH"
},
{
"SchoolName": "Kirkham and Wesham Primary School",
"Postcode": "PR42JP"
},
{
"SchoolName": "Ansdell Primary School",
"Postcode": "FY84DR"
},
{
"SchoolName": "Stalmine Primary School",
"Postcode": "FY60LR"
},
{
"SchoolName": "Thornton Primary School",
"Postcode": "FY54JP"
},
{
"SchoolName": "Thornton Cleveleys Royles Brook Primary School",
"Postcode": "FY52TY"
},
{
"SchoolName": "Farington Primary School",
"Postcode": "PR254GH"
},
{
"SchoolName": "Fulwood and Cadley Primary School",
"Postcode": "PR23QT"
},
{
"SchoolName": "Harris Primary School",
"Postcode": "PR27EE"
},
{
"SchoolName": "Kennington Primary School",
"Postcode": "PR28ER"
},
{
"SchoolName": "Goosnargh Whitechapel Primary School",
"Postcode": "PR32EP"
},
{
"SchoolName": "Lea Community Primary School",
"Postcode": "PR21PD"
},
{
"SchoolName": "Little Hoole Primary School",
"Postcode": "PR45QL"
},
{
"SchoolName": "Penwortham Primary School",
"Postcode": "PR10HU"
},
{
"SchoolName": "Tarleton Community Primary School",
"Postcode": "PR46AT"
},
{
"SchoolName": "Lostock Hall Community Primary School",
"Postcode": "PR55AS"
},
{
"SchoolName": "Catforth Primary School",
"Postcode": "PR40HL"
},
{
"SchoolName": "Clitheroe Pendle Primary School",
"Postcode": "BB72AL"
},
{
"SchoolName": "Great Harwood Primary School",
"Postcode": "BB67JQ"
},
{
"SchoolName": "Feniscowles Primary School",
"Postcode": "BB25EG"
},
{
"SchoolName": "Padiham Primary School",
"Postcode": "BB128SJ"
},
{
"SchoolName": "Sabden Primary School",
"Postcode": "BB79DZ"
},
{
"SchoolName": "Blacko Primary School",
"Postcode": "BB96LS"
},
{
"SchoolName": "Briercliffe Primary School",
"Postcode": "BB102JU"
},
{
"SchoolName": "Laneshaw Bridge Primary",
"Postcode": "BB87JE"
},
{
"SchoolName": "Colne Lord Street School",
"Postcode": "BB89AR"
},
{
"SchoolName": "Park Primary School",
"Postcode": "BB80QJ"
},
{
"SchoolName": "Colne Primet Primary School",
"Postcode": "BB88JE"
},
{
"SchoolName": "West Street Community Primary School",
"Postcode": "BB80HW"
},
{
"SchoolName": "Bradley Primary School",
"Postcode": "BB97RF"
},
{
"SchoolName": "Marsden Community Primary School",
"Postcode": "BB90BE"
},
{
"SchoolName": "Lomeshaye Junior School",
"Postcode": "BB97SY"
},
{
"SchoolName": "Walverden Primary School",
"Postcode": "BB90TL"
},
{
"SchoolName": "Whitefield Infant School and Nursery",
"Postcode": "BB97HF"
},
{
"SchoolName": "Trawden Forest Primary School",
"Postcode": "BB88RN"
},
{
"SchoolName": "Worsthorne Primary School",
"Postcode": "BB103LR"
},
{
"SchoolName": "Accrington Huncoat Primary School",
"Postcode": "BB56LR"
},
{
"SchoolName": "Accrington Hyndburn Park Primary School",
"Postcode": "BB51ST"
},
{
"SchoolName": "Accrington Peel Park Primary School",
"Postcode": "BB56QR"
},
{
"SchoolName": "Accrington Spring Hill Community Primary School",
"Postcode": "BB50JD"
},
{
"SchoolName": "Clayton-le-Moors Mount Pleasant Primary School",
"Postcode": "BB55NH"
},
{
"SchoolName": "Oswaldtwistle Moor End Primary School",
"Postcode": "BB53JG"
},
{
"SchoolName": "Oswaldtwistle West End Primary School",
"Postcode": "BB54QA"
},
{
"SchoolName": "Britannia Community Primary School",
"Postcode": "OL139TS"
},
{
"SchoolName": "Northern Primary School",
"Postcode": "OL138PH"
},
{
"SchoolName": "Bacup St Saviour's Community Primary School",
"Postcode": "OL139RR"
},
{
"SchoolName": "Sharneyford Primary School",
"Postcode": "OL139UQ"
},
{
"SchoolName": "Bacup Thorn Primary School",
"Postcode": "OL138EF"
},
{
"SchoolName": "Haslingden Primary School",
"Postcode": "BB44BJ"
},
{
"SchoolName": "Helmshore Primary School",
"Postcode": "BB44JW"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "BL00NA"
},
{
"SchoolName": "Water Primary School",
"Postcode": "BB49PX"
},
{
"SchoolName": "Waterfoot Primary School",
"Postcode": "BB49DA"
},
{
"SchoolName": "Ashleigh Primary School",
"Postcode": "BB32JT"
},
{
"SchoolName": "Turton Belmont Community Primary School",
"Postcode": "BL78AH"
},
{
"SchoolName": "Anderton Primary School",
"Postcode": "PR69NN"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "PR50DR"
},
{
"SchoolName": "Highfield Primary School",
"Postcode": "PR60SP"
},
{
"SchoolName": "Buckshaw Primary School",
"Postcode": "PR71XP"
},
{
"SchoolName": "Coppull Primary School and Children's Centre",
"Postcode": "PR75AH"
},
{
"SchoolName": "Woodlea Junior School",
"Postcode": "PR251JL"
},
{
"SchoolName": "Pinfold Primary School",
"Postcode": "L408HR"
},
{
"SchoolName": "Burnley Lowerhouse Junior School",
"Postcode": "BB126LN"
},
{
"SchoolName": "Burnley Brunshaw Primary School",
"Postcode": "BB104PB"
},
{
"SchoolName": "Burnley Casterton Primary School",
"Postcode": "BB102PZ"
},
{
"SchoolName": "Shadsworth Infant School",
"Postcode": "BB12EL"
},
{
"SchoolName": "Shadsworth Junior School",
"Postcode": "BB12ET"
},
{
"SchoolName": "Cedars Primary School",
"Postcode": "BB19TH"
},
{
"SchoolName": "Crawford Village Primary School",
"Postcode": "WN89QP"
},
{
"SchoolName": "Wrightington Mossy Lea Primary School",
"Postcode": "WN69RN"
},
{
"SchoolName": "Brookfield Community Primary School",
"Postcode": "PR26TU"
},
{
"SchoolName": "Deepdale Community Primary School",
"Postcode": "PR16TD"
},
{
"SchoolName": "Eldon Primary School",
"Postcode": "PR17YE"
},
{
"SchoolName": "Brockholes Wood Community Primary School and Nursery",
"Postcode": "PR15TU"
},
{
"SchoolName": "Frenchwood Community Primary School",
"Postcode": "PR14LE"
},
{
"SchoolName": "Preston Grange Primary School",
"Postcode": "PR26PS"
},
{
"SchoolName": "Preston Greenlands Community Primary School",
"Postcode": "PR26BB"
},
{
"SchoolName": "Holme Slack Community Primary School",
"Postcode": "PR16HP"
},
{
"SchoolName": "Ribbleton Avenue Infant School",
"Postcode": "PR15RU"
},
{
"SchoolName": "Moor Nook Community Primary School",
"Postcode": "PR26EE"
},
{
"SchoolName": "The Roebuck School",
"Postcode": "PR22BN"
},
{
"SchoolName": "Ashton Primary School",
"Postcode": "PR21TU"
},
{
"SchoolName": "Ingol Community Primary School",
"Postcode": "PR23YP"
},
{
"SchoolName": "Claremont Community Primary School",
"Postcode": "FY12QE"
},
{
"SchoolName": "Layton Primary School",
"Postcode": "FY37DX"
},
{
"SchoolName": "Kelbrook Primary School",
"Postcode": "BB186UD"
},
{
"SchoolName": "Earby Springfield Primary School",
"Postcode": "BB186SJ"
},
{
"SchoolName": "Burnley Stoneyholme Community Primary School",
"Postcode": "BB120BN"
},
{
"SchoolName": "Rosegrove Infant School",
"Postcode": "BB126HW"
},
{
"SchoolName": "Barden Primary School",
"Postcode": "BB101JD"
},
{
"SchoolName": "Burnley Heasandford Primary School",
"Postcode": "BB103DA"
},
{
"SchoolName": "Whittlefield Primary School",
"Postcode": "BB120HL"
},
{
"SchoolName": "Burnley Ightenhill Primary School",
"Postcode": "BB126ED"
},
{
"SchoolName": "Gisburn Road Community Primary School",
"Postcode": "BB185LS"
},
{
"SchoolName": "Salterforth Primary School",
"Postcode": "BB185UD"
},
{
"SchoolName": "Gisburn Primary School",
"Postcode": "BB74ET"
},
{
"SchoolName": "Tonacliffe Primary School",
"Postcode": "OL128SS"
},
{
"SchoolName": "Trumacar Nursery and Community Primary School",
"Postcode": "LA32ST"
},
{
"SchoolName": "Moorside Primary School",
"Postcode": "LA14HT"
},
{
"SchoolName": "Edisford Primary School",
"Postcode": "BB72LN"
},
{
"SchoolName": "Poulton-le-Fylde Carr Head Primary School",
"Postcode": "FY68JB"
},
{
"SchoolName": "<NAME> Community Primary School",
"Postcode": "FY78DD"
},
{
"SchoolName": "Kingsfold Primary School",
"Postcode": "PR19HJ"
},
{
"SchoolName": "Weeton Primary School",
"Postcode": "PR43HX"
},
{
"SchoolName": "Rawtenstall Balladen Community Primary School",
"Postcode": "BB46DX"
},
{
"SchoolName": "Ormskirk West End Primary School",
"Postcode": "L391PA"
},
{
"SchoolName": "Morecambe and Heysham Torrisholme Community Primary School",
"Postcode": "LA46PN"
},
{
"SchoolName": "Lytham St Annes Mayfield Primary School",
"Postcode": "FY82HQ"
},
{
"SchoolName": "Seven Stars Primary School",
"Postcode": "PR251TD"
},
{
"SchoolName": "Walton-le-Dale Community Primary School",
"Postcode": "PR54TD"
},
{
"SchoolName": "Aughton Town Green Primary School",
"Postcode": "L396SF"
},
{
"SchoolName": "Freckleton Strike Lane Primary School",
"Postcode": "PR41HR"
},
{
"SchoolName": "Northfold Community Primary School",
"Postcode": "FY52NL"
},
{
"SchoolName": "Clifton Primary School",
"Postcode": "FY83PY"
},
{
"SchoolName": "Queen's Drive Primary School",
"Postcode": "PR23LA"
},
{
"SchoolName": "Whitefield Primary School",
"Postcode": "PR10RH"
},
{
"SchoolName": "Avondale Primary School",
"Postcode": "BB31NN"
},
{
"SchoolName": "Stanah Primary School",
"Postcode": "FY55JR"
},
{
"SchoolName": "Little Digmoor Primary School",
"Postcode": "WN89NF"
},
{
"SchoolName": "Hillside Community Primary School",
"Postcode": "WN86DE"
},
{
"SchoolName": "Larkholme Primary School",
"Postcode": "FY78QB"
},
{
"SchoolName": "Garstang Community Primary School",
"Postcode": "PR31HT"
},
{
"SchoolName": "Poulton-le-Fylde the Breck Primary School",
"Postcode": "FY67HE"
},
{
"SchoolName": "Delph Side Community Primary School",
"Postcode": "WN86ED"
},
{
"SchoolName": "Lever House Primary School",
"Postcode": "PR254YR"
},
{
"SchoolName": "Withnell Fold Primary School",
"Postcode": "PR68BA"
},
{
"SchoolName": "Abbey Village Primary School",
"Postcode": "PR68DD"
},
{
"SchoolName": "Euxton Primrose Hill Primary School",
"Postcode": "PR76BA"
},
{
"SchoolName": "Eccleston Primary School",
"Postcode": "PR75RA"
},
{
"SchoolName": "Great Wood Primary School",
"Postcode": "LA46UB"
},
{
"SchoolName": "Balshaw Lane Community Primary School",
"Postcode": "PR76NS"
},
{
"SchoolName": "Crawshawbooth Primary School",
"Postcode": "BB48AN"
},
{
"SchoolName": "Ormskirk Asmall Primary School",
"Postcode": "L393PJ"
},
{
"SchoolName": "Lytham Hall Park Primary School",
"Postcode": "FY84QU"
},
{
"SchoolName": "Carleton Green Community Primary School",
"Postcode": "FY67TF"
},
{
"SchoolName": "Clayton-le-Woods Manor Road Primary School",
"Postcode": "PR67JR"
},
{
"SchoolName": "Coupe Green Primary School",
"Postcode": "PR50JR"
},
{
"SchoolName": "Reedley Primary School",
"Postcode": "BB102NE"
},
{
"SchoolName": "Clitheroe Brookside Primary School",
"Postcode": "BB71NW"
},
{
"SchoolName": "Caton Community Primary School",
"Postcode": "LA29NH"
},
{
"SchoolName": "Holland Moor Primary School",
"Postcode": "WN89AG"
},
{
"SchoolName": "Gillibrand Primary School",
"Postcode": "PR72PJ"
},
{
"SchoolName": "Lancaster Lane Community Primary School",
"Postcode": "PR255TT"
},
{
"SchoolName": "Haslingden Broadway Primary School",
"Postcode": "BB44EH"
},
{
"SchoolName": "Burscough Village Primary School",
"Postcode": "L404LB"
},
{
"SchoolName": "Cobbs Brow School",
"Postcode": "WN86SU"
},
{
"SchoolName": "Adlington Primary School",
"Postcode": "PR74JA"
},
{
"SchoolName": "Clayton Brook Primary School",
"Postcode": "PR58HL"
},
{
"SchoolName": "Pool House Community Primary School",
"Postcode": "PR27BX"
},
{
"SchoolName": "Fishwick Primary School",
"Postcode": "PR14RH"
},
{
"SchoolName": "Crow Orchard Primary School",
"Postcode": "WN88QG"
},
{
"SchoolName": "Coates Lane Primary School",
"Postcode": "BB186EZ"
},
{
"SchoolName": "Moss Side Primary School",
"Postcode": "PR267ST"
},
{
"SchoolName": "Penwortham Broad Oak Primary School",
"Postcode": "PR19DE"
},
{
"SchoolName": "Westwood Primary School",
"Postcode": "PR58LS"
},
{
"SchoolName": "Sherwood Primary School",
"Postcode": "PR29GA"
},
{
"SchoolName": "Accrington Woodnook Primary School",
"Postcode": "BB52HS"
},
{
"SchoolName": "Shakespeare Primary School",
"Postcode": "FY77LL"
},
{
"SchoolName": "Fleetwood Chaucer Community Primary School",
"Postcode": "FY76QN"
},
{
"SchoolName": "Brookhouse Primary School",
"Postcode": "BB16NY"
},
{
"SchoolName": "Thornton Cleveleys Manor Beach Primary School",
"Postcode": "FY51EU"
},
{
"SchoolName": "Morecambe and Heysham Westgate Primary School",
"Postcode": "LA44XF"
},
{
"SchoolName": "Longton Primary School",
"Postcode": "PR45YA"
},
{
"SchoolName": "Morecambe and Heysham Grosvenor Park Primary School",
"Postcode": "LA33RY"
},
{
"SchoolName": "Duke Street Primary School",
"Postcode": "PR73DU"
},
{
"SchoolName": "Ribbleton Avenue Methodist Junior School",
"Postcode": "PR15SN"
},
{
"SchoolName": "Blackburn St Thomas' Church of England Primary School",
"Postcode": "BB11NE"
},
{
"SchoolName": "St Michael With St John CofE Primary School",
"Postcode": "BB16LE"
},
{
"SchoolName": "Holy Trinity VC School",
"Postcode": "BB32RW"
},
{
"SchoolName": "St Stephen's CofE School",
"Postcode": "PR18JN"
},
{
"SchoolName": "Barnoldswick Church of England Controlled Primary School",
"Postcode": "BB185TB"
},
{
"SchoolName": "Kirkland and Catterall St Helen's Church of England Voluntary Aided Primary School",
"Postcode": "PR30HS"
},
{
"SchoolName": "Wray with Botton Endowed Primary School",
"Postcode": "LA28QE"
},
{
"SchoolName": "Cop Lane Church of England Primary School, Penwortham",
"Postcode": "PR19AE"
},
{
"SchoolName": "Howick Church Endowed Primary School",
"Postcode": "PR10NB"
},
{
"SchoolName": "Padiham Green Church of England Primary School",
"Postcode": "BB127AX"
},
{
"SchoolName": "Rawtenstall St Paul's Church of England Primary School",
"Postcode": "BB48HT"
},
{
"SchoolName": "St Mary's CofE Primary School Rawtenstall",
"Postcode": "BB48RZ"
},
{
"SchoolName": "Leyland St Andrew's Church of England Infant School",
"Postcode": "PR251JL"
},
{
"SchoolName": "Aughton Christ Church Church of England Voluntary Controlled Primary School",
"Postcode": "L395AS"
},
{
"SchoolName": "Ormskirk Lathom Park Church of England Primary School",
"Postcode": "L405UG"
},
{
"SchoolName": "Ormskirk Church of England Primary School",
"Postcode": "L392DP"
},
{
"SchoolName": "St Bartholomew's Church of England Primary School",
"Postcode": "OL128TL"
},
{
"SchoolName": "Staining Church of England Voluntary Controlled Primary School",
"Postcode": "FY30BW"
},
{
"SchoolName": "Burscough Bridge St John's Church of England Primary School",
"Postcode": "L404AE"
},
{
"SchoolName": "Westhead Lathom St James' Church of England Primary School",
"Postcode": "L406HL"
},
{
"SchoolName": "Quernmore Church of England Voluntary Controlled Primary School",
"Postcode": "LA29EL"
},
{
"SchoolName": "Tatham Fells Church of England Voluntary Controlled Primary School",
"Postcode": "LA28RA"
},
{
"SchoolName": "Bamber Bridge St Aidan's Church of England Primary School",
"Postcode": "PR56GX"
},
{
"SchoolName": "Bickerstaffe Voluntary Controlled Church of England School",
"Postcode": "L390EH"
},
{
"SchoolName": "Penwortham Middleforth Church of England Primary School",
"Postcode": "PR19YE"
},
{
"SchoolName": "Roughlee Church of England Primary School",
"Postcode": "BB96NX"
},
{
"SchoolName": "Banks St Stephens' CofE School",
"Postcode": "PR98BL"
},
{
"SchoolName": "Edenfield Church of England Primary School",
"Postcode": "BL00HL"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "BB50NW"
},
{
"SchoolName": "Higham St John's Church of England Primary School",
"Postcode": "BB129EU"
},
{
"SchoolName": "Aughton St Michael's Church of England Primary School",
"Postcode": "L395DG"
},
{
"SchoolName": "Read St John's CofE Primary School",
"Postcode": "BB127PE"
},
{
"SchoolName": "Rawtenstall Newchurch Church of England Primary School",
"Postcode": "BB47UA"
},
{
"SchoolName": "Thornton Cleveleys Baines Endowed Voluntary Controlled Primary School",
"Postcode": "FY55HY"
},
{
"SchoolName": "Carter's Charity Voluntary Controlled Primary School, Preesall",
"Postcode": "FY60HH"
},
{
"SchoolName": "Higher Walton Church of England Primary School",
"Postcode": "PR54FE"
},
{
"SchoolName": "Brabins Endowed School",
"Postcode": "PR32QD"
},
{
"SchoolName": "Rishton Methodist Primary School",
"Postcode": "BB14JF"
},
{
"SchoolName": "Barrow Primary School",
"Postcode": "BB79AZ"
},
{
"SchoolName": "Oswaldtwistle Hippings Methodist Voluntary Controlled Primary School",
"Postcode": "BB53BT"
},
{
"SchoolName": "Leyland Methodist Junior School",
"Postcode": "PR253ET"
},
{
"SchoolName": "Leyland Methodist Infant School",
"Postcode": "PR253ET"
},
{
"SchoolName": "Burscough Bridge Methodist School",
"Postcode": "L400SG"
},
{
"SchoolName": "Holmeswood Methodist School",
"Postcode": "L401UD"
},
{
"SchoolName": "Warton Archbishop Hutton's Primary School",
"Postcode": "LA59QU"
},
{
"SchoolName": "Banks Methodist School",
"Postcode": "PR98EY"
},
{
"SchoolName": "Trinity Church of England/Methodist School",
"Postcode": "WN88PW"
},
{
"SchoolName": "Hapton Church of England/Methodist Primary School",
"Postcode": "BB115RF"
},
{
"SchoolName": "Turton and Edgworth CofE/Methodist Controlled Primary School",
"Postcode": "BL70AH"
},
{
"SchoolName": "<NAME>'s Endowed Primary School",
"Postcode": "L403SL"
},
{
"SchoolName": "Scarisbrick St Mark's Church of England Primary School",
"Postcode": "L409RE"
},
{
"SchoolName": "Bispham Endowed Church of England Primary School",
"Postcode": "FY20HH"
},
{
"SchoolName": "Oswaldtwistle St Andrew's Church of England Primary School",
"Postcode": "BB53LG"
},
{
"SchoolName": "Bacup Holy Trinity Stacksteads Church of England Primary School",
"Postcode": "OL130QW"
},
{
"SchoolName": "Balderstone St Leonard's Church of England Voluntary Aided Primary School",
"Postcode": "BB27LL"
},
{
"SchoolName": "Fulwood, St Peter's Church of England Primary School and Nursery",
"Postcode": "PR29RE"
},
{
"SchoolName": "Langho and Billington St Leonards CofE Primary School",
"Postcode": "BB68AB"
},
{
"SchoolName": "Chatburn Church of England Primary School",
"Postcode": "BB74AS"
},
{
"SchoolName": "St James' Church of England Primary School, Clitheroe",
"Postcode": "BB71ED"
},
{
"SchoolName": "Great Harwood St Bartholomew's Parish Church of England Voluntary Aided Primary School",
"Postcode": "BB67QA"
},
{
"SchoolName": "Great Harwood St John's Church of England Primary School",
"Postcode": "BB67ES"
},
{
"SchoolName": "Livesey Saint Francis' Church of England School",
"Postcode": "BB25NX"
},
{
"SchoolName": "Mellor St Mary Church of England Primary School",
"Postcode": "BB27JL"
},
{
"SchoolName": "Padiham St Leonard's Voluntary Aided Church of England Primary School",
"Postcode": "BB128HT"
},
{
"SchoolName": "Rishton St Peter and St Paul's Church of England Primary School",
"Postcode": "BB14DT"
},
{
"SchoolName": "Simonstone St Peter's Church of England Primary School",
"Postcode": "BB127HR"
},
{
"SchoolName": "Whalley Church of England Primary School",
"Postcode": "BB79SY"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Preston",
"Postcode": "PR15XL"
},
{
"SchoolName": "Barrowford St Thomas Church of England Primary School",
"Postcode": "BB96QT"
},
{
"SchoolName": "St John's CofE Primary School, Cliviger",
"Postcode": "BB104SU"
},
{
"SchoolName": "Colne Christ Church Church of England Voluntary Aided Primary School",
"Postcode": "BB87AA"
},
{
"SchoolName": "Foulridge Saint Michael and All Angels CofE Voluntary Aided Primary School",
"Postcode": "BB87NN"
},
{
"SchoolName": "Newchurch-in-Pendle St Mary's Church of England Primary School",
"Postcode": "BB129JP"
},
{
"SchoolName": "Nelson St Philip's Church of England Primary School",
"Postcode": "BB99TQ"
},
{
"SchoolName": "Nelson St Paul's Church of England Primary School",
"Postcode": "BB90PY"
},
{
"SchoolName": "St Stephen's Church of England Primary School",
"Postcode": "BB15PE"
},
{
"SchoolName": "Baxenden St John's Church of England Primary School",
"Postcode": "BB52RQ"
},
{
"SchoolName": "<NAME> Voluntary Aided Church of England Primary School",
"Postcode": "BB52AQ"
},
{
"SchoolName": "Green Haworth Church of England Primary School",
"Postcode": "BB53SQ"
},
{
"SchoolName": "St Mary and St Andrew's Catholic Primary School, B<NAME>sham",
"Postcode": "PR35DY"
},
{
"SchoolName": "Accrington St John with St Augustine Church of England Primary School",
"Postcode": "BB56AD"
},
{
"SchoolName": "Accrington St Mary Magdalen's Church of England Primary School",
"Postcode": "BB51DW"
},
{
"SchoolName": "Church, St Nicholas Church of England Primary School",
"Postcode": "BB54DN"
},
{
"SchoolName": "St Bernard's Catholic Primary School, Preston",
"Postcode": "PR21RP"
},
{
"SchoolName": "Knuzden St Oswald's CofE Voluntary Aided Primary School",
"Postcode": "BB12DR"
},
{
"SchoolName": "Oswaldtwistle St Paul's Church of England Primary School",
"Postcode": "BB53DD"
},
{
"SchoolName": "Haslingden St James Church of England Primary School",
"Postcode": "BB45HQ"
},
{
"SchoolName": "St John's Stonefold CofE Primary School",
"Postcode": "BB52SW"
},
{
"SchoolName": "St Anne's Church of England Primary School, Edgeside",
"Postcode": "BB49JE"
},
{
"SchoolName": "Hoddlesden St Paul's Church of England Primary School",
"Postcode": "BB33NH"
},
{
"SchoolName": "Darwen St Peter's Church of England Primary School",
"Postcode": "BB32BW"
},
{
"SchoolName": "St Stephen's Tockholes CofE Primary School",
"Postcode": "BB30LX"
},
{
"SchoolName": "Adlington St Paul's Church of England Primary School",
"Postcode": "PR69QZ"
},
{
"SchoolName": "Bretherton Endowed Church of England Voluntary Aided Primary School",
"Postcode": "PR269AH"
},
{
"SchoolName": "Brindle St James' Church of England Voluntary Aided Primary School",
"Postcode": "PR68NH"
},
{
"SchoolName": "Christ Church Charnock Richard CofE Primary School",
"Postcode": "PR75NA"
},
{
"SchoolName": "Chorley All Saints Church of England Primary School and Nursery Unit",
"Postcode": "PR72LR"
},
{
"SchoolName": "Chorley, the Parish of St Laurence Church of England Primary School",
"Postcode": "PR71RB"
},
{
"SchoolName": "St George's Church of England Primary School, Chorley",
"Postcode": "PR73JU"
},
{
"SchoolName": "Chorley St James' Church of England Primary School",
"Postcode": "PR60TE"
},
{
"SchoolName": "Clayton-le-Woods Church of England Primary School",
"Postcode": "PR67EU"
},
{
"SchoolName": "Coppull St John's Church of England Voluntary Aided Primary School",
"Postcode": "PR75DU"
},
{
"SchoolName": "Coppull Parish Church of England Primary School",
"Postcode": "PR74PU"
},
{
"SchoolName": "Eccleston St Mary's Church of England Primary School",
"Postcode": "PR75TE"
},
{
"SchoolName": "Euxton Church of England Voluntary Aided Primary School",
"Postcode": "PR76JW"
},
{
"SchoolName": "Slaidburn Brennands Endowed Primary School",
"Postcode": "BB73ER"
},
{
"SchoolName": "Heskin Pemberton's Church of England Primary School",
"Postcode": "PR75LU"
},
{
"SchoolName": "Leyland St James Church of England Primary School",
"Postcode": "PR267SH"
},
{
"SchoolName": "Mawdesley St Peter's Church of England Primary School",
"Postcode": "L402QT"
},
{
"SchoolName": "Whittle-le-Woods Church of England Primary School",
"Postcode": "PR67PS"
},
{
"SchoolName": "Downholland-Haskayne Voluntary Aided Church of England Primary School",
"Postcode": "L397HX"
},
{
"SchoolName": "Halsall St Cuthbert's Church of England Primary School",
"Postcode": "L398RR"
},
{
"SchoolName": "Burscough Lordsgate Township Church of England Primary School",
"Postcode": "L407RS"
},
{
"SchoolName": "Newburgh Church of England Primary School",
"Postcode": "WN87XB"
},
{
"SchoolName": "Rufford CofE School",
"Postcode": "L401SN"
},
{
"SchoolName": "Burnley St Peter's Church of England Primary School",
"Postcode": "BB112DL"
},
{
"SchoolName": "Burnley Holy Trinity Church of England Primary School",
"Postcode": "BB114LB"
},
{
"SchoolName": "Burnley St Stephen's Church of England Voluntary Aided Primary School",
"Postcode": "BB113EJ"
},
{
"SchoolName": "Burnley St James' Lanehead Church of England Primary School",
"Postcode": "BB102NH"
},
{
"SchoolName": "Christ The King Roman Catholic Primary School, Burnley",
"Postcode": "BB114RB"
},
{
"SchoolName": "<NAME>ary Magdalene's Roman Catholic Primary School, Burnley",
"Postcode": "BB120JD"
},
{
"SchoolName": "St Augustine of Canterbury Roman Catholic Primary School, Burnley",
"Postcode": "BB126HZ"
},
{
"SchoolName": "Wellfield Methodist and Anglican Church School",
"Postcode": "BB120JD"
},
{
"SchoolName": "Dalton St Michael's Church of England Primary School",
"Postcode": "WN87RP"
},
{
"SchoolName": "St Thomas the Martyr Voluntary Aided Church of England Primary School",
"Postcode": "WN80HX"
},
{
"SchoolName": "Upholland <NAME>ill CofE Voluntary Aided Primary School",
"Postcode": "WN80QR"
},
{
"SchoolName": "Appley Bridge All Saints Church of England Primary School",
"Postcode": "WN69DT"
},
{
"SchoolName": "St Barnabas and St Paul's Church of England Voluntary Aided Primary School",
"Postcode": "BB21SN"
},
{
"SchoolName": "St Gabriel's Church of England Primary School",
"Postcode": "BB18QN"
},
{
"SchoolName": "St James' Church of England Primary School Blackburn",
"Postcode": "BB18EG"
},
{
"SchoolName": "St James' Church of England Primary School",
"Postcode": "BB30QP"
},
{
"SchoolName": "St Matthew's Church of England Primary School",
"Postcode": "BB11DF"
},
{
"SchoolName": "Rivington Foundation Primary School",
"Postcode": "BL67SE"
},
{
"SchoolName": "Sacred Heart Roman Catholic Primary School Blackburn",
"Postcode": "BB26HQ"
},
{
"SchoolName": "St Anne's Roman Catholic Primary School Blackburn",
"Postcode": "BB21LQ"
},
{
"SchoolName": "Our Lady of Perpetual Succour Roman Catholic Primary School Blackburn",
"Postcode": "BB23UG"
},
{
"SchoolName": "St Mary's and St Joseph's Roman Catholic Primary School Blackburn",
"Postcode": "BB23HP"
},
{
"SchoolName": "St Peter's Roman Catholic Primary School, Blackburn",
"Postcode": "BB22RY"
},
{
"SchoolName": "St Antony's RC Primary School",
"Postcode": "BB12HP"
},
{
"SchoolName": "Holy Souls Roman Catholic Primary School Blackburn",
"Postcode": "BB18QN"
},
{
"SchoolName": "Calder Vale St John Church of England Primary School",
"Postcode": "PR31SR"
},
{
"SchoolName": "Bilsborrow John Cross Church of England Primary School",
"Postcode": "PR30RE"
},
{
"SchoolName": "Bleasdale Church of England Primary School",
"Postcode": "PR31UY"
},
{
"SchoolName": "Bolton-le-Sands Church of England Primary School",
"Postcode": "LA58DT"
},
{
"SchoolName": "Carnforth Christ Church, Church of England, Voluntary Aided Primary School",
"Postcode": "LA59LJ"
},
{
"SchoolName": "Arkholme Church of England Primary School",
"Postcode": "LA61AU"
},
{
"SchoolName": "Caton St Paul's Church of England Primary School",
"Postcode": "LA29PJ"
},
{
"SchoolName": "Cockerham Parochial Church of England Primary School",
"Postcode": "LA20EF"
},
{
"SchoolName": "Dolphinholme Church of England Primary School",
"Postcode": "LA29AN"
},
{
"SchoolName": "Ellel St John the Evangelist Church of England Primary School",
"Postcode": "LA20JS"
},
{
"SchoolName": "Garstang St Thomas' Church of England Primary School",
"Postcode": "PR31PB"
},
{
"SchoolName": "St Wilfrid's Cof E Primary School",
"Postcode": "LA26QE"
},
{
"SchoolName": "Hornby St Margaret's Church of England Primary School",
"Postcode": "LA28JY"
},
{
"SchoolName": "Inskip St Peter's Church of England Voluntary Aided School",
"Postcode": "PR40TT"
},
{
"SchoolName": "Lancaster Christ Church Church of England Primary School",
"Postcode": "LA13ES"
},
{
"SchoolName": "Scotforth St Paul's Church of England Primary and Nursery School",
"Postcode": "LA14SE"
},
{
"SchoolName": "Skerton St Luke's Church of England Primary School",
"Postcode": "LA12JH"
},
{
"SchoolName": "Leck St Peter's Church of England Primary School",
"Postcode": "LA62JD"
},
{
"SchoolName": "Melling St Wilfrid Church of England Primary School",
"Postcode": "LA62RE"
},
{
"SchoolName": "Heysham St Peter's Church of England Primary School",
"Postcode": "LA32RF"
},
{
"SchoolName": "Poulton-le-Sands Church of England Primary School",
"Postcode": "LA45QA"
},
{
"SchoolName": "Overton St Helen's Church of England Primary School",
"Postcode": "LA33EZ"
},
{
"SchoolName": "Cawthorne's Endowed School",
"Postcode": "LA29BQ"
},
{
"SchoolName": "Silverdale St John's Church of England Voluntary Aided Primary School",
"Postcode": "LA50RF"
},
{
"SchoolName": "Slyne-with-Hest, St Luke's, Church of England Primary School",
"Postcode": "LA26JL"
},
{
"SchoolName": "Thurnham Glasson Christ Church, Church of England Primary School",
"Postcode": "LA20AR"
},
{
"SchoolName": "St Michael's-on-Wyre Church of England Primary School",
"Postcode": "PR30UA"
},
{
"SchoolName": "Winmarleigh Church of England Primary School",
"Postcode": "PR30LA"
},
{
"SchoolName": "Yealand Church of England Primary School",
"Postcode": "LA59SU"
},
{
"SchoolName": "Bryning with Warton St Paul's Church of England Primary School",
"Postcode": "PR41AH"
},
{
"SchoolName": "Freckleton Church of England Primary School",
"Postcode": "PR41PJ"
},
{
"SchoolName": "Great Eccleston Copp CofE Primary School",
"Postcode": "PR30ZN"
},
{
"SchoolName": "Kirkham St Michael's Church of England Primary School",
"Postcode": "PR42SL"
},
{
"SchoolName": "Lytham Church of England Voluntary Aided Primary School",
"Postcode": "FY84HA"
},
{
"SchoolName": "St Annes on Sea St Thomas' Church of England Primary School",
"Postcode": "FY81JN"
},
{
"SchoolName": "Medlar-with-Wesham Church of England Primary School",
"Postcode": "PR43DE"
},
{
"SchoolName": "Pilling St John's Church of England Voluntary Aided Primary School",
"Postcode": "PR36HA"
},
{
"SchoolName": "Poulton-le-Fylde St Chad's CofE Primary School",
"Postcode": "FY67SR"
},
{
"SchoolName": "Carleton St Hilda's Church of England Primary School",
"Postcode": "FY67PE"
},
{
"SchoolName": "Preesall Fleetwood's Charity Church of England Primary School",
"Postcode": "FY60NN"
},
{
"SchoolName": "Ribby with Wrea Endowed CofE Primary School",
"Postcode": "PR42WQ"
},
{
"SchoolName": "Singleton Church of England Voluntary Aided Primary School",
"Postcode": "FY68LN"
},
{
"SchoolName": "Weeton St Michael's Church of England Voluntary Aided Primary School",
"Postcode": "PR43WD"
},
{
"SchoolName": "Barton St Lawrence Church of England Primary School",
"Postcode": "PR35AS"
},
{
"SchoolName": "Broughton-in-Amounderness Church of England Primary School",
"Postcode": "PR35JB"
},
{
"SchoolName": "Goosnargh Oliverson's Church of England Primary School",
"Postcode": "PR32BN"
},
{
"SchoolName": "Grimsargh St Michael's Church of England Primary School",
"Postcode": "PR25SD"
},
{
"SchoolName": "Hesketh-with-Becconsall All Saints CofE School",
"Postcode": "PR46RD"
},
{
"SchoolName": "Lea Neeld's Endowed Church of England Primary School",
"Postcode": "PR40RA"
},
{
"SchoolName": "Longridge Church of England Primary School",
"Postcode": "PR33JA"
},
{
"SchoolName": "New Longton All Saints CofE Primary School",
"Postcode": "PR44XA"
},
{
"SchoolName": "Hoole St Michael CofE Primary School",
"Postcode": "PR45JQ"
},
{
"SchoolName": "Ribchester St Wilfrid's Church of England Voluntary Aided Primary School",
"Postcode": "PR33XP"
},
{
"SchoolName": "Samlesbury Church of England School",
"Postcode": "PR50UE"
},
{
"SchoolName": "Tarleton Holy Trinity CofE Primary School",
"Postcode": "PR46UP"
},
{
"SchoolName": "Tar<NAME> Church of England Primary School",
"Postcode": "PR46JX"
},
{
"SchoolName": "Walton-le-Dale, St Leonard's Church of England Primary School",
"Postcode": "PR54JL"
},
{
"SchoolName": "Woodplumpton St Anne's CofE Primary School",
"Postcode": "PR40NE"
},
{
"SchoolName": "Altham St James Church of England Primary School",
"Postcode": "BB55UH"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "PR251TL"
},
{
"SchoolName": "Our Lady and St Edward's Catholic Primary School, Preston",
"Postcode": "PR23LP"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "LA32ER"
},
{
"SchoolName": "St Bernadette's Catholic Primary School, Lancaster",
"Postcode": "LA14HT"
},
{
"SchoolName": "St Catherine's RC Primary School",
"Postcode": "PR254SJ"
},
{
"SchoolName": "St John's Catholic Primary School, Skelmersdale",
"Postcode": "WN86PF"
},
{
"SchoolName": "St Clare's Catholic Primary School, Preston",
"Postcode": "PR29HH"
},
{
"SchoolName": "St James' Catholic Primary School, Skelmersdale",
"Postcode": "WN86TN"
},
{
"SchoolName": "St Veronica's Roman Catholic Primary School, Helmshore",
"Postcode": "BB44EZ"
},
{
"SchoolName": "Holy Family Catholic Primary School, Warton",
"Postcode": "PR41AD"
},
{
"SchoolName": "St Edmund's Catholic Primary School",
"Postcode": "WN88NP"
},
{
"SchoolName": "Blackpool St Nicholas CofE Primary School",
"Postcode": "FY45DS"
},
{
"SchoolName": "Blackpool St John's Church of England Primary School",
"Postcode": "FY13NX"
},
{
"SchoolName": "Our Lady of the Assumption Catholic Primary School",
"Postcode": "FY45DF"
},
{
"SchoolName": "St <NAME>'s Catholic Primary School",
"Postcode": "FY16RD"
},
{
"SchoolName": "St Kentigern's Catholic Primary School",
"Postcode": "FY38BT"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "FY12SD"
},
{
"SchoolName": "Ashton-on-Ribble St Andrew's Church of England Primary School",
"Postcode": "PR21EQ"
},
{
"SchoolName": "Preston St Matthew's Church of England Primary School",
"Postcode": "PR15XB"
},
{
"SchoolName": "The Blessed Sacrament Catholic Primary School",
"Postcode": "PR26LX"
},
{
"SchoolName": "English Martyrs Catholic Primary School, Preston",
"Postcode": "PR17DR"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "PR22SA"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "PR13YJ"
},
{
"SchoolName": "St Maria Goretti Catholic Primary School, Preston",
"Postcode": "PR26SJ"
},
{
"SchoolName": "St Gregory's Catholic Primary School, Preston",
"Postcode": "PR16HQ"
},
{
"SchoolName": "St Ignatius' Catholic Primary School",
"Postcode": "PR11TT"
},
{
"SchoolName": "Holy Family Catholic Primary School, Ingol, Preston",
"Postcode": "PR23YP"
},
{
"SchoolName": "<NAME> St. Paul's C.E. Primary School",
"Postcode": "PR266PR"
},
{
"SchoolName": "Scorton Church of England Primary School",
"Postcode": "PR31AY"
},
{
"SchoolName": "Over <NAME>'s Endowed Church of England Primary School",
"Postcode": "LA61BN"
},
{
"SchoolName": "St Cuthbert's Church of England Primary School",
"Postcode": "BB30HY"
},
{
"SchoolName": "Bishop Martin Church of England Primary School",
"Postcode": "WN89BN"
},
{
"SchoolName": "St Mary and Michael Catholic Primary School",
"Postcode": "PR31RB"
},
{
"SchoolName": "Our Lady of Lourdes Catholic Primary School, Carnforth",
"Postcode": "LA59LS"
},
{
"SchoolName": "St Mary's Catholic Primary School, Claughton-on-Brock",
"Postcode": "PR30PN"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Lancaster",
"Postcode": "LA12DU"
},
{
"SchoolName": "The Cathedral Catholic Primary School, Lancaster",
"Postcode": "LA13BT"
},
{
"SchoolName": "St Mary's Catholic Primary School, Morecambe",
"Postcode": "LA45PS"
},
{
"SchoolName": "St Mary's Catholic Primary School, Fleetwood",
"Postcode": "FY76EU"
},
{
"SchoolName": "St Wulstan's and St Edmund's Catholic Primary School and Nursery",
"Postcode": "FY77JY"
},
{
"SchoolName": "St Mary's Catholic Primary School, Great Eccleston",
"Postcode": "PR30ZJ"
},
{
"SchoolName": "The Willows Catholic Primary School, Kirkham",
"Postcode": "PR42BT"
},
{
"SchoolName": "Our Lady Star of the Sea Catholic Primary School",
"Postcode": "FY81LB"
},
{
"SchoolName": "St Peter's Catholic Primary School, Lytham",
"Postcode": "FY84JG"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Medlar-with-Wesham",
"Postcode": "PR43HA"
},
{
"SchoolName": "St William's Catholic Primary School, Pilling",
"Postcode": "PR36AL"
},
{
"SchoolName": "St John's Catholic Primary School, Poulton-le-Fylde",
"Postcode": "FY67HT"
},
{
"SchoolName": "Sacred Heart Catholic Primary School, Thornton Cleveleys",
"Postcode": "FY54HL"
},
{
"SchoolName": "St Francis Catholic Primary School, Goosnargh",
"Postcode": "PR32FJ"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "PR40RJ"
},
{
"SchoolName": "Alston Lane Catholic Primary School, Longridge",
"Postcode": "PR33BJ"
},
{
"SchoolName": "Longridge St Wilfrid's Roman Catholic Primary School",
"Postcode": "PR33WQ"
},
{
"SchoolName": "St Oswald's Catholic Primary School, Longton",
"Postcode": "PR45EB"
},
{
"SchoolName": "St Mary Magdalen's Catholic Primary School",
"Postcode": "PR19QQ"
},
{
"SchoolName": "Our Lady and St Gerard's Roman Catholic Primary School, Lostock Hall",
"Postcode": "PR55TB"
},
{
"SchoolName": "St Patrick's Roman Catholic Primary School, Walton-le-Dale",
"Postcode": "PR54HD"
},
{
"SchoolName": "St Joseph's Roman Catholic Primary School, Hurst Green",
"Postcode": "BB79QJ"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Langho",
"Postcode": "BB68EQ"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Chipping",
"Postcode": "PR32QH"
},
{
"SchoolName": "St Michael and St John's Roman Catholic Primary School, Clitheroe",
"Postcode": "BB71AG"
},
{
"SchoolName": "St Hubert's Roman Catholic Primary School, Great Harwood",
"Postcode": "BB67SN"
},
{
"SchoolName": "St Wulstan's Catholic Primary School, Great Harwood",
"Postcode": "BB67JQ"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Osbaldeston",
"Postcode": "BB27HX"
},
{
"SchoolName": "St John the Baptist Roman Catholic Primary School, Padiham",
"Postcode": "BB127BN"
},
{
"SchoolName": "St Paul's Roman Catholic Primary School, Feniscowles, Blackburn",
"Postcode": "BB25EP"
},
{
"SchoolName": "St Charles' RC School",
"Postcode": "BB14HT"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Sabden",
"Postcode": "BB79ED"
},
{
"SchoolName": "Holy Trinity Roman Catholic Primary School, Brierfield",
"Postcode": "BB95BL"
},
{
"SchoolName": "Sacred Heart Roman Catholic Primary School, Colne",
"Postcode": "BB87JR"
},
{
"SchoolName": "Holy Saviour Roman Catholic Primary School, Nelson",
"Postcode": "BB98HD"
},
{
"SchoolName": "St John Southworth Roman Catholic Primary School, Nelson",
"Postcode": "BB90DQ"
},
{
"SchoolName": "St Anne's and St Joseph's Roman Catholic Primary School, Accrington",
"Postcode": "BB52AN"
},
{
"SchoolName": "St Oswald's Roman Catholic Primary School, Accrington",
"Postcode": "BB50NN"
},
{
"SchoolName": "Sacred Heart Roman Catholic Primary School, Church",
"Postcode": "BB54HG"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Clayton-le-Moors",
"Postcode": "BB55RJ"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Oswaldtwistle",
"Postcode": "BB53AA"
},
{
"SchoolName": "St Joseph's Roman Catholic Primary School, Stacksteads, Bacup",
"Postcode": "OL138LD"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Bacup",
"Postcode": "OL139LJ"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Haslingden",
"Postcode": "BB45NP"
},
{
"SchoolName": "St Peter's Roman Catholic Primary School, Newchurch",
"Postcode": "BB49EZ"
},
{
"SchoolName": "St James-the-Less Roman Catholic Primary School, Rawtenstall",
"Postcode": "BB48SU"
},
{
"SchoolName": "St Edward's Roman Catholic Primary School Blackburn",
"Postcode": "BB30AA"
},
{
"SchoolName": "St Joseph's Roman Catholic Primary School, Darwen",
"Postcode": "BB32SG"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Anderton",
"Postcode": "PR69LZ"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Brindle",
"Postcode": "PR50DQ"
},
{
"SchoolName": "Sacred Heart Catholic Primary School, Chorley",
"Postcode": "PR60LB"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Chorley",
"Postcode": "PR60JF"
},
{
"SchoolName": "St Mary's Catholic Primary School and Nursery, Chorley",
"Postcode": "PR72RJ"
},
{
"SchoolName": "St Gregory's Catholic Primary School, Chorley",
"Postcode": "PR73QG"
},
{
"SchoolName": "St Bede's Catholic Primary School",
"Postcode": "PR67EB"
},
{
"SchoolName": "St Oswald's Catholic Primary School, Coppull",
"Postcode": "PR75DH"
},
{
"SchoolName": "Euxton St Mary's Catholic Primary School",
"Postcode": "PR76JW"
},
{
"SchoolName": "Leyland St Mary's Roman Catholic Primary School",
"Postcode": "PR252QA"
},
{
"SchoolName": "St Peter and Paul Catholic Primary School, Mawdesley",
"Postcode": "L403PP"
},
{
"SchoolName": "St Chad's Catholic Primary School",
"Postcode": "PR68LL"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Withnell",
"Postcode": "PR68SD"
},
{
"SchoolName": "St John's Catholic Primary School, Burscough",
"Postcode": "L407RA"
},
{
"SchoolName": "Ormskirk St Anne's Catholic Primary School",
"Postcode": "L393LQ"
},
{
"SchoolName": "St Mary's Catholic Primary School, Scarisbrick",
"Postcode": "L409QE"
},
{
"SchoolName": "St Richard's Catholic Primary School, Skelmersdale",
"Postcode": "WN88LQ"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Barnoldswick",
"Postcode": "BB185EN"
},
{
"SchoolName": "Grindleton Church of England Voluntary Aided Primary School",
"Postcode": "BB74QS"
},
{
"SchoolName": "Waddington and West Bradford Church of England Voluntary Aided Primary School",
"Postcode": "BB73JE"
},
{
"SchoolName": "Bolton by Bowland Church of England Voluntary Aided Primary School",
"Postcode": "BB74NP"
},
{
"SchoolName": "Thorneyholme Roman Catholic Primary School, Dunsop Bridge",
"Postcode": "BB73BG"
},
{
"SchoolName": "St John with St Michael Church of England Primary School, Shawforth",
"Postcode": "OL128EP"
},
{
"SchoolName": "St Bernadette's Catholic Primary School",
"Postcode": "FY20AJ"
},
{
"SchoolName": "St Teresa's Catholic Primary School",
"Postcode": "FY53JW"
},
{
"SchoolName": "Heyhouses Endowed Church of England Primary School",
"Postcode": "FY83EE"
},
{
"SchoolName": "Our Lady and All Saints Roman Catholic Primary School, Parbold",
"Postcode": "WN87HD"
},
{
"SchoolName": "St Teresa's Catholic Primary School",
"Postcode": "WN80PY"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Wrightington",
"Postcode": "WN69RE"
},
{
"SchoolName": "Our Lady and St Anselm's Roman Catholic Primary School, Whitworth",
"Postcode": "OL128DB"
},
{
"SchoolName": "St Anthony's Catholic Primary School, Fulwood, Preston",
"Postcode": "PR23SQ"
},
{
"SchoolName": "Penwortham, St Teresa's Catholic Primary School",
"Postcode": "PR10JH"
},
{
"SchoolName": "St Teresa's Catholic Primary School, Preston",
"Postcode": "PR14RH"
},
{
"SchoolName": "Treales Church of England Primary School",
"Postcode": "PR43SH"
},
{
"SchoolName": "Wheatley Lane Methodist Voluntary Aided Primary School",
"Postcode": "BB129ED"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Burnley",
"Postcode": "BB104BH"
},
{
"SchoolName": "St Mary's and St Benedict's Roman Catholic Primary School",
"Postcode": "PR56TA"
},
{
"SchoolName": "Brinscall St John's CofE and Methodist Primary School",
"Postcode": "PR68PT"
},
{
"SchoolName": "St Alban's Roman Catholic Primary School Blackburn",
"Postcode": "BB15BN"
},
{
"SchoolName": "Ashton Community Science College",
"Postcode": "PR21SL"
},
{
"SchoolName": "Heysham High School Sports College",
"Postcode": "LA31HS"
},
{
"SchoolName": "Millfield Science & Performing Arts College",
"Postcode": "FY55DG"
},
{
"SchoolName": "Ribblesdale High School",
"Postcode": "BB71EJ"
},
{
"SchoolName": "Colne Park High School",
"Postcode": "BB87DP"
},
{
"SchoolName": "Rhyddings Business and Enterprise School",
"Postcode": "BB53EA"
},
{
"SchoolName": "Alder Grange School",
"Postcode": "BB48HW"
},
{
"SchoolName": "Wellfield High School",
"Postcode": "PR252TP"
},
{
"SchoolName": "Lytham St Annes Technology and Performing Arts College",
"Postcode": "FY84DG"
},
{
"SchoolName": "Walton Le Dale High School",
"Postcode": "PR56RN"
},
{
"SchoolName": "Carr Hill High School and Sixth Form Centre",
"Postcode": "PR42ST"
},
{
"SchoolName": "Fearns Community Sports College",
"Postcode": "OL130TG"
},
{
"SchoolName": "Burscough Priory Science College",
"Postcode": "L407RZ"
},
{
"SchoolName": "Carnforth High School",
"Postcode": "LA59LS"
},
{
"SchoolName": "Longridge High School A Maths and Computing College",
"Postcode": "PR33AR"
},
{
"SchoolName": "Up Holland High School",
"Postcode": "WN57AL"
},
{
"SchoolName": "Whitworth Community High School",
"Postcode": "OL128TS"
},
{
"SchoolName": "The Hollins Technology College",
"Postcode": "BB52QY"
},
{
"SchoolName": "Broughton High School",
"Postcode": "PR35JJ"
},
{
"SchoolName": "Morecambe Community High School",
"Postcode": "LA45BG"
},
{
"SchoolName": "Penwortham Girls' High School",
"Postcode": "PR10SR"
},
{
"SchoolName": "Haslingden High School and Sixth Form",
"Postcode": "BB44EY"
},
{
"SchoolName": "Central Lancaster High School",
"Postcode": "LA13LS"
},
{
"SchoolName": "Fleetwood High School",
"Postcode": "FY78HE"
},
{
"SchoolName": "Moor Park High School and Sixth Form",
"Postcode": "PR16DT"
},
{
"SchoolName": "Lathom High School : A Technology College",
"Postcode": "WN86JN"
},
{
"SchoolName": "Balshaw's Church of England High School",
"Postcode": "PR253AH"
},
{
"SchoolName": "Our Lady's Catholic High School",
"Postcode": "PR23SQ"
},
{
"SchoolName": "Corpus Christi Catholic High School",
"Postcode": "PR28QY"
},
{
"SchoolName": "Christ The King Catholic High School",
"Postcode": "PR14PR"
},
{
"SchoolName": "Our Lady Queen of Peace Catholic Engineering College",
"Postcode": "WN86JW"
},
{
"SchoolName": "Brownedge St Mary's Catholic High School",
"Postcode": "PR56PB"
},
{
"SchoolName": "St <NAME> and Thomas More Roman Catholic High School, Colne",
"Postcode": "BB88JT"
},
{
"SchoolName": "St Bede's Catholic High School",
"Postcode": "FY84JL"
},
{
"SchoolName": "Saint Aidan's Church of England High School",
"Postcode": "FY60NP"
},
{
"SchoolName": "Our Lady and St John Catholic College",
"Postcode": "BB11PY"
},
{
"SchoolName": "St Bede's Catholic High School",
"Postcode": "L394TA"
},
{
"SchoolName": "St Bede's Roman Catholic High School, Blackburn",
"Postcode": "BB24SR"
},
{
"SchoolName": "Hutton Church of England Grammar School",
"Postcode": "PR45SN"
},
{
"SchoolName": "All Saints' Roman Catholic High School, Rossendale",
"Postcode": "BB46SJ"
},
{
"SchoolName": "Our Lady's Catholic College",
"Postcode": "LA12RX"
},
{
"SchoolName": "Cardinal Allen Catholic High School, Fleetwood",
"Postcode": "FY78AY"
},
{
"SchoolName": "St Cecilia's RC High School",
"Postcode": "PR32XA"
},
{
"SchoolName": "St Augustine's Roman Catholic High School, Billington",
"Postcode": "BB79JA"
},
{
"SchoolName": "All Hallows Catholic High School",
"Postcode": "PR10LN"
},
{
"SchoolName": "Holy Cross Catholic High School, A Sports and Science College",
"Postcode": "PR73LS"
},
{
"SchoolName": "Mount Carmel Roman Catholic High School, Hyndburn",
"Postcode": "BB50LU"
},
{
"SchoolName": "Newton Bluecoat Church of England Primary School",
"Postcode": "PR43RT"
},
{
"SchoolName": "Chorley St Peter's Church of England Primary School",
"Postcode": "PR60DX"
},
{
"SchoolName": "Salesbury Church of England Primary School",
"Postcode": "BB19EQ"
},
{
"SchoolName": "Barnacre Road Primary School",
"Postcode": "PR32PD"
},
{
"SchoolName": "Baines School",
"Postcode": "FY68BE"
},
{
"SchoolName": "Archbishop Temple School, A Church of England Specialist College",
"Postcode": "PR28RA"
},
{
"SchoolName": "St Mary's Catholic High School",
"Postcode": "PR251BS"
},
{
"SchoolName": "Stonyhurst College",
"Postcode": "BB79PZ"
},
{
"SchoolName": "Rossall School",
"Postcode": "FY78JW"
},
{
"SchoolName": "The St Anne's College Grammar School",
"Postcode": "FY81HN"
},
{
"SchoolName": "Moorland School Limited",
"Postcode": "BB72JA"
},
{
"SchoolName": "St Pius X Preparatory School",
"Postcode": "PR28RD"
},
{
"SchoolName": "Scarisbrick Hall School",
"Postcode": "L409RQ"
},
{
"SchoolName": "Westholme School",
"Postcode": "BB26QU"
},
{
"SchoolName": "Highfield Priory School",
"Postcode": "PR25RW"
},
{
"SchoolName": "St Joseph's Park Hill School",
"Postcode": "BB126TG"
},
{
"SchoolName": "Oakhill College",
"Postcode": "BB79AF"
},
{
"SchoolName": "Kirkham Grammar School",
"Postcode": "PR42BH"
},
{
"SchoolName": "ArnoldKEQMS (AKS)",
"Postcode": "FY81DT"
},
{
"SchoolName": "The Kingsfold Christian School",
"Postcode": "PR46AA"
},
{
"SchoolName": "Rossendale School",
"Postcode": "BL00RT"
},
{
"SchoolName": "<NAME>loom Islamic Primary School",
"Postcode": "BB15NZ"
},
{
"SchoolName": "Crookhey Hall School",
"Postcode": "LA20HA"
},
{
"SchoolName": "Heathland Private School",
"Postcode": "BB52AN"
},
{
"SchoolName": "Waterloo Lodge School",
"Postcode": "PR67AX"
},
{
"SchoolName": "Ashbridge Independent School",
"Postcode": "PR44AQ"
},
{
"SchoolName": "Al Islah Girls' High School",
"Postcode": "BB11TF"
},
{
"SchoolName": "Crosshill Special School",
"Postcode": "BB23HJ"
},
{
"SchoolName": "Bleasdale School",
"Postcode": "LA50RG"
},
{
"SchoolName": "Moorbrook School",
"Postcode": "PR23DB"
},
{
"SchoolName": "Highfurlong School",
"Postcode": "FY37LS"
},
{
"SchoolName": "Woodlands School",
"Postcode": "FY39HF"
},
{
"SchoolName": "Wennington Hall School",
"Postcode": "LA28NS"
},
{
"SchoolName": "Morecambe Road School",
"Postcode": "LA33AB"
},
{
"SchoolName": "Chorley Astley Park School",
"Postcode": "PR71JZ"
},
{
"SchoolName": "Great Arley School",
"Postcode": "FY54HH"
},
{
"SchoolName": "Rawtenstall Cribden House Community Special School",
"Postcode": "BB46RX"
},
{
"SchoolName": "Lostock Hall Moor Hey School",
"Postcode": "PR55SS"
},
{
"SchoolName": "Broadfield Specialist School",
"Postcode": "BB53BE"
},
{
"SchoolName": "Kirkham Pear Tree School",
"Postcode": "PR42HA"
},
{
"SchoolName": "Mayfield School",
"Postcode": "PR73HN"
},
{
"SchoolName": "The Loyne Specialist School",
"Postcode": "LA12QD"
},
{
"SchoolName": "The Coppice School",
"Postcode": "PR56GY"
},
{
"SchoolName": "Oswaldtwistle White Ash School",
"Postcode": "BB54QG"
},
{
"SchoolName": "Brookfield School",
"Postcode": "FY67HE"
},
{
"SchoolName": "Thornton-Cleveleys Red Marsh School",
"Postcode": "FY54HH"
},
{
"SchoolName": "Hope High School",
"Postcode": "WN89DP"
},
{
"SchoolName": "Countesthorpe Nursery School",
"Postcode": "LE85PB"
},
{
"SchoolName": "The Latimer Primary School, Anstey",
"Postcode": "LE77AW"
},
{
"SchoolName": "Moira Primary School",
"Postcode": "DE126EX"
},
{
"SchoolName": "Buckminster Primary School",
"Postcode": "NG335RZ"
},
{
"SchoolName": "Burton-on-the-Wolds Primary School",
"Postcode": "LE125TB"
},
{
"SchoolName": "Belvoirdale Community Primary School",
"Postcode": "LE673RD"
},
{
"SchoolName": "Ellistown Community Primary School",
"Postcode": "LE671EN"
},
{
"SchoolName": "Hugglescote Community Primary School",
"Postcode": "LE672HA"
},
{
"SchoolName": "Woodstone Community Primary School",
"Postcode": "LE672AH"
},
{
"SchoolName": "New Swannington Primary School",
"Postcode": "LE675DQ"
},
{
"SchoolName": "Griffydam Primary School",
"Postcode": "LE678HU"
},
{
"SchoolName": "Desford Community Primary School",
"Postcode": "LE99JH"
},
{
"SchoolName": "Foxton Primary School",
"Postcode": "LE167QZ"
},
{
"SchoolName": "Martinshaw Primary School",
"Postcode": "LE60BB"
},
{
"SchoolName": "Heather Primary School",
"Postcode": "LE672QP"
},
{
"SchoolName": "Hinckley Parks Primary School",
"Postcode": "LE101LP"
},
{
"SchoolName": "Westfield Junior School",
"Postcode": "LE100LT"
},
{
"SchoolName": "Westfield Infant School",
"Postcode": "LE100JL"
},
{
"SchoolName": "Barwell Infant School",
"Postcode": "LE98HG"
},
{
"SchoolName": "Ibstock Junior School",
"Postcode": "LE676NP"
},
{
"SchoolName": "Kegworth Primary School",
"Postcode": "DE742DA"
},
{
"SchoolName": "Hemington Primary School",
"Postcode": "DE742RB"
},
{
"SchoolName": "Little Bowden School",
"Postcode": "LE168AY"
},
{
"SchoolName": "Newbold Verdon Primary School",
"Postcode": "LE99NG"
},
{
"SchoolName": "Donisthorpe Primary School",
"Postcode": "DE127QF"
},
{
"SchoolName": "Congerstone Primary School",
"Postcode": "CV136NH"
},
{
"SchoolName": "Stathern Primary School",
"Postcode": "LE144HX"
},
{
"SchoolName": "Newton Burgoland Primary School",
"Postcode": "LE672SL"
},
{
"SchoolName": "Worthington School",
"Postcode": "LE651RQ"
},
{
"SchoolName": "Blaby Thistly Meadow Primary School",
"Postcode": "LE84FE"
},
{
"SchoolName": "Thorpe Acre Junior School",
"Postcode": "LE114SQ"
},
{
"SchoolName": "Thorpe Acre Infant School",
"Postcode": "LE114SQ"
},
{
"SchoolName": "Oxley Primary School Shepshed",
"Postcode": "LE129LU"
},
{
"SchoolName": "Burbage Junior School",
"Postcode": "LE102AD"
},
{
"SchoolName": "Booth Wood Primary School",
"Postcode": "LE114PG"
},
{
"SchoolName": "Badgerbrook Primary School",
"Postcode": "LE86ZW"
},
{
"SchoolName": "Warren Hills Community Primary School",
"Postcode": "LE674TA"
},
{
"SchoolName": "Orchard Community Primary School",
"Postcode": "DE742QU"
},
{
"SchoolName": "Newlands Community Primary School",
"Postcode": "LE98AG"
},
{
"SchoolName": "Kingsway Primary School",
"Postcode": "LE33BD"
},
{
"SchoolName": "Sketchley Hill Primary School Burbage",
"Postcode": "LE102DY"
},
{
"SchoolName": "Brookside Primary School, Oadby",
"Postcode": "LE24FU"
},
{
"SchoolName": "Sherard Primary School and Community Centre",
"Postcode": "LE131HA"
},
{
"SchoolName": "Thythorn Field Community Primary School",
"Postcode": "LE182QU"
},
{
"SchoolName": "Bridge Junior School",
"Postcode": "LE53HH"
},
{
"SchoolName": "Catherine Infant School",
"Postcode": "LE46BY"
},
{
"SchoolName": "Catherine Junior School",
"Postcode": "LE46AZ"
},
{
"SchoolName": "Evington Valley Primary School",
"Postcode": "LE55LL"
},
{
"SchoolName": "Granby Primary School",
"Postcode": "LE28LP"
},
{
"SchoolName": "Green Lane Infant School",
"Postcode": "LE53GG"
},
{
"SchoolName": "Rushey Mead Primary School",
"Postcode": "LE46RB"
},
{
"SchoolName": "Imperial Avenue Infant School",
"Postcode": "LE31AH"
},
{
"SchoolName": "Inglehurst Infant School",
"Postcode": "LE39FS"
},
{
"SchoolName": "Inglehurst Junior School",
"Postcode": "LE39FS"
},
{
"SchoolName": "King Richard Infant and Nursery School",
"Postcode": "LE35PA"
},
{
"SchoolName": "Mayflower Primary School",
"Postcode": "LE55PH"
},
{
"SchoolName": "Overdale Infant School",
"Postcode": "LE23YA"
},
{
"SchoolName": "Overdale Junior School",
"Postcode": "LE23YA"
},
{
"SchoolName": "Merrydale Infant School",
"Postcode": "LE50PL"
},
{
"SchoolName": "St Mary's Fields Primary School",
"Postcode": "LE32DA"
},
{
"SchoolName": "Shaftesbury Junior School",
"Postcode": "LE30QE"
},
{
"SchoolName": "Wyvern Primary School",
"Postcode": "LE47HH"
},
{
"SchoolName": "Montrose School",
"Postcode": "LE28TN"
},
{
"SchoolName": "Braunstone Frith Primary School",
"Postcode": "LE36NF"
},
{
"SchoolName": "Folville Junior School",
"Postcode": "LE31EE"
},
{
"SchoolName": "Uplands Infant School",
"Postcode": "LE20DR"
},
{
"SchoolName": "Shenton Primary School",
"Postcode": "LE53FP"
},
{
"SchoolName": "Stokes Wood Primary School",
"Postcode": "LE39BX"
},
{
"SchoolName": "Wolsey House Primary School",
"Postcode": "LE42BB"
},
{
"SchoolName": "Buswells Lodge Primary School",
"Postcode": "LE40PT"
},
{
"SchoolName": "Sandfield Close Primary School",
"Postcode": "LE47RE"
},
{
"SchoolName": "Highgate Community Primary School",
"Postcode": "LE127ND"
},
{
"SchoolName": "Barley Croft Primary School",
"Postcode": "LE40UT"
},
{
"SchoolName": "Old Mill Primary School Broughton Astley",
"Postcode": "LE96PT"
},
{
"SchoolName": "Dove Bank Primary School",
"Postcode": "CV130QJ"
},
{
"SchoolName": "Abbey Primary Community School",
"Postcode": "LE45HH"
},
{
"SchoolName": "Taylor Road Primary School",
"Postcode": "LE12JP"
},
{
"SchoolName": "Linden Primary School",
"Postcode": "LE56AD"
},
{
"SchoolName": "Eyres Monsell Primary School",
"Postcode": "LE29AH"
},
{
"SchoolName": "The Hall School",
"Postcode": "LE38PQ"
},
{
"SchoolName": "Hazel Community Primary School",
"Postcode": "LE27JN"
},
{
"SchoolName": "Charnwood Primary School",
"Postcode": "LE20HE"
},
{
"SchoolName": "Mellor Community Primary School",
"Postcode": "LE45EQ"
},
{
"SchoolName": "Marriott Primary School",
"Postcode": "LE26NE"
},
{
"SchoolName": "Water Leys Primary School",
"Postcode": "LE181HG"
},
{
"SchoolName": "Whitehall Primary School",
"Postcode": "LE56GJ"
},
{
"SchoolName": "Spinney Hill Primary School and Community Centre",
"Postcode": "LE55EZ"
},
{
"SchoolName": "Scraptoft Valley Primary School",
"Postcode": "LE51NG"
},
{
"SchoolName": "Beaumont Lodge Primary School",
"Postcode": "LE41DT"
},
{
"SchoolName": "Parks Primary School",
"Postcode": "LE39NZ"
},
{
"SchoolName": "Fosse Primary School",
"Postcode": "LE35EA"
},
{
"SchoolName": "Forest Lodge Community Primary School",
"Postcode": "LE36LH"
},
{
"SchoolName": "Sparkenhoe Community Primary School",
"Postcode": "LE20TD"
},
{
"SchoolName": "Coleman Primary School",
"Postcode": "LE55FS"
},
{
"SchoolName": "Woodcote Primary School",
"Postcode": "LE651JX"
},
{
"SchoolName": "Ravenhurst Primary School",
"Postcode": "LE32PS"
},
{
"SchoolName": "Herrick Primary School",
"Postcode": "LE47NJ"
},
{
"SchoolName": "Slater Primary School",
"Postcode": "LE35AS"
},
{
"SchoolName": "Kestrels' Field Primary School",
"Postcode": "LE51TG"
},
{
"SchoolName": "Woodland Grange Primary School, Oadby",
"Postcode": "LE24TY"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "LE40FQ"
},
{
"SchoolName": "Medway Community Primary School",
"Postcode": "LE21GH"
},
{
"SchoolName": "Arnesby Church of England Primary School",
"Postcode": "LE85WG"
},
{
"SchoolName": "Belton Church of England Primary School",
"Postcode": "LE129TS"
},
{
"SchoolName": "Billesdon Church of England Primary School",
"Postcode": "LE79AG"
},
{
"SchoolName": "Blaby Stokes Church of England Primary School",
"Postcode": "LE84EG"
},
{
"SchoolName": "Blackfordby St Margaret's Church of England (Aided) Primary School",
"Postcode": "DE118AB"
},
{
"SchoolName": "Breedon on the Hill St Hardulph's Church of England Primary School",
"Postcode": "DE738AN"
},
{
"SchoolName": "Orchard Church of England Primary School, Broughton Astley",
"Postcode": "LE96QX"
},
{
"SchoolName": "Burbage Church of England Infant School",
"Postcode": "LE102AE"
},
{
"SchoolName": "St Edwards Church of England Primary School",
"Postcode": "DE742LH"
},
{
"SchoolName": "All Saints Church of England Primary School, Coalville",
"Postcode": "LE673LB"
},
{
"SchoolName": "Cossington Church of England Primary School",
"Postcode": "LE74UU"
},
{
"SchoolName": "Croft Church of England Primary School",
"Postcode": "LE93GJ"
},
{
"SchoolName": "Diseworth Church of England Primary School",
"Postcode": "DE742QD"
},
{
"SchoolName": "Fleckney Church of England Primary School",
"Postcode": "LE88BE"
},
{
"SchoolName": "Great Glen St Cuthbert's Church of England Primary School",
"Postcode": "LE89EQ"
},
{
"SchoolName": "Harby Church of England Primary School",
"Postcode": "LE144BZ"
},
{
"SchoolName": "St Mary's Church of England Primary School, Hinckley",
"Postcode": "LE101AW"
},
{
"SchoolName": "Hose Church of England Primary School",
"Postcode": "LE144JE"
},
{
"SchoolName": "Houghton-on-the-Hill Church of England Primary School",
"Postcode": "LE79GD"
},
{
"SchoolName": "St Denys Church of England Infant School, Ibstock",
"Postcode": "LE676NL"
},
{
"SchoolName": "Long Clawson Church of England Primary School",
"Postcode": "LE144PB"
},
{
"SchoolName": "Long Whatton Church of England Primary School and Community Centre",
"Postcode": "LE125DB"
},
{
"SchoolName": "Newbold Church of England Primary School",
"Postcode": "LE678PF"
},
{
"SchoolName": "Packington Church of England Primary School",
"Postcode": "LE651WL"
},
{
"SchoolName": "St Bartholomew's Church of England Primary School",
"Postcode": "LE128HQ"
},
{
"SchoolName": "Scalford Church of England Primary School",
"Postcode": "LE144DT"
},
{
"SchoolName": "Sheepy Magna Church of England Primary School",
"Postcode": "CV93QR"
},
{
"SchoolName": "St Botolph's Church of England Primary School",
"Postcode": "LE129DN"
},
{
"SchoolName": "Manorfield Church of England Primary School Stoney Stanton",
"Postcode": "LE94LU"
},
{
"SchoolName": "Swithland St Leonard's Church of England Primary School",
"Postcode": "LE128TQ"
},
{
"SchoolName": "Whitwick St John The Baptist Church of England Primary School",
"Postcode": "LE675AT"
},
{
"SchoolName": "Witherley Church of England Primary School",
"Postcode": "CV93NA"
},
{
"SchoolName": "Woodhouse Eaves St Paul's Church of England Primary School",
"Postcode": "LE128SA"
},
{
"SchoolName": "Wymeswold Church of England Primary School",
"Postcode": "LE126TU"
},
{
"SchoolName": "Hathern Church of England Primary School",
"Postcode": "LE125LJ"
},
{
"SchoolName": "Hallaton Church of England Primary School",
"Postcode": "LE168TY"
},
{
"SchoolName": "Empingham CofE Primary School",
"Postcode": "LE158PQ"
},
{
"SchoolName": "Exton and Greetham CofE Primary School",
"Postcode": "LE158AY"
},
{
"SchoolName": "Oakham CofE Primary School",
"Postcode": "LE156GY"
},
{
"SchoolName": "Uppingham CofE Primary School",
"Postcode": "LE159RT"
},
{
"SchoolName": "Great Casterton CofE Primary School",
"Postcode": "PE94AU"
},
{
"SchoolName": "Belgrave St Peter's CofE Primary School",
"Postcode": "LE45PG"
},
{
"SchoolName": "Sherrier Church of England Primary School",
"Postcode": "LE174EX"
},
{
"SchoolName": "Ashby-de-la-Zouch Church of England Primary School",
"Postcode": "LE652LL"
},
{
"SchoolName": "Sir <NAME>re Church of England Primary School",
"Postcode": "DE127AH"
},
{
"SchoolName": "Kilby St Mary's Church of England Primary School",
"Postcode": "LE183TD"
},
{
"SchoolName": "Snarestone Church of England Primary School",
"Postcode": "DE127DB"
},
{
"SchoolName": "Thurlaston Church of England Primary School",
"Postcode": "LE97TE"
},
{
"SchoolName": "St Peter's Church of England Primary School Whetstone",
"Postcode": "LE86NJ"
},
{
"SchoolName": "Richard Hill Church of England Primary School",
"Postcode": "LE77JA"
},
{
"SchoolName": "All Saints Church of England Primary School",
"Postcode": "LE182AH"
},
{
"SchoolName": "Church Langton Church of England Primary School",
"Postcode": "LE167SZ"
},
{
"SchoolName": "Saint Peters Catholic Primary School, Earl Shilton, Leicestershire",
"Postcode": "LE97AW"
},
{
"SchoolName": "Saint Charles' Catholic Primary School, Measham, Leicestershire",
"Postcode": "DE127LQ"
},
{
"SchoolName": "Saint Francis Catholic Primary School",
"Postcode": "LE130BP"
},
{
"SchoolName": "Bishop Ellis Catholic Primary School, Thurmaston",
"Postcode": "LE48GP"
},
{
"SchoolName": "Christ The King Catholic Primary School",
"Postcode": "LE36DF"
},
{
"SchoolName": "Saint Patrick's Catholic Primary School",
"Postcode": "LE46QN"
},
{
"SchoolName": "Holy Cross Catholic Primary School",
"Postcode": "LE26TY"
},
{
"SchoolName": "St Mary and St John CofE VA Primary School",
"Postcode": "LE158JR"
},
{
"SchoolName": "St John the Baptist CofE Primary School",
"Postcode": "LE21TE"
},
{
"SchoolName": "Hind Leys Community College",
"Postcode": "LE129DB"
},
{
"SchoolName": "Crown Hills Community College",
"Postcode": "LE55FT"
},
{
"SchoolName": "Sir Jonathan North Community College",
"Postcode": "LE26FU"
},
{
"SchoolName": "Beaumont Leys School",
"Postcode": "LE40FL"
},
{
"SchoolName": "Hamilton College",
"Postcode": "LE51RT"
},
{
"SchoolName": "Soar Valley College",
"Postcode": "LE47GY"
},
{
"SchoolName": "Judgemeadow Community College",
"Postcode": "LE56HP"
},
{
"SchoolName": "Moat Community College",
"Postcode": "LE20TU"
},
{
"SchoolName": "The City of Leicester College",
"Postcode": "LE56LN"
},
{
"SchoolName": "Fullhurst Community College",
"Postcode": "LE31AH"
},
{
"SchoolName": "English Martyrs Catholic School",
"Postcode": "LE40FJ"
},
{
"SchoolName": "Saint Paul's Catholic School",
"Postcode": "LE56HN"
},
{
"SchoolName": "Manor House School",
"Postcode": "LE651BR"
},
{
"SchoolName": "Ratcliffe College",
"Postcode": "LE74SG"
},
{
"SchoolName": "Our Lady's Convent School",
"Postcode": "LE112DZ"
},
{
"SchoolName": "Grace <NAME>",
"Postcode": "LE675UG"
},
{
"SchoolName": "Uppingham School",
"Postcode": "LE159QE"
},
{
"SchoolName": "Oakham School",
"Postcode": "LE156DT"
},
{
"SchoolName": "Leicester High School for Girls",
"Postcode": "LE22PP"
},
{
"SchoolName": "Stoneygate School",
"Postcode": "LE89DJ"
},
{
"SchoolName": "St Crispin's School",
"Postcode": "LE21XA"
},
{
"SchoolName": "Leicester Preparatory School",
"Postcode": "LE22AA"
},
{
"SchoolName": "The Grange Therapeutic School",
"Postcode": "LE158LY"
},
{
"SchoolName": "Twycross House School",
"Postcode": "CV93PL"
},
{
"SchoolName": "Loughborough Grammar School",
"Postcode": "LE112DU"
},
{
"SchoolName": "Loughborough High School",
"Postcode": "LE112DU"
},
{
"SchoolName": "Leicester Grammar School Trust",
"Postcode": "LE89FL"
},
{
"SchoolName": "Leicester Islamic Academy",
"Postcode": "LE22PJ"
},
{
"SchoolName": "Twycross House Pre-Preparatory School",
"Postcode": "CV93PQ"
},
{
"SchoolName": "Dixie Grammar School",
"Postcode": "CV130LE"
},
{
"SchoolName": "Brooke Priory School",
"Postcode": "LE156QW"
},
{
"SchoolName": "Brooke House College",
"Postcode": "LE167AU"
},
{
"SchoolName": "Fairfield Preparatory School",
"Postcode": "LE112AE"
},
{
"SchoolName": "<NAME>",
"Postcode": "LE45LN"
},
{
"SchoolName": "Maplewell Hall School",
"Postcode": "LE128QY"
},
{
"SchoolName": "Ashmount School",
"Postcode": "LE114SQ"
},
{
"SchoolName": "The Parks School",
"Postcode": "LE156GY"
},
{
"SchoolName": "Nether Hall School",
"Postcode": "LE51RT"
},
{
"SchoolName": "Millgate School",
"Postcode": "LE26DW"
},
{
"SchoolName": "The Children's Hospital School",
"Postcode": "LE15WW"
},
{
"SchoolName": "Wyndham Park Nursery School",
"Postcode": "NG319BB"
},
{
"SchoolName": "The Lincoln St Giles Nursery School",
"Postcode": "LN24LQ"
},
{
"SchoolName": "Bassingham Primary School",
"Postcode": "LN59HQ"
},
{
"SchoolName": "Billingborough Primary School",
"Postcode": "NG340NX"
},
{
"SchoolName": "The Caythorpe Primary School",
"Postcode": "NG323DR"
},
{
"SchoolName": "Corby Glen Community Primary School",
"Postcode": "NG334NW"
},
{
"SchoolName": "Digby the Tedder Primary School",
"Postcode": "LN43JY"
},
{
"SchoolName": "Eagle Community Primary School",
"Postcode": "LN69EJ"
},
{
"SchoolName": "Helpringham School",
"Postcode": "NG340RD"
},
{
"SchoolName": "Langtoft Primary School",
"Postcode": "PE69NB"
},
{
"SchoolName": "The Metheringham Primary School",
"Postcode": "LN43BX"
},
{
"SchoolName": "Nocton Community Primary School",
"Postcode": "LN42BJ"
},
{
"SchoolName": "North Scarle Primary School",
"Postcode": "LN69EY"
},
{
"SchoolName": "Osbournby Primary School",
"Postcode": "NG340DG"
},
{
"SchoolName": "Church Lane Primary School",
"Postcode": "NG347DF"
},
{
"SchoolName": "The South Hykeham Community Primary School",
"Postcode": "LN69PG"
},
{
"SchoolName": "Thurlby Community Primary School",
"Postcode": "PE100EZ"
},
{
"SchoolName": "Walcott Primary School",
"Postcode": "LN43SX"
},
{
"SchoolName": "Belton Lane Community Primary School",
"Postcode": "NG319PP"
},
{
"SchoolName": "Cliffedale Primary School",
"Postcode": "NG318DP"
},
{
"SchoolName": "Waddington Redwood Primary School",
"Postcode": "LN59BN"
},
{
"SchoolName": "Deeping St James Community Primary School",
"Postcode": "PE68PZ"
},
{
"SchoolName": "Market Deeping Community Primary School",
"Postcode": "PE68JE"
},
{
"SchoolName": "The Bluecoat School, Stamford",
"Postcode": "PE91HE"
},
{
"SchoolName": "Skellingthorpe the Holt Primary School",
"Postcode": "LN65XJ"
},
{
"SchoolName": "Belmont Community Primary School",
"Postcode": "NG319LR"
},
{
"SchoolName": "South View Community Primary School",
"Postcode": "PE60JA"
},
{
"SchoolName": "Deeping St Nicholas Primary School",
"Postcode": "PE113DG"
},
{
"SchoolName": "Fleet Wood Lane School",
"Postcode": "PE128NN"
},
{
"SchoolName": "Gedney Church End Primary School",
"Postcode": "PE120BU"
},
{
"SchoolName": "Gedney Drove End Primary School",
"Postcode": "PE129PD"
},
{
"SchoolName": "Clough and Risegate Community Primary School",
"Postcode": "PE114JP"
},
{
"SchoolName": "Holbeach Bank Primary School",
"Postcode": "PE128BX"
},
{
"SchoolName": "Kirton Primary School",
"Postcode": "PE201HY"
},
{
"SchoolName": "Long Sutton Primary School",
"Postcode": "PE129EP"
},
{
"SchoolName": "Moulton Chapel Primary School",
"Postcode": "PE120XJ"
},
{
"SchoolName": "The John Harrox Primary School, Moulton",
"Postcode": "PE126PN"
},
{
"SchoolName": "Surfleet Primary School",
"Postcode": "PE114DB"
},
{
"SchoolName": "Sutton St James Community Primary School",
"Postcode": "PE120JG"
},
{
"SchoolName": "Lutton St Nicholas Primary School",
"Postcode": "PE129HN"
},
{
"SchoolName": "Shepeau Stow Primary School",
"Postcode": "PE120TX"
},
{
"SchoolName": "St Paul's Community Primary and Nursery School, Spalding",
"Postcode": "PE112JQ"
},
{
"SchoolName": "Hawthorn Tree School",
"Postcode": "PE210PT"
},
{
"SchoolName": "The Spalding Monkshouse Primary School",
"Postcode": "PE111LG"
},
{
"SchoolName": "Sir Francis Hill Community Primary School",
"Postcode": "LN67UE"
},
{
"SchoolName": "<NAME>bey Primary School",
"Postcode": "LN25PF"
},
{
"SchoolName": "Woodlands Infant and Nursery School",
"Postcode": "LN60PF"
},
{
"SchoolName": "Alford Primary School",
"Postcode": "LN139BJ"
},
{
"SchoolName": "Bucknall Primary School",
"Postcode": "LN105DT"
},
{
"SchoolName": "The Donington-on-Bain School",
"Postcode": "LN119TJ"
},
{
"SchoolName": "Faldingworth Community Primary School",
"Postcode": "LN83SF"
},
{
"SchoolName": "Frithville Primary School",
"Postcode": "PE227EX"
},
{
"SchoolName": "Fulstow Community Primary School",
"Postcode": "LN110XL"
},
{
"SchoolName": "Grainthorpe School",
"Postcode": "LN117JY"
},
{
"SchoolName": "Great Steeping Primary School",
"Postcode": "PE235PT"
},
{
"SchoolName": "Holton Le Clay Infant School",
"Postcode": "DN365AQ"
},
{
"SchoolName": "Ingham Primary School",
"Postcode": "LN12XT"
},
{
"SchoolName": "Legsby Primary School",
"Postcode": "LN83QW"
},
{
"SchoolName": "Louth Eastfield Infants' and Nursery School",
"Postcode": "LN118DQ"
},
{
"SchoolName": "Marshchapel Primary School",
"Postcode": "DN365SX"
},
{
"SchoolName": "Marton Primary School",
"Postcode": "DN215AG"
},
{
"SchoolName": "The Middle Rasen Primary School",
"Postcode": "LN83TS"
},
{
"SchoolName": "Morton Trentside Primary School",
"Postcode": "DN213AH"
},
{
"SchoolName": "Nettleton Community Primary School",
"Postcode": "LN76AA"
},
{
"SchoolName": "The New Leake Primary School",
"Postcode": "PE228JB"
},
{
"SchoolName": "New York Primary School",
"Postcode": "LN44XH"
},
{
"SchoolName": "Normanby Primary School",
"Postcode": "LN82HE"
},
{
"SchoolName": "Kelsey Primary School",
"Postcode": "LN76EJ"
},
{
"SchoolName": "Osgodby Primary School",
"Postcode": "LN83TA"
},
{
"SchoolName": "Pollyplatt Primary School",
"Postcode": "LN12TP"
},
{
"SchoolName": "Scotter Primary School",
"Postcode": "DN213RY"
},
{
"SchoolName": "The Skegness Seathorne Primary School",
"Postcode": "PE251HB"
},
{
"SchoolName": "Sturton by Stow Primary School",
"Postcode": "LN12BY"
},
{
"SchoolName": "Sutton-on-Sea Community Primary School",
"Postcode": "LN122HU"
},
{
"SchoolName": "Tealby School",
"Postcode": "LN83XU"
},
{
"SchoolName": "The Edward Richardson Primary School, Tetford",
"Postcode": "LN96QQ"
},
{
"SchoolName": "Tetney Primary School",
"Postcode": "DN365NG"
},
{
"SchoolName": "Toynton All Saints Primary School",
"Postcode": "PE235AQ"
},
{
"SchoolName": "Waddingham Primary School",
"Postcode": "DN214SX"
},
{
"SchoolName": "Willoughton Primary School",
"Postcode": "DN215RT"
},
{
"SchoolName": "Wragby Primary School",
"Postcode": "LN85PJ"
},
{
"SchoolName": "Hemswell Cliff Primary School",
"Postcode": "DN215XS"
},
{
"SchoolName": "The Gainsborough Charles Baines Community Primary School",
"Postcode": "DN211TE"
},
{
"SchoolName": "Tattershall Primary School",
"Postcode": "LN44QZ"
},
{
"SchoolName": "The Richmond School, Skegness",
"Postcode": "PE253SH"
},
{
"SchoolName": "Winchelsea Primary School Ruskington",
"Postcode": "NG349BY"
},
{
"SchoolName": "Holton-le-Clay Junior School",
"Postcode": "DN365DR"
},
{
"SchoolName": "Linchfield Community Primary School",
"Postcode": "PE68EY"
},
{
"SchoolName": "Sutton Bridge Westmere Community Primary School",
"Postcode": "PE129TB"
},
{
"SchoolName": "Waddington All Saints Primary School",
"Postcode": "LN59NX"
},
{
"SchoolName": "Cherry Willingham Primary School",
"Postcode": "LN34BD"
},
{
"SchoolName": "Bythams Primary School",
"Postcode": "NG334PX"
},
{
"SchoolName": "Horncastle Community Primary School",
"Postcode": "LN95EH"
},
{
"SchoolName": "Lincoln Birchwood Junior School",
"Postcode": "LN60NL"
},
{
"SchoolName": "<NAME>ser Primary School",
"Postcode": "LN60FB"
},
{
"SchoolName": "Allington with Sedgebrook Church of England Primary School",
"Postcode": "NG322DY"
},
{
"SchoolName": "Ancaster CofE Primary School",
"Postcode": "NG323QQ"
},
{
"SchoolName": "Barrowby Church of England Primary School",
"Postcode": "NG321BX"
},
{
"SchoolName": "Baston CE Primary School",
"Postcode": "PE69PB"
},
{
"SchoolName": "The Billinghay Church of England Primary School",
"Postcode": "LN44HU"
},
{
"SchoolName": "Coleby Church of England (Controlled) Primary School",
"Postcode": "LN50AJ"
},
{
"SchoolName": "Denton CofE School",
"Postcode": "NG321LG"
},
{
"SchoolName": "Digby Church of England School",
"Postcode": "LN43LZ"
},
{
"SchoolName": "Dunston St Peter's Church of England Primary School",
"Postcode": "LN42EH"
},
{
"SchoolName": "St Anne's Church of England Primary School, Grantham",
"Postcode": "NG319ED"
},
{
"SchoolName": "The Gonerby Hill Foot Church of England Primary School",
"Postcode": "NG318HQ"
},
{
"SchoolName": "The Harlaxton Church of England Primary School",
"Postcode": "NG321HT"
},
{
"SchoolName": "Heckington St Andrew's Church of England School",
"Postcode": "NG349RX"
},
{
"SchoolName": "The Leasingham St Andrew's Church of England Primary School",
"Postcode": "NG348JS"
},
{
"SchoolName": "Mrs Mary King's CofE (Controlled) Primary School",
"Postcode": "LN43RB"
},
{
"SchoolName": "Navenby Church of England Primary School",
"Postcode": "LN50EP"
},
{
"SchoolName": "The North Hykeham All Saints Church of England Primary School",
"Postcode": "LN69AB"
},
{
"SchoolName": "The Potterhanworth Church of England Primary School",
"Postcode": "LN42DT"
},
{
"SchoolName": "The Ropsley Church of England Primary School",
"Postcode": "NG334BT"
},
{
"SchoolName": "St Lawrence Church of England Primary School",
"Postcode": "LN65UZ"
},
{
"SchoolName": "Swinderby All Saints Church of England Primary School",
"Postcode": "LN69LU"
},
{
"SchoolName": "The St Michael's Church of England Primary School, Thorpe on the Hill",
"Postcode": "LN69BN"
},
{
"SchoolName": "The Uffington Church of England Primary School",
"Postcode": "PE94SU"
},
{
"SchoolName": "The Welbourn Church of England Primary School",
"Postcode": "LN50NH"
},
{
"SchoolName": "The Claypole Church of England Primary School",
"Postcode": "NG235BQ"
},
{
"SchoolName": "The Colsterworth Church of England Primary School",
"Postcode": "NG335NJ"
},
{
"SchoolName": "The Saint Thomas' Church of England Primary School, Boston",
"Postcode": "PE217RZ"
},
{
"SchoolName": "The Gedney Hill Church of England VC Primary School",
"Postcode": "PE120NL"
},
{
"SchoolName": "The Holbeach St Mark's Church of England Primary School",
"Postcode": "PE128DZ"
},
{
"SchoolName": "The Pinchbeck East Church of England Primary School",
"Postcode": "PE113RP"
},
{
"SchoolName": "St Bartholomews CofE Primary School",
"Postcode": "PE113QJ"
},
{
"SchoolName": "Quadring Cowley & Brown's Primary School",
"Postcode": "PE114SQ"
},
{
"SchoolName": "Weston Hills CofE Primary School",
"Postcode": "PE126DL"
},
{
"SchoolName": "The Donington Cowley Endowed Primary School",
"Postcode": "PE114TR"
},
{
"SchoolName": "The Lincoln St Peter-in-Eastgate Church of England (Controlled) Infants School",
"Postcode": "LN24AW"
},
{
"SchoolName": "The St Faith and St Martin Church of England Junior School, Lincoln",
"Postcode": "LN11LW"
},
{
"SchoolName": "The St Faith's Church of England Infant School, Lincoln",
"Postcode": "LN11QS"
},
{
"SchoolName": "The Lincoln St Peter at Gowts Church of England Primary School",
"Postcode": "LN57TA"
},
{
"SchoolName": "Binbrook CofE Primary School",
"Postcode": "LN86DU"
},
{
"SchoolName": "The St Peter and St Paul CofE Primary School",
"Postcode": "PE245ED"
},
{
"SchoolName": "Coningsby St Michael's Church of England Primary School",
"Postcode": "LN44SJ"
},
{
"SchoolName": "Corringham CofE VC Primary School",
"Postcode": "DN215QS"
},
{
"SchoolName": "Dunholme St Chad's Church of England Primary School",
"Postcode": "LN23NE"
},
{
"SchoolName": "Fiskerton Church of England Primary School",
"Postcode": "LN34HU"
},
{
"SchoolName": "The Grasby All Saints Church of England Primary School",
"Postcode": "DN386AU"
},
{
"SchoolName": "The Hackthorn Church of England Primary School",
"Postcode": "LN23PF"
},
{
"SchoolName": "<NAME> CofE Primary School",
"Postcode": "PE235PB"
},
{
"SchoolName": "St Michael's Church of England School, Louth",
"Postcode": "LN119AR"
},
{
"SchoolName": "The Mareham-le-Fen Church of England Primary School",
"Postcode": "PE227QB"
},
{
"SchoolName": "The Market Rasen Church of England Primary School",
"Postcode": "LN83BL"
},
{
"SchoolName": "Newton-on-Trent CofE Primary School",
"Postcode": "LN12JS"
},
{
"SchoolName": "The North Cotes Church of England Primary School",
"Postcode": "DN365UZ"
},
{
"SchoolName": "North Cockerington Church of England Primary School",
"Postcode": "LN117EP"
},
{
"SchoolName": "Reepham Church of England Primary School",
"Postcode": "LN34DP"
},
{
"SchoolName": "Saxilby Church of England Primary School",
"Postcode": "LN12QJ"
},
{
"SchoolName": "Scamblesby Church of England Primary School",
"Postcode": "LN119XG"
},
{
"SchoolName": "Scampton Church of England Primary School",
"Postcode": "LN12SD"
},
{
"SchoolName": "Holy Trinity CofE Primary School",
"Postcode": "LN44LD"
},
{
"SchoolName": "St Helena's Church of England Primary School, Willoughby",
"Postcode": "LN139NH"
},
{
"SchoolName": "The St Margaret's Church of England School, Withern",
"Postcode": "LN130NB"
},
{
"SchoolName": "The Bardney Church of England and Methodist Primary School",
"Postcode": "LN35XJ"
},
{
"SchoolName": "Caistor CofE and Methodist Primary School",
"Postcode": "LN76LY"
},
{
"SchoolName": "The St Nicholas Church of England Primary School, Boston",
"Postcode": "PE210EF"
},
{
"SchoolName": "Brant Broughton Church of England and Methodist Primary School",
"Postcode": "LN50RP"
},
{
"SchoolName": "The Holbeach William Stukeley Church of England Voluntary Aided Primary School",
"Postcode": "PE127HG"
},
{
"SchoolName": "East Wold Church of England Primary School",
"Postcode": "LN118LD"
},
{
"SchoolName": "The St Sebastian's Church of England Primary School, Great Gonerby",
"Postcode": "NG318LB"
},
{
"SchoolName": "Great Ponton Church of England School",
"Postcode": "NG335DT"
},
{
"SchoolName": "Leadenham Church of England Primary School",
"Postcode": "LN50QB"
},
{
"SchoolName": "The Marston Thorold's Charity Church of England School",
"Postcode": "NG322HQ"
},
{
"SchoolName": "St George's Church of England Aided Primary School",
"Postcode": "PE91SX"
},
{
"SchoolName": "The Saint Mary's Catholic Primary School, Grantham",
"Postcode": "NG319AX"
},
{
"SchoolName": "The Cowbit St Mary's (Endowed) CofE Primary",
"Postcode": "PE126AL"
},
{
"SchoolName": "The Spalding Parish Church of England Day School",
"Postcode": "PE112QG"
},
{
"SchoolName": "The Spalding St John the Baptist Church of England Primary School",
"Postcode": "PE111JQ"
},
{
"SchoolName": "The Tydd St Mary Church of England Primary School",
"Postcode": "PE135QY"
},
{
"SchoolName": "Boston St Mary's RC Primary School",
"Postcode": "PE219PX"
},
{
"SchoolName": "St Norbert's Catholic Primary School, Spalding",
"Postcode": "PE111NJ"
},
{
"SchoolName": "<NAME> Laughton Church of England School",
"Postcode": "DN213JX"
},
{
"SchoolName": "<NAME>aints Church of England (Aided) Primary School",
"Postcode": "PE228RD"
},
{
"SchoolName": "The Kirkby-on-Bain Church of England Primary School",
"Postcode": "LN106YW"
},
{
"SchoolName": "<NAME> Church of England (Aided) Primary School",
"Postcode": "DN215EP"
},
{
"SchoolName": "The Nettleham Church of England Voluntary Aided Junior School",
"Postcode": "LN22PE"
},
{
"SchoolName": "Partney Church of England Aided Primary School",
"Postcode": "PE234PX"
},
{
"SchoolName": "The Sibsey Free Primary School",
"Postcode": "PE220RR"
},
{
"SchoolName": "Stickney Church of England Primary School",
"Postcode": "PE228AX"
},
{
"SchoolName": "The Lincoln Bishop King Church of England Primary School",
"Postcode": "LN58EU"
},
{
"SchoolName": "Spalding High School",
"Postcode": "PE112PJ"
},
{
"SchoolName": "The Peele Community College",
"Postcode": "PE129LF"
},
{
"SchoolName": "Cherry Willingham Community School",
"Postcode": "LN34JP"
},
{
"SchoolName": "The Queen Elizabeth's High School, Gainsborough",
"Postcode": "DN212ST"
},
{
"SchoolName": "Lacey Gardens Junior School",
"Postcode": "LN118DH"
},
{
"SchoolName": "Cranwell Primary School (Foundation)",
"Postcode": "NG348HH"
},
{
"SchoolName": "Chapel St Leonards Primary School",
"Postcode": "PE245LS"
},
{
"SchoolName": "Spalding Primary School",
"Postcode": "PE111PB"
},
{
"SchoolName": "Wyberton Primary School",
"Postcode": "PE217BZ"
},
{
"SchoolName": "The Old Leake Primary and Nursery School",
"Postcode": "PE229HR"
},
{
"SchoolName": "The Butterwick Pinchbeck's Endowed CofE Primary School",
"Postcode": "PE220HU"
},
{
"SchoolName": "Grimoldby Primary School",
"Postcode": "LN118SW"
},
{
"SchoolName": "Wrangle Primary School",
"Postcode": "PE229AS"
},
{
"SchoolName": "The Lancaster School",
"Postcode": "LN60QQ"
},
{
"SchoolName": "Barkston and Syston CofE Primary School",
"Postcode": "NG322NB"
},
{
"SchoolName": "North Somercotes CofE Primary School",
"Postcode": "LN117QB"
},
{
"SchoolName": "William Hildyard Church of England Primary and Nursery School",
"Postcode": "PE68HZ"
},
{
"SchoolName": "<NAME>son College",
"Postcode": "LN119AW"
},
{
"SchoolName": "Lincoln Minster School",
"Postcode": "LN25RW"
},
{
"SchoolName": "Witham Hall School",
"Postcode": "PE100JJ"
},
{
"SchoolName": "Dudley House School",
"Postcode": "NG319AA"
},
{
"SchoolName": "Kirkstone House School",
"Postcode": "PE69PA"
},
{
"SchoolName": "Ayscoughfee Hall School",
"Postcode": "PE112TE"
},
{
"SchoolName": "St Hugh's School",
"Postcode": "LN106TQ"
},
{
"SchoolName": "Handel House Preparatory School",
"Postcode": "DN212JB"
},
{
"SchoolName": "Stamford School",
"Postcode": "PE92BQ"
},
{
"SchoolName": "Stamford High School",
"Postcode": "PE92LL"
},
{
"SchoolName": "Grantham Preparatory School",
"Postcode": "NG317UF"
},
{
"SchoolName": "The Viking School",
"Postcode": "PE252QJ"
},
{
"SchoolName": "Kisimul School",
"Postcode": "LN69LU"
},
{
"SchoolName": "Copthill Independent Day School & Nursery",
"Postcode": "PE93AD"
},
{
"SchoolName": "Greenwich House School",
"Postcode": "LN110HE"
},
{
"SchoolName": "Regents Academy",
"Postcode": "LN118UT"
},
{
"SchoolName": "The Ash Villa South Rauceby",
"Postcode": "NG348QA"
},
{
"SchoolName": "The Lincoln St Christopher's School",
"Postcode": "LN68AR"
},
{
"SchoolName": "The Willoughby School",
"Postcode": "PE109JE"
},
{
"SchoolName": "Emneth Nursery School",
"Postcode": "PE148AY"
},
{
"SchoolName": "King's Lynn Nursery School",
"Postcode": "PE305PT"
},
{
"SchoolName": "Earlham Nursery School",
"Postcode": "NR58DB"
},
{
"SchoolName": "Aldborough Primary School",
"Postcode": "NR117PH"
},
{
"SchoolName": "Attleborough Infant School",
"Postcode": "NR172AJ"
},
{
"SchoolName": "Bacton Primary School",
"Postcode": "NR120EY"
},
{
"SchoolName": "Barford Primary School",
"Postcode": "NR94AB"
},
{
"SchoolName": "The Bawburgh School",
"Postcode": "NR93LR"
},
{
"SchoolName": "Blofield Primary School",
"Postcode": "NR134RH"
},
{
"SchoolName": "Bressingham Primary School",
"Postcode": "IP222AR"
},
{
"SchoolName": "Burnham Market Primary School",
"Postcode": "PE318JA"
},
{
"SchoolName": "Burston Community Primary School",
"Postcode": "IP225TZ"
},
{
"SchoolName": "Buxton Primary School",
"Postcode": "NR105EZ"
},
{
"SchoolName": "Caister Junior School",
"Postcode": "NR305ET"
},
{
"SchoolName": "Caister Infant, Nursery School and Children's Centre",
"Postcode": "NR305ET"
},
{
"SchoolName": "Cantley Primary School",
"Postcode": "NR133SA"
},
{
"SchoolName": "Colby Primary School",
"Postcode": "NR117EA"
},
{
"SchoolName": "Corpusty Primary School",
"Postcode": "NR116QG"
},
{
"SchoolName": "Cromer Junior School",
"Postcode": "NR270EX"
},
{
"SchoolName": "Diss Infant and Nursery School with Children's Centre",
"Postcode": "IP224PU"
},
{
"SchoolName": "Fakenham Junior School",
"Postcode": "NR218BN"
},
{
"SchoolName": "Foulsham Primary School",
"Postcode": "NR205RT"
},
{
"SchoolName": "Freethorpe Community Primary and Nursery School",
"Postcode": "NR133NZ"
},
{
"SchoolName": "Frettenham Primary School",
"Postcode": "NR127LL"
},
{
"SchoolName": "Great Dunham Primary School",
"Postcode": "PE322LQ"
},
{
"SchoolName": "Great Ellingham Primary School",
"Postcode": "NR171HX"
},
{
"SchoolName": "Hemblington Primary",
"Postcode": "NR134QJ"
},
{
"SchoolName": "Hempnall Primary School",
"Postcode": "NR152AD"
},
{
"SchoolName": "Hemsby Primary School",
"Postcode": "NR294LH"
},
{
"SchoolName": "Hevingham Primary School",
"Postcode": "NR105NH"
},
{
"SchoolName": "Hingham Primary School",
"Postcode": "NR94JB"
},
{
"SchoolName": "Great Hockham Primary School and Nursery",
"Postcode": "IP241PB"
},
{
"SchoolName": "Holt Community Primary School",
"Postcode": "NR256SG"
},
{
"SchoolName": "Horning Community Primary School",
"Postcode": "NR128PX"
},
{
"SchoolName": "Kenninghall Community Primary School",
"Postcode": "NR162EJ"
},
{
"SchoolName": "Langham Village School",
"Postcode": "NR257DG"
},
{
"SchoolName": "Little Melton Primary School",
"Postcode": "NR93AD"
},
{
"SchoolName": "Little Snoring Primary School",
"Postcode": "NR210JN"
},
{
"SchoolName": "Ludham Primary School and Nursery",
"Postcode": "NR295QN"
},
{
"SchoolName": "Marsham Primary School",
"Postcode": "NR105AE"
},
{
"SchoolName": "Mundesley Infant School",
"Postcode": "NR118LE"
},
{
"SchoolName": "Northrepps Primary School",
"Postcode": "NR270LG"
},
{
"SchoolName": "North Walsham Infant School and Nursery",
"Postcode": "NR289HG"
},
{
"SchoolName": "Millfield Primary School",
"Postcode": "NR280ES"
},
{
"SchoolName": "Ormesby Village Infant School",
"Postcode": "NR293RY"
},
{
"SchoolName": "Poringland Primary School",
"Postcode": "NR147RF"
},
{
"SchoolName": "Rackheath Primary School",
"Postcode": "NR136SL"
},
{
"SchoolName": "Reedham Primary School",
"Postcode": "NR133TJ"
},
{
"SchoolName": "Rockland St Mary Primary School",
"Postcode": "NR147EU"
},
{
"SchoolName": "Rocklands Community Primary School",
"Postcode": "NR171TP"
},
{
"SchoolName": "Roydon Primary School",
"Postcode": "IP225QU"
},
{
"SchoolName": "Shelton with Hardwick Community School",
"Postcode": "NR152SD"
},
{
"SchoolName": "Sheringham Community Primary School",
"Postcode": "NR268UH"
},
{
"SchoolName": "Sprowston Junior School",
"Postcode": "NR78EW"
},
{
"SchoolName": "Sprowston Infant School",
"Postcode": "NR78EW"
},
{
"SchoolName": "Stalham Community Infant & Pre-School",
"Postcode": "NR129DG"
},
{
"SchoolName": "Surlingham Community Primary School",
"Postcode": "NR147DQ"
},
{
"SchoolName": "Swanton Abbott Community Primary School",
"Postcode": "NR105DZ"
},
{
"SchoolName": "St William's Primary School",
"Postcode": "NR70AJ"
},
{
"SchoolName": "Thurlton Primary School",
"Postcode": "NR146RN"
},
{
"SchoolName": "Tivetshall Primary School",
"Postcode": "NR152BP"
},
{
"SchoolName": "Trowse Primary School",
"Postcode": "NR148TH"
},
{
"SchoolName": "Tunstead Primary School",
"Postcode": "NR128AH"
},
{
"SchoolName": "Wells-next-the-Sea Primary and Nursery School",
"Postcode": "NR231JG"
},
{
"SchoolName": "Woodton Primary School",
"Postcode": "NR352LL"
},
{
"SchoolName": "Browick Road Primary School",
"Postcode": "NR180QW"
},
{
"SchoolName": "Spooner Row Primary School, Wymondham",
"Postcode": "NR189JR"
},
{
"SchoolName": "Highgate Infant School, King's Lynn",
"Postcode": "PE302PS"
},
{
"SchoolName": "Sedgeford Primary School",
"Postcode": "PE365NQ"
},
{
"SchoolName": "Terrington St John Primary School",
"Postcode": "PE147SG"
},
{
"SchoolName": "Tilney St Lawrence Community Primary School",
"Postcode": "PE344QZ"
},
{
"SchoolName": "Walpole Highway Primary School",
"Postcode": "PE147QQ"
},
{
"SchoolName": "Watlington Community Primary School",
"Postcode": "PE330HU"
},
{
"SchoolName": "West Walton Community Primary School",
"Postcode": "PE147HA"
},
{
"SchoolName": "St Germans Primary School",
"Postcode": "PE343DZ"
},
{
"SchoolName": "Magdalen Village School",
"Postcode": "PE343BU"
},
{
"SchoolName": "Wimbotsham and Stow Community School",
"Postcode": "PE343QH"
},
{
"SchoolName": "Howard Infant and Nursery School, King's Lynn",
"Postcode": "PE304QJ"
},
{
"SchoolName": "Spixworth Infant School",
"Postcode": "NR103PX"
},
{
"SchoolName": "Queensway Infant School and Nursery, Thetford",
"Postcode": "IP243DR"
},
{
"SchoolName": "West Winch Primary School",
"Postcode": "PE330LA"
},
{
"SchoolName": "South Wootton Infant School",
"Postcode": "PE303LJ"
},
{
"SchoolName": "Cecil Gowing Infant School",
"Postcode": "NR78NZ"
},
{
"SchoolName": "Redcastle Family School",
"Postcode": "IP243PU"
},
{
"SchoolName": "Fairstead Community Primary and Nursery School",
"Postcode": "PE304RR"
},
{
"SchoolName": "Suffield Park Infant and Nursery School, Cromer",
"Postcode": "NR270AD"
},
{
"SchoolName": "Brundall Primary School",
"Postcode": "NR135JX"
},
{
"SchoolName": "Stoke Holy Cross Primary School",
"Postcode": "NR148LY"
},
{
"SchoolName": "Bure Valley School",
"Postcode": "NR116JZ"
},
{
"SchoolName": "Woodland View Junior School",
"Postcode": "NR103PY"
},
{
"SchoolName": "Falcon Junior School",
"Postcode": "NR78NT"
},
{
"SchoolName": "White Woman Lane Junior School",
"Postcode": "NR67JA"
},
{
"SchoolName": "Ormesby Village Junior School",
"Postcode": "NR293LA"
},
{
"SchoolName": "Hethersett, Woodside Infant & Nursery School",
"Postcode": "NR93EQ"
},
{
"SchoolName": "St John's Community Primary School and Nursery",
"Postcode": "NR128NX"
},
{
"SchoolName": "Ashleigh Primary School and Nursery, Wymondham",
"Postcode": "NR180HL"
},
{
"SchoolName": "Nightingale Infant and Nursery School",
"Postcode": "NR86LA"
},
{
"SchoolName": "Reffley Community School",
"Postcode": "PE303SF"
},
{
"SchoolName": "Attleborough Junior School",
"Postcode": "NR172NA"
},
{
"SchoolName": "Avenue Junior School",
"Postcode": "NR23HP"
},
{
"SchoolName": "Magdalen Gates Primary School",
"Postcode": "NR31NG"
},
{
"SchoolName": "Colman Junior School",
"Postcode": "NR47AU"
},
{
"SchoolName": "Colman Infant School",
"Postcode": "NR47AW"
},
{
"SchoolName": "Mousehold Infant & Nursery School",
"Postcode": "NR34RS"
},
{
"SchoolName": "Nelson Infant School",
"Postcode": "NR24EH"
},
{
"SchoolName": "Angel Road Junior School",
"Postcode": "NR33HS"
},
{
"SchoolName": "West Earlham Infant and Nursery School",
"Postcode": "NR58HT"
},
{
"SchoolName": "Angel Road Infant School",
"Postcode": "NR33HR"
},
{
"SchoolName": "West Earlham Junior School",
"Postcode": "NR58HT"
},
{
"SchoolName": "St George's Primary & Nursery School, Great Yarmouth",
"Postcode": "NR303BQ"
},
{
"SchoolName": "North Denes Primary School",
"Postcode": "NR304HF"
},
{
"SchoolName": "Alderman Swindell Primary School",
"Postcode": "NR304AB"
},
{
"SchoolName": "Northgate Primary School, Great Yarmouth",
"Postcode": "NR301BP"
},
{
"SchoolName": "Hillside Primary School",
"Postcode": "NR318PA"
},
{
"SchoolName": "Kinsale Infant School",
"Postcode": "NR65SG"
},
{
"SchoolName": "Kinsale Junior School",
"Postcode": "NR65SG"
},
{
"SchoolName": "Dereham, Toftwood Community Junior School",
"Postcode": "NR191JB"
},
{
"SchoolName": "John of Gaunt Infant and Nursery School",
"Postcode": "NR116JZ"
},
{
"SchoolName": "Mulbarton Community Infant School",
"Postcode": "NR148JG"
},
{
"SchoolName": "Mulbarton Junior School",
"Postcode": "NR148JG"
},
{
"SchoolName": "Raleigh Infant School and Nursery",
"Postcode": "IP242JT"
},
{
"SchoolName": "Drake Primary School and Nursery",
"Postcode": "IP241JW"
},
{
"SchoolName": "Sparhawk Infant School & Nursery",
"Postcode": "NR78BU"
},
{
"SchoolName": "Mundesley Junior School",
"Postcode": "NR118LE"
},
{
"SchoolName": "Fakenham Infant & Nursery School",
"Postcode": "NR218HN"
},
{
"SchoolName": "Ghost Hill Infant & Nursery School",
"Postcode": "NR86PJ"
},
{
"SchoolName": "North Walsham Junior School",
"Postcode": "NR289HG"
},
{
"SchoolName": "Southtown Primary School",
"Postcode": "NR310HJ"
},
{
"SchoolName": "St Mary's Community Primary School, Beetley",
"Postcode": "NR204BW"
},
{
"SchoolName": "Downham Market, Hillcrest Primary School",
"Postcode": "PE389ND"
},
{
"SchoolName": "Astley Primary School",
"Postcode": "NR242HH"
},
{
"SchoolName": "East Ruston Area Infant School",
"Postcode": "NR129JD"
},
{
"SchoolName": "Coltishall Primary School",
"Postcode": "NR127HA"
},
{
"SchoolName": "Chapel Break Infant School",
"Postcode": "NR59LU"
},
{
"SchoolName": "East Harling Primary School and Nursery",
"Postcode": "NR162NQ"
},
{
"SchoolName": "Greyfriars Primary School, King's Lynn",
"Postcode": "PE305PY"
},
{
"SchoolName": "Terrington St Clement Community School",
"Postcode": "PE344LZ"
},
{
"SchoolName": "Acle St Edmund Voluntary Controlled Primary School",
"Postcode": "NR133RQ"
},
{
"SchoolName": "Alburgh with Denton Church of England Primary School",
"Postcode": "IP200BW"
},
{
"SchoolName": "Ashill Voluntary Controlled Primary School",
"Postcode": "IP257AP"
},
{
"SchoolName": "Aylsham, St Michael's Church of England Voluntary Aided Nursery and Infant School",
"Postcode": "NR116EX"
},
{
"SchoolName": "Diss Church Junior School",
"Postcode": "IP224NT"
},
{
"SchoolName": "Ellingham Voluntary Controlled Primary School",
"Postcode": "NR352PZ"
},
{
"SchoolName": "Erpingham Voluntary Controlled Church of England Primary School",
"Postcode": "NR117QY"
},
{
"SchoolName": "Edmund de Moundeford VC Primary School, Feltwell",
"Postcode": "IP264DB"
},
{
"SchoolName": "Garboldisham Church Primary School",
"Postcode": "IP222SE"
},
{
"SchoolName": "Happisburgh Primary and Early Years School",
"Postcode": "NR120AB"
},
{
"SchoolName": "Hapton Church of England Voluntary Aided Primary School",
"Postcode": "NR151AD"
},
{
"SchoolName": "Hainford VC Primary School",
"Postcode": "NR103BQ"
},
{
"SchoolName": "Hethersett VC Junior School",
"Postcode": "NR93DB"
},
{
"SchoolName": "Hickling CofE VC Infant School",
"Postcode": "NR120XX"
},
{
"SchoolName": "Newton Flotman Church of England Voluntary Controlled Primary School",
"Postcode": "NR151PR"
},
{
"SchoolName": "North Elmham Voluntary Controlled Primary School",
"Postcode": "NR205JS"
},
{
"SchoolName": "Old Catton CofE VC Junior School",
"Postcode": "NR67DS"
},
{
"SchoolName": "Pulham Church of England Primary School",
"Postcode": "IP214SZ"
},
{
"SchoolName": "Salhouse Voluntary Controlled Primary School",
"Postcode": "NR136RJ"
},
{
"SchoolName": "Saxlingham Nethergate CofE VC Primary School",
"Postcode": "NR151TD"
},
{
"SchoolName": "Scole Church of England Voluntary Controlled Primary School",
"Postcode": "IP214ED"
},
{
"SchoolName": "Sutton CofE VC Infant School",
"Postcode": "NR129QP"
},
{
"SchoolName": "Swaffham CofE VC Infant & Nursery School",
"Postcode": "PE377RF"
},
{
"SchoolName": "Tacolneston Church of England Primary",
"Postcode": "NR161AL"
},
{
"SchoolName": "Preston Church of England Voluntary Controlled Primary School",
"Postcode": "NR151NU"
},
{
"SchoolName": "Taverham VC CE Junior School",
"Postcode": "NR86SX"
},
{
"SchoolName": "Thurton Primary School",
"Postcode": "NR146AT"
},
{
"SchoolName": "Worstead Church of England Primary School",
"Postcode": "NR289RQ"
},
{
"SchoolName": "Scarning Voluntary Controlled Primary School",
"Postcode": "NR192PW"
},
{
"SchoolName": "Denver Voluntary Controlled Primary School",
"Postcode": "PE380DP"
},
{
"SchoolName": "Gayton Church of England Voluntary Controlled Primary School",
"Postcode": "PE321PA"
},
{
"SchoolName": "Fleggburgh Church of England Voluntary Controlled Primary School",
"Postcode": "NR293AG"
},
{
"SchoolName": "St Faith's CofE Primary School",
"Postcode": "NR103LF"
},
{
"SchoolName": "Swanton Morley VC Primary School",
"Postcode": "NR204PX"
},
{
"SchoolName": "Dickleburgh Voluntary Controlled Primary School",
"Postcode": "IP214NL"
},
{
"SchoolName": "Hindringham Church of England Voluntary Controlled Primary School",
"Postcode": "NR210PL"
},
{
"SchoolName": "Great Massingham CofE Primary School",
"Postcode": "PE322EY"
},
{
"SchoolName": "Neatishead Church of England Primary School",
"Postcode": "NR128XN"
},
{
"SchoolName": "Harpley CofE VC Primary School",
"Postcode": "PE316DY"
},
{
"SchoolName": "St Nicholas Priory CofE VA Primary School",
"Postcode": "NR301NL"
},
{
"SchoolName": "Wreningham VC Primary School",
"Postcode": "NR161AW"
},
{
"SchoolName": "Brooke Voluntary Controlled Church of England Primary School",
"Postcode": "NR151HP"
},
{
"SchoolName": "Homefield VC CofE Primary School",
"Postcode": "NR318NS"
},
{
"SchoolName": "Hopton Church of England Primary School",
"Postcode": "NR319BT"
},
{
"SchoolName": "Parker's Church of England Primary School",
"Postcode": "IP257HP"
},
{
"SchoolName": "Lyng Church of England Primary School",
"Postcode": "NR95RJ"
},
{
"SchoolName": "Catfield Voluntary Controlled CofE Primary School",
"Postcode": "NR295DA"
},
{
"SchoolName": "Blakeney Church of England Voluntary Aided Primary School",
"Postcode": "NR257NJ"
},
{
"SchoolName": "Brisley Church of England Voluntary Aided Primary School",
"Postcode": "NR205LH"
},
{
"SchoolName": "Carleton Rode Church of England Voluntary Aided Primary School",
"Postcode": "NR161RW"
},
{
"SchoolName": "Caston Church of England Voluntary Aided Primary School",
"Postcode": "NR171DD"
},
{
"SchoolName": "Cringleford CE VA Primary School",
"Postcode": "NR47JR"
},
{
"SchoolName": "Earsham C.E.VA Primary School",
"Postcode": "NR352TF"
},
{
"SchoolName": "Forncett St Peter Church of England Voluntary Aided Primary School",
"Postcode": "NR161LT"
},
{
"SchoolName": "Little Plumstead Church of England Primary School",
"Postcode": "NR135EW"
},
{
"SchoolName": "Morley Church of England Primary School",
"Postcode": "NR189TS"
},
{
"SchoolName": "Overstrand, the Belfry, Church of England Voluntary Aided Primary School",
"Postcode": "NR270NT"
},
{
"SchoolName": "St Mary's Endowed Voluntary Aided Church of England Primary School",
"Postcode": "NR118AF"
},
{
"SchoolName": "All Saints Church of England Voluntary Aided Primary School, Winfarthing",
"Postcode": "IP222DZ"
},
{
"SchoolName": "Yaxham Church of England Voluntary Aided Primary School",
"Postcode": "NR191RU"
},
{
"SchoolName": "Brancaster Church of England Voluntary Aided Primary School",
"Postcode": "PE318AB"
},
{
"SchoolName": "Ingoldisthorpe Church of England Voluntary Aided Primary School",
"Postcode": "PE316PE"
},
{
"SchoolName": "Ashwicken Church of England Voluntary Aided Primary School",
"Postcode": "PE321LY"
},
{
"SchoolName": "Sandringham and West Newton Church of England Primary School",
"Postcode": "PE316AX"
},
{
"SchoolName": "St Martha's Catholic Primary School, Kings Lynn",
"Postcode": "PE304AY"
},
{
"SchoolName": "All Saints Church of England VA Primary School",
"Postcode": "NR210LT"
},
{
"SchoolName": "St Michael's VA Junior School",
"Postcode": "NR59LA"
},
{
"SchoolName": "Alpington and Bergh Apton Church of England Voluntary Aided Primary School",
"Postcode": "NR147NH"
},
{
"SchoolName": "St Andrew's CofE VA Primary School, Lopham",
"Postcode": "IP222LR"
},
{
"SchoolName": "Fairhaven Church of England Voluntary Aided Primary School",
"Postcode": "NR136DZ"
},
{
"SchoolName": "North Walsham High School",
"Postcode": "NR289HZ"
},
{
"SchoolName": "Broadland High School",
"Postcode": "NR128QN"
},
{
"SchoolName": "Framingham Earl High School",
"Postcode": "NR147QP"
},
{
"SchoolName": "Aylsham High School",
"Postcode": "NR116AN"
},
{
"SchoolName": "Litcham School",
"Postcode": "PE322NS"
},
{
"SchoolName": "Old Buckenham High School",
"Postcode": "NR171RL"
},
{
"SchoolName": "Alderman Peel High School",
"Postcode": "NR231RB"
},
{
"SchoolName": "Archbishop Sancroft High School",
"Postcode": "IP209DD"
},
{
"SchoolName": "Hunstanton Primary School",
"Postcode": "PE365DY"
},
{
"SchoolName": "Loddon Junior School",
"Postcode": "NR146JX"
},
{
"SchoolName": "Gresham Village School",
"Postcode": "NR118RF"
},
{
"SchoolName": "Dereham Church of England Infant & Nursery School",
"Postcode": "NR191ED"
},
{
"SchoolName": "Robert Kett Primary School",
"Postcode": "NR180LS"
},
{
"SchoolName": "South Wootton Junior School",
"Postcode": "PE303JZ"
},
{
"SchoolName": "Barnham Broom Church of England Voluntary Aided Primary School",
"Postcode": "NR94BU"
},
{
"SchoolName": "Winterton Primary School",
"Postcode": "NR294AP"
},
{
"SchoolName": "Rollesby Primary School",
"Postcode": "NR295EH"
},
{
"SchoolName": "Loddon Infant and Nursery School",
"Postcode": "NR146JX"
},
{
"SchoolName": "Wicklewood Primary School",
"Postcode": "NR189QJ"
},
{
"SchoolName": "Toftwood Infant School",
"Postcode": "NR191LS"
},
{
"SchoolName": "Docking Primary School",
"Postcode": "PE318LH"
},
{
"SchoolName": "Riddlesworth Hall School",
"Postcode": "IP222TA"
},
{
"SchoolName": "Gresham's School",
"Postcode": "NR256EA"
},
{
"SchoolName": "Glebe House School",
"Postcode": "PE366HW"
},
{
"SchoolName": "Langley School",
"Postcode": "NR146BJ"
},
{
"SchoolName": "Langley Preparatory School At Taverham Hall",
"Postcode": "NR86HU"
},
{
"SchoolName": "Stretton School at West Lodge",
"Postcode": "NR22DF"
},
{
"SchoolName": "Hethersett Old Hall School",
"Postcode": "NR93DW"
},
{
"SchoolName": "The New Eccles Hall School",
"Postcode": "NR162NZ"
},
{
"SchoolName": "Sacred Heart School",
"Postcode": "PE377QW"
},
{
"SchoolName": "Beeston Hall School",
"Postcode": "NR279NQ"
},
{
"SchoolName": "St Nicholas House School",
"Postcode": "NR289AT"
},
{
"SchoolName": "Town Close House Preparatory School",
"Postcode": "NR22LR"
},
{
"SchoolName": "Notre Dame Preparatory School (Norwich) Limited",
"Postcode": "NR23TA"
},
{
"SchoolName": "Norwich High School for Girls GDST",
"Postcode": "NR22HU"
},
{
"SchoolName": "Norwich School",
"Postcode": "NR14DD"
},
{
"SchoolName": "Thetford Grammar School",
"Postcode": "IP243AF"
},
{
"SchoolName": "Sheridan House School",
"Postcode": "IP265LQ"
},
{
"SchoolName": "All Saints School",
"Postcode": "NR120DJ"
},
{
"SchoolName": "Downham Preparatory School and Montessori Nursery",
"Postcode": "PE343HT"
},
{
"SchoolName": "St Andrew's School",
"Postcode": "NR118QA"
},
{
"SchoolName": "Sidestrand Hall School",
"Postcode": "NR270NH"
},
{
"SchoolName": "<NAME> School",
"Postcode": "NR191JB"
},
{
"SchoolName": "Hall School",
"Postcode": "NR67AD"
},
{
"SchoolName": "Sheringham Woodfields School",
"Postcode": "NR268ND"
},
{
"SchoolName": "Chapel Road School",
"Postcode": "NR172DS"
},
{
"SchoolName": "The Clare School",
"Postcode": "NR47AU"
},
{
"SchoolName": "The Parkside School, Norwich",
"Postcode": "NR23JA"
},
{
"SchoolName": "Harford Manor School, Norwich",
"Postcode": "NR22LN"
},
{
"SchoolName": "John Grant School, Caister-on-Sea",
"Postcode": "NR305QW"
},
{
"SchoolName": "St Paul's Nursery School",
"Postcode": "YO244BD"
},
{
"SchoolName": "Childhaven Community Nursery School",
"Postcode": "YO111UB"
},
{
"SchoolName": "Brougham Street Nursery School",
"Postcode": "BD232ES"
},
{
"SchoolName": "Otley Street Community Nursery School",
"Postcode": "BD231ET"
},
{
"SchoolName": "Danesgate Community",
"Postcode": "YO104PB"
},
{
"SchoolName": "Carr Junior School",
"Postcode": "YO265QA"
},
{
"SchoolName": "Carr Infant School",
"Postcode": "YO265QA"
},
{
"SchoolName": "Dringhouses Primary School",
"Postcode": "YO241HW"
},
{
"SchoolName": "Fishergate Primary School",
"Postcode": "YO104AP"
},
{
"SchoolName": "Poppleton Road Primary School",
"Postcode": "YO264UP"
},
{
"SchoolName": "Clifton Green Primary School",
"Postcode": "YO306JA"
},
{
"SchoolName": "Leeming and Londonderry Community Primary School",
"Postcode": "DL79SG"
},
{
"SchoolName": "Glaisdale Primary School",
"Postcode": "YO212PZ"
},
{
"SchoolName": "Lealholm Primary School",
"Postcode": "YO212AQ"
},
{
"SchoolName": "Goathland Primary School",
"Postcode": "YO225ND"
},
{
"SchoolName": "Ralph Butterfield Primary School",
"Postcode": "YO323LS"
},
{
"SchoolName": "Oakridge Community Primary School",
"Postcode": "TS135HA"
},
{
"SchoolName": "Staithes, Seton Community Primary School",
"Postcode": "TS135AU"
},
{
"SchoolName": "Hunton and Arrathorne Community Primary School",
"Postcode": "DL81QB"
},
{
"SchoolName": "Kirkbymoorside Community Primary School",
"Postcode": "YO626AG"
},
{
"SchoolName": "Malton Community Primary School",
"Postcode": "YO177DB"
},
{
"SchoolName": "Nawton Community Primary School",
"Postcode": "YO627SF"
},
{
"SchoolName": "Newby and Scalby Primary School",
"Postcode": "YO125JA"
},
{
"SchoolName": "Applegarth Primary School",
"Postcode": "DL78QF"
},
{
"SchoolName": "North and South Cowton Community Primary School",
"Postcode": "DL70HF"
},
{
"SchoolName": "Osmotherley Primary School",
"Postcode": "DL63BW"
},
{
"SchoolName": "Reeth Community Primary School",
"Postcode": "DL116SP"
},
{
"SchoolName": "Romanby Primary School",
"Postcode": "DL78BL"
},
{
"SchoolName": "Rosedale Abbey Community Primary School",
"Postcode": "YO188SA"
},
{
"SchoolName": "Barrowcliff School",
"Postcode": "YO126NQ"
},
{
"SchoolName": "Scarborough, Braeburn Primary and Nursery School",
"Postcode": "YO113LG"
},
{
"SchoolName": "Friarage Community Primary School",
"Postcode": "YO111QB"
},
{
"SchoolName": "Gladstone Road Primary School",
"Postcode": "YO127DD"
},
{
"SchoolName": "Scarborough, Northstead Community Primary School",
"Postcode": "YO126LP"
},
{
"SchoolName": "Slingsby Community Primary School",
"Postcode": "YO624AA"
},
{
"SchoolName": "Snape Community Primary School",
"Postcode": "DL82TF"
},
{
"SchoolName": "Stillington Primary School",
"Postcode": "YO611LA"
},
{
"SchoolName": "Alanbrooke School",
"Postcode": "YO73SF"
},
{
"SchoolName": "Welburn Community Primary School",
"Postcode": "YO607DX"
},
{
"SchoolName": "Mill Hill Community Primary School",
"Postcode": "DL61AE"
},
{
"SchoolName": "Easingwold Community Primary School",
"Postcode": "YO613HJ"
},
{
"SchoolName": "Dishforth Airfield Community Primary School",
"Postcode": "YO73DL"
},
{
"SchoolName": "Leeming RAF Community Primary School",
"Postcode": "DL79NQ"
},
{
"SchoolName": "Colburn Community Primary School",
"Postcode": "DL94LS"
},
{
"SchoolName": "Skelton Primary School",
"Postcode": "YO301YB"
},
{
"SchoolName": "Scarborough, Overdale Community Primary School",
"Postcode": "YO113HW"
},
{
"SchoolName": "Linton-on-Ouse Primary School",
"Postcode": "YO302BD"
},
{
"SchoolName": "C<NAME>, Le Cateau Community Primary School",
"Postcode": "DL94ED"
},
{
"SchoolName": "Osbaldwick Primary Schools",
"Postcode": "YO103AX"
},
{
"SchoolName": "Sowerby Community Primary School",
"Postcode": "YO71RX"
},
{
"SchoolName": "Sheriff Hutton Primary School",
"Postcode": "YO606SH"
},
{
"SchoolName": "Wavell Community Junior School",
"Postcode": "DL93BJ"
},
{
"SchoolName": "<NAME>, Wavell Community Infant School",
"Postcode": "DL93BJ"
},
{
"SchoolName": "Whitby, Airy Hill Community Primary School",
"Postcode": "YO211PZ"
},
{
"SchoolName": "West Cliff Primary School",
"Postcode": "YO213EG"
},
{
"SchoolName": "Wheatcroft Community Primary School",
"Postcode": "YO113BW"
},
{
"SchoolName": "<NAME>, Carnagill Community Primary School",
"Postcode": "DL93HN"
},
{
"SchoolName": "Stakesby Community Primary School",
"Postcode": "YO211HY"
},
{
"SchoolName": "Sinnington Primary School",
"Postcode": "YO626SL"
},
{
"SchoolName": "Pickering Community Junior School",
"Postcode": "YO188AJ"
},
{
"SchoolName": "Seamer and Irton Community Primary School",
"Postcode": "YO124QX"
},
{
"SchoolName": "Cayton Community Primary School",
"Postcode": "YO113NN"
},
{
"SchoolName": "Broomfield School",
"Postcode": "DL78RG"
},
{
"SchoolName": "Stockton-on-the-Forest Primary School",
"Postcode": "YO329UP"
},
{
"SchoolName": "Hutton Rudby Primary School",
"Postcode": "TS150EQ"
},
{
"SchoolName": "Lindhead School",
"Postcode": "YO130DG"
},
{
"SchoolName": "Pickering Community Infant School",
"Postcode": "YO187AT"
},
{
"SchoolName": "Helmsley Community Primary School",
"Postcode": "YO625HB"
},
{
"SchoolName": "Thirsk Community Primary School",
"Postcode": "YO71SL"
},
{
"SchoolName": "Wigginton Primary School",
"Postcode": "YO322FZ"
},
{
"SchoolName": "Headlands Primary School",
"Postcode": "YO322YH"
},
{
"SchoolName": "Alverton Primary School",
"Postcode": "DL61RB"
},
{
"SchoolName": "Alne Primary School",
"Postcode": "YO611RT"
},
{
"SchoolName": "Amotherby Community Primary School",
"Postcode": "YO176TG"
},
{
"SchoolName": "Appleton Wiske Community Primary School",
"Postcode": "DL62AA"
},
{
"SchoolName": "Brompton Community Primary School",
"Postcode": "DL62RE"
},
{
"SchoolName": "Brompton and Sawdon Community Primary School",
"Postcode": "YO139DL"
},
{
"SchoolName": "Carlton Miniott Community Primary School",
"Postcode": "YO74NJ"
},
{
"SchoolName": "Castleton Community Primary School",
"Postcode": "YO212DA"
},
{
"SchoolName": "East Ayton Community Primary School",
"Postcode": "YO139EW"
},
{
"SchoolName": "Appleton Roebuck Primary School",
"Postcode": "YO237DN"
},
{
"SchoolName": "Bentham Community Primary School",
"Postcode": "LA27BP"
},
{
"SchoolName": "Boroughbridge Primary School",
"Postcode": "YO519EB"
},
{
"SchoolName": "Bradleys Both Community Primary School",
"Postcode": "BD209EF"
},
{
"SchoolName": "Burton Salmon Community Primary School",
"Postcode": "LS255JY"
},
{
"SchoolName": "Carlton-in-Snaith Community Primary School",
"Postcode": "DN149NR"
},
{
"SchoolName": "Cononley Community Primary School",
"Postcode": "BD208NA"
},
{
"SchoolName": "Cowling Community Primary School",
"Postcode": "BD220DF"
},
{
"SchoolName": "Drax Community Primary School",
"Postcode": "YO88NP"
},
{
"SchoolName": "Fairburn Community Primary School",
"Postcode": "WF119JY"
},
{
"SchoolName": "Kettlesing Felliscliffe Community Primary School",
"Postcode": "HG32LB"
},
{
"SchoolName": "Giggleswick Primary School",
"Postcode": "BD240BJ"
},
{
"SchoolName": "Great Ouseburn Community Primary School",
"Postcode": "YO269RG"
},
{
"SchoolName": "Harrogate, Grove Road Community Primary School",
"Postcode": "HG15EP"
},
{
"SchoolName": "Starbeck Community Primary School",
"Postcode": "HG27LL"
},
{
"SchoolName": "Summerbridge Community Primary School",
"Postcode": "HG34JN"
},
{
"SchoolName": "Hellifield Community Primary School",
"Postcode": "BD234HA"
},
{
"SchoolName": "Hensall Community Primary School",
"Postcode": "DN140QQ"
},
{
"SchoolName": "Glasshouses Community Primary School",
"Postcode": "HG35QH"
},
{
"SchoolName": "Kettlewell Primary School",
"Postcode": "BD235HX"
},
{
"SchoolName": "Darley Community Primary School",
"Postcode": "HG32PZ"
},
{
"SchoolName": "Beckwithshaw Community Primary School",
"Postcode": "HG31QW"
},
{
"SchoolName": "Rufforth Primary School",
"Postcode": "YO233QF"
},
{
"SchoolName": "Scotton Lingerfield Community Primary School",
"Postcode": "HG59JA"
},
{
"SchoolName": "Selby Community Primary School",
"Postcode": "YO84DL"
},
{
"SchoolName": "Sicklinghall Community Primary School",
"Postcode": "LS224BD"
},
{
"SchoolName": "Skipton, Ings Community Primary and Nursery School",
"Postcode": "BD231TE"
},
{
"SchoolName": "Skipton, Water Street Community Primary School",
"Postcode": "BD231PE"
},
{
"SchoolName": "South Milford Community Primary School",
"Postcode": "LS255AU"
},
{
"SchoolName": "Staveley Community Primary School",
"Postcode": "HG59LQ"
},
{
"SchoolName": "Sutton-in-Craven Community Primary School",
"Postcode": "BD207ES"
},
{
"SchoolName": "Thornton in Craven Community Primary School",
"Postcode": "BD233SX"
},
{
"SchoolName": "Whitley and Eggborough Community Primary School",
"Postcode": "DN140WE"
},
{
"SchoolName": "Willow Tree Community Primary School",
"Postcode": "HG27SG"
},
{
"SchoolName": "Skipton, Greatwood Community Primary School",
"Postcode": "BD232SJ"
},
{
"SchoolName": "Moorside Infant School",
"Postcode": "HG41SU"
},
{
"SchoolName": "Moorside Junior School",
"Postcode": "HG41SU"
},
{
"SchoolName": "Sherburn Hungate Community Primary School",
"Postcode": "LS256DD"
},
{
"SchoolName": "Thorpe Willoughby Community Primary School",
"Postcode": "YO89NX"
},
{
"SchoolName": "Harrogate, Coppice Valley Community Primary School",
"Postcode": "HG12DN"
},
{
"SchoolName": "Bishopthorpe Infant School",
"Postcode": "YO232QQ"
},
{
"SchoolName": "Ripon, Greystone Community Primary School",
"Postcode": "HG41RW"
},
{
"SchoolName": "Barwic Parade Community Primary School, Selby",
"Postcode": "YO88DJ"
},
{
"SchoolName": "Ingleton Primary School",
"Postcode": "LA63DY"
},
{
"SchoolName": "Tadcaster East Community Primary School",
"Postcode": "LS248AN"
},
{
"SchoolName": "Glusburn Community Primary School",
"Postcode": "BD208PJ"
},
{
"SchoolName": "Barlby Bridge Community Primary School",
"Postcode": "YO85AA"
},
{
"SchoolName": "Barlby Community Primary School",
"Postcode": "YO85JQ"
},
{
"SchoolName": "Hemingbrough Community Primary School",
"Postcode": "YO86QS"
},
{
"SchoolName": "Hunmanby Primary School",
"Postcode": "YO140QH"
},
{
"SchoolName": "Leavening Community Primary School",
"Postcode": "YO179SW"
},
{
"SchoolName": "Luttons Community Primary School",
"Postcode": "YO178TF"
},
{
"SchoolName": "North Duffield Community Primary School",
"Postcode": "YO85RZ"
},
{
"SchoolName": "Norton Community Primary School",
"Postcode": "YO179BG"
},
{
"SchoolName": "Riccall Community Primary School",
"Postcode": "YO196PF"
},
{
"SchoolName": "Rillington Community Primary School",
"Postcode": "YO178LA"
},
{
"SchoolName": "Filey Junior School",
"Postcode": "YO149LU"
},
{
"SchoolName": "Selby, Longman's Hill Community Primary School",
"Postcode": "YO89BG"
},
{
"SchoolName": "Sherburn in Elmet, Athelstan Community Primary School",
"Postcode": "LS256AY"
},
{
"SchoolName": "Kellington Primary School",
"Postcode": "DN140NY"
},
{
"SchoolName": "Saltergate Community Junior School",
"Postcode": "HG32TT"
},
{
"SchoolName": "Saltergate Infant School",
"Postcode": "HG32TT"
},
{
"SchoolName": "Tadcaster, Riverside Community Primary School",
"Postcode": "LS249JN"
},
{
"SchoolName": "Lakeside Primary School",
"Postcode": "YO304YL"
},
{
"SchoolName": "Woodfield Primary School",
"Postcode": "HG14HZ"
},
{
"SchoolName": "Aiskew, Leeming Bar Church of England Primary School",
"Postcode": "DL79AU"
},
{
"SchoolName": "Saint Barnabas Church of England Voluntary Controlled Primary School",
"Postcode": "YO264YZ"
},
{
"SchoolName": "St Paul's Church of England Voluntary Controlled Primary School",
"Postcode": "YO244BJ"
},
{
"SchoolName": "St Hilda's Ampleforth Church of England Voluntary Controlled Primary School",
"Postcode": "YO624DG"
},
{
"SchoolName": "Arkengarthdale Church of England Primary School",
"Postcode": "DL116EN"
},
{
"SchoolName": "Bainbridge Church of England Primary and Nursery School",
"Postcode": "DL83EL"
},
{
"SchoolName": "Baldersby St James Church of England Voluntary Controlled Primary School",
"Postcode": "YO74PT"
},
{
"SchoolName": "Bedale Church of England Primary School",
"Postcode": "DL82AT"
},
{
"SchoolName": "Bilsdale Midcable Chop Gate Church of England Voluntary Controlled Primary School",
"Postcode": "TS97JL"
},
{
"SchoolName": "West Burton Church of England Primary School",
"Postcode": "DL84JY"
},
{
"SchoolName": "Crakehall Church of England Primary School",
"Postcode": "DL81HP"
},
{
"SchoolName": "Crayke Church of England Voluntary Controlled Primary School",
"Postcode": "YO614TZ"
},
{
"SchoolName": "Danby Church of England Voluntary Controlled School",
"Postcode": "YO212NG"
},
{
"SchoolName": "Dishforth Church of England Voluntary Controlled Primary School",
"Postcode": "YO73LN"
},
{
"SchoolName": "Sleights Church of England Voluntary Controlled Primary School",
"Postcode": "YO225DN"
},
{
"SchoolName": "Foston Church of England Voluntary Controlled Primary School",
"Postcode": "YO607QB"
},
{
"SchoolName": "Gillamoor Church of England Voluntary Controlled Primary School",
"Postcode": "YO627HX"
},
{
"SchoolName": "Marwood Church of England Voluntary Controlled Infant School, Great Ayton",
"Postcode": "TS96NN"
},
{
"SchoolName": "Hackforth and Hornby Church of England Primary School",
"Postcode": "DL81PE"
},
{
"SchoolName": "Hackness Church of England Voluntary Controlled Primary School",
"Postcode": "YO130JN"
},
{
"SchoolName": "Hawsker Cum Stainsacre Church of England Voluntary Controlled Primary School",
"Postcode": "YO224LA"
},
{
"SchoolName": "Hovingham Church of England Voluntary Controlled Primary School",
"Postcode": "YO624LF"
},
{
"SchoolName": "Huby Church of England Voluntary Controlled Primary School",
"Postcode": "YO611HX"
},
{
"SchoolName": "Husthwaite Church of England Voluntary Controlled Primary School",
"Postcode": "YO614QA"
},
{
"SchoolName": "Ingleby Greenhow Church of England Voluntary Controlled Primary School",
"Postcode": "TS96LL"
},
{
"SchoolName": "Kirby Hill Church of England Primary School",
"Postcode": "YO519DS"
},
{
"SchoolName": "Knayton CofE Primary School",
"Postcode": "YO74AN"
},
{
"SchoolName": "Lythe Church of England Voluntary Controlled Primary School",
"Postcode": "YO213RT"
},
{
"SchoolName": "Kell Bank Church of England Primary School",
"Postcode": "HG44LH"
},
{
"SchoolName": "Pickhill Church of England Primary School",
"Postcode": "YO74JL"
},
{
"SchoolName": "Richmond Church of England Primary and Nursery School",
"Postcode": "DL104NF"
},
{
"SchoolName": "Sand Hutton Church of England Voluntary Controlled Primary School",
"Postcode": "YO411LB"
},
{
"SchoolName": "Sessay Church of England Voluntary Controlled Primary School",
"Postcode": "YO73NA"
},
{
"SchoolName": "Snainton Church of England Voluntary Controlled Primary School",
"Postcode": "YO139AF"
},
{
"SchoolName": "South Kilvington Church of England Voluntary Controlled Primary School",
"Postcode": "YO72LR"
},
{
"SchoolName": "Spennithorne Church of England Primary School",
"Postcode": "DL85PR"
},
{
"SchoolName": "Sutton on the Forest Church of England Voluntary Controlled Primary School",
"Postcode": "YO611DW"
},
{
"SchoolName": "Thornton Dale CofE (VC) Primary School",
"Postcode": "YO187TW"
},
{
"SchoolName": "Thornton Watlass Church of England Primary School",
"Postcode": "HG44AH"
},
{
"SchoolName": "Topcliffe Church of England Voluntary Controlled Primary School",
"Postcode": "YO73RG"
},
{
"SchoolName": "Warthill Church of England Voluntary Controlled Primary School",
"Postcode": "YO195XL"
},
{
"SchoolName": "St Nicholas Church of England Primary School, West Tanfield",
"Postcode": "HG45JN"
},
{
"SchoolName": "Ruswarp Church of England Voluntary Controlled Primary School",
"Postcode": "YO211NJ"
},
{
"SchoolName": "Wykeham Church of England Voluntary Controlled Primary School",
"Postcode": "YO139QB"
},
{
"SchoolName": "Fylingdales Church of England Voluntary Controlled Primary School",
"Postcode": "YO224TH"
},
{
"SchoolName": "Cliffe Voluntary Controlled Primary School",
"Postcode": "YO86NN"
},
{
"SchoolName": "Dunnington Church of England Voluntary Controlled Primary School",
"Postcode": "YO195QG"
},
{
"SchoolName": "Elvington Church of England Voluntary Controlled Primary School",
"Postcode": "YO414HP"
},
{
"SchoolName": "Escrick Church of England Voluntary Controlled Primary School",
"Postcode": "YO196JQ"
},
{
"SchoolName": "Hertford Vale Church of England Voluntary Controlled Primary School, Staxton",
"Postcode": "YO124SS"
},
{
"SchoolName": "St Oswald's Church of England Voluntary Controlled Primary School",
"Postcode": "YO104LX"
},
{
"SchoolName": "Lord Deramore's Primary School",
"Postcode": "YO105EE"
},
{
"SchoolName": "Naburn Church of England Primary School",
"Postcode": "YO194PP"
},
{
"SchoolName": "Settrington All Saints' Church of England Voluntary Controlled Primary School",
"Postcode": "YO178NP"
},
{
"SchoolName": "Sherburn Church of England Voluntary Controlled Primary School",
"Postcode": "YO178PG"
},
{
"SchoolName": "Weaverthorpe Church of England Voluntary Controlled Primary School",
"Postcode": "YO178ES"
},
{
"SchoolName": "West Heslerton Church of England Voluntary Controlled Primary School",
"Postcode": "YO178RD"
},
{
"SchoolName": "Gunnerside Methodist Primary School",
"Postcode": "DL116LE"
},
{
"SchoolName": "Melsonby Methodist Primary School",
"Postcode": "DL105ND"
},
{
"SchoolName": "Richmond Methodist Primary School",
"Postcode": "DL107BH"
},
{
"SchoolName": "St Mary's Church of England Voluntary Controlled Primary School",
"Postcode": "YO233PD"
},
{
"SchoolName": "Barlow Church of England Voluntary Controlled Primary School",
"Postcode": "YO88ES"
},
{
"SchoolName": "St Cuthbert's Church of England Primary School, Pateley Bridge",
"Postcode": "HG35LE"
},
{
"SchoolName": "Birstwith Church of England Primary School",
"Postcode": "HG32NJ"
},
{
"SchoolName": "Bishop Monkton Church of England Primary School",
"Postcode": "HG33QW"
},
{
"SchoolName": "Bishop Thornton Church of England Primary School",
"Postcode": "HG33JR"
},
{
"SchoolName": "Archbishop of York's CofE Voluntary Controlled Junior School, Bishopthorpe",
"Postcode": "YO232QT"
},
{
"SchoolName": "Brayton Church of England Voluntary Controlled Primary School",
"Postcode": "YO89DZ"
},
{
"SchoolName": "Burton Leonard Church of England Primary School",
"Postcode": "HG33RW"
},
{
"SchoolName": "Chapel Haddlesey Church of England Voluntary Controlled Primary School",
"Postcode": "YO88QF"
},
{
"SchoolName": "Clapham Church of England Voluntary Controlled Primary School",
"Postcode": "LA28EJ"
},
{
"SchoolName": "Cracoe and Rylstone Voluntary Controlled Church of England Primary School",
"Postcode": "BD236LQ"
},
{
"SchoolName": "Embsay Church of England Voluntary Controlled Primary School",
"Postcode": "BD236RH"
},
{
"SchoolName": "Follifoot Church of England Primary School",
"Postcode": "HG31DU"
},
{
"SchoolName": "Fountains Earth, Lofthouse Church of England Endowed Primary School",
"Postcode": "HG35RZ"
},
{
"SchoolName": "Goldsborough Church of England Primary School",
"Postcode": "HG58NJ"
},
{
"SchoolName": "Grassington Church of England Voluntary Controlled Primary School",
"Postcode": "BD235LB"
},
{
"SchoolName": "Green Hammerton Church of England Primary School",
"Postcode": "YO268BN"
},
{
"SchoolName": "Grewelthorpe Church of England Primary School",
"Postcode": "HG43BH"
},
{
"SchoolName": "Hambleton Church of England Voluntary Controlled Primary School",
"Postcode": "YO89HP"
},
{
"SchoolName": "Killinghall Church of England Primary School",
"Postcode": "HG32DW"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "HG43RT"
},
{
"SchoolName": "<NAME> Parochial Church of England Voluntary Controlled Primary School",
"Postcode": "LS249RF"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "YO268DE"
},
{
"SchoolName": "<NAME> Church of England Voluntary Controlled Primary School",
"Postcode": "WF83JY"
},
{
"SchoolName": "Long Marston Church of England Voluntary Controlled Primary School",
"Postcode": "YO267LR"
},
{
"SchoolName": "Markington Church of England Primary School",
"Postcode": "HG33NR"
},
{
"SchoolName": "<NAME> Church of England Voluntary Controlled Primary School",
"Postcode": "LS255PN"
},
{
"SchoolName": "North Stainley Church of England Primary School",
"Postcode": "HG43HT"
},
{
"SchoolName": "Ripley Endowed Church of England School",
"Postcode": "HG33AY"
},
{
"SchoolName": "Ripon Cathedral Church of England Primary School",
"Postcode": "HG41LT"
},
{
"SchoolName": "Holy Trinity CofE Junior School",
"Postcode": "HG42ES"
},
{
"SchoolName": "Roecliffe Church of England Primary School",
"Postcode": "YO519LY"
},
{
"SchoolName": "Fountains Church of England Primary School",
"Postcode": "HG43PJ"
},
{
"SchoolName": "Saxton Church of England Voluntary Controlled Primary School",
"Postcode": "LS249QF"
},
{
"SchoolName": "Selby Abbey Church of England Voluntary Controlled Primary School",
"Postcode": "YO84QB"
},
{
"SchoolName": "Settle Church of England Voluntary Controlled Primary School",
"Postcode": "BD249BW"
},
{
"SchoolName": "Sharow Church of England Primary School",
"Postcode": "HG45BJ"
},
{
"SchoolName": "Skelton Newby Hall Church of England Primary School",
"Postcode": "HG45AJ"
},
{
"SchoolName": "Christ Church Church of England Voluntary Controlled Primary School",
"Postcode": "BD232AP"
},
{
"SchoolName": "Skipton Parish Church Church of England Voluntary Controlled Primary School",
"Postcode": "BD232ES"
},
{
"SchoolName": "Spofforth Church of England Controlled Primary School",
"Postcode": "HG31BA"
},
{
"SchoolName": "Sutton in Craven Church of England Voluntary Controlled Primary School",
"Postcode": "BD207JS"
},
{
"SchoolName": "Threshfield School",
"Postcode": "BD235NP"
},
{
"SchoolName": "Tockwith Church of England Voluntary Controlled Primary School",
"Postcode": "YO267RP"
},
{
"SchoolName": "Wistow Parochial Church of England Voluntary Controlled Primary School",
"Postcode": "YO83UU"
},
{
"SchoolName": "Holy Trinity CofE Infant School",
"Postcode": "HG42AL"
},
{
"SchoolName": "Gargrave Church of England Voluntary Controlled Primary School",
"Postcode": "BD233RE"
},
{
"SchoolName": "Kildwick Church of England Voluntary Controlled Primary School",
"Postcode": "BD209BH"
},
{
"SchoolName": "Askrigg Voluntary Controlled Primary School",
"Postcode": "DL83BJ"
},
{
"SchoolName": "St Peter's Brafferton Church of England Voluntary Aided Primary School",
"Postcode": "YO612PA"
},
{
"SchoolName": "Carlton and Faceby Church of England Voluntary Aided Primary School",
"Postcode": "TS97BB"
},
{
"SchoolName": "Egton Church of England Voluntary Aided Primary School",
"Postcode": "YO211UT"
},
{
"SchoolName": "Kirkby and Great Broughton Church of England Voluntary Aided Primary School",
"Postcode": "TS97AL"
},
{
"SchoolName": "Masham Church of England VA Primary School",
"Postcode": "HG44EG"
},
{
"SchoolName": "Middleham Church of England Aided School",
"Postcode": "DL84QX"
},
{
"SchoolName": "St Martin's Church of England Voluntary Aided Primary School, Scarborough",
"Postcode": "YO113BW"
},
{
"SchoolName": "Terrington Church of England Voluntary Aided Primary School",
"Postcode": "YO606NS"
},
{
"SchoolName": "Swainby and Potto CofE Primary School",
"Postcode": "DL63DH"
},
{
"SchoolName": "Ingleby Arncliffe Church of England Voluntary Aided Primary School",
"Postcode": "DL63NA"
},
{
"SchoolName": "Burneston Church of England Voluntary Aided Primary School",
"Postcode": "DL82HX"
},
{
"SchoolName": "Austwick Church of England VA Primary School",
"Postcode": "LA28BN"
},
{
"SchoolName": "The Boyle and Petyt Primary School",
"Postcode": "BD236HE"
},
{
"SchoolName": "Burnsall Voluntary Aided Primary School",
"Postcode": "BD236BP"
},
{
"SchoolName": "Carleton Endowed CofE Primary School",
"Postcode": "BD233DE"
},
{
"SchoolName": "Cawood Church of England Voluntary Aided Primary School",
"Postcode": "YO83SQ"
},
{
"SchoolName": "Burnt Yates Church of England Voluntary Aided (Endowed)Primary School",
"Postcode": "HG33EJ"
},
{
"SchoolName": "Dacre Braithwaite Church of England Primary School",
"Postcode": "HG34AN"
},
{
"SchoolName": "Horton-in-Ribblesdale Church of England Voluntary Aided Primary School",
"Postcode": "BD240EX"
},
{
"SchoolName": "Kirkby in Malhamdale United Voluntary Aided Primary School",
"Postcode": "BD234BY"
},
{
"SchoolName": "Long Preston Endowed Voluntary Aided Primary School",
"Postcode": "BD234PN"
},
{
"SchoolName": "Marton-Cum-Grafton Church of England Voluntary Aided Primary School",
"Postcode": "YO519QB"
},
{
"SchoolName": "Rathmell Church of England Voluntary Aided Primary School",
"Postcode": "BD240LA"
},
{
"SchoolName": "Barkston Ash Catholic Primary School",
"Postcode": "LS249PS"
},
{
"SchoolName": "St Wilfrid's Catholic Primary School",
"Postcode": "HG42ES"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "YO89AX"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "LS249JG"
},
{
"SchoolName": "St Robert's Catholic Primary School, Harrogate",
"Postcode": "HG14AP"
},
{
"SchoolName": "Wheldrake with Thorganby Church of England Voluntary Aided Primary School",
"Postcode": "YO196BB"
},
{
"SchoolName": "St Aelred's Roman Catholic Voluntary Aided Primary School",
"Postcode": "YO310QQ"
},
{
"SchoolName": "St George's Roman Catholic Primary School, York",
"Postcode": "YO104BT"
},
{
"SchoolName": "St Wilfrid's, York, Roman Catholic Primary School",
"Postcode": "YO317PB"
},
{
"SchoolName": "St Benedict's Roman Catholic Primary School, Ampleforth",
"Postcode": "YO624DE"
},
{
"SchoolName": "St Hedda's Roman Catholic Primary School",
"Postcode": "YO211UX"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Malton",
"Postcode": "YO177DB"
},
{
"SchoolName": "St Joseph's Roman Catholic Primary School, Pickering",
"Postcode": "YO188AR"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School, Richmond",
"Postcode": "DL107DZ"
},
{
"SchoolName": "St Peter's Roman Catholic Primary School",
"Postcode": "YO126LX"
},
{
"SchoolName": "All Saints Roman Catholic Primary School",
"Postcode": "YO71NB"
},
{
"SchoolName": "St Hilda's Roman Catholic Primary School",
"Postcode": "YO211PZ"
},
{
"SchoolName": "St George's Roman Catholic Primary School",
"Postcode": "YO113RE"
},
{
"SchoolName": "New Earswick Primary School",
"Postcode": "YO324BY"
},
{
"SchoolName": "Risedale Sports and Community College",
"Postcode": "DL94BD"
},
{
"SchoolName": "Easingwold School",
"Postcode": "YO613EF"
},
{
"SchoolName": "Ryedale School",
"Postcode": "YO627SL"
},
{
"SchoolName": "Thirsk School & Sixth Form College",
"Postcode": "YO71RZ"
},
{
"SchoolName": "Caedmon College Whitby",
"Postcode": "YO211LA"
},
{
"SchoolName": "Eskdale School",
"Postcode": "YO224HS"
},
{
"SchoolName": "Bedale High School",
"Postcode": "DL82EQ"
},
{
"SchoolName": "<NAME> School",
"Postcode": "YO188NG"
},
{
"SchoolName": "Huntington School",
"Postcode": "YO329WT"
},
{
"SchoolName": "<NAME> School",
"Postcode": "YO113LW"
},
{
"SchoolName": "Graham School",
"Postcode": "YO126QW"
},
{
"SchoolName": "Northallerton School & Sixth Form College",
"Postcode": "DL61ED"
},
{
"SchoolName": "The Wensleydale School & Sixth Form",
"Postcode": "DL85HY"
},
{
"SchoolName": "Richmond School",
"Postcode": "DL107BQ"
},
{
"SchoolName": "Malton School",
"Postcode": "YO177NH"
},
{
"SchoolName": "Fulford School",
"Postcode": "YO104FY"
},
{
"SchoolName": "King James's School",
"Postcode": "HG58EB"
},
{
"SchoolName": "Settle College",
"Postcode": "BD240AU"
},
{
"SchoolName": "Upper Wharfedale School",
"Postcode": "BD235BS"
},
{
"SchoolName": "Tadcaster Grammar School",
"Postcode": "LS249NB"
},
{
"SchoolName": "Ripon Grammar School",
"Postcode": "HG42DG"
},
{
"SchoolName": "Sherburn High School",
"Postcode": "LS256AS"
},
{
"SchoolName": "Boroughbridge High School",
"Postcode": "YO519JX"
},
{
"SchoolName": "Nidderdale High School",
"Postcode": "HG35HL"
},
{
"SchoolName": "Selby High School Specialist School for the Arts and Science",
"Postcode": "YO84HT"
},
{
"SchoolName": "Barlby High School",
"Postcode": "YO85JP"
},
{
"SchoolName": "Joseph Rowntree School",
"Postcode": "YO324BZ"
},
{
"SchoolName": "St Augustine's Roman Catholic School, Scarborough",
"Postcode": "YO125LH"
},
{
"SchoolName": "St Francis Xavier School",
"Postcode": "DL107DA"
},
{
"SchoolName": "Ermysted's Grammar School",
"Postcode": "BD231PL"
},
{
"SchoolName": "St John Fisher Catholic High School",
"Postcode": "HG28PT"
},
{
"SchoolName": "Holy Family Catholic High School, Carlton",
"Postcode": "DN149NS"
},
{
"SchoolName": "All Saints RC School",
"Postcode": "YO241BJ"
},
{
"SchoolName": "Nun Monkton Primary Foundation School",
"Postcode": "YO268ER"
},
{
"SchoolName": "Bootham School",
"Postcode": "YO307BU"
},
{
"SchoolName": "St Peter's School (Inc St Olaves and Clifton Pre-Prep)",
"Postcode": "YO306AB"
},
{
"SchoolName": "Queen Mary's School",
"Postcode": "YO73BZ"
},
{
"SchoolName": "The Mount School (York)",
"Postcode": "YO244DD"
},
{
"SchoolName": "Scarborough College",
"Postcode": "YO113BA"
},
{
"SchoolName": "The Minster School",
"Postcode": "YO17JA"
},
{
"SchoolName": "Terrington Hall School",
"Postcode": "YO606PR"
},
{
"SchoolName": "Fyling Hall School",
"Postcode": "YO224QD"
},
{
"SchoolName": "Ampleforth College",
"Postcode": "YO624ER"
},
{
"SchoolName": "Aysgarth School",
"Postcode": "DL81TF"
},
{
"SchoolName": "Giggleswick School",
"Postcode": "BD240DE"
},
{
"SchoolName": "Harrogate Ladies' College",
"Postcode": "HG12QG"
},
{
"SchoolName": "Queen Ethelburga's College",
"Postcode": "YO269SS"
},
{
"SchoolName": "Belmont Grosvenor School",
"Postcode": "HG32JG"
},
{
"SchoolName": "Read School",
"Postcode": "YO88NL"
},
{
"SchoolName": "Queen Margaret's School",
"Postcode": "YO196EU"
},
{
"SchoolName": "St Martin's Ampleforth School",
"Postcode": "YO624HP"
},
{
"SchoolName": "Cundall Manor School",
"Postcode": "YO612RW"
},
{
"SchoolName": "Botton Village School",
"Postcode": "YO212NJ"
},
{
"SchoolName": "Brackenfield School",
"Postcode": "HG12HE"
},
{
"SchoolName": "Ashville College",
"Postcode": "HG29JP"
},
{
"SchoolName": "York Steiner School",
"Postcode": "YO104PB"
},
{
"SchoolName": "Wharfedale Montessori School",
"Postcode": "BD236AN"
},
{
"SchoolName": "Brompton Hall School",
"Postcode": "YO139DB"
},
{
"SchoolName": "Breckenbrough School",
"Postcode": "YO74EN"
},
{
"SchoolName": "Welburn Hall School",
"Postcode": "YO627HQ"
},
{
"SchoolName": "The Dales School",
"Postcode": "DL79QW"
},
{
"SchoolName": "Springhead School",
"Postcode": "YO124HA"
},
{
"SchoolName": "The Forest School",
"Postcode": "HG50DQ"
},
{
"SchoolName": "Springwater School",
"Postcode": "HG27LW"
},
{
"SchoolName": "Brooklands School",
"Postcode": "BD232DB"
},
{
"SchoolName": "Mowbray School",
"Postcode": "DL82SD"
},
{
"SchoolName": "Forest Moor School",
"Postcode": "HG32RA"
},
{
"SchoolName": "Ronald Tree Nursery School",
"Postcode": "NN169PH"
},
{
"SchoolName": "Croyland Nursery School",
"Postcode": "NN82AX"
},
{
"SchoolName": "Highfield Nursery School",
"Postcode": "NN84AB"
},
{
"SchoolName": "Gloucester Nursery School",
"Postcode": "NN48PH"
},
{
"SchoolName": "Wallace Road Nursery School",
"Postcode": "NN27EE"
},
{
"SchoolName": "Whitehills Nursery School",
"Postcode": "NN28DF"
},
{
"SchoolName": "Parklands Nursery School",
"Postcode": "NN36DW"
},
{
"SchoolName": "The New Bewerley Community Primary School",
"Postcode": "LS116TB"
},
{
"SchoolName": "Springfield Community Primary School",
"Postcode": "N166DH"
},
{
"SchoolName": "Blisworth Community Primary School",
"Postcode": "NN73DD"
},
{
"SchoolName": "Bozeat Community Primary School",
"Postcode": "NN297LP"
},
{
"SchoolName": "Brington Primary School",
"Postcode": "NN74HX"
},
{
"SchoolName": "Broughton Primary School",
"Postcode": "NN141NB"
},
{
"SchoolName": "Bugbrooke Community Primary School",
"Postcode": "NN73PA"
},
{
"SchoolName": "The Bramptons Primary School",
"Postcode": "NN68AW"
},
{
"SchoolName": "Cogenhoe Primary School",
"Postcode": "NN71NB"
},
{
"SchoolName": "Corby Old Village Primary School",
"Postcode": "NN171UU"
},
{
"SchoolName": "Studfall Junior School",
"Postcode": "NN172BT"
},
{
"SchoolName": "Studfall Infant School and Nursery",
"Postcode": "NN172BP"
},
{
"SchoolName": "Cosgrove Village Primary School",
"Postcode": "MK197JH"
},
{
"SchoolName": "Crick Primary School",
"Postcode": "NN67TU"
},
{
"SchoolName": "Deanshanger Primary School",
"Postcode": "MK196HJ"
},
{
"SchoolName": "Denton Primary School",
"Postcode": "NN71DT"
},
{
"SchoolName": "Earls Barton Junior School",
"Postcode": "NN60ND"
},
{
"SchoolName": "Farthinghoe Primary School",
"Postcode": "NN135PA"
},
{
"SchoolName": "Great Creaton Primary School",
"Postcode": "NN68NH"
},
{
"SchoolName": "Great Doddington Primary",
"Postcode": "NN297TR"
},
{
"SchoolName": "Greatworth Primary School",
"Postcode": "OX172DR"
},
{
"SchoolName": "Harlestone Primary School",
"Postcode": "NN74EN"
},
{
"SchoolName": "Helmdon Primary School",
"Postcode": "NN135QT"
},
{
"SchoolName": "Higham Ferrers Junior School",
"Postcode": "NN108ED"
},
{
"SchoolName": "Hawthorn Community Primary School",
"Postcode": "NN157HT"
},
{
"SchoolName": "Park Junior School, Kettering",
"Postcode": "NN169SE"
},
{
"SchoolName": "Little Harrowden Community Primary School",
"Postcode": "NN95BN"
},
{
"SchoolName": "Long Buckby Junior School",
"Postcode": "NN67PX"
},
{
"SchoolName": "Long Buckby Infant School",
"Postcode": "NN67RE"
},
{
"SchoolName": "Maidwell Primary School",
"Postcode": "NN69JF"
},
{
"SchoolName": "Nassington Primary School",
"Postcode": "PE86QG"
},
{
"SchoolName": "Overstone Primary School",
"Postcode": "NN60AG"
},
{
"SchoolName": "Pitsford Primary School",
"Postcode": "NN69AU"
},
{
"SchoolName": "<NAME>ins Primary School",
"Postcode": "NN127PG"
},
{
"SchoolName": "Raunds Park Infant School",
"Postcode": "NN96NB"
},
{
"SchoolName": "Roade Primary School",
"Postcode": "NN72NT"
},
{
"SchoolName": "Alfred Street Junior School, Rushden",
"Postcode": "NN109YS"
},
{
"SchoolName": "South End Infant School",
"Postcode": "NN109JU"
},
{
"SchoolName": "Tennyson Road Infant School",
"Postcode": "NN109QD"
},
{
"SchoolName": "Walgrave Primary School",
"Postcode": "NN69PH"
},
{
"SchoolName": "Warmington School",
"Postcode": "PE86TA"
},
{
"SchoolName": "Park Junior School, Wellingborough",
"Postcode": "NN84PH"
},
{
"SchoolName": "The Avenue Infant School",
"Postcode": "NN84ET"
},
{
"SchoolName": "Yardley Hastings Primary School",
"Postcode": "NN71EL"
},
{
"SchoolName": "Yelvertoft Primary School",
"Postcode": "NN66LH"
},
{
"SchoolName": "Ruskin Infant School",
"Postcode": "NN83EG"
},
{
"SchoolName": "South End Junior School",
"Postcode": "NN109JU"
},
{
"SchoolName": "Old Stratford Primary School",
"Postcode": "MK196AZ"
},
{
"SchoolName": "Higham Ferrers Nursery and Infant School",
"Postcode": "NN108BQ"
},
{
"SchoolName": "Earls Barton Primary School",
"Postcode": "NN60ND"
},
{
"SchoolName": "Whitefriars Junior School",
"Postcode": "NN109HX"
},
{
"SchoolName": "Whitefriars Infant School",
"Postcode": "NN109HX"
},
{
"SchoolName": "Earl Spencer Primary School",
"Postcode": "NN57DE"
},
{
"SchoolName": "Kingsley Primary School",
"Postcode": "NN27EE"
},
{
"SchoolName": "Vernon Terrace Primary School",
"Postcode": "NN15HE"
},
{
"SchoolName": "Lyncrest Primary School",
"Postcode": "NN55PE"
},
{
"SchoolName": "Chiltern Primary School",
"Postcode": "NN56BW"
},
{
"SchoolName": "Parklands Primary School",
"Postcode": "NN36DW"
},
{
"SchoolName": "Whitehills Primary School",
"Postcode": "NN28DF"
},
{
"SchoolName": "Hopping Hill Primary School",
"Postcode": "NN56DT"
},
{
"SchoolName": "Boothville Primary School",
"Postcode": "NN36JG"
},
{
"SchoolName": "Barry Primary School",
"Postcode": "NN15JS"
},
{
"SchoolName": "Denfield Park Primary School",
"Postcode": "NN100DA"
},
{
"SchoolName": "Kingsthorpe Grove Primary School",
"Postcode": "NN27QL"
},
{
"SchoolName": "Duston Eldean Primary School",
"Postcode": "NN56PP"
},
{
"SchoolName": "Bracken Leas Primary School",
"Postcode": "NN136LF"
},
{
"SchoolName": "Redwell Primary School",
"Postcode": "NN85LQ"
},
{
"SchoolName": "Barton Seagrave Primary School",
"Postcode": "NN156QY"
},
{
"SchoolName": "Hunsbury Park Primary School",
"Postcode": "NN49RR"
},
{
"SchoolName": "East Hunsbury Primary School",
"Postcode": "NN40QW"
},
{
"SchoolName": "Trinity Church of England Primary School",
"Postcode": "NN143EL"
},
{
"SchoolName": "Ashton Church of England Primary School",
"Postcode": "NN72JH"
},
{
"SchoolName": "Blakesley Church of England Primary School",
"Postcode": "NN128RD"
},
{
"SchoolName": "Brackley Church of England Junior School",
"Postcode": "NN136EE"
},
{
"SchoolName": "Brixworth CofE VC Primary School",
"Postcode": "NN69BG"
},
{
"SchoolName": "Cranford Church of England Primary School",
"Postcode": "NN144AE"
},
{
"SchoolName": "Croughton All Saints CofE Primary School",
"Postcode": "NN135LT"
},
{
"SchoolName": "East Haddon Church of England Primary School",
"Postcode": "NN68DB"
},
{
"SchoolName": "Flore Church of England Primary School",
"Postcode": "NN74LZ"
},
{
"SchoolName": "Gayton Church of England Primary School",
"Postcode": "NN73EU"
},
{
"SchoolName": "Geddington Church of England Primary School",
"Postcode": "NN141BG"
},
{
"SchoolName": "Glapthorn Church of England Primary School",
"Postcode": "PE85BQ"
},
{
"SchoolName": "Grendon Church of England Primary School",
"Postcode": "NN71JW"
},
{
"SchoolName": "Harpole Primary School",
"Postcode": "NN74DP"
},
{
"SchoolName": "Kislingbury Primary School",
"Postcode": "NN74AQ"
},
{
"SchoolName": "Oundle Church of England Primary School",
"Postcode": "PE85HA"
},
{
"SchoolName": "Pattishall Church of England Primary School",
"Postcode": "NN128NE"
},
{
"SchoolName": "Paulerspury Church of England Primary School",
"Postcode": "NN127NA"
},
{
"SchoolName": "Polebrook Church of England Primary School",
"Postcode": "PE85LN"
},
{
"SchoolName": "Spratton Church of England Primary School",
"Postcode": "NN68HY"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "NN127SD"
},
{
"SchoolName": "Syresham St James CofE Primary School",
"Postcode": "NN135HL"
},
{
"SchoolName": "Titchmarsh Church of England Primary School",
"Postcode": "NN143DR"
},
{
"SchoolName": "All Saints CEVA Primary School and Nursery",
"Postcode": "NN81LS"
},
{
"SchoolName": "West Haddon Endowed Church of England Primary School",
"Postcode": "NN67AN"
},
{
"SchoolName": "Whittlebury Church of England Primary School",
"Postcode": "NN128XH"
},
{
"SchoolName": "Woodford Church of England Primary School",
"Postcode": "NN144HF"
},
{
"SchoolName": "Yardley Gobion Church of England Primary School",
"Postcode": "NN127UL"
},
{
"SchoolName": "Brigstock Latham's Church of England Primary School",
"Postcode": "NN143HD"
},
{
"SchoolName": "Kings Cliffe Endowed Primary School",
"Postcode": "PE86XN"
},
{
"SchoolName": "Clipston Endowed Voluntary Controlled Primary School",
"Postcode": "LE169RU"
},
{
"SchoolName": "Rothersthorpe Church of England Primary School",
"Postcode": "NN73HS"
},
{
"SchoolName": "St Andrew's Ceva Primary School",
"Postcode": "NN35EN"
},
{
"SchoolName": "Guilsborough Church of England (Aided) Primary School",
"Postcode": "NN68PT"
},
{
"SchoolName": "Isham Church of England Primary School",
"Postcode": "NN141HD"
},
{
"SchoolName": "Little Houghton Church of England Primary",
"Postcode": "NN71AF"
},
{
"SchoolName": "Newbottle and Charlton Church of England Primary School",
"Postcode": "OX173DN"
},
{
"SchoolName": "Sywell Church of England Voluntary Aided Primary School",
"Postcode": "NN60AW"
},
{
"SchoolName": "Tiffield Church of England Voluntary Aided Primary School",
"Postcode": "NN128AB"
},
{
"SchoolName": "Wilby Church of England Primary School",
"Postcode": "NN82UG"
},
{
"SchoolName": "St Mary's Catholic Primary School, Aston-le-Walls",
"Postcode": "NN116UF"
},
{
"SchoolName": "St Patrick's Catholic Primary School, Corby",
"Postcode": "NN189NT"
},
{
"SchoolName": "The Bliss Charity School",
"Postcode": "NN73LE"
},
{
"SchoolName": "Our Lady's Catholic Primary School, Wellingborough",
"Postcode": "NN82BE"
},
{
"SchoolName": "Wollaston School",
"Postcode": "NN297PH"
},
{
"SchoolName": "The Latimer Arts College",
"Postcode": "NN156SW"
},
{
"SchoolName": "Delapre Primary School",
"Postcode": "NN48JA"
},
{
"SchoolName": "Bridgewater Primary School",
"Postcode": "NN33AF"
},
{
"SchoolName": "Millway Primary School",
"Postcode": "NN56ES"
},
{
"SchoolName": "All Saints CofE VA Primary School",
"Postcode": "NN27AJ"
},
{
"SchoolName": "Moulton Primary School",
"Postcode": "NN37SW"
},
{
"SchoolName": "Collingtree Church of England Primary School",
"Postcode": "NN40NQ"
},
{
"SchoolName": "Thrapston Primary School",
"Postcode": "NN144JU"
},
{
"SchoolName": "Stanion Church of England (Aided) Primary School",
"Postcode": "NN141BY"
},
{
"SchoolName": "Winchester House School",
"Postcode": "NN137AZ"
},
{
"SchoolName": "St Peter's School (Sunnylands Ltd)",
"Postcode": "NN156DJ"
},
{
"SchoolName": "Maidwell Hall School",
"Postcode": "NN69JG"
},
{
"SchoolName": "Oundle School",
"Postcode": "PE84GH"
},
{
"SchoolName": "Wellingborough School",
"Postcode": "NN82BX"
},
{
"SchoolName": "Spratton Hall School",
"Postcode": "NN68HP"
},
{
"SchoolName": "Cambian Potterspury Lodge School",
"Postcode": "NN127LL"
},
{
"SchoolName": "Quinton House School",
"Postcode": "NN54UX"
},
{
"SchoolName": "Akeley Wood Junior School",
"Postcode": "MK196DA"
},
{
"SchoolName": "Carrdus School",
"Postcode": "OX172BS"
},
{
"SchoolName": "Laxton Junior School",
"Postcode": "PE84BX"
},
{
"SchoolName": "St Peter's Independent School",
"Postcode": "NN38TA"
},
{
"SchoolName": "Northampton High School",
"Postcode": "NN46UU"
},
{
"SchoolName": "Thornby Hall School",
"Postcode": "NN68SW"
},
{
"SchoolName": "Bosworth Independent College",
"Postcode": "NN26AF"
},
{
"SchoolName": "Overstone Park School",
"Postcode": "NN60DT"
},
{
"SchoolName": "Pitsford School",
"Postcode": "NN69AX"
},
{
"SchoolName": "RNIB Pears Centre for Specialist Learning",
"Postcode": "CV79RA"
},
{
"SchoolName": "Wren Spinney Community Special School",
"Postcode": "NN157LB"
},
{
"SchoolName": "Fairfields School",
"Postcode": "NN26JN"
},
{
"SchoolName": "The Gateway School",
"Postcode": "NN128AA"
},
{
"SchoolName": "Kings Meadow School",
"Postcode": "NN37AR"
},
{
"SchoolName": "Acomb First School",
"Postcode": "NE464PL"
},
{
"SchoolName": "Allendale Primary School",
"Postcode": "NE479PT"
},
{
"SchoolName": "Swansfield Park Primary School",
"Postcode": "NE661UL"
},
{
"SchoolName": "Amble Links First School",
"Postcode": "NE650SA"
},
{
"SchoolName": "Amble First School",
"Postcode": "NE650EF"
},
{
"SchoolName": "Bedlington West End First School",
"Postcode": "NE226EB"
},
{
"SchoolName": "Bedlington Station Primary School",
"Postcode": "NE227JQ"
},
{
"SchoolName": "Stakeford Primary School",
"Postcode": "NE625TZ"
},
{
"SchoolName": "Cambois Primary School",
"Postcode": "NE241RD"
},
{
"SchoolName": "Choppington Primary School",
"Postcode": "NE625RR"
},
{
"SchoolName": "Stead Lane Primary School",
"Postcode": "NE225JS"
},
{
"SchoolName": "Bellingham First School",
"Postcode": "NE482EL"
},
{
"SchoolName": "Belsay First School",
"Postcode": "NE200ET"
},
{
"SchoolName": "Spittal Community School",
"Postcode": "TD151RD"
},
{
"SchoolName": "Tweedmouth West First School",
"Postcode": "TD152HS"
},
{
"SchoolName": "Tweedmouth Prior Park First School",
"Postcode": "TD152DB"
},
{
"SchoolName": "Branton Community Primary School",
"Postcode": "NE664JF"
},
{
"SchoolName": "Broomley First School",
"Postcode": "NE437NN"
},
{
"SchoolName": "West Woodburn First School",
"Postcode": "NE482RX"
},
{
"SchoolName": "Cramlington Eastlea Primary School",
"Postcode": "NE233ST"
},
{
"SchoolName": "Beaconhill Community Primary School",
"Postcode": "NE238EH"
},
{
"SchoolName": "Cramlington Shanklea Primary School",
"Postcode": "NE231RQ"
},
{
"SchoolName": "Holywell Village First School",
"Postcode": "NE250LN"
},
{
"SchoolName": "Broomhill First School",
"Postcode": "NE659UT"
},
{
"SchoolName": "Red Row First School",
"Postcode": "NE615AS"
},
{
"SchoolName": "Ellington Primary School",
"Postcode": "NE615HL"
},
{
"SchoolName": "Linton Primary School",
"Postcode": "NE615SG"
},
{
"SchoolName": "Stamfordham First School",
"Postcode": "NE180NA"
},
{
"SchoolName": "Hexham East First School",
"Postcode": "NE461JD"
},
{
"SchoolName": "Morpeth First School",
"Postcode": "NE611TL"
},
{
"SchoolName": "Netherton Northside First School",
"Postcode": "NE657HD"
},
{
"SchoolName": "Seahouses Primary School",
"Postcode": "NE687UE"
},
{
"SchoolName": "Otterburn First School",
"Postcode": "NE191JF"
},
{
"SchoolName": "Pegswood Primary School",
"Postcode": "NE616XG"
},
{
"SchoolName": "Ponteland First School",
"Postcode": "NE209QB"
},
{
"SchoolName": "Prudhoe Castle First School",
"Postcode": "NE426PH"
},
{
"SchoolName": "Mickley First School",
"Postcode": "NE437BG"
},
{
"SchoolName": "Rothbury First School",
"Postcode": "NE657PG"
},
{
"SchoolName": "Beaufront First School",
"Postcode": "NE464LY"
},
{
"SchoolName": "Seaton Delaval First School",
"Postcode": "NE250EP"
},
{
"SchoolName": "New Hartley First School",
"Postcode": "NE250RD"
},
{
"SchoolName": "Seghill First School",
"Postcode": "NE237SB"
},
{
"SchoolName": "Greenhaugh First School",
"Postcode": "NE481LX"
},
{
"SchoolName": "Slaley First School",
"Postcode": "NE470AA"
},
{
"SchoolName": "Stannington First School",
"Postcode": "NE616HJ"
},
{
"SchoolName": "Thropton Village First School",
"Postcode": "NE657JD"
},
{
"SchoolName": "Cambo First School",
"Postcode": "NE614BE"
},
{
"SchoolName": "Kielder Community First School",
"Postcode": "NE481HQ"
},
{
"SchoolName": "Seaton Sluice First School",
"Postcode": "NE264BX"
},
{
"SchoolName": "Whittonstall First School",
"Postcode": "DH89JN"
},
{
"SchoolName": "Wooler First School",
"Postcode": "NE716QF"
},
{
"SchoolName": "Wylam First School",
"Postcode": "NE418EH"
},
{
"SchoolName": "Shilbottle Primary School",
"Postcode": "NE662XQ"
},
{
"SchoolName": "Bothal Primary School",
"Postcode": "NE638HZ"
},
{
"SchoolName": "Swarland Primary School",
"Postcode": "NE659JP"
},
{
"SchoolName": "The Sele First School",
"Postcode": "NE463QZ"
},
{
"SchoolName": "Mowbray Primary School",
"Postcode": "NE625HQ"
},
{
"SchoolName": "Belford First School",
"Postcode": "NE707QD"
},
{
"SchoolName": "Morpeth Stobhillgate First School",
"Postcode": "NE612HA"
},
{
"SchoolName": "Ringway Primary School",
"Postcode": "NE625YP"
},
{
"SchoolName": "Scremerston First School",
"Postcode": "TD152RB"
},
{
"SchoolName": "Horton Grange Primary School",
"Postcode": "NE244RE"
},
{
"SchoolName": "New Delaval Primary School",
"Postcode": "NE244DA"
},
{
"SchoolName": "Newsham Primary School",
"Postcode": "NE244NX"
},
{
"SchoolName": "Hipsburn Primary School",
"Postcode": "NE663PX"
},
{
"SchoolName": "Darras Hall First School",
"Postcode": "NE209PP"
},
{
"SchoolName": "Burnside Primary School",
"Postcode": "NE231XZ"
},
{
"SchoolName": "Hareside Primary School",
"Postcode": "NE236BL"
},
{
"SchoolName": "Cramlington Northburn Primary School",
"Postcode": "NE233QS"
},
{
"SchoolName": "Acklington Church of England Controlled First School",
"Postcode": "NE659BW"
},
{
"SchoolName": "Berwick St Mary's Church of England First School",
"Postcode": "TD151SP"
},
{
"SchoolName": "Chollerton Church of England Aided First School",
"Postcode": "NE484AA"
},
{
"SchoolName": "Felton Church of England Primary School",
"Postcode": "NE659PY"
},
{
"SchoolName": "Haydon Bridge Shaftoe Trust Primary School",
"Postcode": "NE476BN"
},
{
"SchoolName": "Heddon-on-the-Wall, St Andrew's Church of England First School",
"Postcode": "NE150BJ"
},
{
"SchoolName": "Henshaw Church of England Voluntary Aided First School",
"Postcode": "NE477EP"
},
{
"SchoolName": "Longhoughton Church of England Primary School",
"Postcode": "NE663AJ"
},
{
"SchoolName": "Ovingham Church of England First School",
"Postcode": "NE426DE"
},
{
"SchoolName": "Whittingham Church of England Primary School",
"Postcode": "NE664UP"
},
{
"SchoolName": "St Michael's Church of England Primary School",
"Postcode": "NE661DJ"
},
{
"SchoolName": "Bedlington Whitley Memorial Church of England First School",
"Postcode": "NE225DE"
},
{
"SchoolName": "Holy Trinity Church of England First School",
"Postcode": "TD151NB"
},
{
"SchoolName": "Longhorsley St Helen's Church of England Aided First School",
"Postcode": "NE658UT"
},
{
"SchoolName": "Greenhead Church of England Primary School",
"Postcode": "CA87HB"
},
{
"SchoolName": "Broomhaugh Church of England First School",
"Postcode": "NE446DR"
},
{
"SchoolName": "Corbridge Church of England Aided First School",
"Postcode": "NE455JQ"
},
{
"SchoolName": "Ellingham Church of England Aided Primary School",
"Postcode": "NE675ET"
},
{
"SchoolName": "Embleton Vincent Edwards Church of England Primary School",
"Postcode": "NE663XR"
},
{
"SchoolName": "Hugh Joicey Church of England First School, Ford",
"Postcode": "TD152QA"
},
{
"SchoolName": "Harbottle Church of England Voluntary Aided First School",
"Postcode": "NE657DG"
},
{
"SchoolName": "Whitley Chapel Church of England First School",
"Postcode": "NE470HB"
},
{
"SchoolName": "Holy Island Church of England First School",
"Postcode": "TD152SQ"
},
{
"SchoolName": "Humshaugh Church of England First School",
"Postcode": "NE464AA"
},
{
"SchoolName": "Mor<NAME> Church of England Aided First School",
"Postcode": "NE613RD"
},
{
"SchoolName": "Newbrough Church of England Primary School",
"Postcode": "NE475AQ"
},
{
"SchoolName": "Tritlington Church of England First School",
"Postcode": "NE613DU"
},
{
"SchoolName": "Wark Church of England First School",
"Postcode": "NE483LS"
},
{
"SchoolName": "Warkworth Church of England Primary School",
"Postcode": "NE650TJ"
},
{
"SchoolName": "Whalton Church of England Aided First School",
"Postcode": "NE613XH"
},
{
"SchoolName": "Whitfield Church of England Voluntary Aided Primary School",
"Postcode": "NE478JH"
},
{
"SchoolName": "St Wilfrid's Roman Catholic Voluntary Aided Primary School",
"Postcode": "NE242LE"
},
{
"SchoolName": "St Paul's RC Voluntary Aided Primary School",
"Postcode": "NE662NU"
},
{
"SchoolName": "St Aidan's Roman Catholic Voluntary Aided First School",
"Postcode": "NE630LF"
},
{
"SchoolName": "St Bede's Roman Catholic Voluntary Aided Primary School",
"Postcode": "NE226EQ"
},
{
"SchoolName": "St Cuthbert's Roman Catholic Voluntary Aided First School, Berwick",
"Postcode": "TD152EX"
},
{
"SchoolName": "St Mary's Roman Catholic Voluntary Aided First School",
"Postcode": "NE462EE"
},
{
"SchoolName": "St Robert's Roman Catholic Voluntary Aided First School",
"Postcode": "NE611QF"
},
{
"SchoolName": "Corbridge Middle School",
"Postcode": "NE455HX"
},
{
"SchoolName": "Seaton Sluice Middle School",
"Postcode": "NE264JS"
},
{
"SchoolName": "Whytrig Community Middle School",
"Postcode": "NE250BP"
},
{
"SchoolName": "Highfield Middle School",
"Postcode": "NE426EY"
},
{
"SchoolName": "Ovingham Middle School",
"Postcode": "NE426DE"
},
{
"SchoolName": "Tweedmouth Community Middle School",
"Postcode": "TD152DJ"
},
{
"SchoolName": "Bellingham Middle School and Sports College",
"Postcode": "NE482EN"
},
{
"SchoolName": "Prudhoe Community High School",
"Postcode": "NE425LJ"
},
{
"SchoolName": "Glendale Middle School",
"Postcode": "NE716QF"
},
{
"SchoolName": "Berwick Middle School",
"Postcode": "TD151LA"
},
{
"SchoolName": "Ashington High School",
"Postcode": "NE638DH"
},
{
"SchoolName": "Ponteland Community High School",
"Postcode": "NE209EY"
},
{
"SchoolName": "Bedlingtonshire Community High School",
"Postcode": "NE227DS"
},
{
"SchoolName": "The Duchess's Community High School",
"Postcode": "NE662DH"
},
{
"SchoolName": "James Calvert Spence College - Acklington Road",
"Postcode": "NE650NG"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Middle School",
"Postcode": "NE462DD"
},
{
"SchoolName": "Rich<NAME>ates Church of England School",
"Postcode": "NE209QB"
},
{
"SchoolName": "Dr Thomlinson Church of England Middle School",
"Postcode": "NE657RJ"
},
{
"SchoolName": "Astley Community High School",
"Postcode": "NE250BP"
},
{
"SchoolName": "Longridge Towers School",
"Postcode": "TD152XQ"
},
{
"SchoolName": "Mowden Hall School",
"Postcode": "NE437TP"
},
{
"SchoolName": "Cleaswell Hill School",
"Postcode": "NE625DJ"
},
{
"SchoolName": "Cramlington Hillcrest School",
"Postcode": "NE231DY"
},
{
"SchoolName": "Barndale House School",
"Postcode": "NE661DQ"
},
{
"SchoolName": "The Grove Special School",
"Postcode": "TD152EN"
},
{
"SchoolName": "Hexham Priory School",
"Postcode": "NE461UY"
},
{
"SchoolName": "The Dales School",
"Postcode": "NE244RE"
},
{
"SchoolName": "Collingwood School & Media Arts College",
"Postcode": "NE612HA"
},
{
"SchoolName": "Nunnykirk Centre for Dyslexia",
"Postcode": "NE614PB"
},
{
"SchoolName": "Annesley Primary and Nursery School",
"Postcode": "NG179BW"
},
{
"SchoolName": "Bentinck Primary and Nursery School",
"Postcode": "NG74AA"
},
{
"SchoolName": "Cantrell Primary and Nursery School",
"Postcode": "NG69HJ"
},
{
"SchoolName": "Carrington Primary and Nursery School",
"Postcode": "NG51AB"
},
{
"SchoolName": "Dunkirk Primary and Nursery School",
"Postcode": "NG72LE"
},
{
"SchoolName": "Melbury Primary School",
"Postcode": "NG84AU"
},
{
"SchoolName": "Middleton Primary and Nursery School",
"Postcode": "NG81FG"
},
{
"SchoolName": "<NAME> Primary and Nursery School",
"Postcode": "NG83PL"
},
{
"SchoolName": "Nettleworth Infant and Nursery School",
"Postcode": "NG198LD"
},
{
"SchoolName": "Leas Park Junior School",
"Postcode": "NG198LD"
},
{
"SchoolName": "Heathfield Primary and Nursery School",
"Postcode": "NG51JU"
},
{
"SchoolName": "William Booth Primary and Nursery School",
"Postcode": "NG24QF"
},
{
"SchoolName": "<NAME> Infant and Nursery School",
"Postcode": "NG190LL"
},
{
"SchoolName": "Newlands Junior School",
"Postcode": "NG190LN"
},
{
"SchoolName": "<NAME> Primary and Early Years School",
"Postcode": "NG35HS"
},
{
"SchoolName": "Croft Primary School",
"Postcode": "NG175FJ"
},
{
"SchoolName": "Southwold Primary School and Early Years' Centre",
"Postcode": "NG81QD"
},
{
"SchoolName": "Priestsic Primary and Nursery School",
"Postcode": "NG174BB"
},
{
"SchoolName": "Woodland View Primary School",
"Postcode": "NG172LH"
},
{
"SchoolName": "Rise Park Primary and Nursery School",
"Postcode": "NG55EL"
},
{
"SchoolName": "Crabtree Farm Primary School",
"Postcode": "NG68AX"
},
{
"SchoolName": "Welbeck Primary School",
"Postcode": "NG21NT"
},
{
"SchoolName": "Mellers Primary School",
"Postcode": "NG73HJ"
},
{
"SchoolName": "Haydn Primary School",
"Postcode": "NG52JU"
},
{
"SchoolName": "Healdswood Infants' and Nursery School",
"Postcode": "NG173FQ"
},
{
"SchoolName": "Dalestorth Primary and Nursery School",
"Postcode": "NG174JA"
},
{
"SchoolName": "Hempshill Hall Primary School",
"Postcode": "NG67AT"
},
{
"SchoolName": "Hetts Lane Infant and Nursery School",
"Postcode": "NG200AS"
},
{
"SchoolName": "Eastlands Junior School",
"Postcode": "NG209PA"
},
{
"SchoolName": "Netherfield Infant School",
"Postcode": "NG209PA"
},
{
"SchoolName": "Sherwood Junior School",
"Postcode": "NG200JT"
},
{
"SchoolName": "Stanstead Nursery and Primary School",
"Postcode": "NG55BL"
},
{
"SchoolName": "Arno Vale Junior School",
"Postcode": "NG54JF"
},
{
"SchoolName": "Arnold Woodthorpe Infant School",
"Postcode": "NG54JG"
},
{
"SchoolName": "<NAME>ton Primary and Nursery School",
"Postcode": "NG58FQ"
},
{
"SchoolName": "Ernehale Infant School",
"Postcode": "NG56TA"
},
{
"SchoolName": "Coppice Farm Primary School",
"Postcode": "NG57LS"
},
{
"SchoolName": "Pinewood Infant and Nursery School",
"Postcode": "NG58BU"
},
{
"SchoolName": "Robert Mellors Primary and Nursery School",
"Postcode": "NG57EX"
},
{
"SchoolName": "Carlton Central Junior School",
"Postcode": "NG41QT"
},
{
"SchoolName": "Central Infant and Nursery School",
"Postcode": "NG41QS"
},
{
"SchoolName": "Mapperley Plains Primary and Nursery School",
"Postcode": "NG35LD"
},
{
"SchoolName": "Parkdale Primary School",
"Postcode": "NG41BX"
},
{
"SchoolName": "Standhill Infants' School",
"Postcode": "NG41JL"
},
{
"SchoolName": "Priory Junior School",
"Postcode": "NG43LE"
},
{
"SchoolName": "Phoenix Infant and Nursery School",
"Postcode": "NG44EL"
},
{
"SchoolName": "Willow Farm Primary School",
"Postcode": "NG44BN"
},
{
"SchoolName": "Westdale Junior School",
"Postcode": "NG36ET"
},
{
"SchoolName": "Westdale Infant School",
"Postcode": "NG36ET"
},
{
"SchoolName": "Bramcote Hills Primary School",
"Postcode": "NG93GE"
},
{
"SchoolName": "John Clifford Primary School",
"Postcode": "NG92AT"
},
{
"SchoolName": "Beeston Rylands Junior School",
"Postcode": "NG91LJ"
},
{
"SchoolName": "Trent Vale Infant School",
"Postcode": "NG91LP"
},
{
"SchoolName": "College House Primary School",
"Postcode": "NG94BB"
},
{
"SchoolName": "Meadow Lane Infant School",
"Postcode": "NG95AA"
},
{
"SchoolName": "Eskdale Junior School",
"Postcode": "NG95NA"
},
{
"SchoolName": "Albany Junior School",
"Postcode": "NG98HR"
},
{
"SchoolName": "Albany Infant and Nursery School",
"Postcode": "NG98PD"
},
{
"SchoolName": "Alderman Pounder Infant and Nursery School",
"Postcode": "NG95FN"
},
{
"SchoolName": "William Lilley Infant and Nursery School",
"Postcode": "NG97FS"
},
{
"SchoolName": "Toton Bispham Drive Junior School",
"Postcode": "NG96GJ"
},
{
"SchoolName": "Toton Banks Road Infant and Nursery School",
"Postcode": "NG96HE"
},
{
"SchoolName": "Hallcroft Infant and Nursery School",
"Postcode": "DN227QH"
},
{
"SchoolName": "Thrumpton Primary School",
"Postcode": "DN227AF"
},
{
"SchoolName": "Bracken Lane Primary and Nursery School",
"Postcode": "DN227EU"
},
{
"SchoolName": "Glade Hill Primary & Nursery School",
"Postcode": "NG55TA"
},
{
"SchoolName": "Forest Glade Primary School",
"Postcode": "NG174FL"
},
{
"SchoolName": "Hillocks Primary and Nursery School",
"Postcode": "NG174ND"
},
{
"SchoolName": "Brinsley Primary and Nursery School",
"Postcode": "NG165AZ"
},
{
"SchoolName": "Lynncroft Primary and Nursery School",
"Postcode": "NG163FZ"
},
{
"SchoolName": "Gilthill Primary School",
"Postcode": "NG162GZ"
},
{
"SchoolName": "Larkfields Junior School",
"Postcode": "NG161EP"
},
{
"SchoolName": "Larkfields Infant School",
"Postcode": "NG161EP"
},
{
"SchoolName": "Bagthorpe Primary School",
"Postcode": "NG165HB"
},
{
"SchoolName": "Holly Hill Primary and Nursery School",
"Postcode": "NG166AW"
},
{
"SchoolName": "Jacksdale Primary and Nursery School",
"Postcode": "NG165JU"
},
{
"SchoolName": "Westwood Infant and Nursery School",
"Postcode": "NG165JA"
},
{
"SchoolName": "Beardall Fields Primary and Nursery School",
"Postcode": "NG158HY"
},
{
"SchoolName": "Broomhill Junior School",
"Postcode": "NG156AJ"
},
{
"SchoolName": "Butler's Hill Infant and Nursery School",
"Postcode": "NG156AJ"
},
{
"SchoolName": "Edgewood Primary and Nursery School",
"Postcode": "NG156HX"
},
{
"SchoolName": "Leen Mills Primary School",
"Postcode": "NG158BZ"
},
{
"SchoolName": "Lovers Lane Primary and Nursery School",
"Postcode": "NG241LT"
},
{
"SchoolName": "Lady Bay Primary School",
"Postcode": "NG25BD"
},
{
"SchoolName": "Jesse Gray Primary School",
"Postcode": "NG27DD"
},
{
"SchoolName": "West Bridgford Infant School",
"Postcode": "NG26BP"
},
{
"SchoolName": "Abbey Road Primary School",
"Postcode": "NG25ND"
},
{
"SchoolName": "West Bridgford Junior School",
"Postcode": "NG26DB"
},
{
"SchoolName": "Redlands Primary and Nursery School",
"Postcode": "S801TH"
},
{
"SchoolName": "Haggonfields Primary and Nursery School",
"Postcode": "S803HP"
},
{
"SchoolName": "<NAME> Primary and Nursery School",
"Postcode": "S810AN"
},
{
"SchoolName": "Manners Sutton Primary School",
"Postcode": "NG235QZ"
},
{
"SchoolName": "Chuter Ede Primary School",
"Postcode": "NG243PQ"
},
{
"SchoolName": "John Hunt Primary School",
"Postcode": "NG243BN"
},
{
"SchoolName": "Beckingham Primary School",
"Postcode": "DN104QN"
},
{
"SchoolName": "Hawthorne Primary and Nursery School",
"Postcode": "NG68TL"
},
{
"SchoolName": "Carnarvon Primary School",
"Postcode": "NG138EH"
},
{
"SchoolName": "Manor Park Infant and Nursery School",
"Postcode": "NG146JZ"
},
{
"SchoolName": "Ramsden Primary School",
"Postcode": "S819DY"
},
{
"SchoolName": "Clarborough Primary School",
"Postcode": "DN229JZ"
},
{
"SchoolName": "<NAME> Primary and Nursery School",
"Postcode": "NG219DF"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NG237PT"
},
{
"SchoolName": "Lantern Lane Primary and Nursery School",
"Postcode": "LE126QN"
},
{
"SchoolName": "Brookside Primary School",
"Postcode": "LE126LG"
},
{
"SchoolName": "East Markham Primary School",
"Postcode": "NG220RG"
},
{
"SchoolName": "King Edwin Primary and Nursery School",
"Postcode": "NG219NS"
},
{
"SchoolName": "Elkesley Primary and Nursery School",
"Postcode": "DN228AQ"
},
{
"SchoolName": "Everton Primary School",
"Postcode": "DN105BJ"
},
{
"SchoolName": "Flintham Primary School",
"Postcode": "NG235LF"
},
{
"SchoolName": "Gotham Primary School",
"Postcode": "NG110JS"
},
{
"SchoolName": "Queen Eleanor Primary School",
"Postcode": "NG237EQ"
},
{
"SchoolName": "Willow Brook Primary School",
"Postcode": "NG125BB"
},
{
"SchoolName": "Kinoulton Primary School",
"Postcode": "NG123EL"
},
{
"SchoolName": "Kirklington Primary School",
"Postcode": "NG228NG"
},
{
"SchoolName": "Lambley Primary School",
"Postcode": "NG44QF"
},
{
"SchoolName": "Mattersey Primary School",
"Postcode": "DN105ED"
},
{
"SchoolName": "Misson Primary School",
"Postcode": "DN106EB"
},
{
"SchoolName": "Misterton Primary and Nursery School",
"Postcode": "DN104EH"
},
{
"SchoolName": "Newstead Primary and Nursery School",
"Postcode": "NG150BB"
},
{
"SchoolName": "Abbey Gates Primary School",
"Postcode": "NG159BN"
},
{
"SchoolName": "Normanton-on-Soar Primary School",
"Postcode": "LE125HB"
},
{
"SchoolName": "North Clifton Primary School",
"Postcode": "NG237AP"
},
{
"SchoolName": "Muskham Primary School",
"Postcode": "NG236HD"
},
{
"SchoolName": "Maun Infant and Nursery School",
"Postcode": "NG229RJ"
},
{
"SchoolName": "Orston Primary School",
"Postcode": "NG139NS"
},
{
"SchoolName": "Radcliffe-on-Trent Infant and Nursery School",
"Postcode": "NG122FU"
},
{
"SchoolName": "Radcliffe-on-Trent Junior School",
"Postcode": "NG122FS"
},
{
"SchoolName": "Rampton Primary School",
"Postcode": "DN220JB"
},
{
"SchoolName": "Lake View Primary and Nursery School",
"Postcode": "NG210DU"
},
{
"SchoolName": "James Peacock Infant and Nursery School",
"Postcode": "NG116DS"
},
{
"SchoolName": "Lowe's Wong Infant School",
"Postcode": "NG250AA"
},
{
"SchoolName": "Sutton Bonington Primary School",
"Postcode": "LE125NH"
},
{
"SchoolName": "Sutton-on-Trent Primary School",
"Postcode": "NG236PD"
},
{
"SchoolName": "Walkeringham Primary School",
"Postcode": "DN104LL"
},
{
"SchoolName": "Willoughby Primary School",
"Postcode": "LE126SS"
},
{
"SchoolName": "Winthorpe Primary School",
"Postcode": "NG242NN"
},
{
"SchoolName": "Claremont Primary and Nursery School",
"Postcode": "NG51BH"
},
{
"SchoolName": "Snape Wood Primary and Nursery School",
"Postcode": "NG67DS"
},
{
"SchoolName": "Kimberley Primary School",
"Postcode": "NG162PG"
},
{
"SchoolName": "Round Hill Primary School",
"Postcode": "NG91AE"
},
{
"SchoolName": "Hollywell Primary School",
"Postcode": "NG162JL"
},
{
"SchoolName": "Stanhope Primary and Nursery School",
"Postcode": "NG44JD"
},
{
"SchoolName": "Kingsway Primary School",
"Postcode": "NG177FH"
},
{
"SchoolName": "Morven Park Primary and Nursery School",
"Postcode": "NG177BT"
},
{
"SchoolName": "Arnold Mill Primary and Nursery School",
"Postcode": "NG57AX"
},
{
"SchoolName": "Springfield Primary School",
"Postcode": "NG68BL"
},
{
"SchoolName": "Orchard Primary School and Nursery",
"Postcode": "NG178JY"
},
{
"SchoolName": "Jeffries Primary and Nursery School",
"Postcode": "NG178EE"
},
{
"SchoolName": "Holly Primary School",
"Postcode": "NG190NT"
},
{
"SchoolName": "Prospect Hill Infant and Nursery School",
"Postcode": "S810LR"
},
{
"SchoolName": "Prospect Hill Junior School",
"Postcode": "S810LR"
},
{
"SchoolName": "Church Vale Primary School and Foundation Unit",
"Postcode": "NG200TE"
},
{
"SchoolName": "Carr Hill Primary and Nursery School",
"Postcode": "DN226SW"
},
{
"SchoolName": "Forest Fields Primary and Nursery School",
"Postcode": "NG76GQ"
},
{
"SchoolName": "Heatherley Primary School",
"Postcode": "NG190PY"
},
{
"SchoolName": "Mornington Primary School",
"Postcode": "NG161RF"
},
{
"SchoolName": "Whitegate Primary and Nursery School",
"Postcode": "NG119JQ"
},
{
"SchoolName": "St Edmund's CofE (C) Primary School",
"Postcode": "NG199JU"
},
{
"SchoolName": "St Andrew's CofE Primary and Nursery School",
"Postcode": "NG173DW"
},
{
"SchoolName": "All Hallows CofE Primary School",
"Postcode": "NG43JZ"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "NG98AQ"
},
{
"SchoolName": "Selston CofE Infant and Nursery School",
"Postcode": "NG166DH"
},
{
"SchoolName": "Underwood Church of England Primary School",
"Postcode": "NG165GN"
},
{
"SchoolName": "Mount CofE Primary and Nursery School",
"Postcode": "NG241EW"
},
{
"SchoolName": "Ranby CofE Primary School",
"Postcode": "DN228HZ"
},
{
"SchoolName": "Bleasby CofE Primary School",
"Postcode": "NG147GD"
},
{
"SchoolName": "Bunny CofE Primary School",
"Postcode": "NG116QW"
},
{
"SchoolName": "St Wilfrid's CofE Primary School",
"Postcode": "NG146FG"
},
{
"SchoolName": "Ca<NAME> CofE Primary School",
"Postcode": "NG236AD"
},
{
"SchoolName": "Coddington CofE Primary and Nursery School",
"Postcode": "NG242QA"
},
{
"SchoolName": "Costock CofE Primary School",
"Postcode": "LE126XD"
},
{
"SchoolName": "Cuckney CofE Primary School",
"Postcode": "NG209NB"
},
{
"SchoolName": "Dunham-on-Trent CofE Primary School",
"Postcode": "NG220UL"
},
{
"SchoolName": "Halam CofE Primary School",
"Postcode": "NG228AE"
},
{
"SchoolName": "Kneesall CofE Primary School",
"Postcode": "NG220AB"
},
{
"SchoolName": "Langar CofE Primary School",
"Postcode": "NG139HH"
},
{
"SchoolName": "St Matthew's CofE Primary School",
"Postcode": "NG236RW"
},
{
"SchoolName": "Norwell CofE Primary School",
"Postcode": "NG236JP"
},
{
"SchoolName": "St Peter's CofE Junior School",
"Postcode": "NG116GB"
},
{
"SchoolName": "Holy Trinity CofE Infant School",
"Postcode": "NG250LD"
},
{
"SchoolName": "Lowe's Wong Anglican Methodist Junior School",
"Postcode": "NG250AA"
},
{
"SchoolName": "Trowell CofE Primary School",
"Postcode": "NG93QD"
},
{
"SchoolName": "Walesby CofE Primary School",
"Postcode": "NG229PB"
},
{
"SchoolName": "North Wheatley Church of England Primary School",
"Postcode": "DN229DH"
},
{
"SchoolName": "South Wilford Endowed CofE Primary School",
"Postcode": "NG117AL"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "NG42ED"
},
{
"SchoolName": "Bramcote CofE Primary School",
"Postcode": "NG93HE"
},
{
"SchoolName": "St Swithun's CofE Primary School",
"Postcode": "DN226LD"
},
{
"SchoolName": "Christ Church CofE Infant & Nursery School",
"Postcode": "NG244UT"
},
{
"SchoolName": "St Luke's CofE (Aided) Primary School",
"Postcode": "S818PW"
},
{
"SchoolName": "St Anne's CofE (Aided) Primary School",
"Postcode": "S801NQ"
},
{
"SchoolName": "The Primary School of St Mary and St Martin",
"Postcode": "S818ER"
},
{
"SchoolName": "Cotgrave CofE Primary School",
"Postcode": "NG123HS"
},
{
"SchoolName": "Edwinstowe CofE Primary School",
"Postcode": "NG219LP"
},
{
"SchoolName": "All Saints Anglican/Methodist Primary School",
"Postcode": "NG235NP"
},
{
"SchoolName": "Gamston CofE (Aided) Primary School",
"Postcode": "DN220PE"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "DN104QT"
},
{
"SchoolName": "Gunthorpe CofE Primary School",
"Postcode": "NG147EW"
},
{
"SchoolName": "Lowdham CofE Primary School",
"Postcode": "NG147BE"
},
{
"SchoolName": "Linby-cum-Papplewick CofE (VA) Primary School",
"Postcode": "NG158GA"
},
{
"SchoolName": "Sturton CofE Primary School",
"Postcode": "DN229HQ"
},
{
"SchoolName": "Sutton-Cum-Lound CofE School",
"Postcode": "DN228PP"
},
{
"SchoolName": "Wood's Foundation CofE Primary School",
"Postcode": "NG146DX"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "DN118EF"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "S802SF"
},
{
"SchoolName": "Huthwaite All Saint's CofE (Aided) Infant School",
"Postcode": "NG172JR"
},
{
"SchoolName": "Ellis Guilford School",
"Postcode": "NG60HT"
},
{
"SchoolName": "Garibaldi College",
"Postcode": "NG190JX"
},
{
"SchoolName": "Chilwell School",
"Postcode": "NG95AL"
},
{
"SchoolName": "Minster School",
"Postcode": "NG250LG"
},
{
"SchoolName": "Highfields School",
"Postcode": "NG243AL"
},
{
"SchoolName": "Worksop College",
"Postcode": "S803AP"
},
{
"SchoolName": "Hollygirt School",
"Postcode": "NG34GF"
},
{
"SchoolName": "St Joseph's School",
"Postcode": "NG15AW"
},
{
"SchoolName": "Nottingham High School",
"Postcode": "NG74ED"
},
{
"SchoolName": "Hazel Hurst School Mapperley Ltd",
"Postcode": "NG36DG"
},
{
"SchoolName": "Saville House School",
"Postcode": "NG198AH"
},
{
"SchoolName": "Wellow House School",
"Postcode": "NG220EA"
},
{
"SchoolName": "Plumtree School",
"Postcode": "NG125ND"
},
{
"SchoolName": "Orchard School",
"Postcode": "DN220DJ"
},
{
"SchoolName": "Nottingham Girls' High School GDST",
"Postcode": "NG14JB"
},
{
"SchoolName": "Lammas School",
"Postcode": "NG172AD"
},
{
"SchoolName": "Salterford House School",
"Postcode": "NG146NZ"
},
{
"SchoolName": "Iona School",
"Postcode": "NG37DN"
},
{
"SchoolName": "Fountaindale School",
"Postcode": "NG185BA"
},
{
"SchoolName": "Derrymount School",
"Postcode": "NG58HN"
},
{
"SchoolName": "Yeoman Park School",
"Postcode": "NG198PS"
},
{
"SchoolName": "Carlton Digby School",
"Postcode": "NG36DS"
},
{
"SchoolName": "St Giles School",
"Postcode": "DN227NJ"
},
{
"SchoolName": "Dawn House School",
"Postcode": "NG210DQ"
},
{
"SchoolName": "Ash Lea School",
"Postcode": "NG123PA"
},
{
"SchoolName": "Bracken Hill School",
"Postcode": "NG177HZ"
},
{
"SchoolName": "Rosehill School",
"Postcode": "NG32FE"
},
{
"SchoolName": "Comper Foundation Stage School",
"Postcode": "OX43AJ"
},
{
"SchoolName": "Headington Quarry Foundation Stage School",
"Postcode": "OX38LH"
},
{
"SchoolName": "Grandpont Nursery School",
"Postcode": "OX14QH"
},
{
"SchoolName": "Slade Nursery School",
"Postcode": "OX38QQ"
},
{
"SchoolName": "Lydalls Nursery School",
"Postcode": "OX117HX"
},
{
"SchoolName": "The Ace Centre Nursery School",
"Postcode": "OX75DZ"
},
{
"SchoolName": "Wheatley Nursery School",
"Postcode": "OX331NN"
},
{
"SchoolName": "Orchard Fields Community School",
"Postcode": "OX160QT"
},
{
"SchoolName": "Hill View Primary School",
"Postcode": "OX161DN"
},
{
"SchoolName": "Queensway School",
"Postcode": "OX169NF"
},
{
"SchoolName": "The Grange Community Primary School",
"Postcode": "OX169YA"
},
{
"SchoolName": "Hardwick Primary School",
"Postcode": "OX161XE"
},
{
"SchoolName": "Charlbury Primary School",
"Postcode": "OX73TX"
},
{
"SchoolName": "Enstone Primary School",
"Postcode": "OX74LP"
},
{
"SchoolName": "Great Tew County Primary School",
"Postcode": "OX74DB"
},
{
"SchoolName": "Kingham Primary School",
"Postcode": "OX76YD"
},
{
"SchoolName": "West Kidlington Primary and Nursery School",
"Postcode": "OX51EA"
},
{
"SchoolName": "Middle Barton School",
"Postcode": "OX77BX"
},
{
"SchoolName": "Five Acres Primary School",
"Postcode": "OX252SN"
},
{
"SchoolName": "Brookside Primary School",
"Postcode": "OX262DB"
},
{
"SchoolName": "Longfields Primary and Nursery School",
"Postcode": "OX266QL"
},
{
"SchoolName": "Whitchurch Primary School",
"Postcode": "RG87EJ"
},
{
"SchoolName": "King's Meadow Primary School",
"Postcode": "OX262LU"
},
{
"SchoolName": "Carterton Primary School",
"Postcode": "OX183AD"
},
{
"SchoolName": "Gateway Primary School",
"Postcode": "OX183SF"
},
{
"SchoolName": "Witney Community Primary School",
"Postcode": "OX281HL"
},
{
"SchoolName": "St Nicholas Primary School",
"Postcode": "OX30PJ"
},
{
"SchoolName": "Stonesfield School",
"Postcode": "OX298PU"
},
{
"SchoolName": "William Fletcher Primary School",
"Postcode": "OX51LW"
},
{
"SchoolName": "North Kidlington Primary School",
"Postcode": "OX52DA"
},
{
"SchoolName": "Sandhills Community Primary School",
"Postcode": "OX38FN"
},
{
"SchoolName": "RAF Benson Community Primary School",
"Postcode": "OX106EP"
},
{
"SchoolName": "Stadhampton Primary School",
"Postcode": "OX447XL"
},
{
"SchoolName": "Tetsworth Primary School",
"Postcode": "OX97AB"
},
{
"SchoolName": "Watlington Primary School",
"Postcode": "OX495RB"
},
{
"SchoolName": "Barley Hill Primary School",
"Postcode": "OX93DH"
},
{
"SchoolName": "Mill Lane Community Primary School",
"Postcode": "OX394RF"
},
{
"SchoolName": "Nettlebed Community School",
"Postcode": "RG95DA"
},
{
"SchoolName": "Sonning Common Primary School",
"Postcode": "RG49RJ"
},
{
"SchoolName": "South Stoke Primary School",
"Postcode": "RG80JS"
},
{
"SchoolName": "Woodcote Primary School",
"Postcode": "RG80QY"
},
{
"SchoolName": "Valley Road School",
"Postcode": "RG91RR"
},
{
"SchoolName": "Badgemore Primary School",
"Postcode": "RG92HL"
},
{
"SchoolName": "East Oxford Primary School",
"Postcode": "OX41JP"
},
{
"SchoolName": "Windmill Primary School",
"Postcode": "OX38NG"
},
{
"SchoolName": "Rose Hill Primary School",
"Postcode": "OX44SF"
},
{
"SchoolName": "West Oxford Community Primary School",
"Postcode": "OX20BY"
},
{
"SchoolName": "Larkrise Primary School",
"Postcode": "OX44AN"
},
{
"SchoolName": "Chilton County Primary School",
"Postcode": "OX110PQ"
},
{
"SchoolName": "Drayton Community Primary School",
"Postcode": "OX144JF"
},
{
"SchoolName": "Harwell Primary School",
"Postcode": "OX110LH"
},
{
"SchoolName": "Dry Sandford Primary School",
"Postcode": "OX136EE"
},
{
"SchoolName": "South Moreton School",
"Postcode": "OX119AG"
},
{
"SchoolName": "Botley School",
"Postcode": "OX29JZ"
},
{
"SchoolName": "Fir Tree Junior School",
"Postcode": "OX100NY"
},
{
"SchoolName": "Stockham Primary School",
"Postcode": "OX129HL"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "OX143RR"
},
{
"SchoolName": "Wood Farm Primary School",
"Postcode": "OX38QQ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "OX52LG"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "OX93HU"
},
{
"SchoolName": "<NAME> Community Primary School",
"Postcode": "OX117BZ"
},
{
"SchoolName": "Carswell Community Primary School",
"Postcode": "OX141DP"
},
{
"SchoolName": "Thameside Primary School",
"Postcode": "OX145NL"
},
{
"SchoolName": "West Witney Primary School",
"Postcode": "OX285FZ"
},
{
"SchoolName": "Long Furlong Primary School",
"Postcode": "OX141XP"
},
{
"SchoolName": "Caldecott Primary School",
"Postcode": "OX145HB"
},
{
"SchoolName": "Cropredy Church of England Primary School",
"Postcode": "OX171PU"
},
{
"SchoolName": "St Mary's Church of England (VC) Primary School, Banbury",
"Postcode": "OX162EG"
},
{
"SchoolName": "Chadlington Church of England Primary School",
"Postcode": "OX73LY"
},
{
"SchoolName": "Hook Norton Church of England Primary School",
"Postcode": "OX155JS"
},
{
"SchoolName": "Bloxham Church of England Primary School",
"Postcode": "OX154HP"
},
{
"SchoolName": "Fritwell Church of England Primary School",
"Postcode": "OX277PX"
},
{
"SchoolName": "Charlton-on-Otmoor Church of England Primary School",
"Postcode": "OX52UT"
},
{
"SchoolName": "Chesterton Church of England Voluntary Aided Primary School",
"Postcode": "OX261UN"
},
{
"SchoolName": "Fringford Church of England Primary School",
"Postcode": "OX278DY"
},
{
"SchoolName": "Launton Church of England Primary School",
"Postcode": "OX265DP"
},
{
"SchoolName": "Finmere Church of England Primary School",
"Postcode": "MK184AR"
},
{
"SchoolName": "Clanfield CofE Primary School",
"Postcode": "OX182SP"
},
{
"SchoolName": "Aston and Cote Church of England Primary School",
"Postcode": "OX182DU"
},
{
"SchoolName": "Ducklington Primary School",
"Postcode": "OX297US"
},
{
"SchoolName": "Hailey Church of England Primary School",
"Postcode": "OX299UB"
},
{
"SchoolName": "St Kenelm's Church of England (VC) School",
"Postcode": "OX290SP"
},
{
"SchoolName": "Bletchingdon Parochial Church of England Primary School",
"Postcode": "OX53ES"
},
{
"SchoolName": "Combe Church of England Primary School",
"Postcode": "OX298NQ"
},
{
"SchoolName": "Woodstock Church of England Primary School",
"Postcode": "OX201LL"
},
{
"SchoolName": "Bladon Church of England Primary School",
"Postcode": "OX201RW"
},
{
"SchoolName": "Horspath Church of England Primary School",
"Postcode": "OX331RY"
},
{
"SchoolName": "Garsington Church of England Primary School",
"Postcode": "OX449EW"
},
{
"SchoolName": "Aston Rowant Church of England Primary School",
"Postcode": "OX495SU"
},
{
"SchoolName": "Benson Church of England Primary School",
"Postcode": "OX106LX"
},
{
"SchoolName": "St Andrew's Church of England Primary School",
"Postcode": "OX394PU"
},
{
"SchoolName": "Clifton Hampden Church of England Primary School",
"Postcode": "OX143EE"
},
{
"SchoolName": "Lewknor Church of England Primary School",
"Postcode": "OX495TH"
},
{
"SchoolName": "Dorchester St Birinus Church of England School",
"Postcode": "OX107HR"
},
{
"SchoolName": "Great Milton Church of England Primary School",
"Postcode": "OX447NT"
},
{
"SchoolName": "Mar<NAME>don Church of England Controlled School",
"Postcode": "OX449LJ"
},
{
"SchoolName": "Culham Parochial Church of England School",
"Postcode": "OX144NB"
},
{
"SchoolName": "Crowmarsh Gifford Church of England School",
"Postcode": "OX108EN"
},
{
"SchoolName": "Peppard Church of England Primary School",
"Postcode": "RG95JU"
},
{
"SchoolName": "Stoke Row Church of England School",
"Postcode": "RG95QS"
},
{
"SchoolName": "Church Cowley St James Church of England Primary School",
"Postcode": "OX43QH"
},
{
"SchoolName": "St Andrew's Church of England Primary School",
"Postcode": "OX39ED"
},
{
"SchoolName": "New Hinksey Church of England Primary School",
"Postcode": "OX14RQ"
},
{
"SchoolName": "St Michael's CofE Primary School",
"Postcode": "OX30EJ"
},
{
"SchoolName": "Brightwell-Cum-Sotwell Church of England (C) Primary School",
"Postcode": "OX100QH"
},
{
"SchoolName": "Cumnor Church of England School (Voluntary Controlled)",
"Postcode": "OX29PQ"
},
{
"SchoolName": "The Ridgeway Church of England (C) Primary School",
"Postcode": "OX129UL"
},
{
"SchoolName": "Long Wittenham (Church of England) Primary School",
"Postcode": "OX144QJ"
},
{
"SchoolName": "Longworth Primary School",
"Postcode": "OX135EU"
},
{
"SchoolName": "Marcham Church of England (Voluntary Controlled) Primary School",
"Postcode": "OX136PY"
},
{
"SchoolName": "North Hinksey Church of England Primary School",
"Postcode": "OX20LZ"
},
{
"SchoolName": "Radley Church of England Primary School",
"Postcode": "OX143QF"
},
{
"SchoolName": "Stanford in the Vale Church of England Primary School",
"Postcode": "SN78LH"
},
{
"SchoolName": "St Michael's Church of England Primary School, Steventon",
"Postcode": "OX136SQ"
},
{
"SchoolName": "Sunningwell Church of England Primary School",
"Postcode": "OX136RE"
},
{
"SchoolName": "Sutton Courtenay CofE Primary School",
"Postcode": "OX144DA"
},
{
"SchoolName": "St Nicholas' Church of England Infants' School and Nursery Class, Wallingford",
"Postcode": "OX108HX"
},
{
"SchoolName": "St Nicolas Church of England Primary School, Abingdon",
"Postcode": "OX141HB"
},
{
"SchoolName": "Blewbury Endowed Church of England Primary School",
"Postcode": "OX119QB"
},
{
"SchoolName": "Hagbourne Church of England Primary School",
"Postcode": "OX119LR"
},
{
"SchoolName": "Uffington Church of England Primary School",
"Postcode": "SN77RA"
},
{
"SchoolName": "St Francis Church of England Primary School",
"Postcode": "OX42QT"
},
{
"SchoolName": "Trinity Church of England Primary School",
"Postcode": "RG91HJ"
},
{
"SchoolName": "Beckley Church of England Primary School",
"Postcode": "OX39UT"
},
{
"SchoolName": "Wychwood Church of England Primary School",
"Postcode": "OX76BD"
},
{
"SchoolName": "St Swithun's CofE Primary School",
"Postcode": "OX15PS"
},
{
"SchoolName": "St Blaise CofE Primary School",
"Postcode": "OX144DR"
},
{
"SchoolName": "St Leonard's Church of England Primary School",
"Postcode": "OX164SB"
},
{
"SchoolName": "St John's Catholic Primary School, Banbury",
"Postcode": "OX169YA"
},
{
"SchoolName": "Bishop Loveday Church of England Primary School",
"Postcode": "OX154BN"
},
{
"SchoolName": "Great Rollright Church of England (Aided) Primary School",
"Postcode": "OX75SA"
},
{
"SchoolName": "Deddington Church of England Primary School",
"Postcode": "OX150TJ"
},
{
"SchoolName": "Christopher Rawlins Church of England Voluntary Aided Primary School",
"Postcode": "OX173NH"
},
{
"SchoolName": "Kirtlington Church of England Primary School",
"Postcode": "OX53HL"
},
{
"SchoolName": "St Edburg's Church of England (VA) School",
"Postcode": "OX261BF"
},
{
"SchoolName": "Wootton-by-Woodstock Church of England (Aided) Primary School",
"Postcode": "OX201DH"
},
{
"SchoolName": "Ewelme CofE Primary School",
"Postcode": "OX106HU"
},
{
"SchoolName": "Little Milton Church of England Primary School",
"Postcode": "OX447QD"
},
{
"SchoolName": "St Laurence Church of England (A) School",
"Postcode": "OX107DX"
},
{
"SchoolName": "Checkendon Church of England (A) Primary School",
"Postcode": "RG80SR"
},
{
"SchoolName": "Goring Church of England Aided Primary School",
"Postcode": "RG80BG"
},
{
"SchoolName": "Kidmore End Church of England (Aided) Primary School",
"Postcode": "RG49AU"
},
{
"SchoolName": "Shiplake Church of England School",
"Postcode": "RG94DN"
},
{
"SchoolName": "Sacred Heart Catholic Primary School, Henley-on-Thames",
"Postcode": "RG91SL"
},
{
"SchoolName": "St Mary's Catholic Primary School, Bicester",
"Postcode": "OX262NX"
},
{
"SchoolName": "St Barnabas' Church of England Aided Primary School",
"Postcode": "OX26BN"
},
{
"SchoolName": "St Ebbe's Church of England Aided Primary School",
"Postcode": "OX14NA"
},
{
"SchoolName": "St Mary and John Church of England Primary School",
"Postcode": "OX41TJ"
},
{
"SchoolName": "St Philip and James' Church of England Aided Primary School Oxford",
"Postcode": "OX26AB"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Oxford",
"Postcode": "OX37SX"
},
{
"SchoolName": "St Aloysius' Catholic Primary School",
"Postcode": "OX27PH"
},
{
"SchoolName": "Appleton Church of England (A) Primary School",
"Postcode": "OX135JL"
},
{
"SchoolName": "Ashbury with Compton Beauchamp Church of England (A) Primary School",
"Postcode": "SN68LN"
},
{
"SchoolName": "Northbourne Church of England Primary School",
"Postcode": "OX118LJ"
},
{
"SchoolName": "Shellingford Church of England (Voluntary Aided) School",
"Postcode": "SN77QA"
},
{
"SchoolName": "Wootton St Peter's Church of England Primary School",
"Postcode": "OX15HP"
},
{
"SchoolName": "St Amand's Catholic Primary School",
"Postcode": "OX128LF"
},
{
"SchoolName": "St Edmund's Catholic Primary School",
"Postcode": "OX143PP"
},
{
"SchoolName": "St Mary's Church of England (Aided) Primary School, Chipping Norton",
"Postcode": "OX75DH"
},
{
"SchoolName": "All Saints Church of England (Aided) Primary School",
"Postcode": "OX117QH"
},
{
"SchoolName": "Carterton Community College",
"Postcode": "OX181BU"
},
{
"SchoolName": "Chiltern Edge Community School",
"Postcode": "RG49LN"
},
{
"SchoolName": "Fitzharrys School",
"Postcode": "OX141NP"
},
{
"SchoolName": "Shenington Church of England Primary School",
"Postcode": "OX156NF"
},
{
"SchoolName": "Tudor Hall School",
"Postcode": "OX169UR"
},
{
"SchoolName": "Bloxham School",
"Postcode": "OX154PE"
},
{
"SchoolName": "Rupert House School",
"Postcode": "RG92BN"
},
{
"SchoolName": "Kingham Hill School",
"Postcode": "OX76TH"
},
{
"SchoolName": "Sibford School",
"Postcode": "OX155QL"
},
{
"SchoolName": "St John's Priory School",
"Postcode": "OX165HX"
},
{
"SchoolName": "St Mary's School",
"Postcode": "RG91HS"
},
{
"SchoolName": "The Oratory School",
"Postcode": "RG80PJ"
},
{
"SchoolName": "Cokethorpe School",
"Postcode": "OX297PU"
},
{
"SchoolName": "Shiplake College",
"Postcode": "RG94BW"
},
{
"SchoolName": "The Oratory Preparatory School",
"Postcode": "RG87SF"
},
{
"SchoolName": "Christ Church Cathedral School",
"Postcode": "OX11QW"
},
{
"SchoolName": "Dragon School",
"Postcode": "OX26SS"
},
{
"SchoolName": "Headington School",
"Postcode": "OX37TD"
},
{
"SchoolName": "New College School",
"Postcode": "OX13UA"
},
{
"SchoolName": "St Edward's School",
"Postcode": "OX27NN"
},
{
"SchoolName": "Summer Fields School",
"Postcode": "OX27EN"
},
{
"SchoolName": "Wychwood School",
"Postcode": "OX26JR"
},
{
"SchoolName": "Rye St Antony School",
"Postcode": "OX30BY"
},
{
"SchoolName": "Cothill House",
"Postcode": "OX136JL"
},
{
"SchoolName": "Our Lady's Abingdon",
"Postcode": "OX143PS"
},
{
"SchoolName": "St Hugh's School",
"Postcode": "SN78PT"
},
{
"SchoolName": "Radley College",
"Postcode": "OX142HR"
},
{
"SchoolName": "Pinewood School",
"Postcode": "SN68HZ"
},
{
"SchoolName": "Cranford House School Trust Limited",
"Postcode": "OX109HT"
},
{
"SchoolName": "Moulsford Preparatory School",
"Postcode": "OX109HR"
},
{
"SchoolName": "The Manor Preparatory School",
"Postcode": "OX136LN"
},
{
"SchoolName": "Oxford High School GDST",
"Postcode": "OX26XA"
},
{
"SchoolName": "Magdalen College School",
"Postcode": "OX41DZ"
},
{
"SchoolName": "Abingdon School",
"Postcode": "OX141DE"
},
{
"SchoolName": "St Helen and St Katharine",
"Postcode": "OX141BE"
},
{
"SchoolName": "The King's School",
"Postcode": "OX296TA"
},
{
"SchoolName": "Emmanuel Christian School",
"Postcode": "OX44PU"
},
{
"SchoolName": "d'Overbroeck's",
"Postcode": "OX26JX"
},
{
"SchoolName": "Windrush Valley School",
"Postcode": "OX76AN"
},
{
"SchoolName": "Bruern Abbey School",
"Postcode": "OX261UY"
},
{
"SchoolName": "The Unicorn School",
"Postcode": "OX141AA"
},
{
"SchoolName": "Hillcrest Park School",
"Postcode": "OX75QH"
},
{
"SchoolName": "Woodeaton Manor School",
"Postcode": "OX39TS"
},
{
"SchoolName": "Mulberry Bush School",
"Postcode": "OX297RW"
},
{
"SchoolName": "Swalcliffe Park School Trust",
"Postcode": "OX155EP"
},
{
"SchoolName": "Frank Wise School",
"Postcode": "OX169RL"
},
{
"SchoolName": "<NAME> School",
"Postcode": "OX331NN"
},
{
"SchoolName": "Springfield School",
"Postcode": "OX281AR"
},
{
"SchoolName": "Oxfordshire Hospital School",
"Postcode": "OX30SW"
},
{
"SchoolName": "<NAME> School",
"Postcode": "OX46SB"
},
{
"SchoolName": "Bardwell School",
"Postcode": "OX264RZ"
},
{
"SchoolName": "Bishopswood School",
"Postcode": "RG49RJ"
},
{
"SchoolName": "Northfield School",
"Postcode": "OX46DQ"
},
{
"SchoolName": "Madeley Nursery School",
"Postcode": "TF75ET"
},
{
"SchoolName": "Oakengates Childrens Centre",
"Postcode": "TF26EP"
},
{
"SchoolName": "The Linden Centre",
"Postcode": "TF35BT"
},
{
"SchoolName": "Silver Tree Primary School",
"Postcode": "DH77LF"
},
{
"SchoolName": "Bishops Castle Primary School",
"Postcode": "SY95PA"
},
{
"SchoolName": "Cheswardine Primary School",
"Postcode": "TF92RU"
},
{
"SchoolName": "Church Aston Infant School",
"Postcode": "TF109JN"
},
{
"SchoolName": "Church Preen Primary School",
"Postcode": "SY67LH"
},
{
"SchoolName": "Crudgington Primary School",
"Postcode": "TF66JF"
},
{
"SchoolName": "Donnington Wood Infant School and Nursery Centre",
"Postcode": "TF28EP"
},
{
"SchoolName": "Gobowen Primary School",
"Postcode": "SY113LD"
},
{
"SchoolName": "High Ercall Primary School",
"Postcode": "TF66AF"
},
{
"SchoolName": "Highley Community Primary School",
"Postcode": "WV166EH"
},
{
"SchoolName": "Hinstock Primary School",
"Postcode": "TF92TE"
},
{
"SchoolName": "Hodnet Primary School",
"Postcode": "TF93NS"
},
{
"SchoolName": "Lawley Primary School",
"Postcode": "TF42PR"
},
{
"SchoolName": "Lilleshall Primary School",
"Postcode": "TF109EY"
},
{
"SchoolName": "Market Drayton Infant School",
"Postcode": "TF93BA"
},
{
"SchoolName": "Minsterley Primary School",
"Postcode": "SY50BE"
},
{
"SchoolName": "Newport Infant School",
"Postcode": "TF107DX"
},
{
"SchoolName": "Norbury Primary School and Nursery",
"Postcode": "SY95EA"
},
{
"SchoolName": "Coleham Primary School",
"Postcode": "SY37EN"
},
{
"SchoolName": "Woodfield Infant School",
"Postcode": "SY38LU"
},
{
"SchoolName": "Crowmoor Primary School and Nursery",
"Postcode": "SY25JJ"
},
{
"SchoolName": "Harlescott Junior School",
"Postcode": "SY14QN"
},
{
"SchoolName": "St George's Junior School",
"Postcode": "SY38LU"
},
{
"SchoolName": "Sundorne Infant School",
"Postcode": "SY14LE"
},
{
"SchoolName": "Sheriffhales Primary School",
"Postcode": "TF118RA"
},
{
"SchoolName": "Buntingsdale Primary School and Nursery",
"Postcode": "TF92HB"
},
{
"SchoolName": "Stoke-on-Tern Primary School",
"Postcode": "TF92LF"
},
{
"SchoolName": "Weston Rhyn Primary School",
"Postcode": "SY107SR"
},
{
"SchoolName": "Wombridge Primary School",
"Postcode": "TF26AN"
},
{
"SchoolName": "Woore Primary and Nursery School",
"Postcode": "CW39SQ"
},
{
"SchoolName": "Wrockwardine Wood Infant School and Nursery",
"Postcode": "TF27AH"
},
{
"SchoolName": "Much Wenlock Primary School",
"Postcode": "TF136JG"
},
{
"SchoolName": "Albrighton Primary School",
"Postcode": "WV73QS"
},
{
"SchoolName": "Market Drayton Junior School",
"Postcode": "TF93HU"
},
{
"SchoolName": "Queenswood Primary School and Nursery",
"Postcode": "TF20AZ"
},
{
"SchoolName": "The Wilfred Owen School",
"Postcode": "SY25SH"
},
{
"SchoolName": "Shifnal Primary School",
"Postcode": "TF118EJ"
},
{
"SchoolName": "Holmer Lake Primary School",
"Postcode": "TF31LD"
},
{
"SchoolName": "Castlefields Primary School",
"Postcode": "WV165DQ"
},
{
"SchoolName": "William Reynolds Primary School",
"Postcode": "TF75QW"
},
{
"SchoolName": "John Wilkinson Primary School and Nursery",
"Postcode": "TF125AN"
},
{
"SchoolName": "Moorfield Primary School",
"Postcode": "TF107QU"
},
{
"SchoolName": "Belvidere Primary School",
"Postcode": "SY25YB"
},
{
"SchoolName": "Ladygrove Primary School",
"Postcode": "TF42LF"
},
{
"SchoolName": "Randlay Primary School",
"Postcode": "TF32LR"
},
{
"SchoolName": "Captain Webb Primary School",
"Postcode": "TF43DU"
},
{
"SchoolName": "Aqueduct Primary School",
"Postcode": "TF43RP"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "TF74DS"
},
{
"SchoolName": "The Martin Wilson School",
"Postcode": "SY12SP"
},
{
"SchoolName": "Apley Wood Primary School",
"Postcode": "TF16FQ"
},
{
"SchoolName": "Teagues Bridge Primary School",
"Postcode": "TF26RE"
},
{
"SchoolName": "The Meadows Primary School",
"Postcode": "SY112EA"
},
{
"SchoolName": "Muxton Primary School",
"Postcode": "TF28SA"
},
{
"SchoolName": "Hollinswood Primary School",
"Postcode": "TF32EP"
},
{
"SchoolName": "Adderley CofE Primary School",
"Postcode": "TF93TF"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "WV73DS"
},
{
"SchoolName": "Beckbury CofE Primary School",
"Postcode": "TF119DQ"
},
{
"SchoolName": "Bicton CofE Primary School",
"Postcode": "SY38EH"
},
{
"SchoolName": "Brockton CofE Primary School",
"Postcode": "TF136JR"
},
{
"SchoolName": "Chirbury CofE VC Primary School",
"Postcode": "SY156BN"
},
{
"SchoolName": "St Lawrence CofE Primary School",
"Postcode": "SY66EX"
},
{
"SchoolName": "Clive CofE Primary School",
"Postcode": "SY43LF"
},
{
"SchoolName": "Cockshutt CofE Primary School and Nursery",
"Postcode": "SY120JE"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "SY56DH"
},
{
"SchoolName": "Criftins CofE Primary School",
"Postcode": "SY129LT"
},
{
"SchoolName": "Donnington Wood CofE Voluntary Controlled Junior School",
"Postcode": "TF28BH"
},
{
"SchoolName": "St Peter's Church of England Controlled Primary School",
"Postcode": "TF108JQ"
},
{
"SchoolName": "Farlow CofE Primary School",
"Postcode": "DY140RQ"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "SY41DB"
},
{
"SchoolName": "Hadnall CofE Primary School",
"Postcode": "SY44BE"
},
{
"SchoolName": "Hope CofE Primary School",
"Postcode": "SY50JB"
},
{
"SchoolName": "Kinlet CofE Primary School",
"Postcode": "DY123BG"
},
{
"SchoolName": "Kinnerley Church of England Controlled Primary School",
"Postcode": "SY108DF"
},
{
"SchoolName": "Longnor CofE Primary School",
"Postcode": "SY57PP"
},
{
"SchoolName": "Lower Heath CofE Primary School",
"Postcode": "SY132BT"
},
{
"SchoolName": "Morda CofE Primary School",
"Postcode": "SY109NR"
},
{
"SchoolName": "<NAME> CofE Primary School",
"Postcode": "TF93RS"
},
{
"SchoolName": "Myddle CofE Primary School",
"Postcode": "SY43RP"
},
{
"SchoolName": "Newcastle CofE Primary School",
"Postcode": "SY78QL"
},
{
"SchoolName": "Newport Church of England Voluntary Controlled Junior School",
"Postcode": "TF107EA"
},
{
"SchoolName": "Newtown CofE Primary School",
"Postcode": "SY45NU"
},
{
"SchoolName": "Norton-in-Hales CofE Primary School",
"Postcode": "TF94AT"
},
{
"SchoolName": "Pontesbury CofE Primary School & Nursery",
"Postcode": "SY50TF"
},
{
"SchoolName": "Bomere Heath CofE Primary School",
"Postcode": "SY43PQ"
},
{
"SchoolName": "St Lawrence Church of England Voluntary Controlled Primary School",
"Postcode": "TF66DH"
},
{
"SchoolName": "Rushbury CofE Primary School",
"Postcode": "SY67EB"
},
{
"SchoolName": "St John the Baptist CofE (Controlled) Primary School",
"Postcode": "SY41LA"
},
{
"SchoolName": "Selattyn CofE Primary School",
"Postcode": "SY107DH"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "TF119HD"
},
{
"SchoolName": "Oxon CofE Primary School",
"Postcode": "SY35BJ"
},
{
"SchoolName": "St Giles CofE Primary School",
"Postcode": "SY25NJ"
},
{
"SchoolName": "Tibberton Church of England Primary School",
"Postcode": "TF108NN"
},
{
"SchoolName": "Tilstock CofE Primary School and Nursery",
"Postcode": "SY133JL"
},
{
"SchoolName": "Trefonen CofE Primary School",
"Postcode": "SY109DY"
},
{
"SchoolName": "St Lucia's CofE Primary School",
"Postcode": "SY44TZ"
},
{
"SchoolName": "Welshampton CofE Primary School",
"Postcode": "SY120PG"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "SY45BX"
},
{
"SchoolName": "West Felton CofE Primary School",
"Postcode": "SY114JR"
},
{
"SchoolName": "Weston Lullingfields CofE School",
"Postcode": "SY42AW"
},
{
"SchoolName": "Whitchurch CofE Junior School",
"Postcode": "SY131RX"
},
{
"SchoolName": "Whitchurch CofE Infant and Nursery School",
"Postcode": "SY131RJ"
},
{
"SchoolName": "Wistanstow CofE Primary School",
"Postcode": "SY78DQ"
},
{
"SchoolName": "Worthen CofE Primary School",
"Postcode": "SY59HT"
},
{
"SchoolName": "Stiperstones CofE Primary School",
"Postcode": "SY50LZ"
},
{
"SchoolName": "Wrockwardine Wood Church of England Junior School",
"Postcode": "TF27HG"
},
{
"SchoolName": "Broseley CE Primary School",
"Postcode": "TF125LW"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "SY44JR"
},
{
"SchoolName": "St Thomas and St Anne CofE Primary School",
"Postcode": "SY58JN"
},
{
"SchoolName": "<NAME> of Madeley Primary School",
"Postcode": "TF75DL"
},
{
"SchoolName": "St George's Church of England Primary School",
"Postcode": "TF29LJ"
},
{
"SchoolName": "Bryn Offa CofE Primary School",
"Postcode": "SY109QR"
},
{
"SchoolName": "St Laurence CofE Primary School",
"Postcode": "SY81TP"
},
{
"SchoolName": "St Peter's Church of England Controlled Primary School, Bratton",
"Postcode": "TF50NT"
},
{
"SchoolName": "Brown Clee CofE Primary School",
"Postcode": "WV166SS"
},
{
"SchoolName": "Baschurch CofE Primary School",
"Postcode": "SY42AU"
},
{
"SchoolName": "St Mary's Bluecoat CofE (VA) Primary School",
"Postcode": "WV155EQ"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "SY70AA"
},
{
"SchoolName": "Claverley CofE Primary School",
"Postcode": "WV57DX"
},
{
"SchoolName": "St George's CofE Primary School",
"Postcode": "SY78JQ"
},
{
"SchoolName": "Clunbury CofE Primary School",
"Postcode": "SY70HE"
},
{
"SchoolName": "Coalbrookdale and Ironbridge CofE Primary School",
"Postcode": "TF87DS"
},
{
"SchoolName": "Condover CofE Primary School",
"Postcode": "SY57AA"
},
{
"SchoolName": "Dorrington CofE (Aided) Primary School",
"Postcode": "SY57JL"
},
{
"SchoolName": "Longden CofE Primary School",
"Postcode": "SY58EX"
},
{
"SchoolName": "Lydbury North CofE (A) Primary School",
"Postcode": "SY78AU"
},
{
"SchoolName": "St Marys CofE Primary School",
"Postcode": "SY59QX"
},
{
"SchoolName": "Whittington CofE (Aided) Primary School",
"Postcode": "SY114DA"
},
{
"SchoolName": "Worfield Endowed CofE Primary School",
"Postcode": "WV155LF"
},
{
"SchoolName": "St John's Catholic Primary School",
"Postcode": "WV164HW"
},
{
"SchoolName": "St Peter and St Paul Catholic Primary School",
"Postcode": "TF107HU"
},
{
"SchoolName": "Our Lady and St Oswald's Catholic Primary School",
"Postcode": "SY112TG"
},
{
"SchoolName": "Shrewsbury Cathedral Catholic Primary School and Nursery",
"Postcode": "SY12SP"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "TF13ER"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "TF75EJ"
},
{
"SchoolName": "St Matthew's Church of England Aided Primary School and Nursery Centre",
"Postcode": "TF27PZ"
},
{
"SchoolName": "St Luke's Catholic Primary School",
"Postcode": "TF27HG"
},
{
"SchoolName": "Corvedale CofE Primary School",
"Postcode": "SY79DH"
},
{
"SchoolName": "Onny CofE (A) Primary School",
"Postcode": "SY79AW"
},
{
"SchoolName": "The Community College, Bishop's Castle",
"Postcode": "SY95AY"
},
{
"SchoolName": "Belvidere School",
"Postcode": "SY25LA"
},
{
"SchoolName": "Meole Brace School",
"Postcode": "SY39DW"
},
{
"SchoolName": "The Burton Borough School",
"Postcode": "TF107DS"
},
{
"SchoolName": "Mary Webb School and Science College",
"Postcode": "SY50TG"
},
{
"SchoolName": "The Grove School",
"Postcode": "TF91HF"
},
{
"SchoolName": "Ludlow Church of England School",
"Postcode": "SY81GJ"
},
{
"SchoolName": "The Thomas Adams School, Wem",
"Postcode": "SY45UB"
},
{
"SchoolName": "Greenacres Primary School",
"Postcode": "SY13QG"
},
{
"SchoolName": "Ercall Wood Technology College",
"Postcode": "TF12DT"
},
{
"SchoolName": "Bedstone College",
"Postcode": "SY70BG"
},
{
"SchoolName": "Ellesmere College",
"Postcode": "SY129AB"
},
{
"SchoolName": "Moffats School",
"Postcode": "DY123AY"
},
{
"SchoolName": "Adcote School for Girls",
"Postcode": "SY42JY"
},
{
"SchoolName": "Moreton Hall School",
"Postcode": "SY113EW"
},
{
"SchoolName": "Packwood Haugh School",
"Postcode": "SY41HX"
},
{
"SchoolName": "Prestfelde School",
"Postcode": "SY26NZ"
},
{
"SchoolName": "Shrewsbury School",
"Postcode": "SY37BA"
},
{
"SchoolName": "The Old Hall School",
"Postcode": "TF13LB"
},
{
"SchoolName": "Wrekin College",
"Postcode": "TF13BH"
},
{
"SchoolName": "Castle House School",
"Postcode": "TF107JE"
},
{
"SchoolName": "Oswestry School",
"Postcode": "SY112TL"
},
{
"SchoolName": "St Winefride's Convent School",
"Postcode": "SY11TE"
},
{
"SchoolName": "The White House School",
"Postcode": "SY132AA"
},
{
"SchoolName": "Birchfield School",
"Postcode": "WV73AF"
},
{
"SchoolName": "Moor Park School",
"Postcode": "SY84DZ"
},
{
"SchoolName": "Cruckton Hall School",
"Postcode": "SY58PR"
},
{
"SchoolName": "Shrewsbury High School",
"Postcode": "SY11TN"
},
{
"SchoolName": "Overley Hall School",
"Postcode": "TF65HE"
},
{
"SchoolName": "Concord College",
"Postcode": "SY57PF"
},
{
"SchoolName": "Thomas Telford School",
"Postcode": "TF34NW"
},
{
"SchoolName": "Haughton School",
"Postcode": "TF74BW"
},
{
"SchoolName": "Woodlands School",
"Postcode": "SY45PJ"
},
{
"SchoolName": "Southall School",
"Postcode": "TF43PX"
},
{
"SchoolName": "The Bridge at HLC",
"Postcode": "TF15NQ"
},
{
"SchoolName": "Ashill Community Primary School",
"Postcode": "TA199ND"
},
{
"SchoolName": "Castle Cary Community Primary School",
"Postcode": "BA77EH"
},
{
"SchoolName": "Coxley Primary School",
"Postcode": "BA51RD"
},
{
"SchoolName": "Ditcheat Primary School",
"Postcode": "BA46RB"
},
{
"SchoolName": "Dunster First School",
"Postcode": "TA246RX"
},
{
"SchoolName": "Vallis First School",
"Postcode": "BA113DB"
},
{
"SchoolName": "Hemington Primary School",
"Postcode": "BA35XU"
},
{
"SchoolName": "Keinton Mandeville Primary School",
"Postcode": "TA116ES"
},
{
"SchoolName": "Kingsbury Episcopi Primary School",
"Postcode": "TA126BP"
},
{
"SchoolName": "Leigh-Upon-Mendip First School",
"Postcode": "BA35QQ"
},
{
"SchoolName": "Meare Village Primary School",
"Postcode": "BA69SP"
},
{
"SchoolName": "Merriott First School",
"Postcode": "TA165PT"
},
{
"SchoolName": "Milborne Port Primary School",
"Postcode": "DT95EP"
},
{
"SchoolName": "Priddy Primary School",
"Postcode": "BA53BE"
},
{
"SchoolName": "Countess Gytha Primary School",
"Postcode": "BA227LT"
},
{
"SchoolName": "Shepton Mallet Community Infants' School & Nursery",
"Postcode": "BA45HE"
},
{
"SchoolName": "Stoke St Michael Primary School",
"Postcode": "BA35LG"
},
{
"SchoolName": "Elmhurst Junior School",
"Postcode": "BA160HH"
},
{
"SchoolName": "Hindhayes Infant School",
"Postcode": "BA160HB"
},
{
"SchoolName": "Wincanton Primary School",
"Postcode": "BA99DZ"
},
{
"SchoolName": "Winsham Primary School",
"Postcode": "TA204HU"
},
{
"SchoolName": "Wookey Primary School",
"Postcode": "BA51LQ"
},
{
"SchoolName": "Bowlish Infant School",
"Postcode": "BA45JQ"
},
{
"SchoolName": "Neroche Primary School",
"Postcode": "TA199RG"
},
{
"SchoolName": "Ashcott Primary School",
"Postcode": "TA79PP"
},
{
"SchoolName": "Eastover Community Primary School",
"Postcode": "TA65EX"
},
{
"SchoolName": "Hamp Nursery and Infants' School",
"Postcode": "TA66JB"
},
{
"SchoolName": "Burnham-on-Sea Infant School",
"Postcode": "TA81JD"
},
{
"SchoolName": "Catcott Primary School",
"Postcode": "TA79HD"
},
{
"SchoolName": "East Huntspill School",
"Postcode": "TA93PT"
},
{
"SchoolName": "North Newton Community Primary School",
"Postcode": "TA70BG"
},
{
"SchoolName": "Otterhampton Primary School",
"Postcode": "TA52QS"
},
{
"SchoolName": "Pawlett Primary School",
"Postcode": "TA64SB"
},
{
"SchoolName": "Puriton Primary School",
"Postcode": "TA78BT"
},
{
"SchoolName": "Somerset Bridge Primary School",
"Postcode": "TA66AH"
},
{
"SchoolName": "West Huntspill Community Primary School",
"Postcode": "TA93QE"
},
{
"SchoolName": "Westonzoyland Community Primary School",
"Postcode": "TA70EY"
},
{
"SchoolName": "Bishops Hull Primary School",
"Postcode": "TA15EB"
},
{
"SchoolName": "Churchstanton Primary School",
"Postcode": "TA37RL"
},
{
"SchoolName": "Lydeard St Lawrence Community Primary School",
"Postcode": "TA43SF"
},
{
"SchoolName": "Milverton Community Primary School",
"Postcode": "TA41JP"
},
{
"SchoolName": "Sampford Arundel Community Primary School",
"Postcode": "TA219QN"
},
{
"SchoolName": "Stawley Primary School",
"Postcode": "TA210HH"
},
{
"SchoolName": "Wellsprings Primary School",
"Postcode": "TA27NF"
},
{
"SchoolName": "Beech Grove Primary School",
"Postcode": "TA218NE"
},
{
"SchoolName": "West Buckland Community Primary School",
"Postcode": "TA219LD"
},
{
"SchoolName": "Wiveliscombe Primary School",
"Postcode": "TA42LA"
},
{
"SchoolName": "Parkfield Primary School",
"Postcode": "TA14RT"
},
{
"SchoolName": "Lyngford Park Primary School",
"Postcode": "TA28EX"
},
{
"SchoolName": "Cheddar First School",
"Postcode": "BS273HN"
},
{
"SchoolName": "Barwick and Stoford Community Primary School",
"Postcode": "BA229TH"
},
{
"SchoolName": "East Coker Community Primary School",
"Postcode": "BA229HY"
},
{
"SchoolName": "South Petherton Junior School",
"Postcode": "TA135AG"
},
{
"SchoolName": "Milford Junior School",
"Postcode": "BA214PG"
},
{
"SchoolName": "Milford Infants' School",
"Postcode": "BA214PG"
},
{
"SchoolName": "Reckleford Community School and Children's Centre",
"Postcode": "BA214ET"
},
{
"SchoolName": "Birchfield Community Primary School",
"Postcode": "BA215RL"
},
{
"SchoolName": "Westover Green Community School",
"Postcode": "TA67HB"
},
{
"SchoolName": "Ilchester Community School",
"Postcode": "BA228JL"
},
{
"SchoolName": "Blackbrook Primary School",
"Postcode": "TA12RA"
},
{
"SchoolName": "Kingsmoor Primary School",
"Postcode": "TA78PY"
},
{
"SchoolName": "Holway Park Community Primary School",
"Postcode": "TA12JA"
},
{
"SchoolName": "Baltonsborough Church of England Voluntary Controlled Primary School",
"Postcode": "BA68PX"
},
{
"SchoolName": "St Mary and St Peter's Church of England Primary School",
"Postcode": "TA199EX"
},
{
"SchoolName": "Beckington Church of England First School",
"Postcode": "BA116TG"
},
{
"SchoolName": "Berkley Church of England First School",
"Postcode": "BA115JH"
},
{
"SchoolName": "Butleigh Church of England Primary School",
"Postcode": "BA68SX"
},
{
"SchoolName": "<NAME> CofE Primary School",
"Postcode": "TA117BN"
},
{
"SchoolName": "Bishop Henderson Church of England Primary School",
"Postcode": "BA35PN"
},
{
"SchoolName": "Ashlands Church of England First School",
"Postcode": "TA187AL"
},
{
"SchoolName": "St Bartholomew's Church of England First School",
"Postcode": "TA188AS"
},
{
"SchoolName": "Curry Mallet Church of England Primary School",
"Postcode": "TA36TA"
},
{
"SchoolName": "Curry Rivel Church of England VC Primary School",
"Postcode": "TA100HD"
},
{
"SchoolName": "St Aldhelm's Church of England Primary School",
"Postcode": "BA44PL"
},
{
"SchoolName": "All Saints CofE VC Infants School",
"Postcode": "TA229EN"
},
{
"SchoolName": "Evercreech Church of England Primary School",
"Postcode": "BA46EH"
},
{
"SchoolName": "Exford Church of England First School",
"Postcode": "TA247PP"
},
{
"SchoolName": "Christ Church CofE First School",
"Postcode": "BA115AJ"
},
{
"SchoolName": "Trinity Church of England First School",
"Postcode": "BA114LB"
},
{
"SchoolName": "St John's Church of England Voluntary Controlled Infants School",
"Postcode": "BA69DR"
},
{
"SchoolName": "St Nicholas CofE Primary School, Henstridge",
"Postcode": "BA80QD"
},
{
"SchoolName": "High Ham Church of England Primary School",
"Postcode": "TA109BY"
},
{
"SchoolName": "Hinton St George Church of England School",
"Postcode": "TA178SA"
},
{
"SchoolName": "Greenfylde Church of England First School",
"Postcode": "TA190DS"
},
{
"SchoolName": "Lovington Church of England Primary School",
"Postcode": "BA77PX"
},
{
"SchoolName": "Mells Church of England First School",
"Postcode": "BA113QE"
},
{
"SchoolName": "Misterton Church of England First School",
"Postcode": "TA188LZ"
},
{
"SchoolName": "North Cadbury Church of England Primary School",
"Postcode": "BA227DE"
},
{
"SchoolName": "Shepton Beauchamp Church of England Primary School",
"Postcode": "TA190LQ"
},
{
"SchoolName": "Stogumber CofE Primary School",
"Postcode": "TA43TQ"
},
{
"SchoolName": "Abbas and Templecombe Church of England Primary School",
"Postcode": "BA80HP"
},
{
"SchoolName": "Walton Church of England Voluntary Controlled Primary School",
"Postcode": "BA169LA"
},
{
"SchoolName": "St Cuthbert's CofE Junior School",
"Postcode": "BA51TS"
},
{
"SchoolName": "St Lawrence's CofE Primary School",
"Postcode": "BA51HL"
},
{
"SchoolName": "West Pennard Church of England Primary School",
"Postcode": "BA68NT"
},
{
"SchoolName": "Upton Noble CofE VC Primary School",
"Postcode": "BA46AU"
},
{
"SchoolName": "St Paul's Church of England VC Junior School",
"Postcode": "BA45LA"
},
{
"SchoolName": "St Mary's Voluntary Controlled Church of England Primary School",
"Postcode": "TA67LX"
},
{
"SchoolName": "St Andrew's Church of England Voluntary Controlled Junior School",
"Postcode": "TA81ER"
},
{
"SchoolName": "Cannington Church of England Primary School",
"Postcode": "TA52HP"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "TA51NX"
},
{
"SchoolName": "Spaxton CofE Primary School",
"Postcode": "TA51BS"
},
{
"SchoolName": "Creech St Michael Church of England Primary School",
"Postcode": "TA35QQ"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "TA36SQ"
},
{
"SchoolName": "Kingston St Mary Church of England Primary School",
"Postcode": "TA28JH"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "TA210RD"
},
{
"SchoolName": "North Curry CofE VC Primary School",
"Postcode": "TA36NQ"
},
{
"SchoolName": "Rockwell Green Church of England Primary School",
"Postcode": "TA219DJ"
},
{
"SchoolName": "Stoke St Gregory Church of England Primary School",
"Postcode": "TA36EG"
},
{
"SchoolName": "West Monkton Church of England Primary School",
"Postcode": "TA28FT"
},
{
"SchoolName": "Berrow Church of England Primary School",
"Postcode": "TA82LJ"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "TA94EQ"
},
{
"SchoolName": "Shipham Church of England First School",
"Postcode": "BS251TX"
},
{
"SchoolName": "Ash Church of England Primary School",
"Postcode": "TA126NS"
},
{
"SchoolName": "Chilthorne Domer Church School",
"Postcode": "BA228RD"
},
{
"SchoolName": "Haselbury Plucknett Church of England First School",
"Postcode": "TA187RQ"
},
{
"SchoolName": "Norton-sub-Hamdon Church of England Primary School",
"Postcode": "TA146SF"
},
{
"SchoolName": "West Chinnock Church of England Primary School",
"Postcode": "TA187PU"
},
{
"SchoolName": "West Coker CofE VC Primary School",
"Postcode": "BA229AS"
},
{
"SchoolName": "Ruishton Church of England Primary School",
"Postcode": "TA35JZ"
},
{
"SchoolName": "Rode Methodist VC First School",
"Postcode": "BA116NZ"
},
{
"SchoolName": "Wembdon St George's Church of England Primary School",
"Postcode": "TA67PS"
},
{
"SchoolName": "Chewton Mendip Church of England VA Primary School",
"Postcode": "BA34LL"
},
{
"SchoolName": "Combe St Nicholas Church of England VA Primary School",
"Postcode": "TA203NG"
},
{
"SchoolName": "Croscombe Church of England Primary School",
"Postcode": "BA53QL"
},
{
"SchoolName": "Crowcombe CofE VA Primary School",
"Postcode": "TA44AA"
},
{
"SchoolName": "Cutcombe Church of England First School",
"Postcode": "TA247DZ"
},
{
"SchoolName": "Draycott and Rodney Stoke Church of England First School",
"Postcode": "BS273SD"
},
{
"SchoolName": "St Benedict's Church of England Voluntary Aided Junior School",
"Postcode": "BA69EX"
},
{
"SchoolName": "Kilmersdon Church of England Primary School",
"Postcode": "BA35TE"
},
{
"SchoolName": "Long Sutton CofE Primary School",
"Postcode": "TA109NT"
},
{
"SchoolName": "Norton St Philip Church of England First School",
"Postcode": "BA27LU"
},
{
"SchoolName": "St Dubricius Church of England VA School",
"Postcode": "TA248QJ"
},
{
"SchoolName": "Stogursey Church of England Primary School",
"Postcode": "TA51PR"
},
{
"SchoolName": "St Benedict's Catholic Primary School",
"Postcode": "BA34BD"
},
{
"SchoolName": "Timberscombe Church of England First School",
"Postcode": "TA247TY"
},
{
"SchoolName": "St Joseph and St Teresa Catholic Primary School",
"Postcode": "BA52QL"
},
{
"SchoolName": "St John's Church of England Voluntary Aided First School, Frome",
"Postcode": "BA111QG"
},
{
"SchoolName": "St Louis Catholic Primary School, Frome",
"Postcode": "BA113AP"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Bridgwater",
"Postcode": "TA67EE"
},
{
"SchoolName": "St Joseph's Catholic Primary School and Nursery",
"Postcode": "TA81LG"
},
{
"SchoolName": "Holy Trinity CofE VA Primary School",
"Postcode": "TA13AF"
},
{
"SchoolName": "Thurlbear Church of England Primary School",
"Postcode": "TA35BW"
},
{
"SchoolName": "Trull Church of England VA Primary School",
"Postcode": "TA37JZ"
},
{
"SchoolName": "St George's Catholic School",
"Postcode": "TA13NR"
},
{
"SchoolName": "Bishop Henderson Church of England Primary School, Taunton",
"Postcode": "TA14TU"
},
{
"SchoolName": "South Petherton Church of England Infants School",
"Postcode": "TA135DY"
},
{
"SchoolName": "St Margaret's School, Tintinhull",
"Postcode": "BA228PX"
},
{
"SchoolName": "Martock Church of England VA Primary School",
"Postcode": "TA126EF"
},
{
"SchoolName": "St Gildas Catholic Primary School",
"Postcode": "BA214EG"
},
{
"SchoolName": "Our Lady of Mount Carmel Catholic Primary School, Wincanton",
"Postcode": "BA99DH"
},
{
"SchoolName": "Knights Templar Church of England/Methodist Community School",
"Postcode": "TA230EX"
},
{
"SchoolName": "St Vigor and St John CofE School",
"Postcode": "BA34EX"
},
{
"SchoolName": "Frome Community College",
"Postcode": "BA112HQ"
},
{
"SchoolName": "King Arthur's Community School",
"Postcode": "BA99BX"
},
{
"SchoolName": "Dulverton Junior School",
"Postcode": "TA229EE"
},
{
"SchoolName": "Swanmead Community School",
"Postcode": "TA190BL"
},
{
"SchoolName": "Robert Blake Science College",
"Postcode": "TA66AW"
},
{
"SchoolName": "The King Alfred School",
"Postcode": "TA93EE"
},
{
"SchoolName": "Chilton Trinity",
"Postcode": "TA63JA"
},
{
"SchoolName": "Heathfield Community School",
"Postcode": "TA28PD"
},
{
"SchoolName": "Fairlands Middle School",
"Postcode": "BS273PG"
},
{
"SchoolName": "Wadham School",
"Postcode": "TA187NT"
},
{
"SchoolName": "Bruton Primary School",
"Postcode": "BA100DP"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "TA219EJ"
},
{
"SchoolName": "Charlton Horethorne Church of England Primary School",
"Postcode": "DT94NL"
},
{
"SchoolName": "Bruton School for Girls",
"Postcode": "BA100NT"
},
{
"SchoolName": "King's Bruton",
"Postcode": "BA100ED"
},
{
"SchoolName": "Perrott Hill School",
"Postcode": "TA187SL"
},
{
"SchoolName": "All Hallows School",
"Postcode": "BA44SF"
},
{
"SchoolName": "Downside School",
"Postcode": "BA34RJ"
},
{
"SchoolName": "Millfield School",
"Postcode": "BA160YD"
},
{
"SchoolName": "King's College",
"Postcode": "TA13LA"
},
{
"SchoolName": "Queen's College",
"Postcode": "TA14QS"
},
{
"SchoolName": "Taunton School",
"Postcode": "TA26AD"
},
{
"SchoolName": "Wells Cathedral School",
"Postcode": "BA52ST"
},
{
"SchoolName": "The Park School",
"Postcode": "BA201DH"
},
{
"SchoolName": "Marchant Holliday School",
"Postcode": "BA80AH"
},
{
"SchoolName": "Millfield Preparatory School",
"Postcode": "BA68LD"
},
{
"SchoolName": "Chard School",
"Postcode": "TA201QA"
},
{
"SchoolName": "Shapwick School",
"Postcode": "TA79NJ"
},
{
"SchoolName": "Wellington School",
"Postcode": "TA218NT"
},
{
"SchoolName": "Hazlegrove Preparatory School",
"Postcode": "BA227JA"
},
{
"SchoolName": "Mark College",
"Postcode": "TA94NP"
},
{
"SchoolName": "King's Hall School",
"Postcode": "TA28AA"
},
{
"SchoolName": "Elmwood School",
"Postcode": "TA66AP"
},
{
"SchoolName": "Sky College",
"Postcode": "TA27HW"
},
{
"SchoolName": "Fairmead School",
"Postcode": "BA214NZ"
},
{
"SchoolName": "Penrose School",
"Postcode": "TA67ET"
},
{
"SchoolName": "Selworthy Special School",
"Postcode": "TA28HD"
},
{
"SchoolName": "Fiveways Special School",
"Postcode": "BA215AZ"
},
{
"SchoolName": "Avalon School",
"Postcode": "BA160PS"
},
{
"SchoolName": "Critchill School",
"Postcode": "BA114LB"
},
{
"SchoolName": "Burnwood Nursery School",
"Postcode": "ST66PB"
},
{
"SchoolName": "Westfield Nursery School",
"Postcode": "ST31QZ"
},
{
"SchoolName": "Grange Nursery School",
"Postcode": "ST37AN"
},
{
"SchoolName": "Kingsland Nursery School",
"Postcode": "ST29AS"
},
{
"SchoolName": "Thomas Boughey Nursery School",
"Postcode": "ST42DQ"
},
{
"SchoolName": "Hednesford Nursery School",
"Postcode": "WS121AR"
},
{
"SchoolName": "Oaklands Nursery School",
"Postcode": "ST50EX"
},
{
"SchoolName": "Bentilee Nursery School",
"Postcode": "ST20HW"
},
{
"SchoolName": "Cotelands PRU Co John Ruskin College",
"Postcode": "CR28JJ"
},
{
"SchoolName": "Milton Primary School",
"Postcode": "ST27AF"
},
{
"SchoolName": "Sneyd Green Primary School",
"Postcode": "ST62NS"
},
{
"SchoolName": "Abbey Hulton Primary School",
"Postcode": "ST28BS"
},
{
"SchoolName": "Waterside Primary School",
"Postcode": "ST13JS"
},
{
"SchoolName": "Forest Park Primary School",
"Postcode": "ST15ED"
},
{
"SchoolName": "The Willows Primary School",
"Postcode": "ST47JY"
},
{
"SchoolName": "Oakhill Primary School",
"Postcode": "ST45NS"
},
{
"SchoolName": "Heron Cross Primary School",
"Postcode": "ST44LJ"
},
{
"SchoolName": "Clarice Cliff Primary School",
"Postcode": "ST43DP"
},
{
"SchoolName": "Ball Green Primary School",
"Postcode": "ST68AJ"
},
{
"SchoolName": "Hillside Primary School",
"Postcode": "ST27AS"
},
{
"SchoolName": "Sandford Hill Primary School",
"Postcode": "ST35AQ"
},
{
"SchoolName": "Grove Junior School",
"Postcode": "ST12NL"
},
{
"SchoolName": "Christ Church Primary School",
"Postcode": "DE143TE"
},
{
"SchoolName": "Grange Infant School",
"Postcode": "DE142HU"
},
{
"SchoolName": "Shobnall Primary School",
"Postcode": "DE142BB"
},
{
"SchoolName": "Victoria Community School",
"Postcode": "DE142LU"
},
{
"SchoolName": "Edge Hill Junior School",
"Postcode": "DE159NX"
},
{
"SchoolName": "Tower View Primary School",
"Postcode": "DE150EZ"
},
{
"SchoolName": "The Richard Clarke First School",
"Postcode": "WS153BT"
},
{
"SchoolName": "The Croft Primary School",
"Postcode": "WS154AZ"
},
{
"SchoolName": "Ravensmead Primary School",
"Postcode": "ST78QD"
},
{
"SchoolName": "Wood Lane Primary School",
"Postcode": "ST78PH"
},
{
"SchoolName": "Kingsfield First School",
"Postcode": "ST86AY"
},
{
"SchoolName": "Knypersley First School",
"Postcode": "ST86NN"
},
{
"SchoolName": "Moor First School",
"Postcode": "ST87HR"
},
{
"SchoolName": "Squirrel Hayes First School",
"Postcode": "ST87DF"
},
{
"SchoolName": "Rykneld Primary School",
"Postcode": "DE143EX"
},
{
"SchoolName": "Bridgtown Primary School",
"Postcode": "WS110AZ"
},
{
"SchoolName": "Chadsmoor Community Infants and Nursery School",
"Postcode": "WS116EU"
},
{
"SchoolName": "Hazel Slade Community Primary School",
"Postcode": "WS120PN"
},
{
"SchoolName": "Five Ways Primary School",
"Postcode": "WS122EZ"
},
{
"SchoolName": "West Hill Primary School",
"Postcode": "WS124BH"
},
{
"SchoolName": "Redhill Primary School",
"Postcode": "WS115JR"
},
{
"SchoolName": "Longford Primary School",
"Postcode": "WS111PD"
},
{
"SchoolName": "Werrington Primary School",
"Postcode": "ST90JU"
},
{
"SchoolName": "Cheadle Primary School",
"Postcode": "ST101EN"
},
{
"SchoolName": "Birches First School",
"Postcode": "WV82JG"
},
{
"SchoolName": "Manor Primary School",
"Postcode": "B783TX"
},
{
"SchoolName": "Millfield Primary School",
"Postcode": "B783RQ"
},
{
"SchoolName": "St Stephen's Primary School",
"Postcode": "WS138NL"
},
{
"SchoolName": "Fulford Primary School",
"Postcode": "ST119QT"
},
{
"SchoolName": "Thomas Barnes Primary School",
"Postcode": "B783AD"
},
{
"SchoolName": "Dove Bank Primary School",
"Postcode": "ST74AP"
},
{
"SchoolName": "The Reginald Mitchell Primary School",
"Postcode": "ST71NA"
},
{
"SchoolName": "Talbot First School",
"Postcode": "ST148QJ"
},
{
"SchoolName": "Brindley Heath Junior School",
"Postcode": "DY76AA"
},
{
"SchoolName": "Foley Infant School",
"Postcode": "DY76EW"
},
{
"SchoolName": "Springhead Primary School",
"Postcode": "ST71RA"
},
{
"SchoolName": "Leek First School",
"Postcode": "ST136LF"
},
{
"SchoolName": "Westwood First School",
"Postcode": "ST138DL"
},
{
"SchoolName": "Scotch Orchard Primary School",
"Postcode": "WS136DE"
},
{
"SchoolName": "Meadows Primary School",
"Postcode": "CW39JX"
},
{
"SchoolName": "H<NAME> Primary School",
"Postcode": "WS153QN"
},
{
"SchoolName": "Longwood Primary School",
"Postcode": "B783NH"
},
{
"SchoolName": "Green Lea First School",
"Postcode": "ST180EU"
},
{
"SchoolName": "Hassell Primary School",
"Postcode": "ST51LF"
},
{
"SchoolName": "May Bank Infants' School",
"Postcode": "ST50PT"
},
{
"SchoolName": "Westlands Primary School",
"Postcode": "ST52QY"
},
{
"SchoolName": "Western Springs Primary School",
"Postcode": "WS152PD"
},
{
"SchoolName": "Greysbrooke Primary School",
"Postcode": "WS140LT"
},
{
"SchoolName": "Little Aston Primary School",
"Postcode": "B743BE"
},
{
"SchoolName": "Oakridge Primary School",
"Postcode": "ST170PR"
},
{
"SchoolName": "Manor Hill First School",
"Postcode": "ST150HY"
},
{
"SchoolName": "William Shrewsbury Primary School",
"Postcode": "DE130HE"
},
{
"SchoolName": "Coton Green Primary School",
"Postcode": "B798LX"
},
{
"SchoolName": "Great Wood Community Primary School",
"Postcode": "ST104LE"
},
{
"SchoolName": "Bhylls Acre Primary School",
"Postcode": "WV38DZ"
},
{
"SchoolName": "Whittington Primary School",
"Postcode": "WS149LG"
},
{
"SchoolName": "Springfields First School",
"Postcode": "ST150NJ"
},
{
"SchoolName": "Endon Hall Primary School",
"Postcode": "ST99HH"
},
{
"SchoolName": "Ashcroft Infants' School",
"Postcode": "B798RU"
},
{
"SchoolName": "Marshbrook First School",
"Postcode": "ST195BA"
},
{
"SchoolName": "Oxhey First School",
"Postcode": "ST87EB"
},
{
"SchoolName": "<NAME> Junior School",
"Postcode": "DE138EU"
},
{
"SchoolName": "Hayes Meadow Primary School",
"Postcode": "WS154EU"
},
{
"SchoolName": "Woodcroft First School",
"Postcode": "ST138JG"
},
{
"SchoolName": "Dosthill Primary School",
"Postcode": "B771LQ"
},
{
"SchoolName": "Florendine Primary School",
"Postcode": "B773DD"
},
{
"SchoolName": "Two Gates Community Primary School",
"Postcode": "B771EN"
},
{
"SchoolName": "Wilnecote Junior School",
"Postcode": "B775LA"
},
{
"SchoolName": "Heathfields Infant School",
"Postcode": "B775LU"
},
{
"SchoolName": "The Woodlands Community Primary School",
"Postcode": "B773JX"
},
{
"SchoolName": "Willows Primary School",
"Postcode": "WS137NU"
},
{
"SchoolName": "Glenthorne Community Primary School",
"Postcode": "WS67BZ"
},
{
"SchoolName": "Springcroft Primary School",
"Postcode": "ST119JS"
},
{
"SchoolName": "Pirehill First School",
"Postcode": "ST150AA"
},
{
"SchoolName": "Hanbury's Farm Community Primary School",
"Postcode": "B772LD"
},
{
"SchoolName": "Oakhill Primary School",
"Postcode": "B772HH"
},
{
"SchoolName": "Chancel Primary School",
"Postcode": "WS152EW"
},
{
"SchoolName": "Bird's Bush Primary School",
"Postcode": "B772NE"
},
{
"SchoolName": "The John Bamford Primary School",
"Postcode": "WS152PA"
},
{
"SchoolName": "Lakeside Primary School",
"Postcode": "B772SA"
},
{
"SchoolName": "Princefield First School",
"Postcode": "ST195EP"
},
{
"SchoolName": "Lane Green First School",
"Postcode": "WV81EU"
},
{
"SchoolName": "Jerome Primary School",
"Postcode": "WS119TP"
},
{
"SchoolName": "Amington Heath Primary School and Nursery",
"Postcode": "B774EN"
},
{
"SchoolName": "Perton First School",
"Postcode": "WV67LX"
},
{
"SchoolName": "Stoneydelph Primary School",
"Postcode": "B774LS"
},
{
"SchoolName": "Gorsemoor Primary School",
"Postcode": "WS123TG"
},
{
"SchoolName": "Charnwood Primary School",
"Postcode": "WS137PH"
},
{
"SchoolName": "Cheslyn Hay Primary School",
"Postcode": "WS67JQ"
},
{
"SchoolName": "Landywood Primary School",
"Postcode": "WS66AQ"
},
{
"SchoolName": "Moat Hall Primary School",
"Postcode": "WS66BX"
},
{
"SchoolName": "Blakeley Heath Primary School",
"Postcode": "WV50JR"
},
{
"SchoolName": "Westfield Primary School",
"Postcode": "WV58BH"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "ST189PQ"
},
{
"SchoolName": "Tillington Manor Primary School",
"Postcode": "ST161PW"
},
{
"SchoolName": "St Leonard's Primary School",
"Postcode": "ST174LT"
},
{
"SchoolName": "Doxey Primary and Nursery School",
"Postcode": "ST161EG"
},
{
"SchoolName": "Burton Manor Primary School",
"Postcode": "ST179PS"
},
{
"SchoolName": "Castlechurch Primary School",
"Postcode": "ST179SY"
},
{
"SchoolName": "Flash Ley Primary School",
"Postcode": "ST179DR"
},
{
"SchoolName": "Chase Terrace Primary School",
"Postcode": "WS71AH"
},
{
"SchoolName": "Fulfen Primary School",
"Postcode": "WS79BJ"
},
{
"SchoolName": "Gentleshaw Primary School",
"Postcode": "WS154LY"
},
{
"SchoolName": "Highfields Primary School",
"Postcode": "WS79BT"
},
{
"SchoolName": "Holly Grove Primary School",
"Postcode": "WS71LU"
},
{
"SchoolName": "Ridgeway Primary School",
"Postcode": "WS74TU"
},
{
"SchoolName": "John of Rolleston Primary School",
"Postcode": "DE139AG"
},
{
"SchoolName": "W<NAME> Primary School",
"Postcode": "B772AF"
},
{
"SchoolName": "Moorhill Primary School",
"Postcode": "WS115RN"
},
{
"SchoolName": "Burnwood Community Primary School",
"Postcode": "ST67LP"
},
{
"SchoolName": "St Paul's CofE (C) Primary School",
"Postcode": "ST32RH"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "ST42JG"
},
{
"SchoolName": "All Saints CofE (C) Primary School",
"Postcode": "DE137EF"
},
{
"SchoolName": "<NAME> CofE (VC) Primary School",
"Postcode": "TF94NU"
},
{
"SchoolName": "Barlaston CofE (C) First School",
"Postcode": "ST129DB"
},
{
"SchoolName": "Berkswich CofE (VC) Primary School",
"Postcode": "ST170LU"
},
{
"SchoolName": "Betley CofE VC Primary School",
"Postcode": "CW39AX"
},
{
"SchoolName": "St John's CofE (C) First School",
"Postcode": "ST199AH"
},
{
"SchoolName": "St Mary and St Chad CE (VC) First School",
"Postcode": "ST199DT"
},
{
"SchoolName": "St Anne's CofE (VC) Primary School",
"Postcode": "ST68TA"
},
{
"SchoolName": "Chadsmoor CofE (VC) Junior School",
"Postcode": "WS116DR"
},
{
"SchoolName": "St Andrew's CofE (C) Primary School",
"Postcode": "B790AP"
},
{
"SchoolName": "St Paul's CofE (C) First School",
"Postcode": "WV95AD"
},
{
"SchoolName": "All Saints CofE (C) First School",
"Postcode": "ST145HT"
},
{
"SchoolName": "St Augustine's CofE (C) First School",
"Postcode": "DE65BY"
},
{
"SchoolName": "St Leonard's CofE (C) First School",
"Postcode": "ST189AG"
},
{
"SchoolName": "<NAME> CofE (VC) Primary School",
"Postcode": "B799JJ"
},
{
"SchoolName": "St Luke's CofE (VC) Primary School",
"Postcode": "ST99EB"
},
{
"SchoolName": "St Peter's CofE (C) Primary School",
"Postcode": "WS121BE"
},
{
"SchoolName": "St Michael's CofE (C) First School",
"Postcode": "ST138RU"
},
{
"SchoolName": "St John's CofE (C) Primary School",
"Postcode": "ST55AF"
},
{
"SchoolName": "St Saviour's CofE (VC) Primary School",
"Postcode": "ST71LW"
},
{
"SchoolName": "Christ Church CofE (C) Primary School",
"Postcode": "WS138AY"
},
{
"SchoolName": "St Michael's CofE (C) Primary School",
"Postcode": "WS149AW"
},
{
"SchoolName": "St Chad's CofE (VC) Primary School",
"Postcode": "WS136SN"
},
{
"SchoolName": "St Bartholomew's CofE (C) School",
"Postcode": "SK170NZ"
},
{
"SchoolName": "St Peter's CofE (VC) First School",
"Postcode": "ST148LH"
},
{
"SchoolName": "The Henry Prince CofE (C) First School",
"Postcode": "DE62LB"
},
{
"SchoolName": "St Chad's CofE (C) Primary School",
"Postcode": "ST57AB"
},
{
"SchoolName": "St Luke's CofE (C) Primary School",
"Postcode": "ST56QJ"
},
{
"SchoolName": "St Margaret's CofE (VC) Junior School",
"Postcode": "ST50HU"
},
{
"SchoolName": "St Chad's CofE (VC) First School",
"Postcode": "WV67AQ"
},
{
"SchoolName": "All Saints CofE (C) Primary School",
"Postcode": "DE139RW"
},
{
"SchoolName": "Churchfield CofE (C) Primary School",
"Postcode": "WS152LB"
},
{
"SchoolName": "Rushton CofE (C) Primary School",
"Postcode": "SK110SG"
},
{
"SchoolName": "All Saints CofE (C) First School",
"Postcode": "ST216RN"
},
{
"SchoolName": "St Michael's CofE (C) First School",
"Postcode": "ST158QB"
},
{
"SchoolName": "St John's CofE (C) Primary School",
"Postcode": "DY34NB"
},
{
"SchoolName": "Tittensor CofE (C) First School",
"Postcode": "ST129HP"
},
{
"SchoolName": "All Saints CofE (VC) Primary School",
"Postcode": "WV57HR"
},
{
"SchoolName": "<NAME> CofE (VC) Primary School",
"Postcode": "DE139NR"
},
{
"SchoolName": "St John's CofE (C) Primary School",
"Postcode": "ST90BN"
},
{
"SchoolName": "St Mary's CofE (C) First School",
"Postcode": "ST199PQ"
},
{
"SchoolName": "Blackshaw Moor CofE (VC) First School",
"Postcode": "ST138TW"
},
{
"SchoolName": "<NAME> CofE (VC) Primary School",
"Postcode": "CW39PJ"
},
{
"SchoolName": "Baldwins Gate CofE(VC) Primary School",
"Postcode": "ST55DF"
},
{
"SchoolName": "Hob Hill CE/Methodist (VC) Primary School",
"Postcode": "WS151ED"
},
{
"SchoolName": "Etching Hill CofE (C) Primary School",
"Postcode": "WS152XY"
},
{
"SchoolName": "Holy Trinity CofE (C) Primary School",
"Postcode": "DE141SN"
},
{
"SchoolName": "St Paul's CofE (C) Primary School",
"Postcode": "ST174BT"
},
{
"SchoolName": "All Saints CofE (VC) Primary School",
"Postcode": "ST189JU"
},
{
"SchoolName": "St Mark's CofE (A) Primary School",
"Postcode": "ST14LR"
},
{
"SchoolName": "St John's CofE (A) Primary School",
"Postcode": "ST46SB"
},
{
"SchoolName": "Hanley St Luke's CofE Aided Primary School",
"Postcode": "ST13QH"
},
{
"SchoolName": "St Modwen's Catholic Primary School",
"Postcode": "DE130AJ"
},
{
"SchoolName": "Holy Rosary Catholic Primary School",
"Postcode": "DE150JE"
},
{
"SchoolName": "St Peter's CofE (A) First School",
"Postcode": "ST104AW"
},
{
"SchoolName": "All Saints CofE (A) Primary School",
"Postcode": "ST170SD"
},
{
"SchoolName": "St Peter's CofE (A) Primary School",
"Postcode": "ST119EN"
},
{
"SchoolName": "Bishop Rawle CofE (A) Primary School",
"Postcode": "ST101QA"
},
{
"SchoolName": "Church Eaton Endowed (VA) Primary School",
"Postcode": "ST200AG"
},
{
"SchoolName": "Ilam CofE (VA) Primary School",
"Postcode": "DE62AZ"
},
{
"SchoolName": "Beresford Memorial CofE (A) First School",
"Postcode": "ST136NR"
},
{
"SchoolName": "All Saints CofE (A) First School",
"Postcode": "ST135QY"
},
{
"SchoolName": "St Mary's CofE (A) Primary School",
"Postcode": "TF94DN"
},
{
"SchoolName": "St Michael's CofE (A) First School",
"Postcode": "ST195DJ"
},
{
"SchoolName": "St Mary's CofE (A) First School",
"Postcode": "ST147LX"
},
{
"SchoolName": "St Leonard's CofE (A) Primary School",
"Postcode": "B799DX"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "WS110AE"
},
{
"SchoolName": "St Joseph and St Theresa Catholic Primary",
"Postcode": "WS73XL"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "WS121DE"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "WS149AN"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "WS151BN"
},
{
"SchoolName": "Our Lady and St Werburgh's Catholic Primary School",
"Postcode": "ST54AG"
},
{
"SchoolName": "St Elizabeth's Catholic Primary School",
"Postcode": "B798EN"
},
{
"SchoolName": "St Bernadette's Catholic Primary School",
"Postcode": "WV58DZ"
},
{
"SchoolName": "St Gabriel's Catholic Primary School",
"Postcode": "B772LF"
},
{
"SchoolName": "St Christopher's Catholic Primary School",
"Postcode": "WV81PF"
},
{
"SchoolName": "SS Peter and Paul Catholic Primary School",
"Postcode": "WS137NH"
},
{
"SchoolName": "St Thomas More Catholic Primary School",
"Postcode": "WS66PG"
},
{
"SchoolName": "Needwood CofE VA Primary School",
"Postcode": "DE138SU"
},
{
"SchoolName": "Anson CofE (A) Primary School",
"Postcode": "ST180SU"
},
{
"SchoolName": "St Thomas' CofE (A) Primary School",
"Postcode": "ST74HT"
},
{
"SchoolName": "St Leonard's CofE (VA) First School",
"Postcode": "ST102LY"
},
{
"SchoolName": "Trentham High School",
"Postcode": "ST48PQ"
},
{
"SchoolName": "Paulet High School",
"Postcode": "DE159RT"
},
{
"SchoolName": "Paget High School",
"Postcode": "DE143DR"
},
{
"SchoolName": "Sir <NAME>hey High School",
"Postcode": "ST78AP"
},
{
"SchoolName": "Norton Canes High School",
"Postcode": "WS119SP"
},
{
"SchoolName": "Blythe Bridge High School",
"Postcode": "ST119PW"
},
{
"SchoolName": "Moorside High School",
"Postcode": "ST90HP"
},
{
"SchoolName": "Codsall Community High School",
"Postcode": "WV81PQ"
},
{
"SchoolName": "Endon High School",
"Postcode": "ST99EE"
},
{
"SchoolName": "Great Wyrley High School",
"Postcode": "WS66LQ"
},
{
"SchoolName": "King Edward VI School",
"Postcode": "WS149EE"
},
{
"SchoolName": "Nether Stowe School",
"Postcode": "WS137NB"
},
{
"SchoolName": "Wolgarston High School",
"Postcode": "ST195RX"
},
{
"SchoolName": "The Friary School",
"Postcode": "WS137EW"
},
{
"SchoolName": "Cheslyn Hay Sport and Community High School",
"Postcode": "WS67JQ"
},
{
"SchoolName": "Walton Priory Middle School",
"Postcode": "ST150AL"
},
{
"SchoolName": "James Bateman Junior High School",
"Postcode": "ST87AT"
},
{
"SchoolName": "Oldfields Hall Middle School",
"Postcode": "ST147PL"
},
{
"SchoolName": "Perton Middle School",
"Postcode": "WV67NR"
},
{
"SchoolName": "King Edward VI High School",
"Postcode": "ST179YJ"
},
{
"SchoolName": "Abbot Beyne School",
"Postcode": "DE150JL"
},
{
"SchoolName": "Ryecroft CofE (C) Middle School",
"Postcode": "ST145NW"
},
{
"SchoolName": "Brewood CofE (C) Middle School",
"Postcode": "ST199DS"
},
{
"SchoolName": "Bilbrook CofE (VC) Middle School",
"Postcode": "WV81EU"
},
{
"SchoolName": "Blessed Robert Sutton Catholic Sports College",
"Postcode": "DE159SD"
},
{
"SchoolName": "Corbett VA CofE Primary School",
"Postcode": "DY75DU"
},
{
"SchoolName": "Stafford Manor High School",
"Postcode": "ST179DJ"
},
{
"SchoolName": "Cardinal Griffin Catholic College",
"Postcode": "WS114AW"
},
{
"SchoolName": "Abbots Bromley School",
"Postcode": "WS153BW"
},
{
"SchoolName": "St. Dominic's Brewood",
"Postcode": "ST199BA"
},
{
"SchoolName": "St Bede's School",
"Postcode": "ST170XN"
},
{
"SchoolName": "Denstone College",
"Postcode": "ST145HN"
},
{
"SchoolName": "Lichfield Cathedral School",
"Postcode": "WS137LH"
},
{
"SchoolName": "St Dominic's Priory School",
"Postcode": "ST158EN"
},
{
"SchoolName": "The Yarlet School",
"Postcode": "ST189SU"
},
{
"SchoolName": "Edenhurst Preparatory School",
"Postcode": "ST52PU"
},
{
"SchoolName": "Denstone College Preparatory School",
"Postcode": "ST148NS"
},
{
"SchoolName": "St Joseph's Preparatory School",
"Postcode": "ST45RF"
},
{
"SchoolName": "Chase Grammar School",
"Postcode": "WS110UR"
},
{
"SchoolName": "Newcastle-under-Lyme School",
"Postcode": "ST51DB"
},
{
"SchoolName": "Maple Hayes Hall School",
"Postcode": "WS138BL"
},
{
"SchoolName": "Stafford Grammar School",
"Postcode": "ST189AT"
},
{
"SchoolName": "Roaches School",
"Postcode": "ST87AB"
},
{
"SchoolName": "Horton Lodge Community Special School",
"Postcode": "ST138RB"
},
{
"SchoolName": "Portland School and Specialist College",
"Postcode": "ST119JG"
},
{
"SchoolName": "Abbey Hill School and Performing Arts College",
"Postcode": "ST35PR"
},
{
"SchoolName": "Watermill School",
"Postcode": "ST66JZ"
},
{
"SchoolName": "Kemball Special School",
"Postcode": "ST33JD"
},
{
"SchoolName": "The Fountains High School",
"Postcode": "DE130HB"
},
{
"SchoolName": "The Fountains Primary School",
"Postcode": "DE130HB"
},
{
"SchoolName": "Hednesford Valley High School",
"Postcode": "WS124JS"
},
{
"SchoolName": "Two Rivers High School",
"Postcode": "B772HJ"
},
{
"SchoolName": "Sherbrook Primary School",
"Postcode": "WS115SA"
},
{
"SchoolName": "Rocklands School",
"Postcode": "WS137PH"
},
{
"SchoolName": "Marshlands School",
"Postcode": "ST161PS"
},
{
"SchoolName": "Queen's Croft High School",
"Postcode": "WS136PJ"
},
{
"SchoolName": "Two Rivers Primary School",
"Postcode": "B774EN"
},
{
"SchoolName": "Greenhall Nursery",
"Postcode": "ST161PS"
},
{
"SchoolName": "Highfield Nursery School",
"Postcode": "IP16DW"
},
{
"SchoolName": "Old Warren House School",
"Postcode": "NR324QD"
},
{
"SchoolName": "Albany PRU",
"Postcode": "IP326SA"
},
{
"SchoolName": "Hampden House PRU",
"Postcode": "CO102SF"
},
{
"SchoolName": "Bildeston Primary School",
"Postcode": "IP77ES"
},
{
"SchoolName": "Clare Community Primary School",
"Postcode": "CO108PZ"
},
{
"SchoolName": "Elmswell Community Primary School",
"Postcode": "IP309UE"
},
{
"SchoolName": "Pot Kiln Primary School",
"Postcode": "CO100DS"
},
{
"SchoolName": "New Cangle Community Primary School",
"Postcode": "CB90DU"
},
{
"SchoolName": "Hundon Community Primary School",
"Postcode": "CO108EE"
},
{
"SchoolName": "Lakenheath Community Primary School",
"Postcode": "IP279DU"
},
{
"SchoolName": "Lavenham Community Primary School",
"Postcode": "CO109RB"
},
{
"SchoolName": "West Row Community Primary School",
"Postcode": "IP288NY"
},
{
"SchoolName": "Nayland Primary School",
"Postcode": "CO64HZ"
},
{
"SchoolName": "Exning Primary School",
"Postcode": "CB87EW"
},
{
"SchoolName": "Stanton Community Primary School",
"Postcode": "IP312AW"
},
{
"SchoolName": "Guildhall Feoffment Community Primary School",
"Postcode": "IP331RE"
},
{
"SchoolName": "Westgate Community Primary School",
"Postcode": "IP333JX"
},
{
"SchoolName": "Sexton's Manor Community Primary School",
"Postcode": "IP333HG"
},
{
"SchoolName": "Howard Community Primary School",
"Postcode": "IP326SA"
},
{
"SchoolName": "Hadleigh Community Primary School",
"Postcode": "IP75HQ"
},
{
"SchoolName": "Hardwick Primary School",
"Postcode": "IP332PW"
},
{
"SchoolName": "Glade Primary School",
"Postcode": "IP270DA"
},
{
"SchoolName": "Paddocks Primary School",
"Postcode": "CB80DL"
},
{
"SchoolName": "Barnby and North Cove Community Primary School",
"Postcode": "NR347QB"
},
{
"SchoolName": "Bucklesham Primary School",
"Postcode": "IP100AX"
},
{
"SchoolName": "Bungay Primary School",
"Postcode": "NR351HA"
},
{
"SchoolName": "Carlton Colville Primary School",
"Postcode": "NR338DG"
},
{
"SchoolName": "Claydon Primary School",
"Postcode": "IP60DX"
},
{
"SchoolName": "Combs Ford Primary School",
"Postcode": "IP142PN"
},
{
"SchoolName": "Copdock Primary School",
"Postcode": "IP83HY"
},
{
"SchoolName": "Earl Soham Community Primary School",
"Postcode": "IP137SA"
},
{
"SchoolName": "Causton Junior School",
"Postcode": "IP119ED"
},
{
"SchoolName": "Maidstone Infant School",
"Postcode": "IP119EG"
},
{
"SchoolName": "Fairfield Infant School",
"Postcode": "IP119JB"
},
{
"SchoolName": "Grundisburgh Primary School",
"Postcode": "IP136XH"
},
{
"SchoolName": "Edgar Sewter Community Primary School",
"Postcode": "IP198BU"
},
{
"SchoolName": "Helmingham Community Primary School",
"Postcode": "IP146EX"
},
{
"SchoolName": "Henley Primary School",
"Postcode": "IP60QX"
},
{
"SchoolName": "Holbrook Primary School",
"Postcode": "IP92PZ"
},
{
"SchoolName": "Hollesley Primary School",
"Postcode": "IP123RE"
},
{
"SchoolName": "Holton St Peter Community Primary School",
"Postcode": "IP198PL"
},
{
"SchoolName": "Ilketshall St Lawrence School",
"Postcode": "NR348ND"
},
{
"SchoolName": "Heath Primary School, Kesgrave",
"Postcode": "IP51JG"
},
{
"SchoolName": "Bealings School",
"Postcode": "IP136LW"
},
{
"SchoolName": "Melton Primary School",
"Postcode": "IP121PG"
},
{
"SchoolName": "Occold Primary School",
"Postcode": "IP237PL"
},
{
"SchoolName": "Otley Primary School",
"Postcode": "IP69NT"
},
{
"SchoolName": "Ringshall School",
"Postcode": "IP142JD"
},
{
"SchoolName": "Saxmundham Primary School",
"Postcode": "IP171XQ"
},
{
"SchoolName": "Shotley Community Primary School",
"Postcode": "IP91NR"
},
{
"SchoolName": "Somerleyton Primary School",
"Postcode": "NR325PT"
},
{
"SchoolName": "Somersham Primary School",
"Postcode": "IP84PN"
},
{
"SchoolName": "Southwold Primary School",
"Postcode": "IP186JP"
},
{
"SchoolName": "Freeman Community Primary School",
"Postcode": "IP144BQ"
},
{
"SchoolName": "Trimley St Mary Primary School",
"Postcode": "IP110ST"
},
{
"SchoolName": "Trimley St Martin Primary School",
"Postcode": "IP110QL"
},
{
"SchoolName": "Waldringfield Primary School",
"Postcode": "IP124QL"
},
{
"SchoolName": "Wenhaston Primary School",
"Postcode": "IP199EP"
},
{
"SchoolName": "Witnesham Primary School",
"Postcode": "IP69EX"
},
{
"SchoolName": "Woodbridge Primary School",
"Postcode": "IP121SS"
},
{
"SchoolName": "Wortham Primary School",
"Postcode": "IP221PX"
},
{
"SchoolName": "Chilton Community Primary School",
"Postcode": "IP141NN"
},
{
"SchoolName": "Colneis Junior School",
"Postcode": "IP119HH"
},
{
"SchoolName": "Gorseland Primary School",
"Postcode": "IP53QR"
},
{
"SchoolName": "Brooklands Primary School",
"Postcode": "CO111RX"
},
{
"SchoolName": "Kingsfleet Primary School",
"Postcode": "IP119LY"
},
{
"SchoolName": "Kyson Primary School",
"Postcode": "IP124HX"
},
{
"SchoolName": "Coldfair Green Community Primary School",
"Postcode": "IP171UY"
},
{
"SchoolName": "Grange Community Primary School",
"Postcode": "IP112LA"
},
{
"SchoolName": "Abbot's Hall Community Primary School",
"Postcode": "IP141QF"
},
{
"SchoolName": "Roman Hill Primary School",
"Postcode": "NR322NX"
},
{
"SchoolName": "Poplars Community Primary School",
"Postcode": "NR324HN"
},
{
"SchoolName": "Woods Loke Community Primary School",
"Postcode": "NR323EB"
},
{
"SchoolName": "Ranelagh Primary School",
"Postcode": "IP20AN"
},
{
"SchoolName": "Ravenswood Community Primary School",
"Postcode": "IP39UA"
},
{
"SchoolName": "Britannia Primary School and Nursery",
"Postcode": "IP45HE"
},
{
"SchoolName": "Clifford Road Primary School",
"Postcode": "IP41PJ"
},
{
"SchoolName": "Rose Hill Primary School",
"Postcode": "IP38DL"
},
{
"SchoolName": "Whitehouse Community Primary School",
"Postcode": "IP15JN"
},
{
"SchoolName": "Dale Hall Community Primary School",
"Postcode": "IP14LX"
},
{
"SchoolName": "Broke Hall Community Primary School",
"Postcode": "IP45XD"
},
{
"SchoolName": "Bosmere Community Primary School",
"Postcode": "IP68DA"
},
{
"SchoolName": "Stratford St Mary Primary School",
"Postcode": "CO76YG"
},
{
"SchoolName": "Oulton Broad Primary School",
"Postcode": "NR323JX"
},
{
"SchoolName": "Ickworth Park Primary School",
"Postcode": "IP295SB"
},
{
"SchoolName": "Rushmere Hall Primary School",
"Postcode": "IP43EJ"
},
{
"SchoolName": "Wood Ley Community Primary School",
"Postcode": "IP141UF"
},
{
"SchoolName": "Birchwood Primary School",
"Postcode": "IP53SP"
},
{
"SchoolName": "Sebert Wood Community Primary School",
"Postcode": "IP327EG"
},
{
"SchoolName": "Sandlings Primary School",
"Postcode": "IP123TD"
},
{
"SchoolName": "Acton Church of England Voluntary Controlled Primary School",
"Postcode": "CO100US"
},
{
"SchoolName": "Barnham Church of England Voluntary Controlled Primary School",
"Postcode": "IP242NG"
},
{
"SchoolName": "Barningham Church of England Voluntary Controlled Primary School",
"Postcode": "IP311DD"
},
{
"SchoolName": "Barrow Church of England Voluntary Controlled Primary School",
"Postcode": "IP295AU"
},
{
"SchoolName": "Boxford Church of England Voluntary Controlled Primary School",
"Postcode": "CO105NP"
},
{
"SchoolName": "Bures Church of England Voluntary Controlled Primary School",
"Postcode": "CO85BX"
},
{
"SchoolName": "Cavendish Church of England Primary School",
"Postcode": "CO108BA"
},
{
"SchoolName": "Cockfield Church of England Voluntary Controlled Primary School",
"Postcode": "IP300LA"
},
{
"SchoolName": "Elmsett Church of England VC Primary School",
"Postcode": "IP76PA"
},
{
"SchoolName": "Thurlow Voluntary Controlled Primary School",
"Postcode": "CB97HY"
},
{
"SchoolName": "Great Waldingfield Church of England Voluntary Controlled Primary School",
"Postcode": "CO100RR"
},
{
"SchoolName": "Great Whelnetham Church of England Voluntary Controlled Primary School",
"Postcode": "IP300UA"
},
{
"SchoolName": "Honington Church of England Voluntary Controlled Primary School",
"Postcode": "IP311RE"
},
{
"SchoolName": "Hopton Church of England Voluntary Controlled Primary School",
"Postcode": "IP222QY"
},
{
"SchoolName": "Ixworth Church of England Voluntary Controlled Primary School",
"Postcode": "IP312EL"
},
{
"SchoolName": "Kersey Church of England Voluntary Controlled Primary School",
"Postcode": "IP76EG"
},
{
"SchoolName": "All Saints' Church of England Voluntary Controlled Primary School, Lawshall",
"Postcode": "IP294QA"
},
{
"SchoolName": "Moulton Church of England Voluntary Controlled Primary School",
"Postcode": "CB88PR"
},
{
"SchoolName": "Norton CEVC Primary School",
"Postcode": "IP313LZ"
},
{
"SchoolName": "Risby Church of England Voluntary Controlled Primary School",
"Postcode": "IP286RT"
},
{
"SchoolName": "Stoke-by-Nayland Church of England Voluntary Controlled Primary School",
"Postcode": "CO64QY"
},
{
"SchoolName": "Walsham-le-Willows Church of England Voluntary Controlled Primary School",
"Postcode": "IP313BD"
},
{
"SchoolName": "Whatfield Church of England Voluntary Controlled Primary School",
"Postcode": "IP76QU"
},
{
"SchoolName": "Bawdsey Church of England Voluntary Controlled Primary School",
"Postcode": "IP123AR"
},
{
"SchoolName": "Bedfield Church of England Voluntary Controlled Primary School",
"Postcode": "IP137EA"
},
{
"SchoolName": "Benhall St Mary's Church of England Voluntary Controlled Primary School",
"Postcode": "IP171HE"
},
{
"SchoolName": "Bramford Church of England Voluntary Controlled Primary School",
"Postcode": "IP84AH"
},
{
"SchoolName": "Brampton CofE VC Primary School",
"Postcode": "NR348DW"
},
{
"SchoolName": "Charsfield Church of England Voluntary Controlled Primary School",
"Postcode": "IP137QB"
},
{
"SchoolName": "Corton Church of England Voluntary Aided Primary School",
"Postcode": "NR325HW"
},
{
"SchoolName": "Dennington Church of England Voluntary Controlled Primary School",
"Postcode": "IP138AE"
},
{
"SchoolName": "East Bergholt Church of England Voluntary Controlled Primary School",
"Postcode": "CO76SW"
},
{
"SchoolName": "Fressingfield Church of England Voluntary Controlled Primary School",
"Postcode": "IP215RU"
},
{
"SchoolName": "Great Finborough Church of England Voluntary Controlled Primary School",
"Postcode": "IP143AQ"
},
{
"SchoolName": "Crawford's Church of England Voluntary Controlled Primary School",
"Postcode": "IP143QZ"
},
{
"SchoolName": "Hintlesham and Chattisham Church of England Voluntary Controlled Primary School",
"Postcode": "IP83NH"
},
{
"SchoolName": "Kelsale Church of England Voluntary Controlled Primary School",
"Postcode": "IP172NP"
},
{
"SchoolName": "Ringsfield Church of England Voluntary Controlled Primary School",
"Postcode": "NR348NZ"
},
{
"SchoolName": "Stradbroke Church of England Voluntary Controlled Primary School",
"Postcode": "IP215HH"
},
{
"SchoolName": "Stutton Church of England Voluntary Controlled Primary School",
"Postcode": "IP92RY"
},
{
"SchoolName": "Tattingstone Church of England Voluntary Controlled Primary School",
"Postcode": "IP92NA"
},
{
"SchoolName": "Thorndon Church of England Voluntary Controlled Primary School",
"Postcode": "IP237JR"
},
{
"SchoolName": "Wetheringsett Church of England Voluntary Controlled Primary School",
"Postcode": "IP145PJ"
},
{
"SchoolName": "Wilby Church of England Voluntary Controlled Primary School",
"Postcode": "IP215LR"
},
{
"SchoolName": "Worlingham Church of England Voluntary Controlled Primary School",
"Postcode": "NR347SB"
},
{
"SchoolName": "Capel St Mary Church of England Voluntary Controlled Primary School",
"Postcode": "IP92EG"
},
{
"SchoolName": "Worlingworth Church of England Voluntary Controlled Primary School",
"Postcode": "IP137HX"
},
{
"SchoolName": "Blundeston Church of England Voluntary Controlled Primary School",
"Postcode": "NR325AX"
},
{
"SchoolName": "Bentley Church of England Voluntary Controlled Primary School",
"Postcode": "IP92BT"
},
{
"SchoolName": "Chelmondiston Church of England Voluntary Controlled Primary School",
"Postcode": "IP91DT"
},
{
"SchoolName": "Rougham Church of England Voluntary Controlled Primary School",
"Postcode": "IP309JJ"
},
{
"SchoolName": "St Gregory Church of England Voluntary Controlled Primary School",
"Postcode": "CO102BJ"
},
{
"SchoolName": "St Botolph's Church of England Voluntary Controlled Primary School",
"Postcode": "IP221DW"
},
{
"SchoolName": "All Saints Church of England Voluntary Aided Primary School, Newmarket",
"Postcode": "CB88JE"
},
{
"SchoolName": "St Edmundsbury Church of England Voluntary Aided Primary School",
"Postcode": "IP333BJ"
},
{
"SchoolName": "St Joseph's Roman Catholic Primary School",
"Postcode": "CO101JP"
},
{
"SchoolName": "St Edmund's Catholic Primary School",
"Postcode": "IP331QG"
},
{
"SchoolName": "Creeting St Mary Church of England Voluntary Aided Primary School",
"Postcode": "IP68NF"
},
{
"SchoolName": "St Peter and St Paul Church of England Voluntary Aided Primary School",
"Postcode": "IP237BD"
},
{
"SchoolName": "Stonham Aspal Church of England Voluntary Aided Primary School",
"Postcode": "IP146AF"
},
{
"SchoolName": "Sir <NAME> Church of England Voluntary Aided School",
"Postcode": "IP146PL"
},
{
"SchoolName": "Sir <NAME>'s Church of England Voluntary Aided Primary School",
"Postcode": "IP139EP"
},
{
"SchoolName": "All Saints Church of England Voluntary Aided Primary School, Laxfield",
"Postcode": "IP138HD"
},
{
"SchoolName": "Orford Church of England Voluntary Aided Primary School",
"Postcode": "IP122LU"
},
{
"SchoolName": "St John's Church of England Voluntary Aided Primary School, Ipswich",
"Postcode": "IP44LE"
},
{
"SchoolName": "St Margaret's Church of England Voluntary Aided Primary School, Ipswich",
"Postcode": "IP42BT"
},
{
"SchoolName": "St Matthew's Church of England Voluntary Aided Primary School, Ipswich",
"Postcode": "IP12AX"
},
{
"SchoolName": "St Mary's Catholic Primary School, Ipswich",
"Postcode": "IP44EU"
},
{
"SchoolName": "St Pancras Catholic Primary School, Ipswich",
"Postcode": "IP16EF"
},
{
"SchoolName": "St Mark's Catholic Primary School, Ipswich",
"Postcode": "IP29HN"
},
{
"SchoolName": "Thurston Community College",
"Postcode": "IP313PB"
},
{
"SchoolName": "Stowmarket High School",
"Postcode": "IP141QR"
},
{
"SchoolName": "Northgate High School",
"Postcode": "IP43DL"
},
{
"SchoolName": "King Edward VI Church of England Voluntary Controlled Upper School",
"Postcode": "IP333BH"
},
{
"SchoolName": "St Benedict's Catholic School",
"Postcode": "IP326RH"
},
{
"SchoolName": "Stoke College",
"Postcode": "CO108JE"
},
{
"SchoolName": "Orwell Park School",
"Postcode": "IP100ER"
},
{
"SchoolName": "Saint Felix School",
"Postcode": "IP186SD"
},
{
"SchoolName": "Summerhill School",
"Postcode": "IP164HY"
},
{
"SchoolName": "Fairstead House School",
"Postcode": "CB87AA"
},
{
"SchoolName": "Old Buckenham Hall School",
"Postcode": "IP77PH"
},
{
"SchoolName": "Barnardiston Hall Preparatory School",
"Postcode": "CB97TG"
},
{
"SchoolName": "South Lee School",
"Postcode": "IP332BT"
},
{
"SchoolName": "Moreton Hall School",
"Postcode": "IP327BJ"
},
{
"SchoolName": "Bramfield House School",
"Postcode": "IP199AB"
},
{
"SchoolName": "Ipswich School",
"Postcode": "IP13SG"
},
{
"SchoolName": "St Joseph's College",
"Postcode": "IP29DR"
},
{
"SchoolName": "Framlingham College",
"Postcode": "IP139EY"
},
{
"SchoolName": "The Old School",
"Postcode": "NR347LG"
},
{
"SchoolName": "Culford School",
"Postcode": "IP286TX"
},
{
"SchoolName": "Woodbridge School",
"Postcode": "IP124JH"
},
{
"SchoolName": "Ipswich High School",
"Postcode": "IP91AZ"
},
{
"SchoolName": "Royal Hospital School",
"Postcode": "IP92RX"
},
{
"SchoolName": "Centre Academy East Anglia",
"Postcode": "IP77QR"
},
{
"SchoolName": "Finborough School",
"Postcode": "IP143EF"
},
{
"SchoolName": "Brookes School Cambridge",
"Postcode": "IP286QJ"
},
{
"SchoolName": "Felixstowe International College",
"Postcode": "IP117RE"
},
{
"SchoolName": "Riverwalk School",
"Postcode": "IP333JZ"
},
{
"SchoolName": "Hillside Special School",
"Postcode": "CO101NN"
},
{
"SchoolName": "Warren School",
"Postcode": "NR338HT"
},
{
"SchoolName": "The Bridge School",
"Postcode": "IP83ND"
},
{
"SchoolName": "Chertsey Nursery School",
"Postcode": "KT169ER"
},
{
"SchoolName": "Dorking Nursery School",
"Postcode": "RH41BY"
},
{
"SchoolName": "The Wharf Nursery School & Children's Centre",
"Postcode": "GU71JG"
},
{
"SchoolName": "Fordway Centre",
"Postcode": "TW153DU"
},
{
"SchoolName": "Wey Valley College",
"Postcode": "GU28AA"
},
{
"SchoolName": "Wyke Primary School",
"Postcode": "GU32HS"
},
{
"SchoolName": "Kingswood Primary School",
"Postcode": "KT207EA"
},
{
"SchoolName": "Walton-on-the-Hill Primary School",
"Postcode": "KT207RR"
},
{
"SchoolName": "Woodmansterne Primary School",
"Postcode": "SM73HU"
},
{
"SchoolName": "Charlwood Village Primary School",
"Postcode": "RH60DA"
},
{
"SchoolName": "North Downs Primary School",
"Postcode": "RH37LA"
},
{
"SchoolName": "Trumps Green Infant School",
"Postcode": "GU254HD"
},
{
"SchoolName": "Manorcroft Primary School",
"Postcode": "TW209LX"
},
{
"SchoolName": "Ewell Grove Infant and Nursery School",
"Postcode": "KT171UZ"
},
{
"SchoolName": "Epsom Primary and Nursery School",
"Postcode": "KT198SD"
},
{
"SchoolName": "Auriol Junior School",
"Postcode": "KT190PJ"
},
{
"SchoolName": "The Mead Infant School",
"Postcode": "KT190QG"
},
{
"SchoolName": "West Ewell Infant School and Nursery",
"Postcode": "KT190UY"
},
{
"SchoolName": "The Orchard Infant School",
"Postcode": "KT89HT"
},
{
"SchoolName": "Hinchley Wood Primary School",
"Postcode": "KT100AQ"
},
{
"SchoolName": "Long Ditton Infant and Nursery School",
"Postcode": "KT65JB"
},
{
"SchoolName": "Thames Ditton Junior School",
"Postcode": "KT70BS"
},
{
"SchoolName": "Thames Ditton Infant School",
"Postcode": "KT70NW"
},
{
"SchoolName": "Felbridge Primary School",
"Postcode": "RH192NT"
},
{
"SchoolName": "Stoughton Infant School",
"Postcode": "GU29ZT"
},
{
"SchoolName": "Beacon Hill Community Primary School",
"Postcode": "GU266NR"
},
{
"SchoolName": "Shottermill Junior School",
"Postcode": "GU271JF"
},
{
"SchoolName": "Shottermill Infant School",
"Postcode": "GU271JZ"
},
{
"SchoolName": "Horley Infant School",
"Postcode": "RH67JF"
},
{
"SchoolName": "Barnett Wood Infant School",
"Postcode": "KT212DF"
},
{
"SchoolName": "Fetcham Village Infant School",
"Postcode": "KT229JU"
},
{
"SchoolName": "Dormansland Primary School",
"Postcode": "RH76PE"
},
{
"SchoolName": "Earlswood Infant and Nursery School",
"Postcode": "RH16DZ"
},
{
"SchoolName": "Holmesdale Community Infant School",
"Postcode": "RH20BY"
},
{
"SchoolName": "Merstham Primary School",
"Postcode": "RH13AZ"
},
{
"SchoolName": "St John's Primary School",
"Postcode": "RH16QG"
},
{
"SchoolName": "Shalford Infant School",
"Postcode": "GU48BY"
},
{
"SchoolName": "Oatlands School",
"Postcode": "KT139PZ"
},
{
"SchoolName": "Windlesham Village Infant School",
"Postcode": "GU206PB"
},
{
"SchoolName": "Bagshot Infant School",
"Postcode": "GU195BP"
},
{
"SchoolName": "Byfleet Primary School",
"Postcode": "KT147AT"
},
{
"SchoolName": "Knaphill School",
"Postcode": "GU212QH"
},
{
"SchoolName": "Maybury Primary School",
"Postcode": "GU215DW"
},
{
"SchoolName": "West Byfleet Infant School",
"Postcode": "KT146EF"
},
{
"SchoolName": "Wood Street Infant School",
"Postcode": "GU33DA"
},
{
"SchoolName": "Shawley Community Primary School",
"Postcode": "KT185PD"
},
{
"SchoolName": "The Greville Primary School",
"Postcode": "KT211SH"
},
{
"SchoolName": "Bushy Hill Junior School",
"Postcode": "GU12SG"
},
{
"SchoolName": "Hurst Green Infant School",
"Postcode": "RH80HJ"
},
{
"SchoolName": "Meath Green Junior School",
"Postcode": "RH68HW"
},
{
"SchoolName": "Milford School",
"Postcode": "GU85JA"
},
{
"SchoolName": "Dovers Green School",
"Postcode": "RH27RF"
},
{
"SchoolName": "Heather Ridge Infant School",
"Postcode": "GU151AY"
},
{
"SchoolName": "Oakfield Junior School",
"Postcode": "KT229ND"
},
{
"SchoolName": "South Camberley Primary & Nursery School",
"Postcode": "GU152QB"
},
{
"SchoolName": "Godstone Village School",
"Postcode": "RH98NH"
},
{
"SchoolName": "Banstead Community Junior School",
"Postcode": "SM72BQ"
},
{
"SchoolName": "Worplesdon Primary School",
"Postcode": "GU33NL"
},
{
"SchoolName": "West Ashtead Primary School",
"Postcode": "KT212PX"
},
{
"SchoolName": "Prior Heath Infant School",
"Postcode": "GU151DA"
},
{
"SchoolName": "Shawfield Primary School",
"Postcode": "GU126SX"
},
{
"SchoolName": "Warren Mead Infant School",
"Postcode": "SM71LS"
},
{
"SchoolName": "Darley Dene Primary School",
"Postcode": "KT152NP"
},
{
"SchoolName": "The Grange Community Infant School",
"Postcode": "KT153RL"
},
{
"SchoolName": "Hurst Park Primary School",
"Postcode": "KT81QS"
},
{
"SchoolName": "Pirbright Village Primary School",
"Postcode": "GU240JN"
},
{
"SchoolName": "Ongar Place Primary School",
"Postcode": "KT151NY"
},
{
"SchoolName": "Downs Way School",
"Postcode": "RH80NZ"
},
{
"SchoolName": "Godalming Junior School",
"Postcode": "GU73HW"
},
{
"SchoolName": "The Knaphill Lower School",
"Postcode": "GU212SX"
},
{
"SchoolName": "Folly Hill Infant School",
"Postcode": "GU90DB"
},
{
"SchoolName": "Moss Lane School",
"Postcode": "GU71EF"
},
{
"SchoolName": "Badshot Lea Village Infant School",
"Postcode": "GU99LE"
},
{
"SchoolName": "Polesden Lacey Infant School",
"Postcode": "KT234PT"
},
{
"SchoolName": "Crawley Ridge Infant School",
"Postcode": "GU152AJ"
},
{
"SchoolName": "Burhill Primary School",
"Postcode": "KT124HQ"
},
{
"SchoolName": "Grovelands Primary School",
"Postcode": "KT122EB"
},
{
"SchoolName": "Bell Farm Primary School",
"Postcode": "KT125NB"
},
{
"SchoolName": "Audley Primary School",
"Postcode": "CR35ED"
},
{
"SchoolName": "Meadowcroft Community Infant School",
"Postcode": "KT169PT"
},
{
"SchoolName": "Stamford Green Primary School",
"Postcode": "KT198LU"
},
{
"SchoolName": "Onslow Infant School",
"Postcode": "GU27DD"
},
{
"SchoolName": "Earlswood Junior School",
"Postcode": "RH16JX"
},
{
"SchoolName": "Holland Junior School",
"Postcode": "RH89BQ"
},
{
"SchoolName": "Reigate Priory Community Junior School",
"Postcode": "RH27RL"
},
{
"SchoolName": "Thorpe Lea Primary School",
"Postcode": "TW208DY"
},
{
"SchoolName": "St Ann's Heath Junior School",
"Postcode": "GU254DS"
},
{
"SchoolName": "Manby Lodge Infant School",
"Postcode": "KT139DA"
},
{
"SchoolName": "Crawley Ridge Junior School",
"Postcode": "GU152AJ"
},
{
"SchoolName": "William Cobbett Primary School",
"Postcode": "GU99ER"
},
{
"SchoolName": "Tillingbourne Junior School",
"Postcode": "GU48NB"
},
{
"SchoolName": "West Byfleet Junior School",
"Postcode": "KT146EF"
},
{
"SchoolName": "Meath Green Infant School",
"Postcode": "RH68JG"
},
{
"SchoolName": "Clarendon Primary School",
"Postcode": "TW152HZ"
},
{
"SchoolName": "Chennestone Primary School",
"Postcode": "TW165ED"
},
{
"SchoolName": "Spelthorne School",
"Postcode": "TW151LP"
},
{
"SchoolName": "Beauclerc Infant and Nursery School",
"Postcode": "TW165LE"
},
{
"SchoolName": "Busbridge Infant School",
"Postcode": "GU71PJ"
},
{
"SchoolName": "Englefield Green Infant School and Nurseries",
"Postcode": "TW200NP"
},
{
"SchoolName": "Langshott Primary School",
"Postcode": "RH69AU"
},
{
"SchoolName": "Hythe Primary School",
"Postcode": "TW183HD"
},
{
"SchoolName": "Claygate Primary School",
"Postcode": "KT100NB"
},
{
"SchoolName": "Sandcross Primary School",
"Postcode": "RH28HH"
},
{
"SchoolName": "Kingfield Primary School",
"Postcode": "GU229EQ"
},
{
"SchoolName": "Ashford Park Primary School",
"Postcode": "TW153HN"
},
{
"SchoolName": "Ash Grange Primary School",
"Postcode": "GU126LX"
},
{
"SchoolName": "Westfield Primary School",
"Postcode": "GU229PR"
},
{
"SchoolName": "Stepgates Community School",
"Postcode": "KT168HT"
},
{
"SchoolName": "Lingfield Primary School",
"Postcode": "RH76HA"
},
{
"SchoolName": "Chandlers Field Primary School",
"Postcode": "KT82LX"
},
{
"SchoolName": "Town Farm Primary School & Nursery",
"Postcode": "TW197HU"
},
{
"SchoolName": "Epsom Downs Primary School and Children's Centre",
"Postcode": "KT185RJ"
},
{
"SchoolName": "Wray Common Primary School",
"Postcode": "RH20LR"
},
{
"SchoolName": "Furzefield Primary School",
"Postcode": "RH13PA"
},
{
"SchoolName": "Hale School",
"Postcode": "GU90LR"
},
{
"SchoolName": "Walsh Memorial CofE Controlled Infant School",
"Postcode": "GU126LT"
},
{
"SchoolName": "Lyne and Longcross CofE Aided Primary School",
"Postcode": "KT160AJ"
},
{
"SchoolName": "Ottershaw CofE Junior School",
"Postcode": "KT160JY"
},
{
"SchoolName": "Holy Trinity CofE Primary School",
"Postcode": "GU249JQ"
},
{
"SchoolName": "Valley End CofE Infant School",
"Postcode": "GU248TB"
},
{
"SchoolName": "St Martin's CofE Controlled Primary School, Dorking",
"Postcode": "RH41HW"
},
{
"SchoolName": "St Martin's CofE (Aided) Junior School",
"Postcode": "KT187AD"
},
{
"SchoolName": "The Royal Kent CofE Primary School",
"Postcode": "KT220LE"
},
{
"SchoolName": "Farncombe Church of England Infant School",
"Postcode": "GU73LT"
},
{
"SchoolName": "Ripley CofE Primary School",
"Postcode": "GU236ED"
},
{
"SchoolName": "St Paul's CofE Infant School and Surestart Children's Centre, Tongham",
"Postcode": "GU101EF"
},
{
"SchoolName": "St Mary's CofE Voluntary Controlled Infant School",
"Postcode": "GU86AE"
},
{
"SchoolName": "St Mary's CofE Controlled Primary School, Byfleet",
"Postcode": "KT147NJ"
},
{
"SchoolName": "Powell Corderoy Primary School",
"Postcode": "RH43DF"
},
{
"SchoolName": "Frimley CofE Junior School",
"Postcode": "GU166ND"
},
{
"SchoolName": "Bisley CofE Primary School",
"Postcode": "GU249DF"
},
{
"SchoolName": "Ottershaw CofE Infant School",
"Postcode": "KT160JT"
},
{
"SchoolName": "Walsh CofE Junior School",
"Postcode": "GU126LT"
},
{
"SchoolName": "St Martin's CofE Aided Infant School, Epsom",
"Postcode": "KT187AA"
},
{
"SchoolName": "Witley CofE Controlled Infant School",
"Postcode": "GU85PN"
},
{
"SchoolName": "Merrow CofE Controlled Infant School",
"Postcode": "GU47EA"
},
{
"SchoolName": "Potters Gate CofE Primary School",
"Postcode": "GU97BB"
},
{
"SchoolName": "St James CofE Primary School",
"Postcode": "KT138PL"
},
{
"SchoolName": "St John's CofE Aided Primary School",
"Postcode": "CR36RN"
},
{
"SchoolName": "St Peter and St Paul CofE Infant School",
"Postcode": "CR35BN"
},
{
"SchoolName": "Chilworth CofE (Aided) Infant School",
"Postcode": "GU48NP"
},
{
"SchoolName": "St Lawrence CofE (Aided) Primary School",
"Postcode": "GU248AB"
},
{
"SchoolName": "St Michael's CofE Aided Infant School",
"Postcode": "RH56EW"
},
{
"SchoolName": "St Paul's CofE (Aided) Primary School",
"Postcode": "RH42HS"
},
{
"SchoolName": "St Jude's Church of England Junior School (VA)",
"Postcode": "TW200RU"
},
{
"SchoolName": "Thorpe CofE Aided Primary School",
"Postcode": "TW208QD"
},
{
"SchoolName": "Christ Church CofE Aided Infant School, Virginia Water",
"Postcode": "GU254PX"
},
{
"SchoolName": "St James CofE Aided Primary School",
"Postcode": "GU86DH"
},
{
"SchoolName": "St Matthew's CofE Aided Infant School, Cobham",
"Postcode": "KT113NA"
},
{
"SchoolName": "St Lawrence CofE Aided Junior School, East Molesey",
"Postcode": "KT89DR"
},
{
"SchoolName": "Long Ditton St Mary's CofE (Aided) Junior School",
"Postcode": "KT70AD"
},
{
"SchoolName": "Ewhurst CofE Aided Infant School",
"Postcode": "GU67PX"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "GU98TF"
},
{
"SchoolName": "St Mary's CofE Aided Infant School, Frensham",
"Postcode": "GU103DS"
},
{
"SchoolName": "St John's CofE Aided Infant School",
"Postcode": "GU102JE"
},
{
"SchoolName": "Green Oak CofE Primary School and Nursery",
"Postcode": "GU72LD"
},
{
"SchoolName": "Busbridge CofE Aided Junior School",
"Postcode": "GU71XA"
},
{
"SchoolName": "St Stephen's CofE Primary School",
"Postcode": "RH98HR"
},
{
"SchoolName": "St Nicolas CofE Aided Infant School",
"Postcode": "GU24YD"
},
{
"SchoolName": "St Giles' CofE (Aided) Infant School",
"Postcode": "KT211EA"
},
{
"SchoolName": "Limpsfield CofE Infant School",
"Postcode": "RH80EA"
},
{
"SchoolName": "Newdigate CofE Endowed Aided Infant School",
"Postcode": "RH55DJ"
},
{
"SchoolName": "Nutfield Church CofE Primary School",
"Postcode": "RH14JJ"
},
{
"SchoolName": "St Mary's CofE Junior School",
"Postcode": "RH80NP"
},
{
"SchoolName": "Puttenham CofE Infant School",
"Postcode": "GU31AS"
},
{
"SchoolName": "Reigate Parish Church Primary School",
"Postcode": "RH27DB"
},
{
"SchoolName": "St Peter's CofE Infant School",
"Postcode": "RH89NN"
},
{
"SchoolName": "All Saints CofE Aided Infant School",
"Postcode": "GU102DA"
},
{
"SchoolName": "Clandon CofE Aided Primary School",
"Postcode": "GU47ST"
},
{
"SchoolName": "The Chandler CofE Aided Junior School",
"Postcode": "GU85PB"
},
{
"SchoolName": "Horsell CofE Aided Junior School",
"Postcode": "GU214TA"
},
{
"SchoolName": "Wonersh and Shamley Green CofE Aided Primary School",
"Postcode": "GU50RT"
},
{
"SchoolName": "St Francis Catholic Primary School",
"Postcode": "CR35ED"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "RH43JA"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "KT187RT"
},
{
"SchoolName": "St Polycarp's Catholic Primary School, Farnham",
"Postcode": "GU98BQ"
},
{
"SchoolName": "St Cuthbert's Catholic Primary School, Englefield Green",
"Postcode": "TW200RY"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "KT227JN"
},
{
"SchoolName": "St Paul's Catholic Primary School, <NAME>",
"Postcode": "KT70LP"
},
{
"SchoolName": "The Marist Catholic Primary School",
"Postcode": "KT146HS"
},
{
"SchoolName": "St Ignatius RC Primary School",
"Postcode": "TW166QG"
},
{
"SchoolName": "Our Lady of the Rosary RC Primary School",
"Postcode": "TW182EF"
},
{
"SchoolName": "St Edmund's Catholic Primary School",
"Postcode": "GU71PF"
},
{
"SchoolName": "Send CofE Primary School",
"Postcode": "GU237BS"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "SM72PH"
},
{
"SchoolName": "St Clement's Catholic Primary School",
"Postcode": "KT171TX"
},
{
"SchoolName": "St Cuthbert Mayne Catholic Primary School, Cranleigh",
"Postcode": "GU67AQ"
},
{
"SchoolName": "Ashford CofE Primary School",
"Postcode": "TW152BW"
},
{
"SchoolName": "Laleham CofE VA Primary School",
"Postcode": "TW181SB"
},
{
"SchoolName": "St Nicholas CofE Primary School",
"Postcode": "TW179AD"
},
{
"SchoolName": "Littleton CofE Infant School",
"Postcode": "TW170QE"
},
{
"SchoolName": "St Michael Catholic Primary School",
"Postcode": "TW152DG"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Redhill",
"Postcode": "RH11DU"
},
{
"SchoolName": "St Matthew's CofE Primary School",
"Postcode": "RH11JF"
},
{
"SchoolName": "St Dunstan's Catholic Primary School, Woking",
"Postcode": "GU227AX"
},
{
"SchoolName": "Scott Broadwood CofE Infant School",
"Postcode": "RH55JX"
},
{
"SchoolName": "St Bartholomew's CofE Aided Primary School",
"Postcode": "GU271BP"
},
{
"SchoolName": "Bramley CofE Aided Infant School and Nursery",
"Postcode": "GU50HX"
},
{
"SchoolName": "Grayswood Church of England (Aided) Primary School",
"Postcode": "GU272DR"
},
{
"SchoolName": "Shere CofE Aided Infant School",
"Postcode": "GU59HB"
},
{
"SchoolName": "Broadwater School",
"Postcode": "GU73BW"
},
{
"SchoolName": "Reigate School",
"Postcode": "RH27NT"
},
{
"SchoolName": "Glebelands School",
"Postcode": "GU67AN"
},
{
"SchoolName": "Ash Manor School",
"Postcode": "GU126QH"
},
{
"SchoolName": "Oakwood School",
"Postcode": "RH69AE"
},
{
"SchoolName": "St Andrew's Catholic School",
"Postcode": "KT227JP"
},
{
"SchoolName": "St Peter's Catholic School",
"Postcode": "GU12TN"
},
{
"SchoolName": "St Bede's School",
"Postcode": "RH12LQ"
},
{
"SchoolName": "Royal Alexandra and Albert School",
"Postcode": "RH20TD"
},
{
"SchoolName": "The Priory CofE Voluntary Aided School",
"Postcode": "RH43DG"
},
{
"SchoolName": "Hawkedale Infants - A Foundation School",
"Postcode": "TW166PG"
},
{
"SchoolName": "Holy Trinity, Guildford, CofE Aided Junior School",
"Postcode": "GU13QF"
},
{
"SchoolName": "Yattendon School",
"Postcode": "RH67BZ"
},
{
"SchoolName": "St Thomas of Canterbury Catholic Primary School",
"Postcode": "GU12SX"
},
{
"SchoolName": "Burstow Primary School",
"Postcode": "RH69PT"
},
{
"SchoolName": "Park Mead Primary",
"Postcode": "GU67HB"
},
{
"SchoolName": "Northmead Junior School",
"Postcode": "GU29ZA"
},
{
"SchoolName": "Tadworth Primary School",
"Postcode": "KT205RR"
},
{
"SchoolName": "Wallace Fields Junior School",
"Postcode": "KT173BH"
},
{
"SchoolName": "Burpham Foundation Primary School",
"Postcode": "GU47LZ"
},
{
"SchoolName": "St Paul's Catholic College",
"Postcode": "TW166JE"
},
{
"SchoolName": "The Winston Churchill School A Specialist Sports College",
"Postcode": "GU218TL"
},
{
"SchoolName": "All Hallows Catholic School",
"Postcode": "GU99HF"
},
{
"SchoolName": "Aberdour Preparatory School",
"Postcode": "KT206AJ"
},
{
"SchoolName": "Greenacre School for Girls",
"Postcode": "SM73RA"
},
{
"SchoolName": "Priory School",
"Postcode": "SM72AJ"
},
{
"SchoolName": "St Catherine's School",
"Postcode": "GU50DF"
},
{
"SchoolName": "Reeds School",
"Postcode": "KT112ES"
},
{
"SchoolName": "Prior's Field School",
"Postcode": "GU72RH"
},
{
"SchoolName": "Cranleigh School",
"Postcode": "GU68QQ"
},
{
"SchoolName": "Parkside School",
"Postcode": "KT113PX"
},
{
"SchoolName": "Bishopsgate School",
"Postcode": "TW200YJ"
},
{
"SchoolName": "Kingswood House School",
"Postcode": "KT198LG"
},
{
"SchoolName": "St Christopher's School",
"Postcode": "KT185HE"
},
{
"SchoolName": "Epsom College",
"Postcode": "KT174JQ"
},
{
"SchoolName": "Rowan Preparatory School",
"Postcode": "KT100LX"
},
{
"SchoolName": "Claremont Fan Court School",
"Postcode": "KT109LY"
},
{
"SchoolName": "Milbourne Lodge Senior School",
"Postcode": "KT109EG"
},
{
"SchoolName": "Duke of Kent School",
"Postcode": "GU67NS"
},
{
"SchoolName": "Edgeborough School",
"Postcode": "GU103AH"
},
{
"SchoolName": "Frensham Heights School",
"Postcode": "GU104EA"
},
{
"SchoolName": "Charterhouse",
"Postcode": "GU72DX"
},
{
"SchoolName": "St Hilary's School",
"Postcode": "GU71RZ"
},
{
"SchoolName": "Guildford High School",
"Postcode": "GU11SJ"
},
{
"SchoolName": "Lanesborough School",
"Postcode": "GU12EL"
},
{
"SchoolName": "Rydes Hill Preparatory School",
"Postcode": "GU28BP"
},
{
"SchoolName": "Tormead School",
"Postcode": "GU12JD"
},
{
"SchoolName": "Amesbury School",
"Postcode": "GU266BL"
},
{
"SchoolName": "St Edmund's School",
"Postcode": "GU266BH"
},
{
"SchoolName": "The Royal School",
"Postcode": "GU271HQ"
},
{
"SchoolName": "City of London Freemen's School",
"Postcode": "KT211ET"
},
{
"SchoolName": "Downsend School",
"Postcode": "KT228TJ"
},
{
"SchoolName": "Manor House School",
"Postcode": "KT234EN"
},
{
"SchoolName": "St John's School, Leatherhead",
"Postcode": "KT228SP"
},
{
"SchoolName": "The Hawthorns School",
"Postcode": "RH14QJ"
},
{
"SchoolName": "Dunottar School",
"Postcode": "RH27EL"
},
{
"SchoolName": "Micklefield School",
"Postcode": "RH29DU"
},
{
"SchoolName": "Feltonfleet School",
"Postcode": "KT111DR"
},
{
"SchoolName": "The Danesfield Manor School",
"Postcode": "KT123JB"
},
{
"SchoolName": "St George's College Weybridge",
"Postcode": "KT152QS"
},
{
"SchoolName": "Woodcote House School",
"Postcode": "GU206PF"
},
{
"SchoolName": "King Edward's School Witley",
"Postcode": "GU85SG"
},
{
"SchoolName": "Barrow Hills School",
"Postcode": "GU85NY"
},
{
"SchoolName": "St Andrew's Woking School Trust",
"Postcode": "GU214QW"
},
{
"SchoolName": "Aldro School",
"Postcode": "GU86AS"
},
{
"SchoolName": "Woldingham School",
"Postcode": "CR37YA"
},
{
"SchoolName": "Lyndhurst School",
"Postcode": "GU153NE"
},
{
"SchoolName": "Oakhyrst Grange School",
"Postcode": "CR36AF"
},
{
"SchoolName": "Shrewsbury Lodge School",
"Postcode": "KT109EA"
},
{
"SchoolName": "Notre Dame Senior School",
"Postcode": "KT111HA"
},
{
"SchoolName": "Belmont School",
"Postcode": "RH56LQ"
},
{
"SchoolName": "Glenesk School",
"Postcode": "KT246NS"
},
{
"SchoolName": "Downsend Pre-Prep Epsom",
"Postcode": "KT173AB"
},
{
"SchoolName": "Ewell Castle School",
"Postcode": "KT172AW"
},
{
"SchoolName": "St Ives School",
"Postcode": "GU272ES"
},
{
"SchoolName": "Moon Hall College/Burys Court",
"Postcode": "RH28RE"
},
{
"SchoolName": "Hazelwood School",
"Postcode": "RH80QU"
},
{
"SchoolName": "Lingfield Notre Dame",
"Postcode": "RH76PH"
},
{
"SchoolName": "Box Hill School",
"Postcode": "RH56EA"
},
{
"SchoolName": "Danes Hill Preparatory School",
"Postcode": "KT220JG"
},
{
"SchoolName": "Ripley Court School",
"Postcode": "GU236NE"
},
{
"SchoolName": "Barfield School",
"Postcode": "GU101PB"
},
{
"SchoolName": "Longacre School",
"Postcode": "GU50NQ"
},
{
"SchoolName": "Chinthurst School",
"Postcode": "KT205QZ"
},
{
"SchoolName": "Bramley School",
"Postcode": "KT207ST"
},
{
"SchoolName": "Westward School",
"Postcode": "KT121LE"
},
{
"SchoolName": "Hoe Bridge School",
"Postcode": "GU228JE"
},
{
"SchoolName": "Greenfield School",
"Postcode": "GU227TP"
},
{
"SchoolName": "Halstead Preparatory School",
"Postcode": "GU214EE"
},
{
"SchoolName": "St Teresa's School",
"Postcode": "RH56ST"
},
{
"SchoolName": "More House School",
"Postcode": "GU103AP"
},
{
"SchoolName": "St John's Beaumont School",
"Postcode": "SL42JN"
},
{
"SchoolName": "Downsend Pre-Prep Leatherhead",
"Postcode": "KT228ST"
},
{
"SchoolName": "Copthorne Preparatory School",
"Postcode": "RH103HR"
},
{
"SchoolName": "Hall Grove School",
"Postcode": "GU195HZ"
},
{
"SchoolName": "Halliford School",
"Postcode": "TW179HX"
},
{
"SchoolName": "Staines Preparatory School",
"Postcode": "TW182BT"
},
{
"SchoolName": "Cranmore Preparatory School",
"Postcode": "KT246AT"
},
{
"SchoolName": "Essendene Lodge School",
"Postcode": "CR35PB"
},
{
"SchoolName": "ACS Cobham International School",
"Postcode": "KT111BL"
},
{
"SchoolName": "Reigate Grammar School",
"Postcode": "RH20QS"
},
{
"SchoolName": "T A S I S",
"Postcode": "TW208TE"
},
{
"SchoolName": "Royal Grammar School",
"Postcode": "GU13BB"
},
{
"SchoolName": "<NAME> School",
"Postcode": "KT169BN"
},
{
"SchoolName": "Caterham School",
"Postcode": "CR36YA"
},
{
"SchoolName": "Yehudi Menuhin School",
"Postcode": "KT113QQ"
},
{
"SchoolName": "Coworth-Flexlands School",
"Postcode": "GU248TE"
},
{
"SchoolName": "Downsend School Pre-Prep Ashtead",
"Postcode": "KT212RE"
},
{
"SchoolName": "Moon Hall School for Dyslexic Children",
"Postcode": "RH56LQ"
},
{
"SchoolName": "Warlingham Park School",
"Postcode": "CR69PB"
},
{
"SchoolName": "Knowl Hill School",
"Postcode": "GU240JN"
},
{
"SchoolName": "Weston Green Preparatory School",
"Postcode": "KT70JN"
},
{
"SchoolName": "International School of London(Surrey) Limited",
"Postcode": "GU228HY"
},
{
"SchoolName": "Hurtwood House School",
"Postcode": "RH56NU"
},
{
"SchoolName": "St George's Junior School Weybridge",
"Postcode": "KT138NL"
},
{
"SchoolName": "Caterham Preparatory School",
"Postcode": "CR36YB"
},
{
"SchoolName": "Notre Dame Preparatory School",
"Postcode": "KT111HA"
},
{
"SchoolName": "St Teresa's Preparatory School",
"Postcode": "RH56ST"
},
{
"SchoolName": "St Piers School (Young Epilepsy)",
"Postcode": "RH76PW"
},
{
"SchoolName": "Moor House School & College",
"Postcode": "RH89AQ"
},
{
"SchoolName": "St Dominic's School",
"Postcode": "GU84DX"
},
{
"SchoolName": "St Joseph's Specialist School and College",
"Postcode": "GU67DH"
},
{
"SchoolName": "Chart Wood School",
"Postcode": "RH13PU"
},
{
"SchoolName": "Sunnydown School",
"Postcode": "CR35ED"
},
{
"SchoolName": "Limpsfield Grange School",
"Postcode": "RH80RZ"
},
{
"SchoolName": "The Park School",
"Postcode": "GU227AT"
},
{
"SchoolName": "Wey House School",
"Postcode": "GU50BJ"
},
{
"SchoolName": "Walton Leigh School",
"Postcode": "KT125AB"
},
{
"SchoolName": "Clifton Hill School",
"Postcode": "CR35PN"
},
{
"SchoolName": "Brooklands School",
"Postcode": "RH20DF"
},
{
"SchoolName": "Manor Mead School",
"Postcode": "TW178EL"
},
{
"SchoolName": "Portesbery School",
"Postcode": "GU166TA"
},
{
"SchoolName": "The Abbey School",
"Postcode": "GU98DY"
},
{
"SchoolName": "Meath School",
"Postcode": "KT160LF"
},
{
"SchoolName": "Philip Southcote School",
"Postcode": "KT152QH"
},
{
"SchoolName": "Woodfield School",
"Postcode": "RH13PR"
},
{
"SchoolName": "Grafham Grange School",
"Postcode": "GU50LH"
},
{
"SchoolName": "Atherstone Nursery School",
"Postcode": "CV91LF"
},
{
"SchoolName": "Bedworth Heath Nursery School",
"Postcode": "CV120DP"
},
{
"SchoolName": "Whitnash Nursery School",
"Postcode": "CV312PW"
},
{
"SchoolName": "Kenilworth Nursery School",
"Postcode": "CV81JP"
},
{
"SchoolName": "Warwick Nursery School",
"Postcode": "CV344LJ"
},
{
"SchoolName": "Stockingford Early Years Centre & Library",
"Postcode": "CV108HW"
},
{
"SchoolName": "Nursery Hill Primary School",
"Postcode": "CV100PY"
},
{
"SchoolName": "Claverdon Primary School",
"Postcode": "CV358QA"
},
{
"SchoolName": "Wheelwright Lane Primary School",
"Postcode": "CV79HN"
},
{
"SchoolName": "Great Alne Primary School",
"Postcode": "B496HQ"
},
{
"SchoolName": "<NAME> Junior School",
"Postcode": "CV100SZ"
},
{
"SchoolName": "<NAME> Infant School",
"Postcode": "CV100LS"
},
{
"SchoolName": "Hurley Primary School",
"Postcode": "CV92HY"
},
{
"SchoolName": "Quinton Primary School",
"Postcode": "CV378SA"
},
{
"SchoolName": "Snitterfield Primary School",
"Postcode": "CV370JL"
},
{
"SchoolName": "Thomas Jolyffe Primary School",
"Postcode": "CV376TE"
},
{
"SchoolName": "Bridgetown Primary School",
"Postcode": "CV377JP"
},
{
"SchoolName": "Studley Community Infants' School",
"Postcode": "B807HJ"
},
{
"SchoolName": "Welford-on-Avon Primary School",
"Postcode": "CV378ER"
},
{
"SchoolName": "Lighthorne Heath Primary School",
"Postcode": "CV339TW"
},
{
"SchoolName": "Chilvers Coton Community Infant School",
"Postcode": "CV115RB"
},
{
"SchoolName": "Galley Common Infant School",
"Postcode": "CV109NZ"
},
{
"SchoolName": "Stockingford Primary School",
"Postcode": "CV108JH"
},
{
"SchoolName": "Whitestone Infant School",
"Postcode": "CV114SQ"
},
{
"SchoolName": "Thorns Community Infant School",
"Postcode": "CV82DS"
},
{
"SchoolName": "Clinton Primary School",
"Postcode": "CV81DL"
},
{
"SchoolName": "Park Hill Junior School",
"Postcode": "CV82JJ"
},
{
"SchoolName": "Clapham Terrace Community Primary School and Nursery",
"Postcode": "CV311HZ"
},
{
"SchoolName": "Telford Junior School",
"Postcode": "CV327HP"
},
{
"SchoolName": "Westgate Primary School",
"Postcode": "CV344DD"
},
{
"SchoolName": "Whitnash Primary School",
"Postcode": "CV312EX"
},
{
"SchoolName": "Telford Infant School",
"Postcode": "CV327TE"
},
{
"SchoolName": "Briar Hill Infant School",
"Postcode": "CV312JF"
},
{
"SchoolName": "Brookhurst Primary School",
"Postcode": "CV326NH"
},
{
"SchoolName": "Emscote Infant School",
"Postcode": "CV345NH"
},
{
"SchoolName": "Long Lawford Primary School",
"Postcode": "CV239AL"
},
{
"SchoolName": "Abbots Farm Infant School",
"Postcode": "CV214AP"
},
{
"SchoolName": "Eastlands Primary School",
"Postcode": "CV213RY"
},
{
"SchoolName": "Northlands Primary School",
"Postcode": "CV212SS"
},
{
"SchoolName": "Bilton Infant School",
"Postcode": "CV227NH"
},
{
"SchoolName": "Abbots Farm Junior School",
"Postcode": "CV214AP"
},
{
"SchoolName": "Bawnmore Community Infant School",
"Postcode": "CV226JS"
},
{
"SchoolName": "Curdworth Primary School",
"Postcode": "B769HF"
},
{
"SchoolName": "High Meadow Infant School",
"Postcode": "B461ES"
},
{
"SchoolName": "St Giles Junior School",
"Postcode": "CV79NS"
},
{
"SchoolName": "Chetwynd Junior School",
"Postcode": "CV114SE"
},
{
"SchoolName": "Glendale Infant School",
"Postcode": "CV107LW"
},
{
"SchoolName": "Boughton Leigh Junior School",
"Postcode": "CV211LT"
},
{
"SchoolName": "Boughton Leigh Infant School",
"Postcode": "CV211LT"
},
{
"SchoolName": "Croft Junior School",
"Postcode": "CV108ER"
},
{
"SchoolName": "Bishopton Primary School",
"Postcode": "CV379PB"
},
{
"SchoolName": "Priors Field Primary School",
"Postcode": "CV81BA"
},
{
"SchoolName": "Milverton Primary School",
"Postcode": "CV326ES"
},
{
"SchoolName": "Temple Herdewyke Primary School",
"Postcode": "CV472UD"
},
{
"SchoolName": "Race Leys Infant School",
"Postcode": "CV128AD"
},
{
"SchoolName": "Brownsover Community Infant School",
"Postcode": "CV230UP"
},
{
"SchoolName": "Water Orton Primary School",
"Postcode": "B461SB"
},
{
"SchoolName": "Alveston CofE Primary School",
"Postcode": "CV377BZ"
},
{
"SchoolName": "Bidford-on-Avon CofE Primary School",
"Postcode": "B504QG"
},
{
"SchoolName": "Brailes CofE Primary School",
"Postcode": "OX155AP"
},
{
"SchoolName": "Coughton CofE Primary School",
"Postcode": "B495HN"
},
{
"SchoolName": "Ettington CofE Primary School",
"Postcode": "CV377SP"
},
{
"SchoolName": "Hampton Lucy CofE Primary School",
"Postcode": "CV358BE"
},
{
"SchoolName": "Harbury CofE Primary School",
"Postcode": "CV339HR"
},
{
"SchoolName": "Ilmington CofE Primary School",
"Postcode": "CV364LJ"
},
{
"SchoolName": "Loxley CofE Community Primary School",
"Postcode": "CV359JT"
},
{
"SchoolName": "Mappleborough Green CofE Primary School",
"Postcode": "B807DR"
},
{
"SchoolName": "Salford Priors CofE Primary School",
"Postcode": "WR118XD"
},
{
"SchoolName": "Shottery St Andrew's CofE Primary School",
"Postcode": "CV379BL"
},
{
"SchoolName": "Temple Grafton CofE Primary School",
"Postcode": "B496NU"
},
{
"SchoolName": "Tysoe CofE Primary School",
"Postcode": "CV350SH"
},
{
"SchoolName": "Wellesbourne CofE Primary School",
"Postcode": "CV359QG"
},
{
"SchoolName": "Wootton Wawen CofE Primary School",
"Postcode": "B956AY"
},
{
"SchoolName": "All Saints CofE Primary School and Nursery, Nuneaton",
"Postcode": "CV107AT"
},
{
"SchoolName": "Abbey CofE Infant School",
"Postcode": "CV115EL"
},
{
"SchoolName": "St Paul's CofE Primary School, Nuneaton",
"Postcode": "CV108NH"
},
{
"SchoolName": "Bishops Tachbrook CofE Primary School",
"Postcode": "CV339RY"
},
{
"SchoolName": "Burton Green CofE Primary School",
"Postcode": "CV81QB"
},
{
"SchoolName": "Cubbington CofE Primary School",
"Postcode": "CV327JY"
},
{
"SchoolName": "St Nicholas CofE Primary School",
"Postcode": "CV82PE"
},
{
"SchoolName": "Lapworth CofE Primary School",
"Postcode": "B946LT"
},
{
"SchoolName": "Radford Semele CofE Primary School",
"Postcode": "CV311TQ"
},
{
"SchoolName": "All Saints' CofE Junior School",
"Postcode": "CV345LY"
},
{
"SchoolName": "St Margaret's CofE Junior School",
"Postcode": "CV312JF"
},
{
"SchoolName": "Clifton-upon-Dunsmore CofE Primary School",
"Postcode": "CV230BT"
},
{
"SchoolName": "Wolston St Margaret's CofE Primary School",
"Postcode": "CV83HH"
},
{
"SchoolName": "Wolvey CofE Primary School",
"Postcode": "LE103LA"
},
{
"SchoolName": "The Willows CofE Primary School",
"Postcode": "CV379QN"
},
{
"SchoolName": "Bilton CofE Junior School",
"Postcode": "CV226LB"
},
{
"SchoolName": "Shustoke CofE Primary School",
"Postcode": "B462AU"
},
{
"SchoolName": "The Ferncumbe CofE Primary School",
"Postcode": "CV357EX"
},
{
"SchoolName": "All Saints Bedworth C/E Primary School & Nursery",
"Postcode": "CV129HP"
},
{
"SchoolName": "The Canons CofE Primary School",
"Postcode": "CV128RT"
},
{
"SchoolName": "Kineton CofE (VA) Primary School",
"Postcode": "CV350HS"
},
{
"SchoolName": "<NAME> CofE Primary School",
"Postcode": "CV359AN"
},
{
"SchoolName": "Wilmcote CofE (Voluntary Aided) Primary School",
"Postcode": "CV379XD"
},
{
"SchoolName": "St Paul's CofE Primary School, Leamington Spa",
"Postcode": "CV324JZ"
},
{
"SchoolName": "Dunchurch Boughton CofE (Voluntary Aided) Junior School",
"Postcode": "CV226NE"
},
{
"SchoolName": "St Edward's Catholic Primary School",
"Postcode": "B463JE"
},
{
"SchoolName": "St Mary's Catholic Primary School, Southam",
"Postcode": "CV471PS"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "B807QU"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "CV82JY"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "CV325EL"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "CV313EU"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "CV311NJ"
},
{
"SchoolName": "St Mary Immaculate Catholic Primary School",
"Postcode": "CV345BG"
},
{
"SchoolName": "Our Lady and St Teresa's Catholic Primary School",
"Postcode": "CV327LN"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "CV312LJ"
},
{
"SchoolName": "Our Lady's Catholic Primary School, Princethorpe",
"Postcode": "CV239PU"
},
{
"SchoolName": "English Martyrs Catholic Primary School",
"Postcode": "CV214EE"
},
{
"SchoolName": "Southam St James (Voluntary Aided) CofE Primary School",
"Postcode": "CV471EE"
},
{
"SchoolName": "Coleshill CofE Primary School",
"Postcode": "B463LL"
},
{
"SchoolName": "Barford St Peter's CofE Primary School",
"Postcode": "CV358EW"
},
{
"SchoolName": "Kineton High School",
"Postcode": "CV350JX"
},
{
"SchoolName": "Kenilworth School and Sixth Form",
"Postcode": "CV82DA"
},
{
"SchoolName": "Trinity Catholic School",
"Postcode": "CV326NB"
},
{
"SchoolName": "Wolverton Primary School",
"Postcode": "CV358JN"
},
{
"SchoolName": "Middlemarch School",
"Postcode": "CV107BQ"
},
{
"SchoolName": "Dunnington CofE Primary School",
"Postcode": "B495NT"
},
{
"SchoolName": "Dunchurch Infant School",
"Postcode": "CV226PA"
},
{
"SchoolName": "The Avon Valley School and Performing Arts College",
"Postcode": "CV211EH"
},
{
"SchoolName": "Crackley Hall School",
"Postcode": "CV82FT"
},
{
"SchoolName": "Bilton Grange School",
"Postcode": "CV226QU"
},
{
"SchoolName": "Arnold Lodge School",
"Postcode": "CV325TW"
},
{
"SchoolName": "The Kingsley School",
"Postcode": "CV325RD"
},
{
"SchoolName": "Rugby School",
"Postcode": "CV225EH"
},
{
"SchoolName": "The Croft Preparatory School",
"Postcode": "CV377RL"
},
{
"SchoolName": "Warwick Preparatory School",
"Postcode": "CV346PL"
},
{
"SchoolName": "Warwick School",
"Postcode": "CV346PP"
},
{
"SchoolName": "Crescent School",
"Postcode": "CV227QH"
},
{
"SchoolName": "Princethorpe College",
"Postcode": "CV239PX"
},
{
"SchoolName": "King's High School",
"Postcode": "CV344HJ"
},
{
"SchoolName": "Milverton House School",
"Postcode": "CV114NS"
},
{
"SchoolName": "Arc School Old Arley",
"Postcode": "CV78NU"
},
{
"SchoolName": "Stratford Preparatory School",
"Postcode": "CV376BG"
},
{
"SchoolName": "Exhall Grange School and Science College",
"Postcode": "CV79HP"
},
{
"SchoolName": "River House School",
"Postcode": "B956AD"
},
{
"SchoolName": "Brooke School",
"Postcode": "CV226DY"
},
{
"SchoolName": "Ridgeway School",
"Postcode": "CV345DF"
},
{
"SchoolName": "Round Oak School and Support Service",
"Postcode": "CV346DX"
},
{
"SchoolName": "Bognor Regis Nursery School",
"Postcode": "PO212TB"
},
{
"SchoolName": "Chichester Nursery School",
"Postcode": "PO197AB"
},
{
"SchoolName": "Horsham Nursery School Children and Family Centre",
"Postcode": "RH135UT"
},
{
"SchoolName": "Boundstone Nursery School, Children and Family Centre",
"Postcode": "BN159QX"
},
{
"SchoolName": "Aidenswood",
"Postcode": "CW124ED"
},
{
"SchoolName": "Aldingbourne Primary School",
"Postcode": "PO203QR"
},
{
"SchoolName": "Bosham Primary School",
"Postcode": "PO188QF"
},
{
"SchoolName": "Shelley Primary School",
"Postcode": "RH123LU"
},
{
"SchoolName": "Camelsdale Primary School",
"Postcode": "GU273RN"
},
{
"SchoolName": "Lancastrian Infants' School",
"Postcode": "PO191DG"
},
{
"SchoolName": "Colgate Primary School",
"Postcode": "RH136HS"
},
{
"SchoolName": "West Green Primary School",
"Postcode": "RH117EL"
},
{
"SchoolName": "East Wittering Community Primary School",
"Postcode": "PO208NH"
},
{
"SchoolName": "Funtington Primary School",
"Postcode": "PO188DR"
},
{
"SchoolName": "Graffham CofE Infant School",
"Postcode": "GU280NJ"
},
{
"SchoolName": "Hollycombe Primary School",
"Postcode": "GU307LY"
},
{
"SchoolName": "Trafalgar Community Infant School",
"Postcode": "RH122JF"
},
{
"SchoolName": "Northolmes Junior School, Horsham",
"Postcode": "RH124ET"
},
{
"SchoolName": "Littlehaven Infant School",
"Postcode": "RH124EH"
},
{
"SchoolName": "Barns Green Primary School",
"Postcode": "RH130PJ"
},
{
"SchoolName": "North Lancing Primary School",
"Postcode": "BN150PT"
},
{
"SchoolName": "Loxwood Primary School",
"Postcode": "RH140SR"
},
{
"SchoolName": "Northchapel Community Primary School",
"Postcode": "GU289JA"
},
{
"SchoolName": "North Mundham Primary School",
"Postcode": "PO201LA"
},
{
"SchoolName": "Plaistow and Kirdford Primary School",
"Postcode": "RH140PX"
},
{
"SchoolName": "Rudgwick Primary School",
"Postcode": "RH123HW"
},
{
"SchoolName": "Rusper Primary School",
"Postcode": "RH124PR"
},
{
"SchoolName": "Sidlesham Primary School",
"Postcode": "PO207NL"
},
{
"SchoolName": "Stedham Primary School",
"Postcode": "GU290NY"
},
{
"SchoolName": "Thakeham First School",
"Postcode": "RH203EP"
},
{
"SchoolName": "Upper Beeding Primary School",
"Postcode": "BN443HY"
},
{
"SchoolName": "Westbourne Primary School",
"Postcode": "PO108TG"
},
{
"SchoolName": "West Chiltington Community First School",
"Postcode": "RH202JY"
},
{
"SchoolName": "Wisborough Green Primary School",
"Postcode": "RH140EE"
},
{
"SchoolName": "Whytemead Primary School",
"Postcode": "BN148LH"
},
{
"SchoolName": "Durrington Infant School",
"Postcode": "BN132JD"
},
{
"SchoolName": "Elm Grove Primary School, Worthing",
"Postcode": "BN115LQ"
},
{
"SchoolName": "Field Place Infant School",
"Postcode": "BN126EN"
},
{
"SchoolName": "Vale School, Worthing",
"Postcode": "BN140DB"
},
{
"SchoolName": "Thorney Island Community Primary School",
"Postcode": "PO108DJ"
},
{
"SchoolName": "Bersted Green Primary School, Bognor Regis",
"Postcode": "PO229HT"
},
{
"SchoolName": "Storrington First School",
"Postcode": "RH204PG"
},
{
"SchoolName": "Southbourne Infant School",
"Postcode": "PO108JX"
},
{
"SchoolName": "Southbourne Junior School",
"Postcode": "PO108JX"
},
{
"SchoolName": "Jessie Younghusband Primary School",
"Postcode": "PO195PA"
},
{
"SchoolName": "Arunside School, Horsham",
"Postcode": "RH121RR"
},
{
"SchoolName": "Shoreham Beach Primary School",
"Postcode": "BN435RH"
},
{
"SchoolName": "Heron Way Primary School",
"Postcode": "RH136DJ"
},
{
"SchoolName": "Downsbrook Primary School",
"Postcode": "BN148GD"
},
{
"SchoolName": "Three Bridges Primary School",
"Postcode": "RH101QG"
},
{
"SchoolName": "Pound Hill Junior School, Crawley",
"Postcode": "RH107EB"
},
{
"SchoolName": "Glebe Primary School",
"Postcode": "BN424GB"
},
{
"SchoolName": "Swiss Gardens Primary School",
"Postcode": "BN435WH"
},
{
"SchoolName": "Milton Mount Primary School",
"Postcode": "RH103AG"
},
{
"SchoolName": "Leechpool Primary School",
"Postcode": "RH136AG"
},
{
"SchoolName": "East Preston Infant School",
"Postcode": "BN161EZ"
},
{
"SchoolName": "Parklands Community Primary School",
"Postcode": "PO193AG"
},
{
"SchoolName": "Bartons Primary School, Bognor Regis",
"Postcode": "PO215EJ"
},
{
"SchoolName": "Lyminster Primary School",
"Postcode": "BN177JZ"
},
{
"SchoolName": "Rose Green Infant School",
"Postcode": "PO213LW"
},
{
"SchoolName": "Ashurst Wood Primary School",
"Postcode": "RH193QW"
},
{
"SchoolName": "Manor Field Primary School",
"Postcode": "RH150PZ"
},
{
"SchoolName": "London Meed Community Primary School",
"Postcode": "RH159YQ"
},
{
"SchoolName": "Handcross Primary School",
"Postcode": "RH176HB"
},
{
"SchoolName": "Hassocks Infant School",
"Postcode": "BN68EY"
},
{
"SchoolName": "Warninglid Primary School",
"Postcode": "RH175TJ"
},
{
"SchoolName": "The Windmills Junior School",
"Postcode": "BN68LS"
},
{
"SchoolName": "The Gattons Infant School",
"Postcode": "RH159SL"
},
{
"SchoolName": "Southway Junior School",
"Postcode": "RH159SU"
},
{
"SchoolName": "Fairway Infant School, Copthorne",
"Postcode": "RH103QD"
},
{
"SchoolName": "Birchwood Grove Community Primary School, Burgess Hill",
"Postcode": "RH150DP"
},
{
"SchoolName": "Estcots Primary School",
"Postcode": "RH193TY"
},
{
"SchoolName": "Northlands Wood Community Primary School",
"Postcode": "RH163RX"
},
{
"SchoolName": "North Heath Community Primary School",
"Postcode": "RH125XL"
},
{
"SchoolName": "Hawthorns Primary School, Durrington",
"Postcode": "BN133EZ"
},
{
"SchoolName": "Durrington Junior School",
"Postcode": "BN132JD"
},
{
"SchoolName": "Waterfield Primary School",
"Postcode": "RH118RA"
},
{
"SchoolName": "Thomas A Becket Infant School",
"Postcode": "BN131JB"
},
{
"SchoolName": "Thomas A Becket Junior School",
"Postcode": "BN147PR"
},
{
"SchoolName": "Sheddingdean Community Primary School",
"Postcode": "RH158JT"
},
{
"SchoolName": "Georgian Gardens Community Primary School",
"Postcode": "BN163JJ"
},
{
"SchoolName": "Lyndhurst Infant School",
"Postcode": "BN112DG"
},
{
"SchoolName": "Chesswood Junior School",
"Postcode": "BN112AA"
},
{
"SchoolName": "Maidenbower Infant School",
"Postcode": "RH107RA"
},
{
"SchoolName": "Blackwell Primary School",
"Postcode": "RH193JL"
},
{
"SchoolName": "The Meads Primary School",
"Postcode": "RH194DD"
},
{
"SchoolName": "Holbrook Primary School",
"Postcode": "RH125PP"
},
{
"SchoolName": "Springfield Infant School",
"Postcode": "BN148BQ"
},
{
"SchoolName": "Bramber Primary School",
"Postcode": "BN148QB"
},
{
"SchoolName": "Amberley CofE First School",
"Postcode": "BN189NB"
},
{
"SchoolName": "Ashington CofE First School",
"Postcode": "RH203PG"
},
{
"SchoolName": "Birdham CofE Primary School",
"Postcode": "PO207HB"
},
{
"SchoolName": "South Bersted CofE Primary School",
"Postcode": "PO229PZ"
},
{
"SchoolName": "Boxgrove CofE Primary School",
"Postcode": "PO180EE"
},
{
"SchoolName": "Rumboldswhyke CofE Infants' School",
"Postcode": "PO197UA"
},
{
"SchoolName": "Chidham Parochial Primary School",
"Postcode": "PO188TH"
},
{
"SchoolName": "Clapham and Patching CofE Primary School",
"Postcode": "BN133UU"
},
{
"SchoolName": "St James' CofE Primary School, Coldwaltham",
"Postcode": "RH201LW"
},
{
"SchoolName": "Compton and Up Marden CofE Primary School",
"Postcode": "PO189EZ"
},
{
"SchoolName": "Duncton CofE Junior School",
"Postcode": "GU280LB"
},
{
"SchoolName": "Eastergate CofE Primary School",
"Postcode": "PO203UT"
},
{
"SchoolName": "Ferring CofE Primary School",
"Postcode": "BN125DU"
},
{
"SchoolName": "Fishbourne CofE Primary School",
"Postcode": "PO193QS"
},
{
"SchoolName": "Fittleworth CofE Village School",
"Postcode": "RH201JB"
},
{
"SchoolName": "Jolesfield CofE Primary School",
"Postcode": "RH138JJ"
},
{
"SchoolName": "Lavant CofE Primary School",
"Postcode": "PO180BW"
},
{
"SchoolName": "Holy Trinity CofE Primary School, Lower Beeding",
"Postcode": "RH136NS"
},
{
"SchoolName": "Midhurst CofE Primary School",
"Postcode": "GU299JX"
},
{
"SchoolName": "Rake CofE Primary School",
"Postcode": "GU337JH"
},
{
"SchoolName": "Petworth Cof E Primary School",
"Postcode": "GU280EE"
},
{
"SchoolName": "Rogate CofE Primary School",
"Postcode": "GU315HH"
},
{
"SchoolName": "Shipley CofE Primary School",
"Postcode": "RH138PL"
},
{
"SchoolName": "Singleton CofE Primary School",
"Postcode": "PO180HP"
},
{
"SchoolName": "Slindon CofE Primary School",
"Postcode": "BN180QU"
},
{
"SchoolName": "Slinfold CofE Primary School",
"Postcode": "RH130RR"
},
{
"SchoolName": "Steyning CofE Primary School",
"Postcode": "BN443RQ"
},
{
"SchoolName": "Walberton and Binsted CofE Primary School",
"Postcode": "BN180PH"
},
{
"SchoolName": "Warnham CofE Primary School",
"Postcode": "RH123RQ"
},
{
"SchoolName": "St Mary's CofE First School",
"Postcode": "RH204AP"
},
{
"SchoolName": "West Wittering Parochial Church of England School",
"Postcode": "PO208AJ"
},
{
"SchoolName": "Yapton CE Primary School",
"Postcode": "BN180DU"
},
{
"SchoolName": "William Penn School",
"Postcode": "RH138GR"
},
{
"SchoolName": "Easebourne CofE Primary School",
"Postcode": "GU299AG"
},
{
"SchoolName": "West Dean CofE Primary School",
"Postcode": "PO180RJ"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "RH176UQ"
},
{
"SchoolName": "Balcombe CofE Controlled Primary School",
"Postcode": "RH176HS"
},
{
"SchoolName": "Bolney CofE Primary School",
"Postcode": "RH175QP"
},
{
"SchoolName": "St Augustine's CofE Primary School",
"Postcode": "RH177PB"
},
{
"SchoolName": "Turners Hill CofE Primary School",
"Postcode": "RH104PA"
},
{
"SchoolName": "Twineham CofE Primary School",
"Postcode": "RH175NR"
},
{
"SchoolName": "West Hoathly CofE Primary School",
"Postcode": "RH194QG"
},
{
"SchoolName": "Copthorne CofE Junior School",
"Postcode": "RH103RD"
},
{
"SchoolName": "Albourne CofE Primary School",
"Postcode": "BN69DH"
},
{
"SchoolName": "St Mark's CofE Primary School",
"Postcode": "RH176EN"
},
{
"SchoolName": "West Park CofE Primary (Controlled) School",
"Postcode": "BN124HD"
},
{
"SchoolName": "Harting CofE Primary School",
"Postcode": "GU315QT"
},
{
"SchoolName": "St Margaret's CofE Primary School",
"Postcode": "BN164LP"
},
{
"SchoolName": "Arundel CofE Primary School",
"Postcode": "BN189HT"
},
{
"SchoolName": "Ashurst CofE Primary School",
"Postcode": "BN443AY"
},
{
"SchoolName": "Nyewood CofE Junior School",
"Postcode": "PO215NW"
},
{
"SchoolName": "Bury CofE Primary School",
"Postcode": "RH201HB"
},
{
"SchoolName": "St Mary's CofE Primary School",
"Postcode": "BN175QU"
},
{
"SchoolName": "St Peter's CofE (Aided) Primary School",
"Postcode": "RH138QZ"
},
{
"SchoolName": "Bishop Tufnell CofE Junior School, Felpham",
"Postcode": "PO226BN"
},
{
"SchoolName": "St John the Baptist CofE Primary School",
"Postcode": "BN140TR"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "BN59PU"
},
{
"SchoolName": "St Mary's CofE (Aided) Primary School",
"Postcode": "RH121JL"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "RH136LH"
},
{
"SchoolName": "March CofE Primary School,the",
"Postcode": "PO180NU"
},
{
"SchoolName": "Broadwater CofE Primary School",
"Postcode": "BN147TQ"
},
{
"SchoolName": "Heene CofE Primary School",
"Postcode": "BN114BB"
},
{
"SchoolName": "St Wilfrids Catholic Primary School",
"Postcode": "BN164JR"
},
{
"SchoolName": "St Philip's Catholic Primary School, Arundel",
"Postcode": "BN189BA"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "PO211DJ"
},
{
"SchoolName": "St Richard's Catholic Primary School",
"Postcode": "PO191XB"
},
{
"SchoolName": "St John's Catholic Primary School",
"Postcode": "RH121RR"
},
{
"SchoolName": "St Catherine's Catholic Primary School, Littlehampton",
"Postcode": "BN176HL"
},
{
"SchoolName": "St Peter's Catholic Primary School, Shoreham-by-Sea",
"Postcode": "BN436PJ"
},
{
"SchoolName": "St Mary's Catholic Primary School, Worthing",
"Postcode": "BN114BD"
},
{
"SchoolName": "St Margaret's CofE Primary School",
"Postcode": "RH110AQ"
},
{
"SchoolName": "Our Lady Queen of Heaven Catholic Primary School, Crawley",
"Postcode": "RH117PZ"
},
{
"SchoolName": "Goring-By-Sea CofE (Aided) Primary School",
"Postcode": "BN124RN"
},
{
"SchoolName": "St Francis of Assisi Catholic Primary School, Crawley",
"Postcode": "RH106HD"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "RH106NU"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "RH202AN"
},
{
"SchoolName": "St Nicolas & St Mary CofE(Aided) Primary School",
"Postcode": "BN436PE"
},
{
"SchoolName": "Bishop Tufnell CofE Infant School, Felpham",
"Postcode": "PO226BN"
},
{
"SchoolName": "English Martyrs Catholic Primary School, Worthing",
"Postcode": "BN126LA"
},
{
"SchoolName": "Nyewood CofE Infant School, Bognor Regis",
"Postcode": "PO215NW"
},
{
"SchoolName": "St Robert Southwell Catholic Primary School, Horsham",
"Postcode": "RH124LP"
},
{
"SchoolName": "Holy Trinity CofE Primary School, Cuckfield",
"Postcode": "RH175BE"
},
{
"SchoolName": "St Mary's CofE Primary School, East Grinstead",
"Postcode": "RH192DS"
},
{
"SchoolName": "St Wilfrid's CofE Primary School, Haywards Heath",
"Postcode": "RH163NL"
},
{
"SchoolName": "St Giles CofE Primary School",
"Postcode": "RH177AY"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Haywards Heath",
"Postcode": "RH163PQ"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "RH191JB"
},
{
"SchoolName": "St Wilfrid's Catholic Primary School, Burgess Hill",
"Postcode": "RH159RJ"
},
{
"SchoolName": "Tanbridge House School",
"Postcode": "RH121SR"
},
{
"SchoolName": "The Forest School",
"Postcode": "RH135NT"
},
{
"SchoolName": "Millais School",
"Postcode": "RH135HR"
},
{
"SchoolName": "Rydon Community College",
"Postcode": "RH203AA"
},
{
"SchoolName": "Weald School, the",
"Postcode": "RH149RY"
},
{
"SchoolName": "Bourne Community College",
"Postcode": "PO108PJ"
},
{
"SchoolName": "Ifield Community College",
"Postcode": "RH110DB"
},
{
"SchoolName": "Felpham Community College",
"Postcode": "PO228EL"
},
{
"SchoolName": "The Angmering School",
"Postcode": "BN164HH"
},
{
"SchoolName": "Oathall Community College",
"Postcode": "RH162AQ"
},
{
"SchoolName": "Downlands Community School",
"Postcode": "BN68LP"
},
{
"SchoolName": "Imberhorne School",
"Postcode": "RH191QY"
},
{
"SchoolName": "Sackville School",
"Postcode": "RH193TY"
},
{
"SchoolName": "Steyning Grammar School",
"Postcode": "BN443RX"
},
{
"SchoolName": "Davison Church of England High School for Girls, Worthing",
"Postcode": "BN112JX"
},
{
"SchoolName": "St Andrew's CofE High School for Boys",
"Postcode": "BN148BG"
},
{
"SchoolName": "St Wilfrid's Catholic Comprehensive School, Crawley",
"Postcode": "RH118PG"
},
{
"SchoolName": "Chatsmore Catholic High School",
"Postcode": "BN125AF"
},
{
"SchoolName": "Holy Trinity CofE Secondary School, Crawley",
"Postcode": "RH118JE"
},
{
"SchoolName": "St Paul's Catholic College",
"Postcode": "RH158GA"
},
{
"SchoolName": "Oakwood School",
"Postcode": "PO189AN"
},
{
"SchoolName": "Westbourne House School",
"Postcode": "PO202BH"
},
{
"SchoolName": "Cottesmore School",
"Postcode": "RH119AU"
},
{
"SchoolName": "Christ's Hospital",
"Postcode": "RH130LJ"
},
{
"SchoolName": "Lancing College",
"Postcode": "BN150RW"
},
{
"SchoolName": "Dorset House School",
"Postcode": "RH201PB"
},
{
"SchoolName": "Seaford College",
"Postcode": "GU280NB"
},
{
"SchoolName": "Pennthorpe School",
"Postcode": "RH123HJ"
},
{
"SchoolName": "Shoreham College",
"Postcode": "BN436YW"
},
{
"SchoolName": "Windlesham House School",
"Postcode": "RH204AY"
},
{
"SchoolName": "Lancing College Preparatory School at Worthing",
"Postcode": "BN148HU"
},
{
"SchoolName": "Our Lady of Sion School",
"Postcode": "BN114BL"
},
{
"SchoolName": "Conifers School",
"Postcode": "GU299BG"
},
{
"SchoolName": "Slindon College",
"Postcode": "BN180RH"
},
{
"SchoolName": "Sompting Abbotts School",
"Postcode": "BN150AZ"
},
{
"SchoolName": "The Prebendal School",
"Postcode": "PO191RT"
},
{
"SchoolName": "The Towers Convent School",
"Postcode": "BN443TF"
},
{
"SchoolName": "Farlington School",
"Postcode": "RH123PN"
},
{
"SchoolName": "Great Ballard School",
"Postcode": "PO180LR"
},
{
"SchoolName": "Rikkyo School-in-England",
"Postcode": "RH123BE"
},
{
"SchoolName": "Ardingly College",
"Postcode": "RH176SQ"
},
{
"SchoolName": "Bur<NAME>ls",
"Postcode": "RH150EG"
},
{
"SchoolName": "Great Walstead School",
"Postcode": "RH162QL"
},
{
"SchoolName": "Hurstpierpoint College",
"Postcode": "BN69JS"
},
{
"SchoolName": "Worth School",
"Postcode": "RH104SD"
},
{
"SchoolName": "Farney Close School",
"Postcode": "RH175RD"
},
{
"SchoolName": "Philpots Manor School",
"Postcode": "RH194PR"
},
{
"SchoolName": "Handcross Park Preparatory School",
"Postcode": "RH176HF"
},
{
"SchoolName": "The Education Centre",
"Postcode": "RH161DB"
},
{
"SchoolName": "Brambletye School",
"Postcode": "RH193PD"
},
{
"SchoolName": "Highfield and Brookham Schools",
"Postcode": "GU307LQ"
},
{
"SchoolName": "Muntham House School",
"Postcode": "RH130NJ"
},
{
"SchoolName": "St Anthony's School",
"Postcode": "PO195PA"
},
{
"SchoolName": "Littlegreen School, Compton",
"Postcode": "PO189NW"
},
{
"SchoolName": "Manor Green College",
"Postcode": "RH110DX"
},
{
"SchoolName": "Palatine Primary School",
"Postcode": "BN126JP"
},
{
"SchoolName": "Queen Elizabeth II Silver Jubilee School, Horsham",
"Postcode": "RH135NW"
},
{
"SchoolName": "Oak Grove College",
"Postcode": "BN131JX"
},
{
"SchoolName": "Manor Green Primary School",
"Postcode": "RH110DU"
},
{
"SchoolName": "Fordwater School, Chichester",
"Postcode": "PO196PP"
},
{
"SchoolName": "Herons Dale School",
"Postcode": "BN436TN"
},
{
"SchoolName": "Cornfield School, Littlehampton",
"Postcode": "BN176HY"
},
{
"SchoolName": "Stratton Education Centre",
"Postcode": "SN27QP"
},
{
"SchoolName": "Fitzmaurice Primary School",
"Postcode": "BA151LE"
},
{
"SchoolName": "Bratton Primary School",
"Postcode": "BA134RL"
},
{
"SchoolName": "Ivy Lane Primary School",
"Postcode": "SN151HE"
},
{
"SchoolName": "St Paul's Primary School",
"Postcode": "SN151DU"
},
{
"SchoolName": "Chiseldon Primary & Nursery School",
"Postcode": "SN40NS"
},
{
"SchoolName": "Lypiatt Primary School",
"Postcode": "SN139TU"
},
{
"SchoolName": "Neston Primary School",
"Postcode": "SN139SX"
},
{
"SchoolName": "Monkton Park Primary School",
"Postcode": "SN153PN"
},
{
"SchoolName": "Gomeldon Primary School",
"Postcode": "SP46JZ"
},
{
"SchoolName": "Hilmarton Primary School",
"Postcode": "SN118SG"
},
{
"SchoolName": "Horningsham Primary School",
"Postcode": "BA127LW"
},
{
"SchoolName": "Luckington Community School",
"Postcode": "SN146NU"
},
{
"SchoolName": "Larkhill Primary School",
"Postcode": "SP48QB"
},
{
"SchoolName": "Stanton St Quintin Community Primary School",
"Postcode": "SN146DQ"
},
{
"SchoolName": "Ramsbury Primary School",
"Postcode": "SN82QH"
},
{
"SchoolName": "Harnham Infants' School",
"Postcode": "SP28JZ"
},
{
"SchoolName": "Grange Junior School",
"Postcode": "SN34JY"
},
{
"SchoolName": "Grange Infants' School",
"Postcode": "SN34XE"
},
{
"SchoolName": "Beechcroft Infant School",
"Postcode": "SN27QE"
},
{
"SchoolName": "Even Swindon Primary School",
"Postcode": "SN22UJ"
},
{
"SchoolName": "Lainesmead Primary School",
"Postcode": "SN31EA"
},
{
"SchoolName": "Wanborough Primary School",
"Postcode": "SN40EJ"
},
{
"SchoolName": "New Close Community School",
"Postcode": "BA129JJ"
},
{
"SchoolName": "Westbury Infant School",
"Postcode": "BA133NY"
},
{
"SchoolName": "Westwood-with-Iford Primary School",
"Postcode": "BA152BY"
},
{
"SchoolName": "Wootton Bassett Infants' School",
"Postcode": "SN47BS"
},
{
"SchoolName": "Wroughton Infant School",
"Postcode": "SN49LE"
},
{
"SchoolName": "Lawn Primary",
"Postcode": "SN31LE"
},
{
"SchoolName": "Wroughton Junior School",
"Postcode": "SN49DL"
},
{
"SchoolName": "Kiwi Primary School",
"Postcode": "SP49JY"
},
{
"SchoolName": "Nythe Primary School",
"Postcode": "SN33RR"
},
{
"SchoolName": "Noremarsh Community Junior School",
"Postcode": "SN48BT"
},
{
"SchoolName": "Greenmeadow Primary School",
"Postcode": "SN253LW"
},
{
"SchoolName": "Colebrook Junior School",
"Postcode": "SN34AS"
},
{
"SchoolName": "Westrop Primary School",
"Postcode": "SN67DN"
},
{
"SchoolName": "Priestley Primary School",
"Postcode": "SN118TG"
},
{
"SchoolName": "The Grove Primary School",
"Postcode": "BA140JG"
},
{
"SchoolName": "Princecroft Primary School",
"Postcode": "BA128NT"
},
{
"SchoolName": "Redland Primary School",
"Postcode": "SN140JE"
},
{
"SchoolName": "Longleaze Primary School",
"Postcode": "SN48BA"
},
{
"SchoolName": "Mere School",
"Postcode": "BA126EW"
},
{
"SchoolName": "Woodlands Primary School",
"Postcode": "SP29DY"
},
{
"SchoolName": "Salisbury, Manor Fields Primary School",
"Postcode": "SP27EJ"
},
{
"SchoolName": "Holbrook Primary School",
"Postcode": "BA140PS"
},
{
"SchoolName": "Ludwell Community Primary School",
"Postcode": "SP79ND"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SN15HS"
},
{
"SchoolName": "Brook Field Primary School",
"Postcode": "SN55SB"
},
{
"SchoolName": "Kings Lodge Primary School",
"Postcode": "SN153SY"
},
{
"SchoolName": "Walwayne Court School",
"Postcode": "BA149DU"
},
{
"SchoolName": "Bitham Brook Primary School",
"Postcode": "BA133UA"
},
{
"SchoolName": "Charter Primary School",
"Postcode": "SN153EA"
},
{
"SchoolName": "Newtown Community Primary School",
"Postcode": "BA140BB"
},
{
"SchoolName": "Haydonleigh Primary School",
"Postcode": "SN251JP"
},
{
"SchoolName": "All Cannings Church of England Primary School",
"Postcode": "SN103PG"
},
{
"SchoolName": "Ashton Keynes Church of England Primary School",
"Postcode": "SN66NZ"
},
{
"SchoolName": "Bishopstone Church of England Primary School",
"Postcode": "SN68PW"
},
{
"SchoolName": "Box Church of England Primary School",
"Postcode": "SN138NF"
},
{
"SchoolName": "Christ Church Church of England Controlled Primary School",
"Postcode": "BA151ST"
},
{
"SchoolName": "Longford CofE (VC) Primary School",
"Postcode": "SP54DS"
},
{
"SchoolName": "Broad Hinton Church of England Primary School",
"Postcode": "SN49PQ"
},
{
"SchoolName": "Broad Town Church of England Primary School",
"Postcode": "SN47RE"
},
{
"SchoolName": "St Nicholas Church of England VC Primary School, Bromham",
"Postcode": "SN152EY"
},
{
"SchoolName": "St Katharine's CofE(VC) Primary School",
"Postcode": "SN83BG"
},
{
"SchoolName": "Cherhill CofE School",
"Postcode": "SN118XX"
},
{
"SchoolName": "Chirton Church of England Voluntary Controlled Primary School",
"Postcode": "SN103QS"
},
{
"SchoolName": "Colerne CofE Primary School",
"Postcode": "SN148DU"
},
{
"SchoolName": "St Sampson's Church of England Primary School",
"Postcode": "SN66AX"
},
{
"SchoolName": "Crockerton CofE Primary School",
"Postcode": "BA128AB"
},
{
"SchoolName": "Crudwell CofE Primary School",
"Postcode": "SN169ER"
},
{
"SchoolName": "Collingbourne Church of England Primary School",
"Postcode": "SN83UH"
},
{
"SchoolName": "Durrington Church of England Controlled Junior School",
"Postcode": "SP48DL"
},
{
"SchoolName": "Heddington Church of England Primary School",
"Postcode": "SN110PJ"
},
{
"SchoolName": "Hilperton Church of England Voluntary Controlled Primary School",
"Postcode": "BA147SB"
},
{
"SchoolName": "Holt Voluntary Controlled Primary School",
"Postcode": "BA146RA"
},
{
"SchoolName": "Hullavington CofE Primary and Nursery School",
"Postcode": "SN146EF"
},
{
"SchoolName": "Kington St Michael Church of England Primary School",
"Postcode": "SN146JG"
},
{
"SchoolName": "Lacock Church of England Primary School",
"Postcode": "SN152LQ"
},
{
"SchoolName": "Langley Fitzurse Church of England Primary School",
"Postcode": "SN155NN"
},
{
"SchoolName": "Lea and Garsdon Church of England Primary School",
"Postcode": "SN169PG"
},
{
"SchoolName": "Newton Tony Church of England Voluntary Controlled School",
"Postcode": "SP40HF"
},
{
"SchoolName": "North Bradley CofE Primary School",
"Postcode": "BA140TA"
},
{
"SchoolName": "Oaksey CofE Primary School",
"Postcode": "SN169TG"
},
{
"SchoolName": "Preshute Church of England Primary School",
"Postcode": "SN84HH"
},
{
"SchoolName": "St Mary's Church of England Primary School, Purton",
"Postcode": "SN54AR"
},
{
"SchoolName": "Harnham Church of England Controlled Junior School",
"Postcode": "SP28JZ"
},
{
"SchoolName": "Shalbourne CofE Primary School",
"Postcode": "SN83QH"
},
{
"SchoolName": "Sherston CofE Primary School",
"Postcode": "SN160NJ"
},
{
"SchoolName": "Southwick Church of England Primary School",
"Postcode": "BA149PH"
},
{
"SchoolName": "Staverton Church of England Voluntary Controlled Primary School",
"Postcode": "BA146NZ"
},
{
"SchoolName": "Stratford-sub-Castle Church of England Voluntary Controlled Primary School",
"Postcode": "SP13LL"
},
{
"SchoolName": "Sutton Veny CofE School",
"Postcode": "BA127AP"
},
{
"SchoolName": "Urchfont Church of England Primary School",
"Postcode": "SN104RA"
},
{
"SchoolName": "St John's CofE School",
"Postcode": "BA129JY"
},
{
"SchoolName": "The Minster CofE Primary School",
"Postcode": "BA128JA"
},
{
"SchoolName": "Westbury Church of England Junior School",
"Postcode": "BA133LY"
},
{
"SchoolName": "Westbury Leigh CofE Primary School",
"Postcode": "BA133UR"
},
{
"SchoolName": "Winsley Church of England Voluntary Controlled Primary School",
"Postcode": "BA152JN"
},
{
"SchoolName": "Winterbourne Earls Church of England Primary School",
"Postcode": "SP46HA"
},
{
"SchoolName": "Sambourne Church of England Voluntary Controlled Primary School",
"Postcode": "BA128LF"
},
{
"SchoolName": "Minety Church of England Primary School",
"Postcode": "SN169QL"
},
{
"SchoolName": "St Barnabas Church of England School, Market Lavington",
"Postcode": "SN104NT"
},
{
"SchoolName": "Coombe Bissett Church of England Primary School",
"Postcode": "SP54LU"
},
{
"SchoolName": "Dinton CofE Primary School",
"Postcode": "SP35HW"
},
{
"SchoolName": "St John's Church of England Primary School, Tisbury",
"Postcode": "SP36HJ"
},
{
"SchoolName": "<NAME>'s Church of England Primary",
"Postcode": "SN155AX"
},
{
"SchoolName": "Great Bedwyn Church of England School",
"Postcode": "SN83TR"
},
{
"SchoolName": "St Michael's CofE Aided Primary",
"Postcode": "SN82BP"
},
{
"SchoolName": "Baydon St Nicholas Church of England Primary School",
"Postcode": "SN82JJ"
},
{
"SchoolName": "Bishops Cannings Church of England Aided Primary School",
"Postcode": "SN102LD"
},
{
"SchoolName": "Chapmanslade Church of England Voluntary Aided Primary School",
"Postcode": "BA134AN"
},
{
"SchoolName": "Chilton Foliat Church of England Primary School",
"Postcode": "RG170TF"
},
{
"SchoolName": "Derry Hill Church of England Voluntary Aided Primary School",
"Postcode": "SN119NN"
},
{
"SchoolName": "St Nicholas Church of England Primary School, Porton",
"Postcode": "SP40LB"
},
{
"SchoolName": "St Andrew's Church of England Voluntary Aided Primary School, Laverstock",
"Postcode": "SP11QX"
},
{
"SchoolName": "The New Forest CofE (VA) Primary School",
"Postcode": "SP52BY"
},
{
"SchoolName": "Rushall Church of England Voluntary Aided School",
"Postcode": "SN96EN"
},
{
"SchoolName": "Sarum St Paul's CofE (VA) Primary School",
"Postcode": "SP27DG"
},
{
"SchoolName": "St Martin's CofE Voluntary Aided Primary School",
"Postcode": "SP12RG"
},
{
"SchoolName": "St Thomas A Becket Church of England Aided Primary School",
"Postcode": "SP34RZ"
},
{
"SchoolName": "Whiteparish All Saints Church of England Primary School",
"Postcode": "SP52SU"
},
{
"SchoolName": "Winterslow CofE (Aided) Primary School",
"Postcode": "SP51RD"
},
{
"SchoolName": "Woodborough Church of England Aided Primary School",
"Postcode": "SN95PL"
},
{
"SchoolName": "Christ The King Catholic School, Amesbury",
"Postcode": "SP47LX"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Malmesbury",
"Postcode": "SN169BB"
},
{
"SchoolName": "St Osmund's Catholic Primary School, Salisbury",
"Postcode": "SP12SG"
},
{
"SchoolName": "St John's Catholic Primary School, Trowbridge",
"Postcode": "BA149EA"
},
{
"SchoolName": "Wardour Catholic Primary School",
"Postcode": "SP36RF"
},
{
"SchoolName": "St Patrick's Catholic Primary School, Corsham",
"Postcode": "SN139HS"
},
{
"SchoolName": "Bemerton St John Church of England Aided Primary School",
"Postcode": "SP29NW"
},
{
"SchoolName": "Broad Chalke CofE Primary School",
"Postcode": "SP55DS"
},
{
"SchoolName": "Great Wishford CofE (VA) Primary School",
"Postcode": "SP20PQ"
},
{
"SchoolName": "Chilmark and Fonthill Bishop Church of England Aided Primary School",
"Postcode": "SP35AR"
},
{
"SchoolName": "Semley Church of England Voluntary Aided Primary School",
"Postcode": "SP79AU"
},
{
"SchoolName": "Oliver Tomkins Church of England Junior School",
"Postcode": "SN58LW"
},
{
"SchoolName": "<NAME> Church of England Infant and Nursery School",
"Postcode": "SN58LW"
},
{
"SchoolName": "Hindon Church of England Voluntary Aided Primary School, St Mary's and St John's",
"Postcode": "SP36EA"
},
{
"SchoolName": "Alderbury and West Grimstead Church of England Primary School",
"Postcode": "SP53BD"
},
{
"SchoolName": "Kennet Valley Church of England Aided Primary School",
"Postcode": "SN84EL"
},
{
"SchoolName": "The Trafalgar School at Downton",
"Postcode": "SP53HN"
},
{
"SchoolName": "The Stonehenge School",
"Postcode": "SP47ND"
},
{
"SchoolName": "St Joseph's Catholic School",
"Postcode": "SP11QY"
},
{
"SchoolName": "Aloeric Primary School",
"Postcode": "SN126HN"
},
{
"SchoolName": "Downton CofE VA Primary School",
"Postcode": "SP53LZ"
},
{
"SchoolName": "Frogwell Primary School",
"Postcode": "SN140DG"
},
{
"SchoolName": "Studley Green Primary School",
"Postcode": "BA149JQ"
},
{
"SchoolName": "St George's Catholic Primary School, Warminster",
"Postcode": "BA129EZ"
},
{
"SchoolName": "St Mary's RC Primary School",
"Postcode": "SN152AH"
},
{
"SchoolName": "Paxcroft Primary School",
"Postcode": "BA147EB"
},
{
"SchoolName": "Sutton Benger Church of England Aided Primary School",
"Postcode": "SN154RP"
},
{
"SchoolName": "Ludgershall Castle Primary School",
"Postcode": "SP119RB"
},
{
"SchoolName": "Pitton Church of England Voluntary Aided Primary School",
"Postcode": "SP51DT"
},
{
"SchoolName": "Clarendon Junior School",
"Postcode": "SP97QD"
},
{
"SchoolName": "Clarendon Infants' School",
"Postcode": "SP97QD"
},
{
"SchoolName": "Matravers School",
"Postcode": "BA133QH"
},
{
"SchoolName": "Stonar School",
"Postcode": "SN128NT"
},
{
"SchoolName": "St Mary's School (Snr) and St Margaret's School (Prep)",
"Postcode": "SN110DF"
},
{
"SchoolName": "Grittleton House School",
"Postcode": "SN146AP"
},
{
"SchoolName": "St Mary's School",
"Postcode": "SP79LP"
},
{
"SchoolName": "Marlborough College",
"Postcode": "SN81PA"
},
{
"SchoolName": "Chafyn Grove School",
"Postcode": "SP11LR"
},
{
"SchoolName": "Salisbury Cathedral School",
"Postcode": "SP12EQ"
},
{
"SchoolName": "The Godolphin School",
"Postcode": "SP12RA"
},
{
"SchoolName": "Sandroyd School",
"Postcode": "SP55QD"
},
{
"SchoolName": "Warminster School",
"Postcode": "BA128PJ"
},
{
"SchoolName": "Avondale Preparatory School",
"Postcode": "SP49DR"
},
{
"SchoolName": "Heywood Prep",
"Postcode": "SN130AP"
},
{
"SchoolName": "St Francis School",
"Postcode": "SN95NT"
},
{
"SchoolName": "<NAME>",
"Postcode": "SP13BQ"
},
{
"SchoolName": "Dauntsey's School",
"Postcode": "SN104HE"
},
{
"SchoolName": "Prior Park Preparatory School",
"Postcode": "SN66BB"
},
{
"SchoolName": "Appleford School",
"Postcode": "SP34HL"
},
{
"SchoolName": "Maranatha Christian School",
"Postcode": "SN67SQ"
},
{
"SchoolName": "Calder House School",
"Postcode": "SN148BN"
},
{
"SchoolName": "Rowdeford School",
"Postcode": "SN102QQ"
},
{
"SchoolName": "St Luke's School",
"Postcode": "SN27AS"
},
{
"SchoolName": "Crowdys Hill School",
"Postcode": "SN27HJ"
},
{
"SchoolName": "Downland School",
"Postcode": "SN105EF"
},
{
"SchoolName": "St Nicholas School",
"Postcode": "SN151QF"
},
{
"SchoolName": "Larkrise School",
"Postcode": "BA147EB"
},
{
"SchoolName": "The Chalet School",
"Postcode": "SN36EX"
},
{
"SchoolName": "The Kingsdown Nursery School, Lincoln",
"Postcode": "LN60FB"
},
{
"SchoolName": "The Gainsborough Nursery School",
"Postcode": "DN212RR"
},
{
"SchoolName": "Boston Nursery School",
"Postcode": "PE210LJ"
},
{
"SchoolName": "Moorland Centre Nursery School",
"Postcode": "MK64LP"
},
{
"SchoolName": "Apex Primary School",
"Postcode": "IG13BG"
},
{
"SchoolName": "Heritage Park School",
"Postcode": "S22RU"
},
{
"SchoolName": "Holgate Meadows School",
"Postcode": "S57WE"
},
{
"SchoolName": "Holy Trinity Church of England VC Primary School & Community Nursery",
"Postcode": "DT49QX"
},
{
"SchoolName": "On Track Education Centre (Mildenhall)",
"Postcode": "IP287RD"
},
{
"SchoolName": "Redbridge Primary School",
"Postcode": "IG45HW"
},
{
"SchoolName": "Windmill Primary School",
"Postcode": "TF31LG"
},
{
"SchoolName": "St George's Community Primary School",
"Postcode": "DT52BD"
},
{
"SchoolName": "Holy Rood Catholic Primary School",
"Postcode": "WD174FS"
},
{
"SchoolName": "The Observatory School",
"Postcode": "CH437QT"
},
{
"SchoolName": "Ashgate Specialist Support Primary School",
"Postcode": "M225DR"
},
{
"SchoolName": "Hucknall National Church of England (VA) Primary School",
"Postcode": "NG157DU"
},
{
"SchoolName": "Riverside Primary School",
"Postcode": "HR27JF"
},
{
"SchoolName": "Oakwood School",
"Postcode": "LE38DG"
},
{
"SchoolName": "Berkshire Adolescent Unit Hospital Education",
"Postcode": "RG412RE"
},
{
"SchoolName": "Cambian Meadow Road",
"Postcode": "M298BS"
},
{
"SchoolName": "Pathways Special School",
"Postcode": "TS67NP"
},
{
"SchoolName": "<NAME> Academy, A Church of England School",
"Postcode": "LE26UA"
},
{
"SchoolName": "Three Bridges",
"Postcode": "TR48EG"
},
{
"SchoolName": "Grace Academy Solihull",
"Postcode": "B375JS"
},
{
"SchoolName": "Primrose Hill Primary School and Children's Centre",
"Postcode": "M53PJ"
},
{
"SchoolName": "Norwich Steiner School",
"Postcode": "NR12HW"
},
{
"SchoolName": "Learn 4 Life School",
"Postcode": "WN89AL"
},
{
"SchoolName": "<NAME>irls' School",
"Postcode": "LE55LL"
},
{
"SchoolName": "Wellstead Primary School",
"Postcode": "SO302LE"
},
{
"SchoolName": "Seaview Primary School",
"Postcode": "SR78PD"
},
{
"SchoolName": "Wembley Primary School",
"Postcode": "HA97NW"
},
{
"SchoolName": "<NAME>",
"Postcode": "SW63ES"
},
{
"SchoolName": "The Children's House Upper School",
"Postcode": "N14PB"
},
{
"SchoolName": "Al-Ameen Primary School",
"Postcode": "B112JR"
},
{
"SchoolName": "Olive Secondary",
"Postcode": "BD30AD"
},
{
"SchoolName": "<NAME> Academy",
"Postcode": "RG28AF"
},
{
"SchoolName": "Drayton Park School",
"Postcode": "MK23HJ"
},
{
"SchoolName": "Forest Town Primary School",
"Postcode": "NG190ED"
},
{
"SchoolName": "Ingleby Mill Primary School",
"Postcode": "TS170LW"
},
{
"SchoolName": "Bowsland Green Primary School",
"Postcode": "BS320ES"
},
{
"SchoolName": "Highfields Primary School",
"Postcode": "LE20UU"
},
{
"SchoolName": "Broad Oak Community Primary School",
"Postcode": "WA92JE"
},
{
"SchoolName": "Longsands Community Primary School",
"Postcode": "PR29PS"
},
{
"SchoolName": "Mossgate Primary School",
"Postcode": "LA32EE"
},
{
"SchoolName": "Rivacre Valley Primary School",
"Postcode": "CH661LE"
},
{
"SchoolName": "New Horizon Community School",
"Postcode": "LS74JE"
},
{
"SchoolName": "Kingscourt School",
"Postcode": "PO89NJ"
},
{
"SchoolName": "Bicker Preparatory and Early Years School",
"Postcode": "PE203DW"
},
{
"SchoolName": "<NAME>",
"Postcode": "BL34HF"
},
{
"SchoolName": "Beis Ruchel Girls School",
"Postcode": "M85BQ"
},
{
"SchoolName": "Yeshivah Ohr Torah School",
"Postcode": "M74FX"
},
{
"SchoolName": "Thorne Brooke Primary School",
"Postcode": "DN85PQ"
},
{
"SchoolName": "Thorne Green Top Primary School",
"Postcode": "DN85LB"
},
{
"SchoolName": "Dovecot Primary School",
"Postcode": "L140LH"
},
{
"SchoolName": "Atherton St George's CofE Primary School",
"Postcode": "M460HJ"
},
{
"SchoolName": "Rushmore Primary School",
"Postcode": "E50LE"
},
{
"SchoolName": "Gayhurst Community School",
"Postcode": "E83EN"
},
{
"SchoolName": "Bilston Church of England Primary School",
"Postcode": "WV140HU"
},
{
"SchoolName": "Chiltern Tutorial School",
"Postcode": "SO212ET"
},
{
"SchoolName": "Finchale Primary School",
"Postcode": "DH15XT"
},
{
"SchoolName": "Sherborne Learning Centre",
"Postcode": "DT94DN"
},
{
"SchoolName": "Dorchester Learning Centre",
"Postcode": "DT29PS"
},
{
"SchoolName": "Manchester Islamic High School for Girls",
"Postcode": "M219FA"
},
{
"SchoolName": "Meadowpark School",
"Postcode": "SN66DD"
},
{
"SchoolName": "<NAME>",
"Postcode": "WS28PR"
},
{
"SchoolName": "Heygarth Primary School",
"Postcode": "CH628AG"
},
{
"SchoolName": "Mill Hill Primary School",
"Postcode": "PO77DB"
},
{
"SchoolName": "Cauldwell School",
"Postcode": "MK429DR"
},
{
"SchoolName": "St Stephen's Church of England Primary School",
"Postcode": "BL82DX"
},
{
"SchoolName": "The Stoke Poges School",
"Postcode": "SL24LN"
},
{
"SchoolName": "Rabia Girls' and Boys' School",
"Postcode": "LU48AX"
},
{
"SchoolName": "Norfolk Community Primary School",
"Postcode": "S22PJ"
},
{
"SchoolName": "Fleetwood Flakefleet Primary School",
"Postcode": "FY77ND"
},
{
"SchoolName": "Captain Cook Primary School",
"Postcode": "TS78DU"
},
{
"SchoolName": "Monteagle Primary School",
"Postcode": "RM94RB"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "EC1R4PQ"
},
{
"SchoolName": "Ainslie Wood Primary School",
"Postcode": "E49DD"
},
{
"SchoolName": "North Area Pupil Referral Unit",
"Postcode": "SG63LY"
},
{
"SchoolName": "The Park Education Support Centre",
"Postcode": "EN65AB"
},
{
"SchoolName": "South West Area Pupil Referral Unit",
"Postcode": "WD186LJ"
},
{
"SchoolName": "Heckmondwike Primary School",
"Postcode": "WF160AN"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "E143RP"
},
{
"SchoolName": "Oaklands School",
"Postcode": "LE56GJ"
},
{
"SchoolName": "<NAME> Primary School with ARP for Cognitive and Learning Difficulties : SEN Base",
"Postcode": "RM108DF"
},
{
"SchoolName": "Alexandra Primary School",
"Postcode": "N226UH"
},
{
"SchoolName": "Stevenage Education Support Centre",
"Postcode": "SG29HQ"
},
{
"SchoolName": "Southfield School",
"Postcode": "AL108NN"
},
{
"SchoolName": "Appletree School",
"Postcode": "LA97QS"
},
{
"SchoolName": "Ellesmere College",
"Postcode": "LE32FD"
},
{
"SchoolName": "Shay Lane Primary (J and I) School",
"Postcode": "WF41NN"
},
{
"SchoolName": "Mandale Mill Primary School",
"Postcode": "TS178AP"
},
{
"SchoolName": "The Dassett CofE Primary School",
"Postcode": "CV472XU"
},
{
"SchoolName": "Birchfields Primary School",
"Postcode": "M146PL"
},
{
"SchoolName": "Sandringham Primary School",
"Postcode": "E78ED"
},
{
"SchoolName": "Queen's Park CofE URC Primary School",
"Postcode": "WA104NQ"
},
{
"SchoolName": "St Jude's Catholic Primary School Wigan",
"Postcode": "WN35AN"
},
{
"SchoolName": "Churchfields, the Village School",
"Postcode": "SN128HY"
},
{
"SchoolName": "Andalusia Academy Bristol",
"Postcode": "BS20BA"
},
{
"SchoolName": "Lawrence Community Primary School",
"Postcode": "L150EE"
},
{
"SchoolName": "Ellenbrook Community Primary School",
"Postcode": "M287PS"
},
{
"SchoolName": "The Dawnay School",
"Postcode": "KT234JJ"
},
{
"SchoolName": "<NAME>",
"Postcode": "SW116JZ"
},
{
"SchoolName": "Grafton House Preparatory School",
"Postcode": "OL66XB"
},
{
"SchoolName": "Tashbar of Edgware",
"Postcode": "HA88JL"
},
{
"SchoolName": "Acorn Cottage",
"Postcode": "IP76NY"
},
{
"SchoolName": "Gable End",
"Postcode": "IP77NL"
},
{
"SchoolName": "Abbey Manor College",
"Postcode": "SE128JP"
},
{
"SchoolName": "Crystal Gardens Primary School",
"Postcode": "BD57PE"
},
{
"SchoolName": "Ash Grove Junior and Infant School",
"Postcode": "WF92TF"
},
{
"SchoolName": "Northfield Primary School: With Communication Resource",
"Postcode": "WF93LY"
},
{
"SchoolName": "Bushy Leaze Early Years Centre",
"Postcode": "GU342DR"
},
{
"SchoolName": "Upton Primary School",
"Postcode": "WF91JS"
},
{
"SchoolName": "Moorthorpe Primary (J and I ) School",
"Postcode": "WF92BL"
},
{
"SchoolName": "South Kirkby Common Road Infant and Nursery School",
"Postcode": "WF93EA"
},
{
"SchoolName": "South Elmsall Carlton Junior and Infant School",
"Postcode": "WF92QQ"
},
{
"SchoolName": "Coten End Primary School",
"Postcode": "CV344NP"
},
{
"SchoolName": "Sydenham Primary School",
"Postcode": "CV311SA"
},
{
"SchoolName": "Lillington Primary School",
"Postcode": "CV327AG"
},
{
"SchoolName": "St John's Primary School",
"Postcode": "CV81FS"
},
{
"SchoolName": "Kingsway Community Primary School",
"Postcode": "CV313HB"
},
{
"SchoolName": "Long Itchington CofE Primary School",
"Postcode": "CV479QP"
},
{
"SchoolName": "Provost Williams CofE Primary School",
"Postcode": "CV83FF"
},
{
"SchoolName": "St Andrew's Benn CofE (Voluntary Aided) Primary School",
"Postcode": "CV213NX"
},
{
"SchoolName": "The Revel CofE (Aided) Primary School",
"Postcode": "CV230RA"
},
{
"SchoolName": "Mill Meadow",
"Postcode": "CB88RW"
},
{
"SchoolName": "Bournebrook CofE Primary School",
"Postcode": "CV78ET"
},
{
"SchoolName": "Newbold and Tredington CofE Primary School",
"Postcode": "CV364NZ"
},
{
"SchoolName": "St Matthew's Bloxam CofE Primary School",
"Postcode": "CV227AU"
},
{
"SchoolName": "St Lawrence CofE (Voluntary Aided) Primary School",
"Postcode": "CV478LU"
},
{
"SchoolName": "Paddox Primary School",
"Postcode": "CV225HS"
},
{
"SchoolName": "Binley Woods Primary School",
"Postcode": "CV32QU"
},
{
"SchoolName": "Hillmorton Primary School",
"Postcode": "CV214PE"
},
{
"SchoolName": "Wembrook Primary School",
"Postcode": "CV114LU"
},
{
"SchoolName": "Arden Forest Infant School",
"Postcode": "CV129RT"
},
{
"SchoolName": "Milby Primary School",
"Postcode": "CV116JS"
},
{
"SchoolName": "Weddington Primary School",
"Postcode": "CV100DR"
},
{
"SchoolName": "Newdigate Primary School",
"Postcode": "CV120HA"
},
{
"SchoolName": "Goodyers End Primary School",
"Postcode": "CV120HP"
},
{
"SchoolName": "Exhall Cedars Infant School",
"Postcode": "CV79FJ"
},
{
"SchoolName": "Newbridge School",
"Postcode": "RM64TR"
},
{
"SchoolName": "The Birches",
"Postcode": "PR22YQ"
},
{
"SchoolName": "Macmillan Academy",
"Postcode": "TS54AG"
},
{
"SchoolName": "Dixons City Academy",
"Postcode": "BD57RR"
},
{
"SchoolName": "Knightlow CofE Primary School",
"Postcode": "CV239NF"
},
{
"SchoolName": "Paddington Academy",
"Postcode": "W92DR"
},
{
"SchoolName": "Lime Meadows",
"Postcode": "PR22YQ"
},
{
"SchoolName": "Ridgeway Primary School",
"Postcode": "CR20EQ"
},
{
"SchoolName": "Bessemer Grange Primary School",
"Postcode": "SE58HP"
},
{
"SchoolName": "Godwin Primary School",
"Postcode": "RM96JH"
},
{
"SchoolName": "Middle Park Primary School",
"Postcode": "SE95RX"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "DN46SL"
},
{
"SchoolName": "Mount Pleasant Primary School",
"Postcode": "HD13RT"
},
{
"SchoolName": "Dovelands Primary School",
"Postcode": "LE30TJ"
},
{
"SchoolName": "St Oswald's CofE Aided Primary School",
"Postcode": "CH16LG"
},
{
"SchoolName": "Werrington Primary School",
"Postcode": "PE46QG"
},
{
"SchoolName": "Trinity CofE Primary School",
"Postcode": "SY59LG"
},
{
"SchoolName": "William Patten Primary School",
"Postcode": "N160NX"
},
{
"SchoolName": "Brettenham Primary School",
"Postcode": "N182ET"
},
{
"SchoolName": "Muschamp Primary School and Language Opportunity Base",
"Postcode": "SM52SE"
},
{
"SchoolName": "New Ash Green Primary School",
"Postcode": "DA38JT"
},
{
"SchoolName": "Framwellgate Moor Primary School",
"Postcode": "DH15BG"
},
{
"SchoolName": "Hill Top School",
"Postcode": "NE108LT"
},
{
"SchoolName": "King Street Primary School",
"Postcode": "DL166RA"
},
{
"SchoolName": "Harmans Water Primary School",
"Postcode": "RG129NE"
},
{
"SchoolName": "Shrubland Street Community Primary School",
"Postcode": "CV312AR"
},
{
"SchoolName": "Kings Hill School",
"Postcode": "ME194LS"
},
{
"SchoolName": "Heronshaw School",
"Postcode": "MK77PG"
},
{
"SchoolName": "Harlands Primary School",
"Postcode": "TN225PW"
},
{
"SchoolName": "Sacred Heart Catholic Primary School, Hindley Green",
"Postcode": "WN24HD"
},
{
"SchoolName": "Russet House School",
"Postcode": "EN14JA"
},
{
"SchoolName": "Sandfield Park School",
"Postcode": "L121LH"
},
{
"SchoolName": "Langford Village Community School",
"Postcode": "OX266SX"
},
{
"SchoolName": "Badsworth Church of England Voluntary Controlled Junior and Infant School",
"Postcode": "WF91AJ"
},
{
"SchoolName": "<NAME> Junior and Infant School",
"Postcode": "WF77PH"
},
{
"SchoolName": "Hemsworth Grove Lea Primary School",
"Postcode": "WF94BQ"
},
{
"SchoolName": "Fitzwilliam Primary School",
"Postcode": "WF95BA"
},
{
"SchoolName": "South Hiendley Junior Infant and Early Years School",
"Postcode": "S729BY"
},
{
"SchoolName": "Ryhill Junior, Infant and Nursery School",
"Postcode": "WF42AD"
},
{
"SchoolName": "All Saints CofE (VA) Primary School, Leek Wootton",
"Postcode": "CV357QR"
},
{
"SchoolName": "<NAME> Church of England Voluntary Controlled Junior and Infant School",
"Postcode": "WF77HH"
},
{
"SchoolName": "Manorbrook Primary School",
"Postcode": "BS351JW"
},
{
"SchoolName": "Lighthouse School",
"Postcode": "CT92QJ"
},
{
"SchoolName": "Tracks",
"Postcode": "BD182LU"
},
{
"SchoolName": "The Priory Centre",
"Postcode": "WF41LL"
},
{
"SchoolName": "Perryfields Primary Pupil Referral Unit",
"Postcode": "WR25AX"
},
{
"SchoolName": "The Beacon Primary Short Stay School",
"Postcode": "B987UZ"
},
{
"SchoolName": "Herefordshire Pupil Referral Service",
"Postcode": "HR12DY"
},
{
"SchoolName": "Central Park Primary School",
"Postcode": "E63DW"
},
{
"SchoolName": "Newark Orchard School",
"Postcode": "NG241JR"
},
{
"SchoolName": "Hasmonean Primary School",
"Postcode": "NW42PD"
},
{
"SchoolName": "Crawley Down Village CofE",
"Postcode": "RH104XA"
},
{
"SchoolName": "Avenue Primary School",
"Postcode": "LE23EJ"
},
{
"SchoolName": "Oaklands College Hillcrest",
"Postcode": "DE137HR"
},
{
"SchoolName": "Southglade Primary School",
"Postcode": "NG55NE"
},
{
"SchoolName": "Westglade Primary School",
"Postcode": "NG59BG"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NG55NA"
},
{
"SchoolName": "Cadishead Primary School",
"Postcode": "M445JD"
},
{
"SchoolName": "Highlands Primary School",
"Postcode": "IG13LE"
},
{
"SchoolName": "Etz Chaim School at the Belmont",
"Postcode": "M84JY"
},
{
"SchoolName": "Newbury Manor School",
"Postcode": "BA113RG"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NG55GH"
},
{
"SchoolName": "The Shires",
"Postcode": "LE157GT"
},
{
"SchoolName": "Newbridge Primary School",
"Postcode": "BA13LL"
},
{
"SchoolName": "Hythe Bay CofE Primary School",
"Postcode": "CT216HS"
},
{
"SchoolName": "Central Primary School",
"Postcode": "NE630AX"
},
{
"SchoolName": "Mill Green School",
"Postcode": "WA91BU"
},
{
"SchoolName": "Stephen Hawking School",
"Postcode": "E147LL"
},
{
"SchoolName": "Belmont School",
"Postcode": "BB46RX"
},
{
"SchoolName": "<NAME>",
"Postcode": "NW96AX"
},
{
"SchoolName": "Oswald Road Primary School",
"Postcode": "M219PL"
},
{
"SchoolName": "Promised Land Academy",
"Postcode": "E138SR"
},
{
"SchoolName": "Oakwood School",
"Postcode": "W69RU"
},
{
"SchoolName": "Albany Village Primary School",
"Postcode": "NE371UA"
},
{
"SchoolName": "Grosvenor Road Primary School",
"Postcode": "M275LN"
},
{
"SchoolName": "St George's CofE Primary School",
"Postcode": "BL52FB"
},
{
"SchoolName": "Oakwood School",
"Postcode": "CR82AN"
},
{
"SchoolName": "Barn Croft Primary School",
"Postcode": "E178SB"
},
{
"SchoolName": "Brondesbury College London",
"Postcode": "NW67BT"
},
{
"SchoolName": "Brandles School",
"Postcode": "SG76EY"
},
{
"SchoolName": "Yew Tree Community Primary School (With Designated Special Provision)",
"Postcode": "L261UU"
},
{
"SchoolName": "The Petchey Academy",
"Postcode": "E82EY"
},
{
"SchoolName": "Chilworth House School",
"Postcode": "OX331JP"
},
{
"SchoolName": "North Liverpool Academy",
"Postcode": "L50SQ"
},
{
"SchoolName": "Alternative Curriculum 14-19",
"Postcode": "RG147BT"
},
{
"SchoolName": "The Reintegration Service",
"Postcode": "RG194RE"
},
{
"SchoolName": "Hollywater School",
"Postcode": "GU350HA"
},
{
"SchoolName": "Stanley Primary School",
"Postcode": "FY39UT"
},
{
"SchoolName": "Riverview CofE Primary and Nursery School VA",
"Postcode": "KT190JP"
},
{
"SchoolName": "The William Amory Primary School",
"Postcode": "ST119PN"
},
{
"SchoolName": "Bellerbys College Cambridge",
"Postcode": "CB21LU"
},
{
"SchoolName": "Harlow Green Community Primary School",
"Postcode": "NE97TB"
},
{
"SchoolName": "Rowan Gate Primary School -Two Sites",
"Postcode": "NN84NS"
},
{
"SchoolName": "Rowlands Gill Community Primary School",
"Postcode": "NE392PP"
},
{
"SchoolName": "Watercliffe Meadow Community Primary School",
"Postcode": "S57HL"
},
{
"SchoolName": "Vale View Primary School",
"Postcode": "SK56TP"
},
{
"SchoolName": "Beech Hill Community Primary School",
"Postcode": "LU48BW"
},
{
"SchoolName": "Stroud Green Primary School",
"Postcode": "N43EX"
},
{
"SchoolName": "Fern Hill Primary School",
"Postcode": "KT25PE"
},
{
"SchoolName": "West Gate School",
"Postcode": "LE36DG"
},
{
"SchoolName": "Dacorum Education Support Centre",
"Postcode": "HP24HS"
},
{
"SchoolName": "Trinity School",
"Postcode": "RM107SJ"
},
{
"SchoolName": "Culvers House Primary School",
"Postcode": "CR44JH"
},
{
"SchoolName": "Emmaus Church of England and Catholic Primary School",
"Postcode": "L120JE"
},
{
"SchoolName": "Kells Lane Primary School",
"Postcode": "NE95HX"
},
{
"SchoolName": "Chopwell Primary School",
"Postcode": "NE177HS"
},
{
"SchoolName": "The Topsham School",
"Postcode": "EX30DN"
},
{
"SchoolName": "Discovery Primary School",
"Postcode": "SE280JN"
},
{
"SchoolName": "Valley View Community Primary School",
"Postcode": "LS131DD"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "GU28YH"
},
{
"SchoolName": "Oakwood School",
"Postcode": "DA76LB"
},
{
"SchoolName": "Holbrook Primary School",
"Postcode": "PO130JN"
},
{
"SchoolName": "Bedenham Primary School",
"Postcode": "PO130XT"
},
{
"SchoolName": "<NAME>-Hudaa Residential College",
"Postcode": "NG35TT"
},
{
"SchoolName": "<NAME>",
"Postcode": "NW119TB"
},
{
"SchoolName": "Al-Mahad-Al-Islami",
"Postcode": "S95FP"
},
{
"SchoolName": "The Faculty of Queen Ethelburga's",
"Postcode": "YO269SS"
},
{
"SchoolName": "Cranmere Primary School",
"Postcode": "KT108BE"
},
{
"SchoolName": "Drive Preparatory School",
"Postcode": "BN36GE"
},
{
"SchoolName": "Finchley and Acton Yochien School",
"Postcode": "N31UE"
},
{
"SchoolName": "Castlewood Primary School",
"Postcode": "RH139US"
},
{
"SchoolName": "Al-Furqaan Preparatory School",
"Postcode": "WF132JR"
},
{
"SchoolName": "Trafford Medical Education Service",
"Postcode": "M415GW"
},
{
"SchoolName": "Denby Grange School",
"Postcode": "WF44JG"
},
{
"SchoolName": "Progress School",
"Postcode": "PR56AQ"
},
{
"SchoolName": "Hillcrest Slinfold School",
"Postcode": "RH130QX"
},
{
"SchoolName": "Hoxton Garden Primary",
"Postcode": "N15JD"
},
{
"SchoolName": "Grange Primary School",
"Postcode": "W54HN"
},
{
"SchoolName": "Whitegrove Primary School",
"Postcode": "RG423QS"
},
{
"SchoolName": "Camrose Early Years Centre for Children & Families",
"Postcode": "NN57DE"
},
{
"SchoolName": "West Park Primary School",
"Postcode": "WV14BE"
},
{
"SchoolName": "Codnor Community Primary School Church of England Controlled",
"Postcode": "DE59QD"
},
{
"SchoolName": "Athersley North Primary School",
"Postcode": "S713NB"
},
{
"SchoolName": "Mill Cottage Montessori School",
"Postcode": "HD64HA"
},
{
"SchoolName": "Athersley South Primary School",
"Postcode": "S713TP"
},
{
"SchoolName": "Red Rose School",
"Postcode": "FY82NQ"
},
{
"SchoolName": "Woodstock Girls' School",
"Postcode": "B139BB"
},
{
"SchoolName": "The Fulham Preparatory School Limited",
"Postcode": "W149SD"
},
{
"SchoolName": "Lanchester Endowed Parochial Primary School",
"Postcode": "DH70HU"
},
{
"SchoolName": "Beis Aharon School",
"Postcode": "N165ED"
},
{
"SchoolName": "Darwin School",
"Postcode": "W69RU"
},
{
"SchoolName": "ACS Egham International School",
"Postcode": "TW200HS"
},
{
"SchoolName": "The Gill Blowers Nursery School",
"Postcode": "LU49JL"
},
{
"SchoolName": "Pennine Way Primary School",
"Postcode": "CA13SN"
},
{
"SchoolName": "Guns Village Primary School",
"Postcode": "B709NT"
},
{
"SchoolName": "Beech Grove School",
"Postcode": "CT154FB"
},
{
"SchoolName": "West Sussex Alternative Provision College",
"Postcode": "RH158RE"
},
{
"SchoolName": "Uplands Manor Primary School",
"Postcode": "B676HT"
},
{
"SchoolName": "Keyham Lodge School",
"Postcode": "LE51FG"
},
{
"SchoolName": "Chalkhill Education Centre, Chalkhill Hospital",
"Postcode": "RH164NQ"
},
{
"SchoolName": "Emerson Valley School",
"Postcode": "MK42JR"
},
{
"SchoolName": "Loddon Primary School",
"Postcode": "RG67LR"
},
{
"SchoolName": "Isambard Community School",
"Postcode": "SN252ND"
},
{
"SchoolName": "Wheatfields Primary School",
"Postcode": "PE273WF"
},
{
"SchoolName": "Green Gables Montessori Primary School",
"Postcode": "E1W2RG"
},
{
"SchoolName": "Dryden School",
"Postcode": "NE95UR"
},
{
"SchoolName": "The Woodbridge Park Education Service",
"Postcode": "TW75ED"
},
{
"SchoolName": "Temple Primary School",
"Postcode": "M88SA"
},
{
"SchoolName": "West Jesmond Primary School",
"Postcode": "NE23AJ"
},
{
"SchoolName": "Church Langley Community Primary School",
"Postcode": "CM179TH"
},
{
"SchoolName": "The Priory Primary School",
"Postcode": "WS100JG"
},
{
"SchoolName": "Gibside School",
"Postcode": "NE165AT"
},
{
"SchoolName": "Westcliffe Primary School",
"Postcode": "DN171PN"
},
{
"SchoolName": "All Saints Upton Church of England Voluntary Controlled Primary School",
"Postcode": "WA84PG"
},
{
"SchoolName": "Montem Primary School",
"Postcode": "N77QT"
},
{
"SchoolName": "Brinkley Grove Primary School",
"Postcode": "CO49GF"
},
{
"SchoolName": "Lowick Church of England Voluntary Controlled First School",
"Postcode": "TD152UA"
},
{
"SchoolName": "St Mary's Church of England Middle School",
"Postcode": "NE707NX"
},
{
"SchoolName": "King George V Primary School",
"Postcode": "B706JA"
},
{
"SchoolName": "Bailey's Court Primary School",
"Postcode": "BS328AZ"
},
{
"SchoolName": "Warren Primary School",
"Postcode": "RM166NB"
},
{
"SchoolName": "St Cuthbert's Catholic Primary School Wigan",
"Postcode": "WN59LW"
},
{
"SchoolName": "The Moriah Jewish Day School",
"Postcode": "HA51JF"
},
{
"SchoolName": "Grange Primary School",
"Postcode": "DN345TA"
},
{
"SchoolName": "Pen Green Centre for Children and Their Families",
"Postcode": "NN171BJ"
},
{
"SchoolName": "Newker Primary School",
"Postcode": "DH23AA"
},
{
"SchoolName": "Cavendish School",
"Postcode": "SE162PA"
},
{
"SchoolName": "St Anne's CofE Primary School",
"Postcode": "PE292WW"
},
{
"SchoolName": "Mount Nod Primary School",
"Postcode": "CV57BG"
},
{
"SchoolName": "Watergall Primary School",
"Postcode": "PE38NX"
},
{
"SchoolName": "Spon Gate Primary School",
"Postcode": "CV13BQ"
},
{
"SchoolName": "James Wolfe Primary School and Centre for the Deaf",
"Postcode": "SE109LA"
},
{
"SchoolName": "Bonneville Primary School",
"Postcode": "SW49LB"
},
{
"SchoolName": "Gardners Lane Primary School",
"Postcode": "GL519JW"
},
{
"SchoolName": "Hesters Way Primary School",
"Postcode": "GL510ES"
},
{
"SchoolName": "Holy Trinity Rosehill CofE Voluntary Aided Primary School",
"Postcode": "TS197QU"
},
{
"SchoolName": "West Lancashire Community High School",
"Postcode": "WN88EH"
},
{
"SchoolName": "Kingsbury Primary Special School",
"Postcode": "WN88EH"
},
{
"SchoolName": "The Warren School",
"Postcode": "NN146BQ"
},
{
"SchoolName": "Ayesha Community School",
"Postcode": "NW43ES"
},
{
"SchoolName": "Westminster Academy",
"Postcode": "W25EZ"
},
{
"SchoolName": "Plover Primary School",
"Postcode": "DN26JL"
},
{
"SchoolName": "<NAME> Pupil Referral Unit",
"Postcode": "SE192RU"
},
{
"SchoolName": "St James Junior School",
"Postcode": "W148SH"
},
{
"SchoolName": "Leverhulme Community Primary School",
"Postcode": "BL26EE"
},
{
"SchoolName": "Mansel Park Primary School",
"Postcode": "SO169HZ"
},
{
"SchoolName": "Lyppard Grange Primary School",
"Postcode": "WR40DZ"
},
{
"SchoolName": "Drayton Community Infant School",
"Postcode": "NR86EP"
},
{
"SchoolName": "Charters Ancaster Preparatory & Nursery School",
"Postcode": "TN394EB"
},
{
"SchoolName": "Virgo Fidelis Convent Senior School",
"Postcode": "SE191RS"
},
{
"SchoolName": "Bidston Village CofE (Controlled) Primary School",
"Postcode": "CH437XG"
},
{
"SchoolName": "Our Lady of Mount Carmel RC Primary School, Ashton-under-Lyne",
"Postcode": "OL69JJ"
},
{
"SchoolName": "Drayton CofE Junior School",
"Postcode": "NR86EF"
},
{
"SchoolName": "Wentworth Tutorial College",
"Postcode": "NW119LH"
},
{
"SchoolName": "The Academy School",
"Postcode": "NW31NG"
},
{
"SchoolName": "Hartlepool Pupil Referral Unit",
"Postcode": "TS254BY"
},
{
"SchoolName": "Rowan Tree Primary School",
"Postcode": "M469HP"
},
{
"SchoolName": "Mayespark Primary School",
"Postcode": "IG39PX"
},
{
"SchoolName": "Ray Lodge Primary School",
"Postcode": "IG87JQ"
},
{
"SchoolName": "St George's Church of England Primary School",
"Postcode": "SK26NX"
},
{
"SchoolName": "Trinity and St Michael's VA CofE/Methodist Primary School",
"Postcode": "PR269HJ"
},
{
"SchoolName": "Elthorne Park High School",
"Postcode": "W72AH"
},
{
"SchoolName": "The Beacon Church of England Primary School",
"Postcode": "L53QG"
},
{
"SchoolName": "Four Oaks Primary School",
"Postcode": "L51XP"
},
{
"SchoolName": "New Park Primary School",
"Postcode": "L69EU"
},
{
"SchoolName": "Whitchurch Primary School & Nursery",
"Postcode": "HA72EQ"
},
{
"SchoolName": "Surrey Square Primary School",
"Postcode": "SE172JY"
},
{
"SchoolName": "Haywood Grove School",
"Postcode": "HP27BG"
},
{
"SchoolName": "Holly House Special School",
"Postcode": "S419QR"
},
{
"SchoolName": "Holbrook School for Autism",
"Postcode": "DE560TE"
},
{
"SchoolName": "Newington Green Primary School",
"Postcode": "N168NP"
},
{
"SchoolName": "The Linnet Independent Learning Centre",
"Postcode": "DE119JE"
},
{
"SchoolName": "Red Balloon Learner Centre - Cambridge",
"Postcode": "CB11EE"
},
{
"SchoolName": "Tyldesley St George's Central CofE Primary School",
"Postcode": "M298DH"
},
{
"SchoolName": "St Aloysius Catholic Primary School",
"Postcode": "L362LF"
},
{
"SchoolName": "Ghausia Girls' High School",
"Postcode": "BB97EN"
},
{
"SchoolName": "Hill Mead Primary School",
"Postcode": "SW98UE"
},
{
"SchoolName": "Kirkby Avenue Primary School",
"Postcode": "DN59TF"
},
{
"SchoolName": "<NAME> Girls' School",
"Postcode": "E59DH"
},
{
"SchoolName": "The Lyceum",
"Postcode": "EC2A4JH"
},
{
"SchoolName": "Loughton Manor First School",
"Postcode": "MK58FA"
},
{
"SchoolName": "St Margaret's CofE Voluntary Aided Primary School",
"Postcode": "WA29AD"
},
{
"SchoolName": "Lache Primary School",
"Postcode": "CH48HX"
},
{
"SchoolName": "Educare Small School",
"Postcode": "KT26DZ"
},
{
"SchoolName": "Queenswood School",
"Postcode": "HR82PZ"
},
{
"SchoolName": "<NAME>",
"Postcode": "LA15AJ"
},
{
"SchoolName": "The Lioncare School",
"Postcode": "BN35HD"
},
{
"SchoolName": "Home Farm Primary School",
"Postcode": "BD63NR"
},
{
"SchoolName": "Menorah Foundation School",
"Postcode": "HA80QS"
},
{
"SchoolName": "St Paul's Steiner School",
"Postcode": "N12QH"
},
{
"SchoolName": "Gloucestershire Hospital Education Service",
"Postcode": "GL503EW"
},
{
"SchoolName": "Red Oaks Primary School",
"Postcode": "SN252AN"
},
{
"SchoolName": "Orchid Vale Primary School",
"Postcode": "SN251UG"
},
{
"SchoolName": "<NAME>",
"Postcode": "PR22YQ"
},
{
"SchoolName": "The Haven Voluntary Aided CofE/Methodist Primary School",
"Postcode": "BN235SW"
},
{
"SchoolName": "Jamiatul Ummah School",
"Postcode": "E12ND"
},
{
"SchoolName": "Jamiatul-Ilm Wal-Huda UK School",
"Postcode": "BB15JT"
},
{
"SchoolName": "Redhill Primary School",
"Postcode": "TF29GZ"
},
{
"SchoolName": "Browns School",
"Postcode": "BR67PH"
},
{
"SchoolName": "Wavendon Gate School",
"Postcode": "MK77HL"
},
{
"SchoolName": "Roe Farm Primary School",
"Postcode": "DE214HG"
},
{
"SchoolName": "Reigate Park Primary School",
"Postcode": "DE224EQ"
},
{
"SchoolName": "Tiferes High School",
"Postcode": "NW42TA"
},
{
"SchoolName": "Oakthorpe Primary School",
"Postcode": "N136BY"
},
{
"SchoolName": "Oakdene Primary School",
"Postcode": "TS233NR"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "BS328EJ"
},
{
"SchoolName": "CATS Canterbury",
"Postcode": "CT13LQ"
},
{
"SchoolName": "Kincraig Primary School",
"Postcode": "FY20HN"
},
{
"SchoolName": "St Ann's Junior and Infant School",
"Postcode": "S651PD"
},
{
"SchoolName": "Hedon Nursery School",
"Postcode": "HU128JB"
},
{
"SchoolName": "St Mary's RC Primary School",
"Postcode": "NW65ST"
},
{
"SchoolName": "Whiteley Primary School",
"Postcode": "PO157LA"
},
{
"SchoolName": "Highfield Community Primary School",
"Postcode": "CH15LD"
},
{
"SchoolName": "The Old Priory School",
"Postcode": "CT119PG"
},
{
"SchoolName": "Priory Woods School",
"Postcode": "TS30RH"
},
{
"SchoolName": "The Mawney Foundation School",
"Postcode": "RM77HR"
},
{
"SchoolName": "Leighswood School",
"Postcode": "WS98HZ"
},
{
"SchoolName": "<NAME>",
"Postcode": "M72BT"
},
{
"SchoolName": "Trinity Church of England Primary School",
"Postcode": "WV100UB"
},
{
"SchoolName": "Southfields Primary School",
"Postcode": "CV15LS"
},
{
"SchoolName": "Orgill Primary School",
"Postcode": "CA222HH"
},
{
"SchoolName": "Wilbraham Primary School",
"Postcode": "M147FB"
},
{
"SchoolName": "Rainhill Community Nursery",
"Postcode": "L354NW"
},
{
"SchoolName": "St Mark's Church of England Primary School",
"Postcode": "RG224US"
},
{
"SchoolName": "Cambian Somerset School",
"Postcode": "TA35PX"
},
{
"SchoolName": "Clore Shalom School",
"Postcode": "WD79BL"
},
{
"SchoolName": "Highcliffe Primary School",
"Postcode": "TS148AA"
},
{
"SchoolName": "Summer Lane Primary School",
"Postcode": "S752BB"
},
{
"SchoolName": "The Pace Centre",
"Postcode": "HP199JL"
},
{
"SchoolName": "Al-Furqan Primary School",
"Postcode": "B113EY"
},
{
"SchoolName": "Parkhead Community Primary School",
"Postcode": "NE216LT"
},
{
"SchoolName": "Earlham Primary School",
"Postcode": "N225HJ"
},
{
"SchoolName": "Hillside Specialist School and College",
"Postcode": "PR33XB"
},
{
"SchoolName": "Mab Lane Junior Mixed and Infant School",
"Postcode": "L126QL"
},
{
"SchoolName": "St George's Church of England Community Primary School, Gainsborough",
"Postcode": "DN211YN"
},
{
"SchoolName": "Cheddar Grove Primary School",
"Postcode": "BS137EN"
},
{
"SchoolName": "Fonthill Primary School",
"Postcode": "BS105SW"
},
{
"SchoolName": "St Werburgh's Primary School",
"Postcode": "BS29US"
},
{
"SchoolName": "The Amicus School",
"Postcode": "BN180SX"
},
{
"SchoolName": "Featherstone Wood Primary School",
"Postcode": "SG29PP"
},
{
"SchoolName": "Bury Secondary PRU Spring Lane School",
"Postcode": "M262SZ"
},
{
"SchoolName": "Kings' Forest Primary School",
"Postcode": "BS154PQ"
},
{
"SchoolName": "Victoria Dock Primary School",
"Postcode": "HU91TL"
},
{
"SchoolName": "Hillary Primary School",
"Postcode": "WS29BP"
},
{
"SchoolName": "All Hallows RC High School",
"Postcode": "M68AA"
},
{
"SchoolName": "Glebelands Primary School",
"Postcode": "LE42WF"
},
{
"SchoolName": "Burnham Copse Primary School",
"Postcode": "RG264HN"
},
{
"SchoolName": "Summerlea Community Primary School",
"Postcode": "BN163SW"
},
{
"SchoolName": "Abingdon Primary School",
"Postcode": "TS13JR"
},
{
"SchoolName": "Sacred Heart Catholic Primary School, Battersea",
"Postcode": "SW112TD"
},
{
"SchoolName": "Woodlands",
"Postcode": "B463JE"
},
{
"SchoolName": "Hillcrest Primary School",
"Postcode": "BS43DE"
},
{
"SchoolName": "Foxes Piece School",
"Postcode": "SL71JW"
},
{
"SchoolName": "High Well School",
"Postcode": "WF82DD"
},
{
"SchoolName": "Burnt Oak Primary School",
"Postcode": "ME71LS"
},
{
"SchoolName": "Oakfield High School and College",
"Postcode": "WN24XA"
},
{
"SchoolName": "Tadley Court School",
"Postcode": "RG263TB"
},
{
"SchoolName": "Fort Royal",
"Postcode": "WR51DR"
},
{
"SchoolName": "Leicester Partnership School",
"Postcode": "LE23PR"
},
{
"SchoolName": "Blue Mountain Education",
"Postcode": "NG162SD"
},
{
"SchoolName": "Beacon Hill School",
"Postcode": "NE289JW"
},
{
"SchoolName": "Tanfield Lea Community Primary School",
"Postcode": "DH99LU"
},
{
"SchoolName": "The King's Church of England School",
"Postcode": "WV68XG"
},
{
"SchoolName": "Belmont School",
"Postcode": "GL513AT"
},
{
"SchoolName": "Acorns School",
"Postcode": "SK67NN"
},
{
"SchoolName": "Marland School",
"Postcode": "EX388QQ"
},
{
"SchoolName": "Bickley Primary School",
"Postcode": "BR12SQ"
},
{
"SchoolName": "Bradshaw Hall Primary School",
"Postcode": "SK86AN"
},
{
"SchoolName": "The Serendipity Centre",
"Postcode": "SO196DS"
},
{
"SchoolName": "The Milestone School",
"Postcode": "GL29EU"
},
{
"SchoolName": "H<NAME>",
"Postcode": "GU148BX"
},
{
"SchoolName": "Blidworth Oaks Primary School",
"Postcode": "NG210RE"
},
{
"SchoolName": "Trax Academy",
"Postcode": "FY82PP"
},
{
"SchoolName": "<NAME>",
"Postcode": "ME150JT"
},
{
"SchoolName": "Shire Oak VC Primary School",
"Postcode": "LS62DT"
},
{
"SchoolName": "Abbey Meads Community Primary School",
"Postcode": "SN254GY"
},
{
"SchoolName": "Woodfield",
"Postcode": "CV47AB"
},
{
"SchoolName": "Oliver House School",
"Postcode": "PR71XA"
},
{
"SchoolName": "Pinner Wood School",
"Postcode": "HA53RA"
},
{
"SchoolName": "Grange Primary School",
"Postcode": "SS120LR"
},
{
"SchoolName": "Beacon Primary School",
"Postcode": "WV125HA"
},
{
"SchoolName": "St James Primary School",
"Postcode": "WS86AE"
},
{
"SchoolName": "Haringey Tuition Centre",
"Postcode": "N176RA"
},
{
"SchoolName": "Hillside Primary School",
"Postcode": "CH439HG"
},
{
"SchoolName": "The R J Mitchell Primary School",
"Postcode": "RM125PP"
},
{
"SchoolName": "Harvills Hawthorn Primary School",
"Postcode": "B700NG"
},
{
"SchoolName": "Lordship Lane Primary School",
"Postcode": "N225PS"
},
{
"SchoolName": "RBWM Alternative Learning Provision",
"Postcode": "SL68BY"
},
{
"SchoolName": "Smithdown Primary School",
"Postcode": "L76LJ"
},
{
"SchoolName": "Peacehaven Community School",
"Postcode": "BN108RB"
},
{
"SchoolName": "The Brook School",
"Postcode": "RH107JE"
},
{
"SchoolName": "Maidenbower Junior School",
"Postcode": "RH107RA"
},
{
"SchoolName": "The Cherry Trees School",
"Postcode": "E34EA"
},
{
"SchoolName": "The Bridge Academy",
"Postcode": "E28BA"
},
{
"SchoolName": "West Heath School",
"Postcode": "TN131SR"
},
{
"SchoolName": "Britannia Village Primary School",
"Postcode": "E162AW"
},
{
"SchoolName": "Wessex Gardens Primary School",
"Postcode": "NW119RR"
},
{
"SchoolName": "Shepwell Centre A Short Stay School (PRU-Medical)",
"Postcode": "WV132QJ"
},
{
"SchoolName": "Cranbrook Primary School",
"Postcode": "IG13PS"
},
{
"SchoolName": "Pathways Learning Centre",
"Postcode": "BS162RQ"
},
{
"SchoolName": "Rise Carr College",
"Postcode": "DL30NS"
},
{
"SchoolName": "Amber Valley & Erewash Support Centre",
"Postcode": "DE215LF"
},
{
"SchoolName": "South Derbyshire Support Centre",
"Postcode": "DE110TW"
},
{
"SchoolName": "Cherry Lane Primary School",
"Postcode": "UB79DL"
},
{
"SchoolName": "Arnold View Primary School",
"Postcode": "NG56NW"
},
{
"SchoolName": "Chaloner Primary School",
"Postcode": "TS146JA"
},
{
"SchoolName": "Handale Primary School",
"Postcode": "TS134RL"
},
{
"SchoolName": "Cedars - Newcastle, Moorlands and Darwin Bases",
"Postcode": "ST56BX"
},
{
"SchoolName": "West Grove Primary School",
"Postcode": "N144LR"
},
{
"SchoolName": "The Chelsea Group of Children",
"Postcode": "SW183QG"
},
{
"SchoolName": "Oakfield House School",
"Postcode": "PR40YH"
},
{
"SchoolName": "Causeway School",
"Postcode": "BN238EJ"
},
{
"SchoolName": "Merebrook Infant School",
"Postcode": "MK41EZ"
},
{
"SchoolName": "Ashby Fields Primary School",
"Postcode": "NN110YP"
},
{
"SchoolName": "Hollyfield Primary School",
"Postcode": "B757SG"
},
{
"SchoolName": "St James' CofE Primary School",
"Postcode": "B691BG"
},
{
"SchoolName": "Northbrook Primary School",
"Postcode": "PR252GB"
},
{
"SchoolName": "The Moat School",
"Postcode": "SW66EG"
},
{
"SchoolName": "Clore Tikva School",
"Postcode": "IG62JN"
},
{
"SchoolName": "St John the Baptist Roman Catholic Primary School",
"Postcode": "BB102PZ"
},
{
"SchoolName": "Upton Heath CofE Primary School",
"Postcode": "CH21ED"
},
{
"SchoolName": "Ashgate Primary School",
"Postcode": "DE223FS"
},
{
"SchoolName": "Hamd House School",
"Postcode": "B95QT"
},
{
"SchoolName": "Highwood Primary School",
"Postcode": "RG53JE"
},
{
"SchoolName": "Arts and Media School Islington",
"Postcode": "N43LS"
},
{
"SchoolName": "Heritage Park Primary School",
"Postcode": "PE28XA"
},
{
"SchoolName": "Chase Grammar School International Study Centre",
"Postcode": "WS110UR"
},
{
"SchoolName": "Belmont Park School",
"Postcode": "E106DB"
},
{
"SchoolName": "Coniston Primary School",
"Postcode": "BS345LN"
},
{
"SchoolName": "Little Stoke Primary School",
"Postcode": "BS346HY"
},
{
"SchoolName": "Wheatfield Primary School",
"Postcode": "BS329DB"
},
{
"SchoolName": "Betty Layward Primary School",
"Postcode": "N169EX"
},
{
"SchoolName": "Edgerton College",
"Postcode": "HD15RA"
},
{
"SchoolName": "On Track Education Centre Totnes",
"Postcode": "TQ95LQ"
},
{
"SchoolName": "Knightwood Primary School",
"Postcode": "SO534HW"
},
{
"SchoolName": "Portfields Primary School",
"Postcode": "MK168PS"
},
{
"SchoolName": "Middleton Primary School",
"Postcode": "PE39XJ"
},
{
"SchoolName": "Cottam Primary School",
"Postcode": "PR40NY"
},
{
"SchoolName": "Kingsdown Secondary School",
"Postcode": "CR29LQ"
},
{
"SchoolName": "Gateford Park Primary School",
"Postcode": "S817RG"
},
{
"SchoolName": "Thornton Heath Nursery School",
"Postcode": "CR78RS"
},
{
"SchoolName": "Selhurst Early Years Centre",
"Postcode": "SE255PL"
},
{
"SchoolName": "Holy Family Roman Catholic and Church of England College",
"Postcode": "OL102AA"
},
{
"SchoolName": "Middlewich Primary School",
"Postcode": "CW109BS"
},
{
"SchoolName": "Bruce Grove Primary School",
"Postcode": "N176UH"
},
{
"SchoolName": "Wakefield Lawefield Primary School",
"Postcode": "WF28ST"
},
{
"SchoolName": "Tameside Primary School",
"Postcode": "WS100EZ"
},
{
"SchoolName": "Harry Gosling Primary School",
"Postcode": "E11NT"
},
{
"SchoolName": "Rotherfield Primary School",
"Postcode": "N13EE"
},
{
"SchoolName": "Pooles Park Primary School",
"Postcode": "N43NW"
},
{
"SchoolName": "Emmaus School",
"Postcode": "BA146NZ"
},
{
"SchoolName": "<NAME>",
"Postcode": "E20HW"
},
{
"SchoolName": "Harris Academy Bermondsey",
"Postcode": "SE163TZ"
},
{
"SchoolName": "The Wyvern School (Buxford)",
"Postcode": "TN234ER"
},
{
"SchoolName": "Barnsley Academy",
"Postcode": "S703DL"
},
{
"SchoolName": "Elland House School",
"Postcode": "OL25PJ"
},
{
"SchoolName": "Ark Burlington Danes Academy",
"Postcode": "W120HR"
},
{
"SchoolName": "Ealing Alternative Provision",
"Postcode": "W130LR"
},
{
"SchoolName": "London Bunka Yochien School",
"Postcode": "W30BP"
},
{
"SchoolName": "South Shields School",
"Postcode": "NE348BT"
},
{
"SchoolName": "Park View School",
"Postcode": "N153QR"
},
{
"SchoolName": "Ormsgill Nursery and Primary School",
"Postcode": "LA144AR"
},
{
"SchoolName": "Emersons Green Primary School",
"Postcode": "BS167GA"
},
{
"SchoolName": "College Hall",
"Postcode": "RG403BT"
},
{
"SchoolName": "Maple House School",
"Postcode": "CR78LY"
},
{
"SchoolName": "Educational Diversity",
"Postcode": "FY39JW"
},
{
"SchoolName": "Canonbury Primary School",
"Postcode": "N12UT"
},
{
"SchoolName": "Gascoigne Primary School",
"Postcode": "IG117DR"
},
{
"SchoolName": "Tabernacle School",
"Postcode": "W114RS"
},
{
"SchoolName": "Greenfields School",
"Postcode": "TN278BE"
},
{
"SchoolName": "Meadowside Primary School",
"Postcode": "GL24LX"
},
{
"SchoolName": "The John Moore Primary School",
"Postcode": "GL207SP"
},
{
"SchoolName": "Grangefield Primary School",
"Postcode": "GL528GL"
},
{
"SchoolName": "Wykeham Primary School",
"Postcode": "RM124BP"
},
{
"SchoolName": "Greek Primary School of London",
"Postcode": "W39JR"
},
{
"SchoolName": "Carden Primary School",
"Postcode": "BN18LU"
},
{
"SchoolName": "Greater Grace School of Christian Education",
"Postcode": "CH24BE"
},
{
"SchoolName": "iMap Centre",
"Postcode": "CH37JA"
},
{
"SchoolName": "Griffe Field Primary School",
"Postcode": "DE233UQ"
},
{
"SchoolName": "Parkview Primary School",
"Postcode": "DE212RQ"
},
{
"SchoolName": "Kingsley Community School",
"Postcode": "L82TG"
},
{
"SchoolName": "Cambian Northampton School",
"Postcode": "NN26LR"
},
{
"SchoolName": "Oakfield Primary School",
"Postcode": "SS129PW"
},
{
"SchoolName": "Culverhill School",
"Postcode": "BS378SZ"
},
{
"SchoolName": "Little Acorns School",
"Postcode": "TN306SR"
},
{
"SchoolName": "Ravenshead CofE Primary School",
"Postcode": "NG159FS"
},
{
"SchoolName": "Millbrook Combined School",
"Postcode": "HP124BA"
},
{
"SchoolName": "Fazakerley Primary School",
"Postcode": "L107LD"
},
{
"SchoolName": "First Base",
"Postcode": "NR324EX"
},
{
"SchoolName": "Hitherfield Primary School",
"Postcode": "SW162JQ"
},
{
"SchoolName": "Olive Tree Primary School",
"Postcode": "LU11HE"
},
{
"SchoolName": "The Forum Centre",
"Postcode": "DT117BX"
},
{
"SchoolName": "<NAME> Theatre School",
"Postcode": "EN55SJ"
},
{
"SchoolName": "St Joseph the Worker Catholic Primary School",
"Postcode": "L329PF"
},
{
"SchoolName": "Our Lady and St Philomena's Catholic Primary School",
"Postcode": "L96BU"
},
{
"SchoolName": "Harlow Fields School and College",
"Postcode": "CM186RN"
},
{
"SchoolName": "Bassett Green Primary School",
"Postcode": "SO163BZ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SE20QS"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "EC1R1YJ"
},
{
"SchoolName": "Brunswick Park Primary School",
"Postcode": "SE57QH"
},
{
"SchoolName": "Hunters Hall Primary School",
"Postcode": "RM108DE"
},
{
"SchoolName": "Southwood Primary School",
"Postcode": "RM95LT"
},
{
"SchoolName": "Christchurch Primary School",
"Postcode": "IG14LQ"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "OL25LU"
},
{
"SchoolName": "Dalton School",
"Postcode": "HD59HN"
},
{
"SchoolName": "Waulud Primary School",
"Postcode": "LU33LZ"
},
{
"SchoolName": "Leagrave Primary School",
"Postcode": "LU49ND"
},
{
"SchoolName": "The Disraeli School and Children's Centre",
"Postcode": "HP135JS"
},
{
"SchoolName": "Chilton Primary School",
"Postcode": "DL170PT"
},
{
"SchoolName": "Muswell Hill Primary School",
"Postcode": "N103ST"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SE115BZ"
},
{
"SchoolName": "Risley Avenue Primary School",
"Postcode": "N177AB"
},
{
"SchoolName": "St Peter's RC High School",
"Postcode": "M124WB"
},
{
"SchoolName": "St Anne's RC Primary School",
"Postcode": "M47EQ"
},
{
"SchoolName": "Egerton High School",
"Postcode": "M417FZ"
},
{
"SchoolName": "Middlestone Moor Primary School",
"Postcode": "DL167DA"
},
{
"SchoolName": "Oakgrove School",
"Postcode": "SK83BU"
},
{
"SchoolName": "Windlehurst School",
"Postcode": "SK67HZ"
},
{
"SchoolName": "Gallions Primary School",
"Postcode": "E66WG"
},
{
"SchoolName": "Sheffield Park Academy",
"Postcode": "S21SN"
},
{
"SchoolName": "Sheffield Springs Academy",
"Postcode": "S122SF"
},
{
"SchoolName": "Harris Academy Merton",
"Postcode": "CR41BP"
},
{
"SchoolName": "David Young Community Academy",
"Postcode": "LS146NU"
},
{
"SchoolName": "Liden Primary and Nursery School",
"Postcode": "SN36EX"
},
{
"SchoolName": "St Leonard's CofE Primary School",
"Postcode": "WV164HL"
},
{
"SchoolName": "The Meadows School",
"Postcode": "DL167QW"
},
{
"SchoolName": "Cedar Park School",
"Postcode": "HP157EF"
},
{
"SchoolName": "The Downley School",
"Postcode": "HP135AL"
},
{
"SchoolName": "<NAME>ah Primary School",
"Postcode": "NW26RJ"
},
{
"SchoolName": "Whitburn Village Primary School",
"Postcode": "SR67NS"
},
{
"SchoolName": "Woodhouse Community Primary School",
"Postcode": "DL146QW"
},
{
"SchoolName": "Four Oaks Primary School",
"Postcode": "B744PA"
},
{
"SchoolName": "St Antony's RC Primary School",
"Postcode": "E79PN"
},
{
"SchoolName": "The Royal Docks Community School",
"Postcode": "E163HS"
},
{
"SchoolName": "South Park Primary School",
"Postcode": "IG39HF"
},
{
"SchoolName": "Ringway Primary School",
"Postcode": "M220WW"
},
{
"SchoolName": "Westfield School",
"Postcode": "SL85BE"
},
{
"SchoolName": "St Mary and St Michael Primary School",
"Postcode": "E10BD"
},
{
"SchoolName": "Cambridge Steiner School",
"Postcode": "CB215DZ"
},
{
"SchoolName": "Button Lane Primary School",
"Postcode": "M230ND"
},
{
"SchoolName": "Hillingdon Manor School",
"Postcode": "UB83HD"
},
{
"SchoolName": "Hateley Heath Primary School",
"Postcode": "B712RP"
},
{
"SchoolName": "New College Leicester",
"Postcode": "LE36DN"
},
{
"SchoolName": "Mapplewell Primary School",
"Postcode": "S756BB"
},
{
"SchoolName": "The Noam Primary School",
"Postcode": "HA98JW"
},
{
"SchoolName": "Rolls Crescent Primary School",
"Postcode": "M155FT"
},
{
"SchoolName": "Hertsmere Jewish Primary School",
"Postcode": "WD77LQ"
},
{
"SchoolName": "Brookside Primary School",
"Postcode": "CH662EE"
},
{
"SchoolName": "Broadwood High School",
"Postcode": "HX20RU"
},
{
"SchoolName": "Cedarwood Primary School",
"Postcode": "IP52ES"
},
{
"SchoolName": "Abbeyfield School",
"Postcode": "SN153XB"
},
{
"SchoolName": "The Orion Primary School",
"Postcode": "NW72AL"
},
{
"SchoolName": "North Hill House",
"Postcode": "BA112HB"
},
{
"SchoolName": "Jigsaw CABAS School",
"Postcode": "GU68TB"
},
{
"SchoolName": "Maria Montessori School",
"Postcode": "NW35NW"
},
{
"SchoolName": "Kassim Darwish Grammar School for Boys",
"Postcode": "M168NH"
},
{
"SchoolName": "Beaufort Community Primary School",
"Postcode": "DE216BT"
},
{
"SchoolName": "Chandlings",
"Postcode": "OX15ND"
},
{
"SchoolName": "Acorn House College",
"Postcode": "UB13HF"
},
{
"SchoolName": "Palm Tree School",
"Postcode": "BB21SN"
},
{
"SchoolName": "Hadrian School",
"Postcode": "NE156PY"
},
{
"SchoolName": "Sir Charles Parsons School",
"Postcode": "NE64ED"
},
{
"SchoolName": "Thomas Bewick School",
"Postcode": "NE52LW"
},
{
"SchoolName": "The Vale Primary School",
"Postcode": "KT186HP"
},
{
"SchoolName": "Monkfield Park Primary School",
"Postcode": "CB235AX"
},
{
"SchoolName": "Jubilee House Christian School",
"Postcode": "NG162EZ"
},
{
"SchoolName": "Priors Court School",
"Postcode": "RG189NU"
},
{
"SchoolName": "Whitehouse Common Primary School",
"Postcode": "B756BL"
},
{
"SchoolName": "Kitebrook Preparatory School",
"Postcode": "GL560RP"
},
{
"SchoolName": "The Castle Nursery School",
"Postcode": "WF15NU"
},
{
"SchoolName": "Bilston Nursery School",
"Postcode": "WV140LT"
},
{
"SchoolName": "Catherine Wayte Primary School",
"Postcode": "SN254TA"
},
{
"SchoolName": "Valentine Primary School",
"Postcode": "SO190EQ"
},
{
"SchoolName": "Scarborough Pupil Referral Unit",
"Postcode": "YO112PG"
},
{
"SchoolName": "Moulsecoomb Primary School",
"Postcode": "BN24PA"
},
{
"SchoolName": "Bushmead Primary School",
"Postcode": "PE198BT"
},
{
"SchoolName": "Launchpad Centre",
"Postcode": "WA101UH"
},
{
"SchoolName": "<NAME>",
"Postcode": "N165AR"
},
{
"SchoolName": "The Richard Heathcote Community Primary School",
"Postcode": "ST78BB"
},
{
"SchoolName": "St Silas's CofE Primary School",
"Postcode": "BB26JP"
},
{
"SchoolName": "Copmanthorpe Primary School",
"Postcode": "YO233SB"
},
{
"SchoolName": "Oxford Montessori Schools",
"Postcode": "OX39UW"
},
{
"SchoolName": "Newfield School",
"Postcode": "BB12PW"
},
{
"SchoolName": "St Mary's Island Church of England (Aided) Primary School",
"Postcode": "ME43ST"
},
{
"SchoolName": "Bure Park Primary School",
"Postcode": "OX263BP"
},
{
"SchoolName": "Kingsford Community School",
"Postcode": "E65JG"
},
{
"SchoolName": "Camp Hill Primary School",
"Postcode": "CV109QA"
},
{
"SchoolName": "Holywell Primary and Nursery School",
"Postcode": "B459EY"
},
{
"SchoolName": "Oak Tree Nursery and Primary School",
"Postcode": "SN32HA"
},
{
"SchoolName": "Greenwich Steiner School",
"Postcode": "SE37SE"
},
{
"SchoolName": "Sakutu Organisation Montessori",
"Postcode": "NW26HL"
},
{
"SchoolName": "Apple Orchard Slinfold",
"Postcode": "RH130RQ"
},
{
"SchoolName": "Cooper and Jordan Church of England Primary School",
"Postcode": "WS98NH"
},
{
"SchoolName": "Anglesey Primary School",
"Postcode": "B191RA"
},
{
"SchoolName": "Chuckery Primary School",
"Postcode": "WS12DZ"
},
{
"SchoolName": "Victoria Drive Primary Pupil Referral Unit",
"Postcode": "SW196HR"
},
{
"SchoolName": "Moorlands View School",
"Postcode": "BB115PQ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "TF74HG"
},
{
"SchoolName": "Claycots School",
"Postcode": "SL21QX"
},
{
"SchoolName": "Lodge Farm Primary School",
"Postcode": "SG20HP"
},
{
"SchoolName": "Fynamore Primary School",
"Postcode": "SN119UG"
},
{
"SchoolName": "Lancaster Steiner School",
"Postcode": "LA15QU"
},
{
"SchoolName": "Trinity School and College",
"Postcode": "ME11BG"
},
{
"SchoolName": "Paradise Primary School",
"Postcode": "WF129BB"
},
{
"SchoolName": "Evesham Nursery School",
"Postcode": "WR111BN"
},
{
"SchoolName": "Birchwood Avenue Primary School",
"Postcode": "AL100PS"
},
{
"SchoolName": "New Christ Church Church of England (VA) Primary School",
"Postcode": "RG20AY"
},
{
"SchoolName": "Eden Park Academy",
"Postcode": "CA11JZ"
},
{
"SchoolName": "Thornhill Primary School",
"Postcode": "SO196FH"
},
{
"SchoolName": "Auckland College",
"Postcode": "L174LE"
},
{
"SchoolName": "Pegasus School",
"Postcode": "DE126RS"
},
{
"SchoolName": "Westmorland Primary School",
"Postcode": "SK58HH"
},
{
"SchoolName": "Mount Gilbert School",
"Postcode": "TF43PP"
},
{
"SchoolName": "Abbey Meadows Primary School",
"Postcode": "CB58ND"
},
{
"SchoolName": "St Thomas's Centre",
"Postcode": "BB11NA"
},
{
"SchoolName": "Northumberland Pupil Referral Unit",
"Postcode": "NE616NF"
},
{
"SchoolName": "Bridge Short Stay School",
"Postcode": "WS136SW"
},
{
"SchoolName": "The Kingsmead School",
"Postcode": "DE13LB"
},
{
"SchoolName": "Bancrofts Preparatory School",
"Postcode": "IG80RF"
},
{
"SchoolName": "St John and St James CofE Primary School",
"Postcode": "E96DX"
},
{
"SchoolName": "Springfield Primary School",
"Postcode": "B658JY"
},
{
"SchoolName": "Hadrian Park Primary School",
"Postcode": "NE289RT"
},
{
"SchoolName": "Holly Trees Primary School",
"Postcode": "CM145RY"
},
{
"SchoolName": "St Aidan's Church of England Primary School",
"Postcode": "NE82HQ"
},
{
"SchoolName": "Lark Hill Community Primary School",
"Postcode": "M54BJ"
},
{
"SchoolName": "Oakley School",
"Postcode": "TN24NE"
},
{
"SchoolName": "Portman Early Childhood Centre",
"Postcode": "NW88DE"
},
{
"SchoolName": "Dore Primary School",
"Postcode": "S173QP"
},
{
"SchoolName": "Springwood Primary School",
"Postcode": "M275LP"
},
{
"SchoolName": "Willow Grove Primary School",
"Postcode": "WN48XF"
},
{
"SchoolName": "Bridge Farm Primary School",
"Postcode": "BS140LL"
},
{
"SchoolName": "Brightside Primary School",
"Postcode": "CM120LE"
},
{
"SchoolName": "Aragon Primary School",
"Postcode": "SM44QU"
},
{
"SchoolName": "Malmesbury Primary School",
"Postcode": "SM46HG"
},
{
"SchoolName": "Montreal CofE Primary School",
"Postcode": "CA255LW"
},
{
"SchoolName": "North Park Primary School",
"Postcode": "DL166PP"
},
{
"SchoolName": "Kirkdale St Lawrence CofE Primary School",
"Postcode": "L41QD"
},
{
"SchoolName": "Wycliffe CofE Primary School",
"Postcode": "BD183HZ"
},
{
"SchoolName": "The Meadows Primary School",
"Postcode": "LN59BB"
},
{
"SchoolName": "Thorpe Primary School",
"Postcode": "BD109PY"
},
{
"SchoolName": "Lower Fields Primary School",
"Postcode": "BD48RG"
},
{
"SchoolName": "Knowleswood Primary School",
"Postcode": "BD49AE"
},
{
"SchoolName": "Holybrook Primary School",
"Postcode": "BD100EF"
},
{
"SchoolName": "Newhall Park Primary School",
"Postcode": "BD46AF"
},
{
"SchoolName": "Holy Spirit Catholic Primary School",
"Postcode": "WA92JE"
},
{
"SchoolName": "Fig Tree Primary School",
"Postcode": "NG74AF"
},
{
"SchoolName": "Pierrepont Gamston Primary School",
"Postcode": "NG26TH"
},
{
"SchoolName": "Brookvale Primary School",
"Postcode": "WA76BZ"
},
{
"SchoolName": "Shirehampton Primary School",
"Postcode": "BS119RR"
},
{
"SchoolName": "Bantock Primary School",
"Postcode": "WV30HY"
},
{
"SchoolName": "Our Lady of Walsingham Catholic Primary School",
"Postcode": "L303SA"
},
{
"SchoolName": "Abbotswood Primary School",
"Postcode": "BS378SZ"
},
{
"SchoolName": "Sto<NAME>er CofE Aided Primary School",
"Postcode": "ST44EE"
},
{
"SchoolName": "Wattville Primary School",
"Postcode": "B210DP"
},
{
"SchoolName": "Welcombe Hills School",
"Postcode": "CV376TQ"
},
{
"SchoolName": "Highfield Primary School",
"Postcode": "N213HE"
},
{
"SchoolName": "All Saints Catholic Primary School",
"Postcode": "L204LX"
},
{
"SchoolName": "Swinemoor Primary School",
"Postcode": "HU179LW"
},
{
"SchoolName": "Brooksward School",
"Postcode": "MK146JZ"
},
{
"SchoolName": "Caldecote Community Primary School",
"Postcode": "LE31FF"
},
{
"SchoolName": "Great Binfields Primary School",
"Postcode": "RG248AJ"
},
{
"SchoolName": "Whitleigh Community Primary School",
"Postcode": "PL54AA"
},
{
"SchoolName": "Burley Oaks Primary School",
"Postcode": "LS297EJ"
},
{
"SchoolName": "Brampton Primary School",
"Postcode": "S401DD"
},
{
"SchoolName": "Greenfield Primary School",
"Postcode": "LE85SG"
},
{
"SchoolName": "Stoberry Park School",
"Postcode": "BA52TJ"
},
{
"SchoolName": "Yearsley Grove Primary School",
"Postcode": "YO319BX"
},
{
"SchoolName": "Eldene Nursery and Primary School",
"Postcode": "SN33TQ"
},
{
"SchoolName": "The Meadows Sports College",
"Postcode": "B693BU"
},
{
"SchoolName": "The Orchard School",
"Postcode": "B688LD"
},
{
"SchoolName": "The Westminster School",
"Postcode": "B659AN"
},
{
"SchoolName": "Two Village Church of England Voluntary Controlled Primary School",
"Postcode": "CO125EL"
},
{
"SchoolName": "Maple Tree Lower School",
"Postcode": "SG192WA"
},
{
"SchoolName": "Thames Christian College",
"Postcode": "SW112HB"
},
{
"SchoolName": "Bristol Gateway School",
"Postcode": "BS110QA"
},
{
"SchoolName": "Priory CofE Primary School",
"Postcode": "ST48EF"
},
{
"SchoolName": "Berry Hill Primary School",
"Postcode": "NG184JW"
},
{
"SchoolName": "Crescent Primary School",
"Postcode": "NG197LF"
},
{
"SchoolName": "Kingsgate Primary School",
"Postcode": "NW64LB"
},
{
"SchoolName": "Bushmead Primary School",
"Postcode": "LU27EU"
},
{
"SchoolName": "Latchford CofE Primary School",
"Postcode": "WA41AP"
},
{
"SchoolName": "Asquith Primary School",
"Postcode": "NG183DG"
},
{
"SchoolName": "St Botolph's C of E Primary School",
"Postcode": "NG347FE"
},
{
"SchoolName": "Seven Sisters Primary School",
"Postcode": "N155QE"
},
{
"SchoolName": "Highlands School",
"Postcode": "N211QQ"
},
{
"SchoolName": "Forsbrook CofE Controlled Primary School",
"Postcode": "ST119PW"
},
{
"SchoolName": "Harborne Primary School",
"Postcode": "B179LU"
},
{
"SchoolName": "Crane Park Primary School",
"Postcode": "TW135LN"
},
{
"SchoolName": "Fairholme Primary School",
"Postcode": "TW148ET"
},
{
"SchoolName": "Green Dragon Primary School",
"Postcode": "TW80BJ"
},
{
"SchoolName": "Kings International College",
"Postcode": "GU152PQ"
},
{
"SchoolName": "Anlaby Primary School",
"Postcode": "HU106UE"
},
{
"SchoolName": "Harris Girls' Academy East Dulwich",
"Postcode": "SE220NR"
},
{
"SchoolName": "Walthamstow Academy",
"Postcode": "E175DP"
},
{
"SchoolName": "Sacred Heart RC Primary School",
"Postcode": "DL78UL"
},
{
"SchoolName": "Lewes New School",
"Postcode": "BN72DS"
},
{
"SchoolName": "Chasetown Community School",
"Postcode": "WS73QL"
},
{
"SchoolName": "Brian Jackson College",
"Postcode": "WF160AD"
},
{
"SchoolName": "Rugeley School",
"Postcode": "WS153JQ"
},
{
"SchoolName": "Tawhid Boys School, Tawhid Educational Trust",
"Postcode": "N166PA"
},
{
"SchoolName": "<NAME> School",
"Postcode": "PR13TN"
},
{
"SchoolName": "The New Broadwalk PRU",
"Postcode": "M65EJ"
},
{
"SchoolName": "Values Academy",
"Postcode": "B185PB"
},
{
"SchoolName": "Islamiyah School",
"Postcode": "BB15NQ"
},
{
"SchoolName": "Abu Bakr Girls School",
"Postcode": "WS14JJ"
},
{
"SchoolName": "Stamford Junior School",
"Postcode": "PE92LR"
},
{
"SchoolName": "Hampton Hargate Primary School",
"Postcode": "PE78BZ"
},
{
"SchoolName": "The Craylands School",
"Postcode": "DA100LP"
},
{
"SchoolName": "Engayne Primary School",
"Postcode": "RM141SW"
},
{
"SchoolName": "Trinity CofE VA First School",
"Postcode": "BH317PG"
},
{
"SchoolName": "Grappenhall Heys Community Primary School",
"Postcode": "WA43EA"
},
{
"SchoolName": "Northfield Primary and Nursery School",
"Postcode": "NG198PG"
},
{
"SchoolName": "Atkinson House School",
"Postcode": "NE237EB"
},
{
"SchoolName": "Access School",
"Postcode": "SY43EW"
},
{
"SchoolName": "Carmel Christian School",
"Postcode": "BS45NL"
},
{
"SchoolName": "Tumblewood Community School",
"Postcode": "BA134LF"
},
{
"SchoolName": "CACFO Uk Education Centre",
"Postcode": "CR78HQ"
},
{
"SchoolName": "Schoolhouse Education",
"Postcode": "SE29LZ"
},
{
"SchoolName": "Willowbrook School",
"Postcode": "EX48NN"
},
{
"SchoolName": "Leicester Community Academy",
"Postcode": "LE50JA"
},
{
"SchoolName": "Howe Park School",
"Postcode": "MK42SH"
},
{
"SchoolName": "Long Meadow School",
"Postcode": "MK57XX"
},
{
"SchoolName": "THE LLOYD WILLIAMSON SCHOOLS",
"Postcode": "W105SH"
},
{
"SchoolName": "Sir John Heron Primary School",
"Postcode": "E125PY"
},
{
"SchoolName": "Holland Park Pre-Preparatory School",
"Postcode": "W148HJ"
},
{
"SchoolName": "Rosemary Works School",
"Postcode": "N15PH"
},
{
"SchoolName": "St Matthew's Catholic Primary School",
"Postcode": "L48UA"
},
{
"SchoolName": "Asquith Primary School",
"Postcode": "LS279QY"
},
{
"SchoolName": "St John's Catholic Primary School",
"Postcode": "L41UN"
},
{
"SchoolName": "London Islamic School",
"Postcode": "E12HX"
},
{
"SchoolName": "The Sue Hedley Nursery School",
"Postcode": "NE311QY"
},
{
"SchoolName": "Conway Primary School",
"Postcode": "SE181QY"
},
{
"SchoolName": "Elvetham Heath Primary School",
"Postcode": "GU511DP"
},
{
"SchoolName": "Cherrywood Community Primary School",
"Postcode": "GU148LH"
},
{
"SchoolName": "St Andrew's Church of England Primary School",
"Postcode": "WV60RH"
},
{
"SchoolName": "Puss Bank School",
"Postcode": "SK101QJ"
},
{
"SchoolName": "Myton Park Primary School",
"Postcode": "TS175BL"
},
{
"SchoolName": "St Francis of Assisi CofE School",
"Postcode": "TS175GA"
},
{
"SchoolName": "Plaistow Primary School",
"Postcode": "E139DQ"
},
{
"SchoolName": "Langold Dyscarr Community School",
"Postcode": "S819PX"
},
{
"SchoolName": "Canterbury Nursery School and Centre for Children and Families",
"Postcode": "BD59HL"
},
{
"SchoolName": "Barking and Dagenham Tuition Service",
"Postcode": "RM96TJ"
},
{
"SchoolName": "Oak Hill First School",
"Postcode": "B987JU"
},
{
"SchoolName": "Leicester City Primary PRU",
"Postcode": "LE52EG"
},
{
"SchoolName": "Eglinton Primary School",
"Postcode": "SE183PY"
},
{
"SchoolName": "Westmorland School",
"Postcode": "PR73NQ"
},
{
"SchoolName": "Greentrees Primary School",
"Postcode": "SP13GZ"
},
{
"SchoolName": "Nursteed Community Primary School",
"Postcode": "SN103BF"
},
{
"SchoolName": "Ormskirk School",
"Postcode": "L392AT"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "CA255DG"
},
{
"SchoolName": "Piper's Vale Community Primary School",
"Postcode": "IP30EW"
},
{
"SchoolName": "Lantern of Knowledge Secondary School",
"Postcode": "E106QT"
},
{
"SchoolName": "Howard House",
"Postcode": "NE226BB"
},
{
"SchoolName": "North Ridge High School",
"Postcode": "M90RP"
},
{
"SchoolName": "St Peter's Anglican / Methodist VC Primary",
"Postcode": "BS354JG"
},
{
"SchoolName": "Stafford Pupil Referral Unit At the Stables",
"Postcode": "ST161BY"
},
{
"SchoolName": "Reedley Hallows Nursery School and Childrens Centre",
"Postcode": "BB101JD"
},
{
"SchoolName": "Knaresborough St John's CofE Primary School",
"Postcode": "HG50JN"
},
{
"SchoolName": "The Gateway Academy",
"Postcode": "RM164LU"
},
{
"SchoolName": "Hospital and Home Education PRU",
"Postcode": "NG33AL"
},
{
"SchoolName": "Castle Hill Community Primary School",
"Postcode": "CT196HG"
},
{
"SchoolName": "Reach",
"Postcode": "ST46NS"
},
{
"SchoolName": "Five Lanes Primary School",
"Postcode": "SN105NZ"
},
{
"SchoolName": "Moat Primary School",
"Postcode": "GL46AP"
},
{
"SchoolName": "Hillhouse CofE Primary School",
"Postcode": "EN93EL"
},
{
"SchoolName": "Hare Street Community Primary School and Nursery",
"Postcode": "CM194BU"
},
{
"SchoolName": "Homefields Primary School",
"Postcode": "DE735NY"
},
{
"SchoolName": "Tividale Community Primary School",
"Postcode": "B692HT"
},
{
"SchoolName": "Lakeside School",
"Postcode": "L272YA"
},
{
"SchoolName": "Roebuck Primary School and Nursery",
"Postcode": "SG28RG"
},
{
"SchoolName": "Distington Community School",
"Postcode": "CA145TE"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "NG184LN"
},
{
"SchoolName": "Heathlands Primary School",
"Postcode": "NG210DJ"
},
{
"SchoolName": "Wynndale Primary School",
"Postcode": "NG183NY"
},
{
"SchoolName": "Old Park Primary School",
"Postcode": "TF32BF"
},
{
"SchoolName": "Farmilo Primary School and Nursery",
"Postcode": "NG197RS"
},
{
"SchoolName": "Intake Farm Primary School",
"Postcode": "NG196JA"
},
{
"SchoolName": "King Edward Primary School",
"Postcode": "NG182RG"
},
{
"SchoolName": "Oak Tree Primary School",
"Postcode": "NG183PJ"
},
{
"SchoolName": "Sutton Road Primary School",
"Postcode": "NG185SF"
},
{
"SchoolName": "High Oakham Primary School",
"Postcode": "NG184SH"
},
{
"SchoolName": "Abbey Primary School",
"Postcode": "NG190AB"
},
{
"SchoolName": "St Ann's RC Primary School",
"Postcode": "M328SH"
},
{
"SchoolName": "<NAME>",
"Postcode": "BL18LX"
},
{
"SchoolName": "Crompton Primary School",
"Postcode": "OL27HD"
},
{
"SchoolName": "Lammas School and Sixth Form",
"Postcode": "E107LX"
},
{
"SchoolName": "St Elizabeth Catholic Primary School",
"Postcode": "E29JY"
},
{
"SchoolName": "Bishop Challoner Catholic Federations of Boys School",
"Postcode": "E10LB"
},
{
"SchoolName": "Boundary Primary School",
"Postcode": "FY37RW"
},
{
"SchoolName": "Micheldever CofE Primary School",
"Postcode": "SO213DB"
},
{
"SchoolName": "St Hild's Church of England Voluntary Aided School",
"Postcode": "TS249PB"
},
{
"SchoolName": "Awsworth Primary and Nursery School",
"Postcode": "NG162QS"
},
{
"SchoolName": "The Davenport School",
"Postcode": "CT126HX"
},
{
"SchoolName": "Newdale Primary School & Nursery",
"Postcode": "TF35HA"
},
{
"SchoolName": "St Mark's Elm Tree CofE Voluntary Aided Primary School",
"Postcode": "TS197HA"
},
{
"SchoolName": "Sharps Copse Primary and Nursery School",
"Postcode": "PO95PE"
},
{
"SchoolName": "Al-Hijrah School",
"Postcode": "B94US"
},
{
"SchoolName": "Mazahirul Uloom London School",
"Postcode": "E14AA"
},
{
"SchoolName": "Liverpool Progressive School",
"Postcode": "L91NR"
},
{
"SchoolName": "Ridgefield Primary School",
"Postcode": "CB13RJ"
},
{
"SchoolName": "Abacus Primary School",
"Postcode": "SS129GJ"
},
{
"SchoolName": "Kings Avenue School",
"Postcode": "SW48BQ"
},
{
"SchoolName": "Woodlands School",
"Postcode": "HA86JP"
},
{
"SchoolName": "Kingsley High School",
"Postcode": "HA36ND"
},
{
"SchoolName": "Newlands Primary School",
"Postcode": "WF61BB"
},
{
"SchoolName": "Our Lady of Perpetual Succour Catholic Primary School",
"Postcode": "WA88JN"
},
{
"SchoolName": "All Saints CofE Primary School, Horsham",
"Postcode": "RH125JB"
},
{
"SchoolName": "Oakfield Community Primary School",
"Postcode": "WA88BQ"
},
{
"SchoolName": "Oughton Primary and Nursery School",
"Postcode": "SG52NZ"
},
{
"SchoolName": "Pye Bank CofE Primary School",
"Postcode": "S39EF"
},
{
"SchoolName": "Cheadle Heath Primary School",
"Postcode": "SK30RJ"
},
{
"SchoolName": "Etruscan Primary School",
"Postcode": "ST14BS"
},
{
"SchoolName": "Wellesbourne Community Primary School",
"Postcode": "L115BA"
},
{
"SchoolName": "St Michael-in-the-Hamlet Community Primary School",
"Postcode": "L177BA"
},
{
"SchoolName": "Monksdown Primary School",
"Postcode": "L111HH"
},
{
"SchoolName": "Greenbank Primary School",
"Postcode": "L181JB"
},
{
"SchoolName": "Leamington Community Primary School",
"Postcode": "L117BT"
},
{
"SchoolName": "Longmoor Community Primary School",
"Postcode": "L90EU"
},
{
"SchoolName": "Broad Square Community Primary School",
"Postcode": "L111BS"
},
{
"SchoolName": "Florence Melly Community Primary School",
"Postcode": "L49UA"
},
{
"SchoolName": "Our Lady of the Assumption Catholic Primary School",
"Postcode": "L252RW"
},
{
"SchoolName": "Stockton Wood Community Primary School",
"Postcode": "L243TF"
},
{
"SchoolName": "Kew Riverside Primary School",
"Postcode": "TW94ES"
},
{
"SchoolName": "Fell House School",
"Postcode": "LA116AS"
},
{
"SchoolName": "Brighton and Hove Montessori School",
"Postcode": "BN16FB"
},
{
"SchoolName": "Jameah Academy",
"Postcode": "LE53SD"
},
{
"SchoolName": "Harrop Fold School",
"Postcode": "M280SY"
},
{
"SchoolName": "Gainsborough Primary and Nursery School",
"Postcode": "CW27NH"
},
{
"SchoolName": "Pardes House Primary School",
"Postcode": "N31SA"
},
{
"SchoolName": "Beis Yaakov Primary School",
"Postcode": "NW96NQ"
},
{
"SchoolName": "The Churchill School",
"Postcode": "CT187RH"
},
{
"SchoolName": "Castle Homes Upper Forge",
"Postcode": "NN146BQ"
},
{
"SchoolName": "Taywood Nursery",
"Postcode": "BB115AE"
},
{
"SchoolName": "Westfield Primary Community School",
"Postcode": "YO243HP"
},
{
"SchoolName": "South Lake Primary School",
"Postcode": "RG53NA"
},
{
"SchoolName": "Western Community Primary School",
"Postcode": "NE288QL"
},
{
"SchoolName": "The School of the Islamic Republic of Iran",
"Postcode": "NW65HE"
},
{
"SchoolName": "Greig City Academy",
"Postcode": "N87NU"
},
{
"SchoolName": "Python Hill Primary School",
"Postcode": "NG210JZ"
},
{
"SchoolName": "Westfield Nursery and Primary School",
"Postcode": "CA145BD"
},
{
"SchoolName": "Blackford Education (Schools) Ltd T/A the Libra School",
"Postcode": "EX363LN"
},
{
"SchoolName": "Hope Brook CofE Primary School",
"Postcode": "GL170LL"
},
{
"SchoolName": "Eslington Primary School",
"Postcode": "NE82EP"
},
{
"SchoolName": "Chadwick High School",
"Postcode": "LA12AY"
},
{
"SchoolName": "Waterside School",
"Postcode": "SE187NB"
},
{
"SchoolName": "Gaywood Community Primary School",
"Postcode": "PE304AY"
},
{
"SchoolName": "Oaks Park High School",
"Postcode": "IG27PQ"
},
{
"SchoolName": "Rochdale Pupil Referral Service",
"Postcode": "OL162XW"
},
{
"SchoolName": "Primary Pupil Referral Unit",
"Postcode": "BD58DB"
},
{
"SchoolName": "Bradford Central PRU",
"Postcode": "BD183JE"
},
{
"SchoolName": "Hope School",
"Postcode": "L252RY"
},
{
"SchoolName": "Dale House School",
"Postcode": "WF178HL"
},
{
"SchoolName": "Cambian Beverley School",
"Postcode": "HU170EW"
},
{
"SchoolName": "St Clare's, Oxford",
"Postcode": "OX27AL"
},
{
"SchoolName": "Silverdale School",
"Postcode": "NE280HG"
},
{
"SchoolName": "Hawkesdown House",
"Postcode": "W87PN"
},
{
"SchoolName": "Rosewood Primary School",
"Postcode": "BB112PH"
},
{
"SchoolName": "Cressey College",
"Postcode": "CR05SP"
},
{
"SchoolName": "Side By Side School",
"Postcode": "E59HH"
},
{
"SchoolName": "The Livity School",
"Postcode": "SW162PW"
},
{
"SchoolName": "Bank View High School",
"Postcode": "L96AD"
},
{
"SchoolName": "The Michael Tippett School",
"Postcode": "SE240HZ"
},
{
"SchoolName": "Hampton Court House",
"Postcode": "KT89BS"
},
{
"SchoolName": "Ealing Independent College",
"Postcode": "W55AL"
},
{
"SchoolName": "Bowlee Park Community Primary School",
"Postcode": "M244LA"
},
{
"SchoolName": "Kings Kids Christian School",
"Postcode": "SE146EU"
},
{
"SchoolName": "Al-Falah Primary School",
"Postcode": "E58BY"
},
{
"SchoolName": "Islamic Tarbiyah Preparatory School",
"Postcode": "BD88AW"
},
{
"SchoolName": "Moat House Primary School",
"Postcode": "CV21EQ"
},
{
"SchoolName": "Limbrick Wood Primary School",
"Postcode": "CV49QT"
},
{
"SchoolName": "Henley Green Primary",
"Postcode": "CV21HQ"
},
{
"SchoolName": "Cornfield School",
"Postcode": "RH15HS"
},
{
"SchoolName": "Options College Shifnal",
"Postcode": "TF118SD"
},
{
"SchoolName": "Bay Primary School",
"Postcode": "YO167SZ"
},
{
"SchoolName": "Keldmarsh Primary School",
"Postcode": "HU178FF"
},
{
"SchoolName": "Halton School",
"Postcode": "WA72AN"
},
{
"SchoolName": "The William Hogarth Primary School",
"Postcode": "W42JR"
},
{
"SchoolName": "Swallow Dell Primary and Nursery School",
"Postcode": "AL73JP"
},
{
"SchoolName": "Ashmeads School",
"Postcode": "NN155PH"
},
{
"SchoolName": "Gorseybrigg Primary School and Nursery",
"Postcode": "S188ZY"
},
{
"SchoolName": "Noor Ul Islam Primary School",
"Postcode": "E106QW"
},
{
"SchoolName": "Hornsea Burton Primary School",
"Postcode": "HU181TG"
},
{
"SchoolName": "Keys Meadow School",
"Postcode": "EN36FB"
},
{
"SchoolName": "Birmingham Muslim School",
"Postcode": "B112PZ"
},
{
"SchoolName": "Wessex College",
"Postcode": "BA114LA"
},
{
"SchoolName": "Somerset Progressive School",
"Postcode": "TA35RH"
},
{
"SchoolName": "Cambridge Tutors College",
"Postcode": "CR05SX"
},
{
"SchoolName": "Summerfield Education Centre",
"Postcode": "B928QE"
},
{
"SchoolName": "St John the Evangelist CofE VA Primary School",
"Postcode": "OX181JF"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NW41DJ"
},
{
"SchoolName": "Nene Valley Primary School",
"Postcode": "PE29RT"
},
{
"SchoolName": "Chapel-en-le-Frith CofE VC Primary School",
"Postcode": "SK230NL"
},
{
"SchoolName": "Great Oaks Small School",
"Postcode": "CT125FH"
},
{
"SchoolName": "Pontville School",
"Postcode": "L394TW"
},
{
"SchoolName": "Mark<NAME>",
"Postcode": "BB23NY"
},
{
"SchoolName": "<NAME>",
"Postcode": "W68RB"
},
{
"SchoolName": "Burnley Springfield Community Primary School",
"Postcode": "BB113HP"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NN108NQ"
},
{
"SchoolName": "<NAME>",
"Postcode": "NW97AL"
},
{
"SchoolName": "The Five Islands School",
"Postcode": "TR210NA"
},
{
"SchoolName": "Otley All Saints CofE Primary School",
"Postcode": "LS211DF"
},
{
"SchoolName": "<NAME> and St Benedict Catholic Primary School",
"Postcode": "CV15HG"
},
{
"SchoolName": "Cotford St Luke Primary School",
"Postcode": "TA41HZ"
},
{
"SchoolName": "Jo Richardson Community School",
"Postcode": "RM94UN"
},
{
"SchoolName": "Staleydene Preparatory School",
"Postcode": "SK164LE"
},
{
"SchoolName": "On Track Training Centre",
"Postcode": "PE132RJ"
},
{
"SchoolName": "Felmore Primary School",
"Postcode": "SS131QX"
},
{
"SchoolName": "Lansbury Lawrence Primary School",
"Postcode": "E146DZ"
},
{
"SchoolName": "Rosehill Methodist Community Primary School",
"Postcode": "OL68YG"
},
{
"SchoolName": "Churchmead Church of England (VA) School",
"Postcode": "SL39JQ"
},
{
"SchoolName": "Prospect School",
"Postcode": "PO94AQ"
},
{
"SchoolName": "Kettlebrook Short Stay School",
"Postcode": "B771AL"
},
{
"SchoolName": "Loughborough Primary School",
"Postcode": "SW97UA"
},
{
"SchoolName": "Orchard Prep Ltd",
"Postcode": "MK454RB"
},
{
"SchoolName": "Yes<NAME>ah Senior Girls School",
"Postcode": "N166UB"
},
{
"SchoolName": "Croyland Primary School",
"Postcode": "NN82AX"
},
{
"SchoolName": "Irchester Community Primary School",
"Postcode": "NN297AZ"
},
{
"SchoolName": "Salafi Independent School",
"Postcode": "B109SN"
},
{
"SchoolName": "Beaumont Community Primary School",
"Postcode": "IP76GD"
},
{
"SchoolName": "Hob Moor Community Primary School",
"Postcode": "YO244PS"
},
{
"SchoolName": "St Christopher's Catholic Primary School",
"Postcode": "L240SN"
},
{
"SchoolName": "Sandy Lane Primary School",
"Postcode": "RG122JG"
},
{
"SchoolName": "Smawthor<NAME> Moore Primary School, Castleford",
"Postcode": "WF105AX"
},
{
"SchoolName": "Cherry Fold Community Primary School",
"Postcode": "BB115JS"
},
{
"SchoolName": "The John Wesley Church of England Methodist Voluntary Aided Primary School",
"Postcode": "TN235LW"
},
{
"SchoolName": "Woodlands School at Hutton Manor",
"Postcode": "CM131SD"
},
{
"SchoolName": "Wakefield Girls' High School Junior School",
"Postcode": "WF12QX"
},
{
"SchoolName": "Long Toft Primary School",
"Postcode": "DN75AB"
},
{
"SchoolName": "The Cedar Centre",
"Postcode": "BN17FP"
},
{
"SchoolName": "Horton House School",
"Postcode": "HU75YY"
},
{
"SchoolName": "Cuerden Church School, Bamber Bridge",
"Postcode": "PR56ED"
},
{
"SchoolName": "Al-Mizan School",
"Postcode": "E11JX"
},
{
"SchoolName": "The Old School House",
"Postcode": "PE140HA"
},
{
"SchoolName": "St Mary's School and 6th Form College",
"Postcode": "TN402LU"
},
{
"SchoolName": "Ayresome Primary School",
"Postcode": "TS14NT"
},
{
"SchoolName": "Brent River College",
"Postcode": "NW99AG"
},
{
"SchoolName": "Chancellor Park Primary School, Chelmsford",
"Postcode": "CM26PT"
},
{
"SchoolName": "Jubilee Primary School",
"Postcode": "SW22JE"
},
{
"SchoolName": "Hillview Nursery School",
"Postcode": "HA20LW"
},
{
"SchoolName": "St. Dominic's Catholic Primary School",
"Postcode": "E95SR"
},
{
"SchoolName": "Sowerby Village CofE VC Primary School",
"Postcode": "HX61HB"
},
{
"SchoolName": "Sir Thomas Boteler Church of England High School",
"Postcode": "WA41JL"
},
{
"SchoolName": "Ethos College",
"Postcode": "HD59NY"
},
{
"SchoolName": "Compass School",
"Postcode": "SO169FQ"
},
{
"SchoolName": "Sankey Valley St James Church of England Primary School",
"Postcode": "WA51XE"
},
{
"SchoolName": "Alderman Bolton Community Primary School",
"Postcode": "WA41PW"
},
{
"SchoolName": "Alder Brook Primary Partnership Centre",
"Postcode": "M308LE"
},
{
"SchoolName": "Jarrow Cross CofE Primary School",
"Postcode": "NE325UW"
},
{
"SchoolName": "Royal Cross Primary School",
"Postcode": "PR21NT"
},
{
"SchoolName": "Bristol Hospital Education Service",
"Postcode": "BS65JL"
},
{
"SchoolName": "Blueberry Park",
"Postcode": "L142DY"
},
{
"SchoolName": "Calderdale PRU",
"Postcode": "HX29SR"
},
{
"SchoolName": "Walsall Academy",
"Postcode": "WS33LX"
},
{
"SchoolName": "Thongsley Fields Primary and Nursery School",
"Postcode": "PE291PE"
},
{
"SchoolName": "Lincoln Gardens Primary School",
"Postcode": "DN162ED"
},
{
"SchoolName": "Seascape Primary School",
"Postcode": "SR85NJ"
},
{
"SchoolName": "Phoenix Primary School",
"Postcode": "L79LY"
},
{
"SchoolName": "Newlands Primary School",
"Postcode": "SO169QX"
},
{
"SchoolName": "Mulberry Primary School",
"Postcode": "N179RB"
},
{
"SchoolName": "Hadley Learning Community - Secondary Phase",
"Postcode": "TF15NU"
},
{
"SchoolName": "Medlock Valley Community School",
"Postcode": "OL82PN"
},
{
"SchoolName": "Clarksfield Primary School",
"Postcode": "OL41NG"
},
{
"SchoolName": "Yew Tree Community School",
"Postcode": "OL98LD"
},
{
"SchoolName": "Newcastle Bridges School",
"Postcode": "NE64NW"
},
{
"SchoolName": "First Base, Ipswich",
"Postcode": "IP30EW"
},
{
"SchoolName": "Hospital and Outreach Education",
"Postcode": "NN48EN"
},
{
"SchoolName": "Kingsland Primary School",
"Postcode": "WF34BA"
},
{
"SchoolName": "Oakfield Park School, Ackworth",
"Postcode": "WF77DT"
},
{
"SchoolName": "Dickens Heath Community Primary School",
"Postcode": "B901NA"
},
{
"SchoolName": "Southfield Park Primary School",
"Postcode": "KT198TF"
},
{
"SchoolName": "JFS",
"Postcode": "HA39TE"
},
{
"SchoolName": "Jarrow School",
"Postcode": "NE325PR"
},
{
"SchoolName": "Hensingham Community Primary School",
"Postcode": "CA288QZ"
},
{
"SchoolName": "The Bishop Harvey Goodwin School (Church of England Voluntary Aided)",
"Postcode": "CA24HG"
},
{
"SchoolName": "Marshgate Primary School",
"Postcode": "TW106HY"
},
{
"SchoolName": "Yenton Primary School",
"Postcode": "B240ED"
},
{
"SchoolName": "Guildford Nursery School and Children's Centre",
"Postcode": "GU11NR"
},
{
"SchoolName": "Kingsthorpe Village Primary School",
"Postcode": "NN26QL"
},
{
"SchoolName": "Langside School",
"Postcode": "BH125BN"
},
{
"SchoolName": "Link Primary School",
"Postcode": "CR04PG"
},
{
"SchoolName": "Link Secondary School",
"Postcode": "CR04PD"
},
{
"SchoolName": "Heathermount School",
"Postcode": "SL59PG"
},
{
"SchoolName": "Island Learning Centre",
"Postcode": "PO305HZ"
},
{
"SchoolName": "Peterhouse School",
"Postcode": "PR98PA"
},
{
"SchoolName": "Northgate School",
"Postcode": "HA80AD"
},
{
"SchoolName": "Education In Hospital 2 (BRI)",
"Postcode": "BD182LU"
},
{
"SchoolName": "Education In Hospital 1 (Airedale)",
"Postcode": "BD182LU"
},
{
"SchoolName": "The Smart Centre",
"Postcode": "SM46PT"
},
{
"SchoolName": "Kings Wood School and Nursery",
"Postcode": "HP137UN"
},
{
"SchoolName": "Wrekin View Primary School",
"Postcode": "TF13ES"
},
{
"SchoolName": "Wakefield Snapethorpe Primary School",
"Postcode": "WF28AA"
},
{
"SchoolName": "Forestdale Primary School",
"Postcode": "B450JS"
},
{
"SchoolName": "Will Adams Centre",
"Postcode": "ME72BX"
},
{
"SchoolName": "Unity City Academy",
"Postcode": "TS38RE"
},
{
"SchoolName": "The Business Academy Bexley",
"Postcode": "DA184DW"
},
{
"SchoolName": "Ashbury Meadow Primary School",
"Postcode": "M113NA"
},
{
"SchoolName": "St Catherine's Hoddesdon CofE Primary School",
"Postcode": "EN118HT"
},
{
"SchoolName": "St Thomas of Canterbury Catholic Primary School",
"Postcode": "CR41YG"
},
{
"SchoolName": "Amesbury Archer Primary School",
"Postcode": "SP47XX"
},
{
"SchoolName": "The Key Education Centre",
"Postcode": "PO130SG"
},
{
"SchoolName": "Talbot House Trust, Newcastle Upon Tyne",
"Postcode": "NE158HW"
},
{
"SchoolName": "Haytor View Community Primary School",
"Postcode": "TQ124BD"
},
{
"SchoolName": "Queensbridge Primary School",
"Postcode": "BL47BL"
},
{
"SchoolName": "The Gates Primary School",
"Postcode": "BL53QA"
},
{
"SchoolName": "St John with St Mark CofE Primary School",
"Postcode": "BL95EE"
},
{
"SchoolName": "Milton Road Primary School",
"Postcode": "CB42BD"
},
{
"SchoolName": "Oakdale Junior School",
"Postcode": "E181JX"
},
{
"SchoolName": "Oakdale Infants' School",
"Postcode": "E181JU"
},
{
"SchoolName": "Gearies Primary School",
"Postcode": "IG26TD"
},
{
"SchoolName": "Churchfields Junior School",
"Postcode": "E182RB"
},
{
"SchoolName": "Churchfields Infants' School",
"Postcode": "E182RB"
},
{
"SchoolName": "Parkhill Infants' School",
"Postcode": "IG50DB"
},
{
"SchoolName": "Parkhill Junior School",
"Postcode": "IG50DB"
},
{
"SchoolName": "Sinclair Primary and Nursery School",
"Postcode": "SO168GF"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "BL99JQ"
},
{
"SchoolName": "Bridgelea Pupil Referral Unit",
"Postcode": "M203FB"
},
{
"SchoolName": "York High School",
"Postcode": "YO243WZ"
},
{
"SchoolName": "North East Derbyshire Support Centre",
"Postcode": "S410LN"
},
{
"SchoolName": "St Edward's Preparatory School",
"Postcode": "GL526NR"
},
{
"SchoolName": "Richmond Avenue Primary School",
"Postcode": "SS39LG"
},
{
"SchoolName": "Phoenix Community Primary School",
"Postcode": "TN249LS"
},
{
"SchoolName": "Hope Hamilton CofE Primary School",
"Postcode": "LE51LU"
},
{
"SchoolName": "Grantham Farm Montessori School",
"Postcode": "RG265JS"
},
{
"SchoolName": "Langley Green Primary",
"Postcode": "RH117PF"
},
{
"SchoolName": "Southgate Primary",
"Postcode": "RH106DG"
},
{
"SchoolName": "Northgate Primary School",
"Postcode": "RH108DX"
},
{
"SchoolName": "Muriel Green Nursery School",
"Postcode": "AL35JB"
},
{
"SchoolName": "The Valley Community Primary School",
"Postcode": "BL18JG"
},
{
"SchoolName": "Brooklands Primary School",
"Postcode": "NG101BX"
},
{
"SchoolName": "Blackburn the Redeemer CofE Primary",
"Postcode": "BB24JJ"
},
{
"SchoolName": "Draycott Moor College",
"Postcode": "ST119AH"
},
{
"SchoolName": "Arbourthorne Community Primary School",
"Postcode": "S22GQ"
},
{
"SchoolName": "Yardley Primary School",
"Postcode": "B261TD"
},
{
"SchoolName": "Smallbrook School",
"Postcode": "SY43HE"
},
{
"SchoolName": "St Mark's Church of England Academy",
"Postcode": "CR41SF"
},
{
"SchoolName": "Blenheim Primary School",
"Postcode": "BR69BH"
},
{
"SchoolName": "Larmenier & Sacred Heart Catholic Primary School",
"Postcode": "W67BL"
},
{
"SchoolName": "Parsons Green Prep School",
"Postcode": "SW64LJ"
},
{
"SchoolName": "The Lantern Community Primary",
"Postcode": "CB62WL"
},
{
"SchoolName": "Charter Primary School",
"Postcode": "CV48DW"
},
{
"SchoolName": "St Mary the Virgin CofE VA Primary School",
"Postcode": "SP84LP"
},
{
"SchoolName": "Lincewood Primary School",
"Postcode": "SS166AZ"
},
{
"SchoolName": "Ordsall Primary School",
"Postcode": "DN227SL"
},
{
"SchoolName": "Al-Burhan Grammar School",
"Postcode": "B113DW"
},
{
"SchoolName": "Gatton (VA) Primary School",
"Postcode": "SW170DS"
},
{
"SchoolName": "Oriel High School",
"Postcode": "RH107XW"
},
{
"SchoolName": "Necton VA Primary School",
"Postcode": "PE378HT"
},
{
"SchoolName": "Trafford High School",
"Postcode": "M418RN"
},
{
"SchoolName": "Moving On Pupil Referral Unit",
"Postcode": "CR01QH"
},
{
"SchoolName": "Harleston CofE VA Primary School",
"Postcode": "IP209HG"
},
{
"SchoolName": "The Discovery School",
"Postcode": "ME194GJ"
},
{
"SchoolName": "Brantridge School",
"Postcode": "RH176EQ"
},
{
"SchoolName": "Inscape House School",
"Postcode": "SK81JE"
},
{
"SchoolName": "Springfield Primary School",
"Postcode": "CM16XW"
},
{
"SchoolName": "Broughton Fields Primary School",
"Postcode": "MK109LS"
},
{
"SchoolName": "Giles Brook Primary School",
"Postcode": "MK43GB"
},
{
"SchoolName": "Whinney Banks Primary School",
"Postcode": "TS54QQ"
},
{
"SchoolName": "Pelton Community Primary School",
"Postcode": "DH21EZ"
},
{
"SchoolName": "Conifers Primary School",
"Postcode": "DT40QF"
},
{
"SchoolName": "Springfield Primary School",
"Postcode": "B139NY"
},
{
"SchoolName": "Islamic Shakhsiyah Foundation",
"Postcode": "N155RG"
},
{
"SchoolName": "Islamic Shakhsiyah Foundation",
"Postcode": "SL25DN"
},
{
"SchoolName": "St Albans Independent College",
"Postcode": "AL11LN"
},
{
"SchoolName": "The Lambs Christian School",
"Postcode": "B191AY"
},
{
"SchoolName": "Mapledene Primary School",
"Postcode": "B263XE"
},
{
"SchoolName": "Caedmon Primary School",
"Postcode": "TS67NA"
},
{
"SchoolName": "Kings Heath Primary School",
"Postcode": "B147AJ"
},
{
"SchoolName": "Wheelers Lane Primary School",
"Postcode": "B130SF"
},
{
"SchoolName": "<NAME>att Primary School",
"Postcode": "B210RE"
},
{
"SchoolName": "The Surrey Teaching Centre",
"Postcode": "KT205RU"
},
{
"SchoolName": "St Peter's Centre",
"Postcode": "KT160PZ"
},
{
"SchoolName": "Springmead Preparatory School",
"Postcode": "BA116TA"
},
{
"SchoolName": "Cambridge Primary School",
"Postcode": "LA139RP"
},
{
"SchoolName": "Oswaldtwistle School",
"Postcode": "BB53DA"
},
{
"SchoolName": "Shaftesbury High School",
"Postcode": "PR73NQ"
},
{
"SchoolName": "Bridlewood Primary School",
"Postcode": "SN252EX"
},
{
"SchoolName": "Madley Brook Community Primary School",
"Postcode": "OX281AR"
},
{
"SchoolName": "On Track Education Centre (Silsoe)",
"Postcode": "MK454HS"
},
{
"SchoolName": "North Wingfield Primary and Nursery School",
"Postcode": "S425LE"
},
{
"SchoolName": "<NAME>",
"Postcode": "BD49PH"
},
{
"SchoolName": "The Villa",
"Postcode": "SE155AH"
},
{
"SchoolName": "Rainbow School for Children with Autism",
"Postcode": "SW182SL"
},
{
"SchoolName": "Headstart",
"Postcode": "TN339EG"
},
{
"SchoolName": "St Francis CofE Primary School",
"Postcode": "SN251UH"
},
{
"SchoolName": "Ramridge Primary School",
"Postcode": "LU29AH"
},
{
"SchoolName": "Merit Pupil Referral Unit",
"Postcode": "ST29JA"
},
{
"SchoolName": "Malmesbury Primary School",
"Postcode": "E32AB"
},
{
"SchoolName": "Christ the Sower Ecumenical Primary School (VA)",
"Postcode": "MK80PZ"
},
{
"SchoolName": "Wickham Court School",
"Postcode": "BR49HW"
},
{
"SchoolName": "Cambian Wisbech School",
"Postcode": "PE131JF"
},
{
"SchoolName": "Columbia Grange School",
"Postcode": "NE387NY"
},
{
"SchoolName": "Orchard Primary School",
"Postcode": "DA146LW"
},
{
"SchoolName": "Bright Futures",
"Postcode": "WA130GH"
},
{
"SchoolName": "Westoe Crown Primary School",
"Postcode": "NE333NS"
},
{
"SchoolName": "Heart of the Forest Community Special School",
"Postcode": "GL167EJ"
},
{
"SchoolName": "Wings School",
"Postcode": "UB70AE"
},
{
"SchoolName": "L'Ecole Bilingue Elementaire",
"Postcode": "W21SJ"
},
{
"SchoolName": "The Harbour School",
"Postcode": "CB63RR"
},
{
"SchoolName": "Manchester Mesivta School",
"Postcode": "M250PH"
},
{
"SchoolName": "Wyvern College",
"Postcode": "SP11RE"
},
{
"SchoolName": "Farnsfield St Michael's Church of England Primary (Voluntary Aided) School",
"Postcode": "NG228JZ"
},
{
"SchoolName": "Childwall Valley Primary School",
"Postcode": "L251NW"
},
{
"SchoolName": "Mawsley Primary School",
"Postcode": "NN141GZ"
},
{
"SchoolName": "Valley Primary School and Nursery",
"Postcode": "CA288DA"
},
{
"SchoolName": "Petts Hill Primary School",
"Postcode": "UB54HB"
},
{
"SchoolName": "Broadfield Community Primary School",
"Postcode": "OL161QT"
},
{
"SchoolName": "The City Academy Bristol",
"Postcode": "BS59JH"
},
{
"SchoolName": "City of London Academy (Southwark)",
"Postcode": "SE15LA"
},
{
"SchoolName": "The King's Academy",
"Postcode": "TS80GA"
},
{
"SchoolName": "Manchester Academy",
"Postcode": "M144PX"
},
{
"SchoolName": "Harris Academy Peckham",
"Postcode": "SE155DZ"
},
{
"SchoolName": "Capital City Academy",
"Postcode": "NW103ST"
},
{
"SchoolName": "Sea View Primary School",
"Postcode": "NE347TD"
},
{
"SchoolName": "Mallard Primary School",
"Postcode": "DN49HU"
},
{
"SchoolName": "The Woodlands Primary School",
"Postcode": "DN67RG"
},
{
"SchoolName": "St Osmund and Andrew's RC Primary School",
"Postcode": "BL26NW"
},
{
"SchoolName": "St Nicholas CofE Primary",
"Postcode": "BA33QH"
},
{
"SchoolName": "Knowle West Early Years Centre",
"Postcode": "BS41NN"
},
{
"SchoolName": "Suffah Primary School",
"Postcode": "TW45HU"
},
{
"SchoolName": "Al-Noor Primary School",
"Postcode": "RM65SD"
},
{
"SchoolName": "St Margaret's Anfield Church of England Primary School",
"Postcode": "L64BX"
},
{
"SchoolName": "Hoole Church of England Primary School",
"Postcode": "CH23HB"
},
{
"SchoolName": "The Oaks Community Primary School",
"Postcode": "CH659EX"
},
{
"SchoolName": "All Saints' Catholic Voluntary Aided Primary School",
"Postcode": "L42QG"
},
{
"SchoolName": "Djanogly City Academy",
"Postcode": "NG76ND"
},
{
"SchoolName": "Keston Primary School",
"Postcode": "CR51HP"
},
{
"SchoolName": "Midpoint Centre (Key Stage 4 PRU)",
"Postcode": "WV46SR"
},
{
"SchoolName": "The Braybrook Centre (Key Stage 3 PRU)",
"Postcode": "WV46SR"
},
{
"SchoolName": "Linthorpe Community Primary School",
"Postcode": "TS56EA"
},
{
"SchoolName": "The St Aubyn Centre Education Department",
"Postcode": "CO45HG"
},
{
"SchoolName": "Hadley Learning Community - Primary Phase",
"Postcode": "TF15NU"
},
{
"SchoolName": "Coventry Extended Learning Centre",
"Postcode": "CV25BD"
},
{
"SchoolName": "The Phoenix School",
"Postcode": "PE25SD"
},
{
"SchoolName": "Normand Croft Community School for Early Years and Primary Education",
"Postcode": "W149PA"
},
{
"SchoolName": "New River College Medical",
"Postcode": "N195NF"
},
{
"SchoolName": "Cobblers Lane Primary School",
"Postcode": "WF82HN"
},
{
"SchoolName": "West Heath Primary School",
"Postcode": "B388HU"
},
{
"SchoolName": "Paganel Primary School",
"Postcode": "B295TG"
},
{
"SchoolName": "Alder Community High School",
"Postcode": "SK145NJ"
},
{
"SchoolName": "Mehria School",
"Postcode": "LU48JD"
},
{
"SchoolName": "Normanton House School",
"Postcode": "DE238DF"
},
{
"SchoolName": "Landgate School, Bryn",
"Postcode": "WN40EP"
},
{
"SchoolName": "Sharrow Nursery, Infant and Junior School",
"Postcode": "S71BE"
},
{
"SchoolName": "Great Hollands Primary School",
"Postcode": "RG128YR"
},
{
"SchoolName": "Rolleston Primary School",
"Postcode": "LE29PT"
},
{
"SchoolName": "Hampton Vale Primary School",
"Postcode": "PE78LS"
},
{
"SchoolName": "Starks Field Primary School",
"Postcode": "N99SJ"
},
{
"SchoolName": "Milton Keynes Primary Pupil Referral Unit",
"Postcode": "MK37AW"
},
{
"SchoolName": "Oasis Academy Enfield",
"Postcode": "EN37XH"
},
{
"SchoolName": "St Mary Magdalene Academy",
"Postcode": "N78PG"
},
{
"SchoolName": "Options Barton",
"Postcode": "DN186DA"
},
{
"SchoolName": "Rufford Park Primary School",
"Postcode": "LS197QR"
},
{
"SchoolName": "St Bernadette's Catholic Primary School",
"Postcode": "MK109PH"
},
{
"SchoolName": "Methley Primary School",
"Postcode": "LS269HT"
},
{
"SchoolName": "The Bridge School",
"Postcode": "WA71PW"
},
{
"SchoolName": "Swale Inclusion Service",
"Postcode": "ME101JB"
},
{
"SchoolName": "Kingsmead Primary School",
"Postcode": "CW98WA"
},
{
"SchoolName": "Springwell Park Community Primary School",
"Postcode": "L206PG"
},
{
"SchoolName": "Chaselea PRU",
"Postcode": "WS111LH"
},
{
"SchoolName": "St Lukes CofE Primary School",
"Postcode": "WS111HN"
},
{
"SchoolName": "Abbots Green Community Primary School",
"Postcode": "IP327PJ"
},
{
"SchoolName": "Redbridge Tuition Service",
"Postcode": "IG61PU"
},
{
"SchoolName": "McKee College House",
"Postcode": "FY67AQ"
},
{
"SchoolName": "Alec Reed Academy",
"Postcode": "UB55LQ"
},
{
"SchoolName": "Rimrose Hope CofE Primary School",
"Postcode": "L211AD"
},
{
"SchoolName": "The Compass",
"Postcode": "DT40QU"
},
{
"SchoolName": "Christchurch Learning Centre",
"Postcode": "BH231PJ"
},
{
"SchoolName": "Ossett South Parade Primary",
"Postcode": "WF50DZ"
},
{
"SchoolName": "Elite Grammar School",
"Postcode": "BD50HT"
},
{
"SchoolName": "Hopewell School (Harmony House)",
"Postcode": "RM96XN"
},
{
"SchoolName": "Tuition, Medical and Behaviour Support Service",
"Postcode": "SY14RG"
},
{
"SchoolName": "New Direction School",
"Postcode": "S434BX"
},
{
"SchoolName": "The Yellow House School",
"Postcode": "CO93HX"
},
{
"SchoolName": "Olive Tree School",
"Postcode": "SE136NZ"
},
{
"SchoolName": "Right Choice Independent Special School",
"Postcode": "SE186BB"
},
{
"SchoolName": "Sporting Edge Independent School",
"Postcode": "B184EJ"
},
{
"SchoolName": "Strawberry Fields Primary School",
"Postcode": "LS251LL"
},
{
"SchoolName": "Blackgates Primary School",
"Postcode": "WF31QQ"
},
{
"SchoolName": "Drighlington Primary School",
"Postcode": "BD111JY"
},
{
"SchoolName": "Pudsey Waterloo Primary",
"Postcode": "LS287SR"
},
{
"SchoolName": "Include - Thames Valley",
"Postcode": "RG127WW"
},
{
"SchoolName": "Azhar Academy Girls School",
"Postcode": "E79HL"
},
{
"SchoolName": "Islamic Preparatory School Wolverhampton",
"Postcode": "WV14RA"
},
{
"SchoolName": "Bow Brickhill CofE VA Primary School",
"Postcode": "MK179JT"
},
{
"SchoolName": "The Vine Christian School",
"Postcode": "RG71AT"
},
{
"SchoolName": "Howes Community Primary School",
"Postcode": "CV35EH"
},
{
"SchoolName": "T<NAME>",
"Postcode": "BD58HH"
},
{
"SchoolName": "Al Mumin Primary and Secondary School",
"Postcode": "BD87DA"
},
{
"SchoolName": "Lewis Charlton Learning Centre",
"Postcode": "LE651HU"
},
{
"SchoolName": "Include Schools Norfolk",
"Postcode": "NR33UA"
},
{
"SchoolName": "Catch22 Include Bristol",
"Postcode": "BS28SF"
},
{
"SchoolName": "Focus School - Linton Park Campus",
"Postcode": "ME174HT"
},
{
"SchoolName": "Focus School - Cambridge Campus",
"Postcode": "CB223BF"
},
{
"SchoolName": "Focus School - Swaffham Campus",
"Postcode": "PE377XD"
},
{
"SchoolName": "Newhall Theatre Project",
"Postcode": "B634HY"
},
{
"SchoolName": "Focus School - Wilton Campus",
"Postcode": "SP20JE"
},
{
"SchoolName": "Focus School - Gloucester Campus",
"Postcode": "GL43DB"
},
{
"SchoolName": "Focus School - Atherstone Campus",
"Postcode": "CV91AE"
},
{
"SchoolName": "Focus School - Bramley Campus",
"Postcode": "S668QN"
},
{
"SchoolName": "Focus School - Stoke Poges Campus",
"Postcode": "SL24QA"
},
{
"SchoolName": "Afifah School",
"Postcode": "M169GN"
},
{
"SchoolName": "Pinehurst Primary School Anfield",
"Postcode": "L47UF"
},
{
"SchoolName": "Cragside CofE Controlled Primary School",
"Postcode": "NE236LW"
},
{
"SchoolName": "Kensington Avenue Primary School",
"Postcode": "CR78BT"
},
{
"SchoolName": "St Peters CofE Primary School",
"Postcode": "B170BE"
},
{
"SchoolName": "Sacred Heart RC Primary School",
"Postcode": "M187NJ"
},
{
"SchoolName": "Focus School - Stoke by Nayland",
"Postcode": "CO64RW"
},
{
"SchoolName": "Focus School - Stockport Campus",
"Postcode": "SK42AA"
},
{
"SchoolName": "Focus School - Dunstable Campus",
"Postcode": "LU54QL"
},
{
"SchoolName": "The Orchard School",
"Postcode": "SW23ES"
},
{
"SchoolName": "Hollybush Primary",
"Postcode": "LS132JJ"
},
{
"SchoolName": "Downsview Community Primary School",
"Postcode": "BR88AU"
},
{
"SchoolName": "Meadowfield Primary School",
"Postcode": "LS90JY"
},
{
"SchoolName": "New Leaf Centre",
"Postcode": "WS41NG"
},
{
"SchoolName": "Avenue Centre for Education",
"Postcode": "LU13NJ"
},
{
"SchoolName": "Grange Primary School",
"Postcode": "GL40RW"
},
{
"SchoolName": "Wessington Primary School",
"Postcode": "NE387PY"
},
{
"SchoolName": "Corley Centre",
"Postcode": "CV78AZ"
},
{
"SchoolName": "Auckland Education Centre",
"Postcode": "B360DD"
},
{
"SchoolName": "Owston Park Primary",
"Postcode": "DN68PU"
},
{
"SchoolName": "Walton Oak Primary School",
"Postcode": "KT123LN"
},
{
"SchoolName": "Focus School - Hindhead Campus",
"Postcode": "GU266SJ"
},
{
"SchoolName": "<NAME>",
"Postcode": "B111PL"
},
{
"SchoolName": "The From Boyhood To Manhood Foundation",
"Postcode": "SE156EF"
},
{
"SchoolName": "Al Huda Academy (J<NAME>-Hudaa)",
"Postcode": "S93FY"
},
{
"SchoolName": "Rochdale Girls School",
"Postcode": "OL120HZ"
},
{
"SchoolName": "Imam Zakariya Academy",
"Postcode": "E78AB"
},
{
"SchoolName": "Walthamstow Montessori School",
"Postcode": "E175DA"
},
{
"SchoolName": "Phoenix Academy",
"Postcode": "N98LD"
},
{
"SchoolName": "Kent College International Study Centre",
"Postcode": "CT29DT"
},
{
"SchoolName": "Al-Khair School",
"Postcode": "CR06BE"
},
{
"SchoolName": "The Fountain",
"Postcode": "BD58BP"
},
{
"SchoolName": "Focus School - Cottingham Campus",
"Postcode": "HU164DD"
},
{
"SchoolName": "Jamiah Madaniyah Primary School",
"Postcode": "E78NN"
},
{
"SchoolName": "Eagle House School",
"Postcode": "CR43HD"
},
{
"SchoolName": "Emmanuel Christian School",
"Postcode": "LE31QP"
},
{
"SchoolName": "Ealing Primary Centre",
"Postcode": "UB68QJ"
},
{
"SchoolName": "St Francis of Assisi Catholic Primary School",
"Postcode": "WN89AZ"
},
{
"SchoolName": "Woodlands Community Primary School",
"Postcode": "WN86QH"
},
{
"SchoolName": "Brookfield Park Primary School",
"Postcode": "WN88EH"
},
{
"SchoolName": "The Quest School",
"Postcode": "TN126PY"
},
{
"SchoolName": "Hythe House Education",
"Postcode": "ME122AP"
},
{
"SchoolName": "Wathen Grange School",
"Postcode": "CV91PZ"
},
{
"SchoolName": "First Base",
"Postcode": "IP327PJ"
},
{
"SchoolName": "Fairfield Primary School",
"Postcode": "TS197PW"
},
{
"SchoolName": "Highfields Inclusion Partnership",
"Postcode": "SK58DR"
},
{
"SchoolName": "The Rose School",
"Postcode": "BB114DT"
},
{
"SchoolName": "Quwwat Ul Islam Girls' School",
"Postcode": "E79NB"
},
{
"SchoolName": "Step By Step, School for Autistic Children Ltd",
"Postcode": "RH194HP"
},
{
"SchoolName": "New Regent's College",
"Postcode": "E58AD"
},
{
"SchoolName": "<NAME> Girls Primary School",
"Postcode": "N165RP"
},
{
"SchoolName": "Birch Wood (Melton Area Special School)",
"Postcode": "LE131HA"
},
{
"SchoolName": "CCfL Key Stage 3 PRU",
"Postcode": "NW18DP"
},
{
"SchoolName": "Ladybridge High School",
"Postcode": "BL34NG"
},
{
"SchoolName": "Freyburg School",
"Postcode": "S803BP"
},
{
"SchoolName": "Chiltern Primary School",
"Postcode": "RG225BB"
},
{
"SchoolName": "Upton Meadows Primary School",
"Postcode": "NN54EZ"
},
{
"SchoolName": "Seaham Trinity Primary School",
"Postcode": "SR77SP"
},
{
"SchoolName": "Childwall Abbey School",
"Postcode": "L165EY"
},
{
"SchoolName": "Moorside Community Primary School",
"Postcode": "HX28AP"
},
{
"SchoolName": "<NAME>ough School",
"Postcode": "YO113BQ"
},
{
"SchoolName": "Carr Mill Primary School",
"Postcode": "WA117PQ"
},
{
"SchoolName": "The Oaks Secondary School",
"Postcode": "DL167DB"
},
{
"SchoolName": "Evergreen Primary School",
"Postcode": "DL146LS"
},
{
"SchoolName": "Notting Hill Preparatory School",
"Postcode": "W111QQ"
},
{
"SchoolName": "Redbrook Hayes Community Primary School",
"Postcode": "WS151AU"
},
{
"SchoolName": "Chase View Community Primary School",
"Postcode": "WS151NE"
},
{
"SchoolName": "Heathfield House School",
"Postcode": "W44JU"
},
{
"SchoolName": "West Exe Childrens Centre",
"Postcode": "EX41HL"
},
{
"SchoolName": "Woodcroft Primary School",
"Postcode": "HA80QF"
},
{
"SchoolName": "Chestnuts Primary School",
"Postcode": "N153AS"
},
{
"SchoolName": "North Harringay Primary School",
"Postcode": "N80NU"
},
{
"SchoolName": "Alban Wood Primary School and Nursery",
"Postcode": "WD257NX"
},
{
"SchoolName": "Kings Oak Primary Learning Centre",
"Postcode": "S738TX"
},
{
"SchoolName": "Mossbourne Community Academy",
"Postcode": "E58JY"
},
{
"SchoolName": "Mendip Partnership School",
"Postcode": "BA69NP"
},
{
"SchoolName": "South Somerset Partnership School",
"Postcode": "BA214EN"
},
{
"SchoolName": "Taunton Deane Partnership College",
"Postcode": "TA15DR"
},
{
"SchoolName": "Beechwood Primary School",
"Postcode": "LU49RD"
},
{
"SchoolName": "South Bank Community Primary School",
"Postcode": "TS60DD"
},
{
"SchoolName": "Barley Fields Primary",
"Postcode": "TS170QP"
},
{
"SchoolName": "De Havilland Primary School",
"Postcode": "AL108TQ"
},
{
"SchoolName": "Whinfield Primary School",
"Postcode": "DL13HT"
},
{
"SchoolName": "The Trinity Catholic Primary School",
"Postcode": "L58UT"
},
{
"SchoolName": "Faith Primary School",
"Postcode": "L53LW"
},
{
"SchoolName": "Oracle",
"Postcode": "CW122AH"
},
{
"SchoolName": "Applefields School",
"Postcode": "YO310LW"
},
{
"SchoolName": "Hob Moor Oaks School",
"Postcode": "YO244PS"
},
{
"SchoolName": "Manorfield Primary and Nursery School",
"Postcode": "RH68AL"
},
{
"SchoolName": "Cadland Primary School",
"Postcode": "SO452HW"
},
{
"SchoolName": "Chelsea Independent College",
"Postcode": "SW61HD"
},
{
"SchoolName": "Beckstone Primary School",
"Postcode": "CA145PX"
},
{
"SchoolName": "The Pines Primary School",
"Postcode": "RG127WX"
},
{
"SchoolName": "Keyingham Primary School",
"Postcode": "HU129RU"
},
{
"SchoolName": "Westfield Community School",
"Postcode": "WN59XN"
},
{
"SchoolName": "Willenhall Community Primary School",
"Postcode": "CV33DB"
},
{
"SchoolName": "Pipworth Community Primary School",
"Postcode": "S21AA"
},
{
"SchoolName": "The Bridge School Sedgemoor",
"Postcode": "TA63RG"
},
{
"SchoolName": "Kingsland School",
"Postcode": "OL14HX"
},
{
"SchoolName": "Harbour",
"Postcode": "NR324TD"
},
{
"SchoolName": "North London Grammar School",
"Postcode": "NW96HB"
},
{
"SchoolName": "Pilgrim PRU",
"Postcode": "CB215EE"
},
{
"SchoolName": "Ancora House School",
"Postcode": "CH21BQ"
},
{
"SchoolName": "Sycamore Short Stay School",
"Postcode": "DY13QE"
},
{
"SchoolName": "Sherfield School",
"Postcode": "RG270HU"
},
{
"SchoolName": "Focus School - Hornby Campus",
"Postcode": "LA28LH"
},
{
"SchoolName": "St Joseph's Catholic and CofE (VA) Primary School",
"Postcode": "S433LY"
},
{
"SchoolName": "New Oscott Primary School",
"Postcode": "B736QR"
},
{
"SchoolName": "Kingslea Primary School",
"Postcode": "RH135PS"
},
{
"SchoolName": "Winshill Village Primary and Nursery School",
"Postcode": "DE150DH"
},
{
"SchoolName": "Khalsa Primary School",
"Postcode": "SL25QR"
},
{
"SchoolName": "Woodley Primary School",
"Postcode": "SK61LH"
},
{
"SchoolName": "Bishop Ridley Church of England VA Primary School",
"Postcode": "DA162QE"
},
{
"SchoolName": "Cambian Whinfell School",
"Postcode": "LA95EZ"
},
{
"SchoolName": "The Gower School",
"Postcode": "N19JF"
},
{
"SchoolName": "Meadowfield School",
"Postcode": "ME104NL"
},
{
"SchoolName": "Higher Failsworth Primary School",
"Postcode": "M359EA"
},
{
"SchoolName": "Thomas Gray Primary School",
"Postcode": "L204LX"
},
{
"SchoolName": "Old Sarum Primary School",
"Postcode": "SP46GH"
},
{
"SchoolName": "Buckingham Park Primary School",
"Postcode": "BN435UD"
},
{
"SchoolName": "Stockley Academy",
"Postcode": "UB83GA"
},
{
"SchoolName": "London Academy",
"Postcode": "HA88DE"
},
{
"SchoolName": "Avenue Nursery and Pre-Preparatory School",
"Postcode": "N65RX"
},
{
"SchoolName": "<NAME> - Islamia",
"Postcode": "LU31RF"
},
{
"SchoolName": "Bury Park Educational Institute (Al - Hikmah Secondary School)",
"Postcode": "LU11EH"
},
{
"SchoolName": "Oliver House Preparatory School",
"Postcode": "SW49AH"
},
{
"SchoolName": "Al-Aqsa Schools Trust",
"Postcode": "LE54PP"
},
{
"SchoolName": "London East Academy",
"Postcode": "E11JX"
},
{
"SchoolName": "Ecole Du Parc",
"Postcode": "SW115PN"
},
{
"SchoolName": "Park View School",
"Postcode": "NE340QA"
},
{
"SchoolName": "Northampton Academy",
"Postcode": "NN38NH"
},
{
"SchoolName": "Lambeth Academy",
"Postcode": "SW49ET"
},
{
"SchoolName": "Wetherby Preparatory School",
"Postcode": "W1H2EA"
},
{
"SchoolName": "Bellerbys College London",
"Postcode": "SE83DE"
},
{
"SchoolName": "Stepping Stones School Hindhead",
"Postcode": "GU266SU"
},
{
"SchoolName": "Clifton Primary School",
"Postcode": "B128NX"
},
{
"SchoolName": "Dovecote Primary and Nursery School",
"Postcode": "NG118EY"
},
{
"SchoolName": "Greenfields Community School",
"Postcode": "NG22JE"
},
{
"SchoolName": "Lanterns Nursery School & Children's Centre",
"Postcode": "SO226AJ"
},
{
"SchoolName": "Ravensfield Primary School",
"Postcode": "SK164JG"
},
{
"SchoolName": "Ashley College",
"Postcode": "HA98NP"
},
{
"SchoolName": "The John Barker Centre",
"Postcode": "IG11UE"
},
{
"SchoolName": "Millbrook Primary School",
"Postcode": "TF16UJ"
},
{
"SchoolName": "Harewood Primary School",
"Postcode": "TS177JJ"
},
{
"SchoolName": "Prince Bishops Community Primary School",
"Postcode": "DL148DY"
},
{
"SchoolName": "Greenfields Community Primary School",
"Postcode": "ME158DF"
},
{
"SchoolName": "Meredale Independent Primary School",
"Postcode": "ME88EB"
},
{
"SchoolName": "Devon Hospitals' Short Stay School",
"Postcode": "EX25DW"
},
{
"SchoolName": "Eastwood Primary School & Nursery",
"Postcode": "SS95UT"
},
{
"SchoolName": "Edwards Hall Primary School",
"Postcode": "SS95AQ"
},
{
"SchoolName": "Hyde Park School",
"Postcode": "SW75NL"
},
{
"SchoolName": "Lansbury Bridge School",
"Postcode": "WA91TB"
},
{
"SchoolName": "The Acorns Primary and Nursery School",
"Postcode": "CH657ED"
},
{
"SchoolName": "Oakfield Primary School",
"Postcode": "DN163JF"
},
{
"SchoolName": "The Hope Service",
"Postcode": "GU26RS"
},
{
"SchoolName": "The Acorns School",
"Postcode": "L394QX"
},
{
"SchoolName": "Burton PRU",
"Postcode": "DE150HR"
},
{
"SchoolName": "Rendlesham Community Primary School",
"Postcode": "IP122GF"
},
{
"SchoolName": "Moorfield Primary School",
"Postcode": "SK75HP"
},
{
"SchoolName": "West Specialist Inclusive Learning Centre",
"Postcode": "LS286HL"
},
{
"SchoolName": "North West Specialist Inclusive Learning Centre",
"Postcode": "LS64QD"
},
{
"SchoolName": "Focus School - Kenley & Carshalton Campus",
"Postcode": "SM54AZ"
},
{
"SchoolName": "Wargrave House School",
"Postcode": "WA128RS"
},
{
"SchoolName": "Sutherland House School",
"Postcode": "NG11DA"
},
{
"SchoolName": "Regent College",
"Postcode": "HA27JP"
},
{
"SchoolName": "Hillbourne Primary School",
"Postcode": "BH177HX"
},
{
"SchoolName": "Park House",
"Postcode": "PE60SA"
},
{
"SchoolName": "The Vine Inter-Church Primary School",
"Postcode": "CB236DY"
},
{
"SchoolName": "Sompting Village Primary School",
"Postcode": "BN150BU"
},
{
"SchoolName": "The Arches Community Primary School",
"Postcode": "CH15EZ"
},
{
"SchoolName": "Seabridge Primary School",
"Postcode": "ST53PJ"
},
{
"SchoolName": "Polehampton Church of England Junior School",
"Postcode": "RG109AX"
},
{
"SchoolName": "The Children's Trust School",
"Postcode": "KT205RU"
},
{
"SchoolName": "Rye Oak Primary School",
"Postcode": "SE153PD"
},
{
"SchoolName": "Fairview Community Primary School",
"Postcode": "ME80NU"
},
{
"SchoolName": "Leicester International School",
"Postcode": "LE20AA"
},
{
"SchoolName": "Blackburn Central High School",
"Postcode": "BB23HJ"
},
{
"SchoolName": "Elmhurst School for Dance",
"Postcode": "B57UH"
},
{
"SchoolName": "3 Dimensions",
"Postcode": "TA203AJ"
},
{
"SchoolName": "Abingdon House School",
"Postcode": "NW16LG"
},
{
"SchoolName": "Great Preston VC CofE Primary School",
"Postcode": "LS268AR"
},
{
"SchoolName": "Stoke Park Primary School",
"Postcode": "BS79BY"
},
{
"SchoolName": "St Keyna Primary School",
"Postcode": "BS312JP"
},
{
"SchoolName": "Alderwood",
"Postcode": "IP30EW"
},
{
"SchoolName": "New Directions",
"Postcode": "E162LS"
},
{
"SchoolName": "Kingsbury Primary School",
"Postcode": "B782HW"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "GL13PY"
},
{
"SchoolName": "St John's CofE School Stanmore",
"Postcode": "HA73FD"
},
{
"SchoolName": "Netherfield Primary School",
"Postcode": "NG42LR"
},
{
"SchoolName": "Kew Green Preparatory School",
"Postcode": "TW93AF"
},
{
"SchoolName": "International Stanborough School",
"Postcode": "WD259JT"
},
{
"SchoolName": "Granta School",
"Postcode": "CB214NN"
},
{
"SchoolName": "Wilds Lodge School",
"Postcode": "LE158QQ"
},
{
"SchoolName": "Estuary High School",
"Postcode": "SS93NH"
},
{
"SchoolName": "Bluebell Primary School",
"Postcode": "NR47DS"
},
{
"SchoolName": "Romsey Primary School",
"Postcode": "SO517PH"
},
{
"SchoolName": "Bignold Primary School",
"Postcode": "NR22SP"
},
{
"SchoolName": "Mile Cross Primary School",
"Postcode": "NR32QU"
},
{
"SchoolName": "Catton Grove Primary School",
"Postcode": "NR33TP"
},
{
"SchoolName": "Recreation Road Infant School",
"Postcode": "NR23PA"
},
{
"SchoolName": "Lakenham Primary School",
"Postcode": "NR12HL"
},
{
"SchoolName": "Sandbrook Community Primary School",
"Postcode": "OL112LR"
},
{
"SchoolName": "Moor Park Primary School",
"Postcode": "FY20LY"
},
{
"SchoolName": "The Ark",
"Postcode": "M458NH"
},
{
"SchoolName": "Hospital Education Centre",
"Postcode": "CV22DX"
},
{
"SchoolName": "Laleham Gap School",
"Postcode": "CT126FH"
},
{
"SchoolName": "Castle School, Cambridge",
"Postcode": "CB42EE"
},
{
"SchoolName": "Fountain Primary School",
"Postcode": "LS270AW"
},
{
"SchoolName": "Wylye Valley Church of England Voluntary Aided Primary School",
"Postcode": "BA120PN"
},
{
"SchoolName": "Avocet House",
"Postcode": "NR146QP"
},
{
"SchoolName": "Orchard Park Community Primary School",
"Postcode": "CB42GR"
},
{
"SchoolName": "Spring Hill High School",
"Postcode": "B237PG"
},
{
"SchoolName": "Cranbury College",
"Postcode": "RG302TS"
},
{
"SchoolName": "Highcliffe St Mark Primary School",
"Postcode": "BH235AZ"
},
{
"SchoolName": "Trinity St Peter's CofE Primary School",
"Postcode": "L377EJ"
},
{
"SchoolName": "Pendle Vale College",
"Postcode": "BB98LF"
},
{
"SchoolName": "Marsden Heights Community College",
"Postcode": "BB90PR"
},
{
"SchoolName": "Appletree Nursery School",
"Postcode": "LA15QB"
},
{
"SchoolName": "Sandwell Academy",
"Postcode": "B714LG"
},
{
"SchoolName": "Hameldon Community College",
"Postcode": "BB115BT"
},
{
"SchoolName": "<NAME>ursby Community College",
"Postcode": "BB102AT"
},
{
"SchoolName": "Blessed Trinity RC College",
"Postcode": "BB103AA"
},
{
"SchoolName": "Meadows Primary School and Nursery",
"Postcode": "TF15HF"
},
{
"SchoolName": "<NAME>",
"Postcode": "BB101JD"
},
{
"SchoolName": "Parkside House School",
"Postcode": "NE270AB"
},
{
"SchoolName": "Unity College",
"Postcode": "BB113DF"
},
{
"SchoolName": "The Harefield Academy",
"Postcode": "UB96ET"
},
{
"SchoolName": "Trinity Academy",
"Postcode": "DN85BY"
},
{
"SchoolName": "Meadowbank Primary School",
"Postcode": "SK82LE"
},
{
"SchoolName": "Leatherhead Trinity School and Children's Centre",
"Postcode": "KT227BP"
},
{
"SchoolName": "Sutton Tuition and Reintegration Service",
"Postcode": "SM54NR"
},
{
"SchoolName": "Pendle View Primary School",
"Postcode": "BB88JT"
},
{
"SchoolName": "Ridgewood Community High School",
"Postcode": "BB102AT"
},
{
"SchoolName": "Holly Grove School",
"Postcode": "BB101JD"
},
{
"SchoolName": "Pendle Community High School & College",
"Postcode": "BB98LF"
},
{
"SchoolName": "Moorcroft Wood Primary School",
"Postcode": "WV148NE"
},
{
"SchoolName": "Woodland Community Primary School",
"Postcode": "OL103BX"
},
{
"SchoolName": "Small Haven School",
"Postcode": "CT126PT"
},
{
"SchoolName": "Woodfall Primary School",
"Postcode": "CH644BT"
},
{
"SchoolName": "Fairfield Park Lower School",
"Postcode": "SG54FD"
},
{
"SchoolName": "Manchester Jewish School for Special Education",
"Postcode": "M74QY"
},
{
"SchoolName": "Sacred Heart Primary School",
"Postcode": "DY48SW"
},
{
"SchoolName": "Moorlands Primary School",
"Postcode": "HD33UH"
},
{
"SchoolName": "Woodlands Primary School",
"Postcode": "TF75HX"
},
{
"SchoolName": "Far Forest Lea Memorial CofE Primary School",
"Postcode": "DY149TQ"
},
{
"SchoolName": "The Bewdley School and Sixth Form Centre",
"Postcode": "DY121BL"
},
{
"SchoolName": "St Anne's CofE VC Primary School",
"Postcode": "DY122UQ"
},
{
"SchoolName": "Upper Arley CofE VC Primary School",
"Postcode": "DY121XA"
},
{
"SchoolName": "Burlish Park Primary School",
"Postcode": "DY138LA"
},
{
"SchoolName": "Wilden All Saints CofE Primary School",
"Postcode": "DY139LP"
},
{
"SchoolName": "Birchen Coppice Primary School",
"Postcode": "DY117JJ"
},
{
"SchoolName": "Chaddesley Corbett Endowed Primary School",
"Postcode": "DY104QN"
},
{
"SchoolName": "Comberton Primary School",
"Postcode": "DY103ED"
},
{
"SchoolName": "Cookley Sebright Primary School",
"Postcode": "DY103TA"
},
{
"SchoolName": "Foley Park Primary School and Nursery",
"Postcode": "DY117AW"
},
{
"SchoolName": "Franche Primary School",
"Postcode": "DY115QB"
},
{
"SchoolName": "St Catherine's CofE (VC) Primary School",
"Postcode": "DY115HP"
},
{
"SchoolName": "Offmore Primary School",
"Postcode": "DY103HA"
},
{
"SchoolName": "St George's CofE Primary School and Nursery",
"Postcode": "DY102BX"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "DY116AP"
},
{
"SchoolName": "St Mary's CofE (VA) Primary School",
"Postcode": "DY102LX"
},
{
"SchoolName": "St Oswald's CofE Primary School",
"Postcode": "DY102YL"
},
{
"SchoolName": "Wolverley Sebright VA Primary School",
"Postcode": "DY115TP"
},
{
"SchoolName": "Wolverley CofE Secondary School",
"Postcode": "DY115XQ"
},
{
"SchoolName": "Hackleton CofE Primary School",
"Postcode": "NN72AB"
},
{
"SchoolName": "Norham St Ceolwulfs CofE Controlled First School",
"Postcode": "TD152JZ"
},
{
"SchoolName": "South Park Enterprise College (11-19)",
"Postcode": "DN172TX"
},
{
"SchoolName": "Acorn Park School",
"Postcode": "NR162HU"
},
{
"SchoolName": "Grove Primary School",
"Postcode": "WR142LU"
},
{
"SchoolName": "Haberdashers' Aske's Knights Academy",
"Postcode": "BR15EB"
},
{
"SchoolName": "Salford City Academy",
"Postcode": "M307PQ"
},
{
"SchoolName": "Ellern Mede School",
"Postcode": "NW74HX"
},
{
"SchoolName": "Haberdashers' Aske's Hatcham College",
"Postcode": "SE145SF"
},
{
"SchoolName": "Focus School - Long Eaton Campus",
"Postcode": "NG104HR"
},
{
"SchoolName": "Sutton Park Community Primary School",
"Postcode": "DY116PH"
},
{
"SchoolName": "Bewdley Primary School",
"Postcode": "DY121BL"
},
{
"SchoolName": "Thorngumbald Primary School",
"Postcode": "HU129QQ"
},
{
"SchoolName": "Hallgate Primary School Cottingham",
"Postcode": "HU164DD"
},
{
"SchoolName": "The Winchcombe School",
"Postcode": "RG141LN"
},
{
"SchoolName": "Thatcham Park CofE Primary",
"Postcode": "RG184NP"
},
{
"SchoolName": "Barcroft Primary School",
"Postcode": "WV131NA"
},
{
"SchoolName": "Longmeadow Primary School",
"Postcode": "SG28LT"
},
{
"SchoolName": "Shephalbury Park Primary School",
"Postcode": "SG28AX"
},
{
"SchoolName": "St Benedict's Catholic Primary School",
"Postcode": "L307PG"
},
{
"SchoolName": "Akiva School",
"Postcode": "N32SY"
},
{
"SchoolName": "Harrowgate Hill Primary School",
"Postcode": "DL30HZ"
},
{
"SchoolName": "Oak Heights Independent School",
"Postcode": "TW31JS"
},
{
"SchoolName": "London Christian Learning Centre",
"Postcode": "E125AD"
},
{
"SchoolName": "Roselyn House School",
"Postcode": "PR254SE"
},
{
"SchoolName": "Al-Ashraf Primary School",
"Postcode": "GL14HB"
},
{
"SchoolName": "Hillside Primary School",
"Postcode": "HD46LU"
},
{
"SchoolName": "<NAME> Islamic Primary School",
"Postcode": "SL25FF"
},
{
"SchoolName": "Hillcrest Jubilee School",
"Postcode": "PO77RE"
},
{
"SchoolName": "Palace Wood Primary School",
"Postcode": "ME160AB"
},
{
"SchoolName": "Tickford Park Primary School",
"Postcode": "MK169DH"
},
{
"SchoolName": "The Nottingham Nursery School and Training Centre",
"Postcode": "NG73AB"
},
{
"SchoolName": "My Choice School-Ocean Pearl",
"Postcode": "RH161XQ"
},
{
"SchoolName": "Pear Tree School",
"Postcode": "DL22UQ"
},
{
"SchoolName": "<NAME> Lane Primary School",
"Postcode": "HU106JT"
},
{
"SchoolName": "Village Primary School",
"Postcode": "DE238DF"
},
{
"SchoolName": "Hextable Primary School",
"Postcode": "BR87RL"
},
{
"SchoolName": "Churchill Park Complex Needs School",
"Postcode": "PE304RP"
},
{
"SchoolName": "Landau Forte College",
"Postcode": "DE12LF"
},
{
"SchoolName": "Denton Community College",
"Postcode": "M343NG"
},
{
"SchoolName": "Ashford Oaks Community Primary School",
"Postcode": "TN234QR"
},
{
"SchoolName": "Roseberry Primary School",
"Postcode": "TS232HJ"
},
{
"SchoolName": "Joy Lane Primary School",
"Postcode": "CT54LT"
},
{
"SchoolName": "Brampton Village Primary School",
"Postcode": "PE284RF"
},
{
"SchoolName": "The Bellbird Primary School",
"Postcode": "CB223GB"
},
{
"SchoolName": "Hornbeam Primary School",
"Postcode": "CT149PQ"
},
{
"SchoolName": "Woodlands Primary School",
"Postcode": "CH662JT"
},
{
"SchoolName": "Kingshurst Primary School",
"Postcode": "B376BN"
},
{
"SchoolName": "North Bridge House Prep School",
"Postcode": "NW17AB"
},
{
"SchoolName": "Wilton and Barford CofE Primary School",
"Postcode": "SP20ES"
},
{
"SchoolName": "Queen's Hill Primary School",
"Postcode": "NR85AZ"
},
{
"SchoolName": "Madeley Academy",
"Postcode": "TF75FB"
},
{
"SchoolName": "Essex Fresh Start",
"Postcode": "CM82JL"
},
{
"SchoolName": "Gilbert Scott Primary School",
"Postcode": "CR28HD"
},
{
"SchoolName": "Ayesha Siddiqa Girls School",
"Postcode": "UB11LS"
},
{
"SchoolName": "Beamont Community Primary School",
"Postcode": "WA27RQ"
},
{
"SchoolName": "Mill Field Primary School",
"Postcode": "LS72DR"
},
{
"SchoolName": "Rusthall St Paul's CofE VA Primary School",
"Postcode": "TN48RZ"
},
{
"SchoolName": "Gloucester House, The Tavistock Children's Day Unit",
"Postcode": "NW35BU"
},
{
"SchoolName": "Beis Hatalmud School",
"Postcode": "M72FD"
},
{
"SchoolName": "Shireland Collegiate Academy",
"Postcode": "B664ND"
},
{
"SchoolName": "Howitt Primary Community School",
"Postcode": "DE757FS"
},
{
"SchoolName": "The Belvedere Academy",
"Postcode": "L83TF"
},
{
"SchoolName": "Parayhouse School",
"Postcode": "W149DH"
},
{
"SchoolName": "Oasis Academy Immingham",
"Postcode": "DN401JU"
},
{
"SchoolName": "Lyneham Primary School",
"Postcode": "SN154QJ"
},
{
"SchoolName": "Springboard Education",
"Postcode": "BN158HA"
},
{
"SchoolName": "Cambridge International School",
"Postcode": "CB18DW"
},
{
"SchoolName": "Brooke House Day School",
"Postcode": "LE91SE"
},
{
"SchoolName": "Arnfield Independent School",
"Postcode": "SK105JR"
},
{
"SchoolName": "Milton Park Primary School",
"Postcode": "BS228DY"
},
{
"SchoolName": "Bournville Primary School",
"Postcode": "BS233ST"
},
{
"SchoolName": "Our Lady and St George's Catholic Primary School",
"Postcode": "E173EA"
},
{
"SchoolName": "Folkestone Academy",
"Postcode": "CT195FP"
},
{
"SchoolName": "Discovery Primary School",
"Postcode": "PE46HX"
},
{
"SchoolName": "Green Park Community Primary School",
"Postcode": "CT162BN"
},
{
"SchoolName": "The Annex School House",
"Postcode": "BR87PS"
},
{
"SchoolName": "Newbridge Learning Community",
"Postcode": "WN23TL"
},
{
"SchoolName": "Springside",
"Postcode": "OL162SU"
},
{
"SchoolName": "Newlands School",
"Postcode": "M246JG"
},
{
"SchoolName": "Redwood",
"Postcode": "OL115EF"
},
{
"SchoolName": "Knowle Park Primary School",
"Postcode": "BS42XG"
},
{
"SchoolName": "Langdale Primary School",
"Postcode": "ST53QE"
},
{
"SchoolName": "Covingham Park Primary School",
"Postcode": "SN35BD"
},
{
"SchoolName": "Brandon Primary School",
"Postcode": "DH78NL"
},
{
"SchoolName": "<NAME>",
"Postcode": "B128NJ"
},
{
"SchoolName": "Oasis Academy Wintringham",
"Postcode": "DN320AZ"
},
{
"SchoolName": "Allerton CofE Primary School",
"Postcode": "LS177HL"
},
{
"SchoolName": "Cedars Manor School",
"Postcode": "HA36LS"
},
{
"SchoolName": "Garlinge Primary School and Nursery",
"Postcode": "CT95PA"
},
{
"SchoolName": "The Willows Primary School",
"Postcode": "RG147SJ"
},
{
"SchoolName": "Newington Community Primary School",
"Postcode": "CT126HX"
},
{
"SchoolName": "Pennyhill Primary School",
"Postcode": "B713BU"
},
{
"SchoolName": "Meadowcroft School",
"Postcode": "WF14AD"
},
{
"SchoolName": "Sketchley School",
"Postcode": "LE103HT"
},
{
"SchoolName": "Trinity College",
"Postcode": "LE111BA"
},
{
"SchoolName": "<NAME>",
"Postcode": "BB101LU"
},
{
"SchoolName": "Maple Grove Primary School",
"Postcode": "HP27BG"
},
{
"SchoolName": "Yewtree Primary School",
"Postcode": "HP25QR"
},
{
"SchoolName": "Oak View Primary and Nursery School",
"Postcode": "AL108NW"
},
{
"SchoolName": "Galley Hill Primary School and Nursery",
"Postcode": "HP13JY"
},
{
"SchoolName": "Martin Primary School",
"Postcode": "N29JP"
},
{
"SchoolName": "The Phoenix Special School",
"Postcode": "BD226HZ"
},
{
"SchoolName": "Chellow Heights Special School",
"Postcode": "BD96AL"
},
{
"SchoolName": "Beechcliffe Special School",
"Postcode": "BD206ED"
},
{
"SchoolName": "Riverside School",
"Postcode": "BR53HS"
},
{
"SchoolName": "George Salter Academy",
"Postcode": "B709UW"
},
{
"SchoolName": "Delius Special School",
"Postcode": "BD38QX"
},
{
"SchoolName": "Bellerbys College Oxford",
"Postcode": "OX20DJ"
},
{
"SchoolName": "Buckland Primary School",
"Postcode": "TW181NB"
},
{
"SchoolName": "Ward End Community College",
"Postcode": "B82LS"
},
{
"SchoolName": "Fairways School",
"Postcode": "SO317HE"
},
{
"SchoolName": "The Meadows",
"Postcode": "SK178DJ"
},
{
"SchoolName": "Ark King Solomon Academy",
"Postcode": "NW16RX"
},
{
"SchoolName": "Lightmoor Village Primary School",
"Postcode": "TF43EG"
},
{
"SchoolName": "Our Lady Star of the Sea Catholic Primary School",
"Postcode": "CH657AQ"
},
{
"SchoolName": "Demeter House",
"Postcode": "DN208EF"
},
{
"SchoolName": "Harris Academy South Norwood",
"Postcode": "SE256AE"
},
{
"SchoolName": "Red Balloon - Norwich",
"Postcode": "NR23DF"
},
{
"SchoolName": "Broadlands Hall",
"Postcode": "CB97UA"
},
{
"SchoolName": "The Primrose Centre",
"Postcode": "B659JP"
},
{
"SchoolName": "Sandwell Community School",
"Postcode": "B712JN"
},
{
"SchoolName": "Willow Wood Community Primary School",
"Postcode": "CW73HN"
},
{
"SchoolName": "Bare Trees Primary School",
"Postcode": "OL90DX"
},
{
"SchoolName": "Valley House",
"Postcode": "CV78DL"
},
{
"SchoolName": "Southwark Inclusive Learning Service (Sils)",
"Postcode": "SE156LF"
},
{
"SchoolName": "The Rosary Catholic Primary School",
"Postcode": "TW50RL"
},
{
"SchoolName": "Stockport Academy",
"Postcode": "SK30UP"
},
{
"SchoolName": "Thomas Deacon Academy",
"Postcode": "PE12UW"
},
{
"SchoolName": "St Matthew Academy",
"Postcode": "SE30XX"
},
{
"SchoolName": "Dunmore Primary School",
"Postcode": "OX141NR"
},
{
"SchoolName": "King's Stanley CofE Primary School",
"Postcode": "GL103PN"
},
{
"SchoolName": "Arnot St Mary CofE Primary School",
"Postcode": "L44ED"
},
{
"SchoolName": "Newton Leys Primary School",
"Postcode": "MK35GG"
},
{
"SchoolName": "Brooklands Farm Primary School",
"Postcode": "MK107EU"
},
{
"SchoolName": "Priory Rise School",
"Postcode": "MK43GE"
},
{
"SchoolName": "L'Ecole de Battersea",
"Postcode": "SW113DS"
},
{
"SchoolName": "Willows",
"Postcode": "TA219LQ"
},
{
"SchoolName": "Park View Community Primary",
"Postcode": "M407EJ"
},
{
"SchoolName": "Dartford Bridge Community Primary School",
"Postcode": "DA15GB"
},
{
"SchoolName": "Riverview Primary School",
"Postcode": "DE159HR"
},
{
"SchoolName": "Outwoods Primary School",
"Postcode": "DE130AS"
},
{
"SchoolName": "Little Stanion Primary School",
"Postcode": "NN188TD"
},
{
"SchoolName": "Brunton First School",
"Postcode": "NE139BD"
},
{
"SchoolName": "Seven Hills School",
"Postcode": "S22RJ"
},
{
"SchoolName": "Galton Valley Primary School",
"Postcode": "B661BA"
},
{
"SchoolName": "The Marsh Academy",
"Postcode": "TN288BB"
},
{
"SchoolName": "Stonegate School",
"Postcode": "LA27BX"
},
{
"SchoolName": "Havelock Academy",
"Postcode": "DN328JH"
},
{
"SchoolName": "<NAME> Academy",
"Postcode": "BS158BD"
},
{
"SchoolName": "<NAME> Grammar School",
"Postcode": "M168PR"
},
{
"SchoolName": "The Leigh Academy",
"Postcode": "DA11QE"
},
{
"SchoolName": "Maple Walk School",
"Postcode": "NW104EB"
},
{
"SchoolName": "Bristol Brunel Academy",
"Postcode": "BS151NU"
},
{
"SchoolName": "<NAME>",
"Postcode": "OL138DF"
},
{
"SchoolName": "Spires Academy",
"Postcode": "CT20HD"
},
{
"SchoolName": "Corby Business Academy",
"Postcode": "NN175EB"
},
{
"SchoolName": "St Edmund's RC Primary School",
"Postcode": "M380WH"
},
{
"SchoolName": "The Harbour School",
"Postcode": "PO28RA"
},
{
"SchoolName": "Rokeby Primary School",
"Postcode": "CV225PE"
},
{
"SchoolName": "Harris City Academy Crystal Palace",
"Postcode": "SE192JH"
},
{
"SchoolName": "St Anne's Church of England Academy",
"Postcode": "M246XN"
},
{
"SchoolName": "St Aidan's Church of England Academy",
"Postcode": "DL11LL"
},
{
"SchoolName": "Ark Walworth Academy",
"Postcode": "SE15UJ"
},
{
"SchoolName": "Ashcroft Technology Academy",
"Postcode": "SW152UT"
},
{
"SchoolName": "Brooke Weston Academy",
"Postcode": "NN188LA"
},
{
"SchoolName": "Taunton Preparatory School",
"Postcode": "TA26AE"
},
{
"SchoolName": "Lulworth and Winfrith CofE VC Primary School",
"Postcode": "BH205SA"
},
{
"SchoolName": "Vernon Primary School",
"Postcode": "SK121NW"
},
{
"SchoolName": "Epping Primary School",
"Postcode": "CM165DU"
},
{
"SchoolName": "Cheltenham and Tewkesbury Alternative Provision School",
"Postcode": "GL518HH"
},
{
"SchoolName": "Gloucester and Forest Alternative Provision School",
"Postcode": "GL40RQ"
},
{
"SchoolName": "Stroud and Cotswold Alternative Provision School",
"Postcode": "GL51JR"
},
{
"SchoolName": "Khalsa College London",
"Postcode": "HA14ES"
},
{
"SchoolName": "Grace Academy Coventry",
"Postcode": "CV22RH"
},
{
"SchoolName": "The Chalk Hills Academy",
"Postcode": "LU40NE"
},
{
"SchoolName": "The Stockwood Park Academy",
"Postcode": "LU15PP"
},
{
"SchoolName": "Broadfield Primary School",
"Postcode": "HP24BX"
},
{
"SchoolName": "Turlin Moor Community School",
"Postcode": "BH165AH"
},
{
"SchoolName": "Royton Hall Primary School",
"Postcode": "OL26RW"
},
{
"SchoolName": "Kingsmead School",
"Postcode": "DE13LB"
},
{
"SchoolName": "Sir Tom Finney Community High School",
"Postcode": "PR26EE"
},
{
"SchoolName": "Acorns Primary School",
"Postcode": "PR16AU"
},
{
"SchoolName": "Riverside Community Primary School",
"Postcode": "PL51DD"
},
{
"SchoolName": "Shakespeare Primary School",
"Postcode": "PL53JU"
},
{
"SchoolName": "Kingsway Primary School",
"Postcode": "GL22AR"
},
{
"SchoolName": "Cambian 110 Peelhouse",
"Postcode": "M298BS"
},
{
"SchoolName": "Swindon Academy",
"Postcode": "SN21JR"
},
{
"SchoolName": "North Oxfordshire Academy",
"Postcode": "OX160UD"
},
{
"SchoolName": "Colston Bassett School Limited",
"Postcode": "NG123FD"
},
{
"SchoolName": "Bradford Academy",
"Postcode": "BD47QJ"
},
{
"SchoolName": "Highfields",
"Postcode": "NN146BQ"
},
{
"SchoolName": "Cornwallis Academy",
"Postcode": "ME174HX"
},
{
"SchoolName": "New Line Learning Academy",
"Postcode": "ME159QL"
},
{
"SchoolName": "Southover Partnership School",
"Postcode": "NW99HA"
},
{
"SchoolName": "Lakeview School",
"Postcode": "MK426BH"
},
{
"SchoolName": "Dove School",
"Postcode": "S756PP"
},
{
"SchoolName": "Shelldene House School",
"Postcode": "PE140HJ"
},
{
"SchoolName": "Meadow Primary School",
"Postcode": "KT172LW"
},
{
"SchoolName": "Nene Gate",
"Postcode": "PE15GZ"
},
{
"SchoolName": "South Sefton College",
"Postcode": "L302DB"
},
{
"SchoolName": "Ark Evelyn Grace Academy",
"Postcode": "SE240QN"
},
{
"SchoolName": "Al-Islamia Institute for Education",
"Postcode": "LE20SA"
},
{
"SchoolName": "Hope House School",
"Postcode": "NG243NE"
},
{
"SchoolName": "Bacon's College",
"Postcode": "SE166AT"
},
{
"SchoolName": "Heritage School",
"Postcode": "CB21JE"
},
{
"SchoolName": "T Plus Centre (Taliesin Education)",
"Postcode": "PL144DA"
},
{
"SchoolName": "Archway Academy",
"Postcode": "B94HN"
},
{
"SchoolName": "Papillon House",
"Postcode": "KT207PA"
},
{
"SchoolName": "London Christian School",
"Postcode": "SE14JU"
},
{
"SchoolName": "Kirby Moor School",
"Postcode": "CA82AB"
},
{
"SchoolName": "Henley-in-Arden Montessori Primary School",
"Postcode": "B955JP"
},
{
"SchoolName": "Unsted Park School",
"Postcode": "GU71UW"
},
{
"SchoolName": "Future First Independent School",
"Postcode": "B187RL"
},
{
"SchoolName": "Excelsior Academy",
"Postcode": "NE156AF"
},
{
"SchoolName": "Cambian Hartlepool School",
"Postcode": "TS251NN"
},
{
"SchoolName": "The Oaks",
"Postcode": "LE97QJ"
},
{
"SchoolName": "Kent Health Needs Education Service",
"Postcode": "ME195FF"
},
{
"SchoolName": "Greasley Beauvale Primary School",
"Postcode": "NG162FJ"
},
{
"SchoolName": "Isbourne Valley School",
"Postcode": "GL545PF"
},
{
"SchoolName": "Hope View School",
"Postcode": "CT48EG"
},
{
"SchoolName": "Cambian Willoughby School",
"Postcode": "M298BS"
},
{
"SchoolName": "<NAME>",
"Postcode": "TF119ET"
},
{
"SchoolName": "Q3 Academy",
"Postcode": "B437SD"
},
{
"SchoolName": "Lilyvale",
"Postcode": "IG88HD"
},
{
"SchoolName": "Excellence Christian School",
"Postcode": "E29DQ"
},
{
"SchoolName": "The Island Project School",
"Postcode": "CV77HQ"
},
{
"SchoolName": "Elm Tree Community Primary School",
"Postcode": "WN86SA"
},
{
"SchoolName": "Wadsworth Fields Primary School",
"Postcode": "NG98BD"
},
{
"SchoolName": "All Saints CofE (Aided) Primary School",
"Postcode": "RG401UX"
},
{
"SchoolName": "Birchwood PRU",
"Postcode": "CT202QN"
},
{
"SchoolName": "Maidstone and Malling Alternative Provision",
"Postcode": "ME168AU"
},
{
"SchoolName": "Enterprise Learning Alliance",
"Postcode": "CT94JA"
},
{
"SchoolName": "Two Bridges School",
"Postcode": "TN40DS"
},
{
"SchoolName": "The Farringdon Centre",
"Postcode": "SP13YA"
},
{
"SchoolName": "Winston House Preparatory School",
"Postcode": "E182QS"
},
{
"SchoolName": "All Saints Catholic High School",
"Postcode": "L338XF"
},
{
"SchoolName": "St Edmund Arrowsmith Catholic Centre for Learning (VA)",
"Postcode": "L352XG"
},
{
"SchoolName": "Khalsa VA Primary School",
"Postcode": "UB24LA"
},
{
"SchoolName": "Abu Bakr Boys School",
"Postcode": "WS27AN"
},
{
"SchoolName": "Bellefield Primary and Nursery School",
"Postcode": "BA148TE"
},
{
"SchoolName": "Bishopstrow College",
"Postcode": "BA129HU"
},
{
"SchoolName": "Insights Independent School",
"Postcode": "W130NP"
},
{
"SchoolName": "Dothill Primary School",
"Postcode": "TF13JB"
},
{
"SchoolName": "Pensby Primary School",
"Postcode": "CH615UE"
},
{
"SchoolName": "Sharley Park Community Primary School",
"Postcode": "S459BN"
},
{
"SchoolName": "Maple Medical PRU",
"Postcode": "DN49HT"
},
{
"SchoolName": "The Clifton Centre",
"Postcode": "M278GW"
},
{
"SchoolName": "St Saviours Catholic Primary School",
"Postcode": "CH662BD"
},
{
"SchoolName": "Wren Academy",
"Postcode": "N129HB"
},
{
"SchoolName": "New Charter Academy",
"Postcode": "OL68RF"
},
{
"SchoolName": "Ferndearle",
"Postcode": "CT195HH"
},
{
"SchoolName": "The Evolution Centre",
"Postcode": "SY38EQ"
},
{
"SchoolName": "Halton House School",
"Postcode": "WA73EW"
},
{
"SchoolName": "Bloomfield School",
"Postcode": "DY49ER"
},
{
"SchoolName": "Woodcote Primary School",
"Postcode": "CR52ED"
},
{
"SchoolName": "Penarth Group School",
"Postcode": "SK76AD"
},
{
"SchoolName": "Killigrew Primary and Nursery School",
"Postcode": "AL23HD"
},
{
"SchoolName": "Woodcroft Primary",
"Postcode": "PO89QD"
},
{
"SchoolName": "Gryphon School",
"Postcode": "LE128BQ"
},
{
"SchoolName": "Chelsea Academy",
"Postcode": "SW100AB"
},
{
"SchoolName": "Treehouse School",
"Postcode": "N103JA"
},
{
"SchoolName": "Esland School",
"Postcode": "ME137UD"
},
{
"SchoolName": "Oakwood Primary School",
"Postcode": "LU13RR"
},
{
"SchoolName": "Cumberland School",
"Postcode": "PR56EP"
},
{
"SchoolName": "<NAME>",
"Postcode": "PR40YH"
},
{
"SchoolName": "Heatherwood School",
"Postcode": "DN26HQ"
},
{
"SchoolName": "Coppice School",
"Postcode": "DN76JH"
},
{
"SchoolName": "Stone Hill School",
"Postcode": "DN57UB"
},
{
"SchoolName": "North Ridge Community School",
"Postcode": "DN67EF"
},
{
"SchoolName": "Christ The King College",
"Postcode": "PO305QT"
},
{
"SchoolName": "Progress Schools Ltd",
"Postcode": "CA11EJ"
},
{
"SchoolName": "Cambian Tyldesley School",
"Postcode": "M298BS"
},
{
"SchoolName": "Hawkswood Primary PRU",
"Postcode": "E47RT"
},
{
"SchoolName": "Flexible Learning Centre",
"Postcode": "B237RJ"
},
{
"SchoolName": "Orchard Primary School",
"Postcode": "TW45JW"
},
{
"SchoolName": "The Priory Witham Academy",
"Postcode": "LN67DT"
},
{
"SchoolName": "The Priory City of Lincoln Academy",
"Postcode": "LN60EP"
},
{
"SchoolName": "The Priory Academy LSST",
"Postcode": "LN58PW"
},
{
"SchoolName": "Cranleigh Church of England Primary School",
"Postcode": "GU67AN"
},
{
"SchoolName": "Cledford Primary School",
"Postcode": "CW100DD"
},
{
"SchoolName": "Huntingdon Primary School",
"Postcode": "PE291AD"
},
{
"SchoolName": "Castle Wood Special School",
"Postcode": "CV21FN"
},
{
"SchoolName": "Oak Field School and Specialist Sports College",
"Postcode": "NG83HW"
},
{
"SchoolName": "Bristol Cathedral Choir School",
"Postcode": "BS15TS"
},
{
"SchoolName": "Blue Skies School",
"Postcode": "ME46DQ"
},
{
"SchoolName": "Kisimul School",
"Postcode": "KT65HN"
},
{
"SchoolName": "Ar-Rahmah Academy",
"Postcode": "PR60PJ"
},
{
"SchoolName": "Darwen Aldridge Community Academy",
"Postcode": "BB33HD"
},
{
"SchoolName": "Colston's Girls' School",
"Postcode": "BS65RD"
},
{
"SchoolName": "Abraham Darby Academy",
"Postcode": "TF75HX"
},
{
"SchoolName": "Samworth Church Academy",
"Postcode": "NG182DY"
},
{
"SchoolName": "Ark Globe Academy",
"Postcode": "SE16AG"
},
{
"SchoolName": "The Queen Boudica Primary School",
"Postcode": "CO45XT"
},
{
"SchoolName": "City of London Academy Islington",
"Postcode": "N18PQ"
},
{
"SchoolName": "Branfil Primary School",
"Postcode": "RM142LW"
},
{
"SchoolName": "Soaring High Montessori School",
"Postcode": "CO61TH"
},
{
"SchoolName": "Roscoe Primary School",
"Postcode": "L139AD"
},
{
"SchoolName": "Stanborough Primary School",
"Postcode": "WD250DQ"
},
{
"SchoolName": "Merchants' Academy",
"Postcode": "BS139AJ"
},
{
"SchoolName": "Archbishop Sentamu Academy",
"Postcode": "HU95YB"
},
{
"SchoolName": "RSA Academy",
"Postcode": "DY40BZ"
},
{
"SchoolName": "Ark Academy",
"Postcode": "HA99JR"
},
{
"SchoolName": "Progress School",
"Postcode": "HP124JG"
},
{
"SchoolName": "Bolnore Village Primary School",
"Postcode": "RH164GD"
},
{
"SchoolName": "TLG North Birmingham",
"Postcode": "B449SH"
},
{
"SchoolName": "Oaklands Primary School",
"Postcode": "BA202DU"
},
{
"SchoolName": "Iqra Primary School",
"Postcode": "SW49PA"
},
{
"SchoolName": "Snowflake School",
"Postcode": "SW59SJ"
},
{
"SchoolName": "The Coombes Church of England Primary School",
"Postcode": "RG29NX"
},
{
"SchoolName": "Bede Academy",
"Postcode": "NE242SY"
},
{
"SchoolName": "Richard Rose Morton Academy",
"Postcode": "CA26LB"
},
{
"SchoolName": "Richard Rose Central Academy",
"Postcode": "CA11LY"
},
{
"SchoolName": "Academy 360",
"Postcode": "SR49BA"
},
{
"SchoolName": "Fairlight Glen Independent Special School",
"Postcode": "CT65QQ"
},
{
"SchoolName": "Oasis Academy Lord's Hill",
"Postcode": "SO168FA"
},
{
"SchoolName": "Oasis Academy Mayfield",
"Postcode": "SO199NA"
},
{
"SchoolName": "Longfield Academy",
"Postcode": "DA37PH"
},
{
"SchoolName": "The Langley Academy",
"Postcode": "SL37EF"
},
{
"SchoolName": "West Lakes Academy",
"Postcode": "CA222DQ"
},
{
"SchoolName": "<NAME>",
"Postcode": "M74NX"
},
{
"SchoolName": "Grange View Church of England Voluntary Controlled First School",
"Postcode": "NE615LZ"
},
{
"SchoolName": "Wharton CofE Primary School",
"Postcode": "CW73EP"
},
{
"SchoolName": "Encompass Education",
"Postcode": "BS58JU"
},
{
"SchoolName": "Ks1 Pupil Referral Unit",
"Postcode": "SR28PL"
},
{
"SchoolName": "The Link School Tudor Grove",
"Postcode": "SR31SS"
},
{
"SchoolName": "The Link School Pallion",
"Postcode": "SR46TA"
},
{
"SchoolName": "School Returners/Young Mums Provision",
"Postcode": "SR27NA"
},
{
"SchoolName": "The Divine Mercy Roman Catholic Primary School",
"Postcode": "M147SH"
},
{
"SchoolName": "Accrington Academy",
"Postcode": "BB54FF"
},
{
"SchoolName": "The Open Academy",
"Postcode": "NR79DL"
},
{
"SchoolName": "New Rickstones Academy",
"Postcode": "CM82SD"
},
{
"SchoolName": "Greensward Academy",
"Postcode": "SS55HG"
},
{
"SchoolName": "Maltings Academy",
"Postcode": "CM81EP"
},
{
"SchoolName": "Oasis Academy Coulsdon",
"Postcode": "CR51ES"
},
{
"SchoolName": "Oasis Academy MediaCityUK",
"Postcode": "M503UQ"
},
{
"SchoolName": "The Hereford Academy",
"Postcode": "HR27NG"
},
{
"SchoolName": "Oasis Academy John Williams",
"Postcode": "BS149BU"
},
{
"SchoolName": "The Milton Keynes Academy",
"Postcode": "MK65LA"
},
{
"SchoolName": "The Gainsborough Academy",
"Postcode": "DN211PB"
},
{
"SchoolName": "The Tutorial Foundation",
"Postcode": "BR13HY"
},
{
"SchoolName": "Oasis Academy Brightstowe",
"Postcode": "BS110EB"
},
{
"SchoolName": "The Steiner Academy Hereford",
"Postcode": "HR28DL"
},
{
"SchoolName": "Phoenix Academy",
"Postcode": "TA66NA"
},
{
"SchoolName": "The St Lawrence Academy",
"Postcode": "DN157DF"
},
{
"SchoolName": "The Oxford Academy",
"Postcode": "OX46JZ"
},
{
"SchoolName": "Pimlico Academy",
"Postcode": "SW1V3AT"
},
{
"SchoolName": "Harris Academy Falconwood",
"Postcode": "DA162PE"
},
{
"SchoolName": "Kestrel House School",
"Postcode": "N89EA"
},
{
"SchoolName": "CTC Kingshurst Academy",
"Postcode": "B376NU"
},
{
"SchoolName": "The Bulwell Academy",
"Postcode": "NG68HG"
},
{
"SchoolName": "Red Balloon Learner Centre - Northwest London",
"Postcode": "HA12BW"
},
{
"SchoolName": "Green Heath School",
"Postcode": "B100NR"
},
{
"SchoolName": "The Meadows Montessori School",
"Postcode": "IP16AR"
},
{
"SchoolName": "Seadown School",
"Postcode": "BN112BE"
},
{
"SchoolName": "Focus School - Reading Primary Campus",
"Postcode": "RG28QA"
},
{
"SchoolName": "Luton Pentecostal Church Christian Academy",
"Postcode": "LU13JE"
},
{
"SchoolName": "Hilderthorpe Primary School",
"Postcode": "YO153PP"
},
{
"SchoolName": "Holy Cross CofE Primary School",
"Postcode": "OL13EZ"
},
{
"SchoolName": "Oasis Academy Isle of Sheppey",
"Postcode": "ME123JQ"
},
{
"SchoolName": "Finlay Community School",
"Postcode": "GL46TR"
},
{
"SchoolName": "Young Dancers Academy",
"Postcode": "W128AR"
},
{
"SchoolName": "St Chads Catholic and Church of England High School",
"Postcode": "WA75YH"
},
{
"SchoolName": "Bradford District PRU",
"Postcode": "BD47SY"
},
{
"SchoolName": "Inaura School",
"Postcode": "TA70RB"
},
{
"SchoolName": "Saughall All Saints Church of England Primary School",
"Postcode": "CH16EP"
},
{
"SchoolName": "The Rowan Centre",
"Postcode": "S627JD"
},
{
"SchoolName": "The Sir Robert Woodard Academy",
"Postcode": "BN159QZ"
},
{
"SchoolName": "The Littlehampton Academy",
"Postcode": "BN176FE"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SK39RF"
},
{
"SchoolName": "JCoSS",
"Postcode": "EN49GE"
},
{
"SchoolName": "Weston Point College",
"Postcode": "WA74UN"
},
{
"SchoolName": "Great Howarth School",
"Postcode": "OL129HJ"
},
{
"SchoolName": "Progress Schools Ltd",
"Postcode": "NN12BG"
},
{
"SchoolName": "Midhurst Rother College",
"Postcode": "GU299DT"
},
{
"SchoolName": "Nottingham University Samworth Academy",
"Postcode": "NG84HY"
},
{
"SchoolName": "Saint John Bosco College",
"Postcode": "SW113DQ"
},
{
"SchoolName": "One World Preparatory School",
"Postcode": "W60EU"
},
{
"SchoolName": "My Choice School - Oak House",
"Postcode": "RH161XQ"
},
{
"SchoolName": "Ormiston Shelfield Community Academy",
"Postcode": "WS41BW"
},
{
"SchoolName": "Essa Academy",
"Postcode": "BL33HH"
},
{
"SchoolName": "Acorn School",
"Postcode": "EX364SA"
},
{
"SchoolName": "Mount Pleasant Primary",
"Postcode": "SY13BY"
},
{
"SchoolName": "Poplar Adolescent Unit",
"Postcode": "SS41RB"
},
{
"SchoolName": "Sea Mills Primary School",
"Postcode": "BS92HL"
},
{
"SchoolName": "Victoria Park Primary School",
"Postcode": "BS34QS"
},
{
"SchoolName": "Tyndale Primary School",
"Postcode": "BS375EX"
},
{
"SchoolName": "Sycamore House",
"Postcode": "NN146BQ"
},
{
"SchoolName": "St Andrew's College",
"Postcode": "NN15DG"
},
{
"SchoolName": "Holy Trinity Church of England Primary",
"Postcode": "SY112LF"
},
{
"SchoolName": "Oakmeadow Church of England Primary and Nursery School",
"Postcode": "SY30NU"
},
{
"SchoolName": "Mereside Church of England Primary School",
"Postcode": "SY26LE"
},
{
"SchoolName": "Meole Brace Church of England Primary and Nursery",
"Postcode": "SY39HG"
},
{
"SchoolName": "Bishop Hooper Church of England Primary",
"Postcode": "SY84BX"
},
{
"SchoolName": "Wyre Forest School",
"Postcode": "DY116FA"
},
{
"SchoolName": "Jalaliah Educational Institution",
"Postcode": "DY48RS"
},
{
"SchoolName": "North West London Independent Special School",
"Postcode": "W37DD"
},
{
"SchoolName": "Kingsway Park High School",
"Postcode": "OL164XA"
},
{
"SchoolName": "Hope Primary School - A Joint Catholic and Church of England Primary School",
"Postcode": "L148UD"
},
{
"SchoolName": "Oakhurst Community Primary School",
"Postcode": "SN252HY"
},
{
"SchoolName": "Focus School - Northampton Primary Campus",
"Postcode": "NN33LF"
},
{
"SchoolName": "Eagle House School Sutton",
"Postcode": "SM25SJ"
},
{
"SchoolName": "Cambian Devon School",
"Postcode": "TQ47DQ"
},
{
"SchoolName": "The Wellington Academy",
"Postcode": "SP119RR"
},
{
"SchoolName": "Benjamin College",
"Postcode": "HP197AR"
},
{
"SchoolName": "Northwood Community Primary School (With Designated Special Provision)",
"Postcode": "L338XD"
},
{
"SchoolName": "Pathways Short Stay School",
"Postcode": "SE29TA"
},
{
"SchoolName": "Crowlands Primary School",
"Postcode": "RM79EJ"
},
{
"SchoolName": "Billingshurst Primary School",
"Postcode": "RH149RE"
},
{
"SchoolName": "Ingfield Manor School",
"Postcode": "RH149AX"
},
{
"SchoolName": "Paces High Green School for Conductive Education",
"Postcode": "S353HY"
},
{
"SchoolName": "Harris Boys' Academy East Dulwich",
"Postcode": "SE220AT"
},
{
"SchoolName": "Jeavons Wood Primary School",
"Postcode": "CB236DZ"
},
{
"SchoolName": "Castle View Enterprise Academy",
"Postcode": "SR53DX"
},
{
"SchoolName": "Newbury Hall School",
"Postcode": "RG146AD"
},
{
"SchoolName": "Christ the King Catholic and Church of England Primary School",
"Postcode": "SK117SF"
},
{
"SchoolName": "Abrar Academy",
"Postcode": "PR11NA"
},
{
"SchoolName": "Forest Park School",
"Postcode": "SO408DZ"
},
{
"SchoolName": "The Royal Harbour Academy",
"Postcode": "CT126RH"
},
{
"SchoolName": "New Horizons Learning Centre",
"Postcode": "BS154EA"
},
{
"SchoolName": "North Petherton Primary School",
"Postcode": "TA66LU"
},
{
"SchoolName": "Bedfont Primary School",
"Postcode": "TW149QZ"
},
{
"SchoolName": "Oake, Bradford and Nynehead VC Primary",
"Postcode": "TA41AZ"
},
{
"SchoolName": "The Grange Learning Centre",
"Postcode": "DL150TY"
},
{
"SchoolName": "The City Academy, Hackney",
"Postcode": "E96EA"
},
{
"SchoolName": "Teaseldown School",
"Postcode": "CO93PX"
},
{
"SchoolName": "Shotton Hall Primary School",
"Postcode": "SR81NX"
},
{
"SchoolName": "Freshsteps",
"Postcode": "EN29BQ"
},
{
"SchoolName": "Leigh St Peter's CofE Primary School",
"Postcode": "WN74TP"
},
{
"SchoolName": "Forest View Primary",
"Postcode": "NE348RZ"
},
{
"SchoolName": "Prendergast Vale School",
"Postcode": "SE137BN"
},
{
"SchoolName": "Focus School - Plymouth Campus",
"Postcode": "PL51HL"
},
{
"SchoolName": "Hambleton/Richmondshire Pupil Referral Service",
"Postcode": "DL61SZ"
},
{
"SchoolName": "Craven Pupil Referral Service",
"Postcode": "BD232QS"
},
{
"SchoolName": "High View School",
"Postcode": "PL36JQ"
},
{
"SchoolName": "Jennett's Park CofE Primary School",
"Postcode": "RG128EB"
},
{
"SchoolName": "Oakwood Primary School",
"Postcode": "GL525HD"
},
{
"SchoolName": "Land of Learning Primary School",
"Postcode": "LE55PF"
},
{
"SchoolName": "Future Education",
"Postcode": "NR58EG"
},
{
"SchoolName": "Trinity Church of England/Methodist Primary School, Buckshaw Village",
"Postcode": "PR77HZ"
},
{
"SchoolName": "Walsden St Peter's CE (VC) Primary School",
"Postcode": "OL146RN"
},
{
"SchoolName": "Droylsden Academy",
"Postcode": "M436QD"
},
{
"SchoolName": "Appleton Academy",
"Postcode": "BD128AL"
},
{
"SchoolName": "Dixons Allerton Academy",
"Postcode": "BD80DH"
},
{
"SchoolName": "Air Balloon Hill Primary School",
"Postcode": "BS57PB"
},
{
"SchoolName": "Springbank Primary School",
"Postcode": "NG163HW"
},
{
"SchoolName": "St Peter's Church of England Primary School (VC)",
"Postcode": "BS138EF"
},
{
"SchoolName": "Manchester Enterprise Academy",
"Postcode": "M229RH"
},
{
"SchoolName": "Manchester Health Academy",
"Postcode": "M239BP"
},
{
"SchoolName": "Francis Combe Academy",
"Postcode": "WD257HW"
},
{
"SchoolName": "Birkenhead High School Academy",
"Postcode": "CH431TY"
},
{
"SchoolName": "Red House Academy",
"Postcode": "SR55LN"
},
{
"SchoolName": "The Aylesbury Vale Academy",
"Postcode": "HP180WS"
},
{
"SchoolName": "Chatsworth Primary School",
"Postcode": "TW32NW"
},
{
"SchoolName": "Nottingham Academy",
"Postcode": "NG37EB"
},
{
"SchoolName": "The Wisdom Academy",
"Postcode": "B74HY"
},
{
"SchoolName": "Cranford Park Primary",
"Postcode": "GU466LB"
},
{
"SchoolName": "Northumberland CofE Academy",
"Postcode": "NE639FZ"
},
{
"SchoolName": "Endeavour Primary School",
"Postcode": "SP116RD"
},
{
"SchoolName": "Skinners' Kent Academy",
"Postcode": "TN24PY"
},
{
"SchoolName": "Rivers Education Support Centre",
"Postcode": "EN110AA"
},
{
"SchoolName": "North East Surrey Secondary Short Stay School",
"Postcode": "KT124QY"
},
{
"SchoolName": "Reigate Valley College",
"Postcode": "RH28PP"
},
{
"SchoolName": "North West Secondary Short Stay School",
"Postcode": "GU216NT"
},
{
"SchoolName": "The Basildon Lower Academy",
"Postcode": "SS141UX"
},
{
"SchoolName": "Holy Trinity",
"Postcode": "S712LF"
},
{
"SchoolName": "The Basildon Upper Academy",
"Postcode": "SS133HL"
},
{
"SchoolName": "Pathway To Success Independent School",
"Postcode": "B236AG"
},
{
"SchoolName": "Marathon Science School",
"Postcode": "SE85RQ"
},
{
"SchoolName": "Riverside Primary School",
"Postcode": "SS56ND"
},
{
"SchoolName": "City Academy Norwich",
"Postcode": "NR47LP"
},
{
"SchoolName": "Heartlands Academy",
"Postcode": "B74QR"
},
{
"SchoolName": "Shenley Academy",
"Postcode": "B294HE"
},
{
"SchoolName": "Tudor Grange Academy Worcester",
"Postcode": "WR38HN"
},
{
"SchoolName": "LVS Hassocks",
"Postcode": "BN69HT"
},
{
"SchoolName": "Parkwood E-Act Academy",
"Postcode": "S58UL"
},
{
"SchoolName": "Leeds West Academy",
"Postcode": "LS131DQ"
},
{
"SchoolName": "Fulwood Academy",
"Postcode": "PR29YR"
},
{
"SchoolName": "The Bushey Academy",
"Postcode": "WD233AA"
},
{
"SchoolName": "Furness Academy",
"Postcode": "LA139BB"
},
{
"SchoolName": "University of Chester CE Academy",
"Postcode": "CH656EA"
},
{
"SchoolName": "De Warenne Academy",
"Postcode": "DN123JY"
},
{
"SchoolName": "The Ridings Federation Yate International Academy",
"Postcode": "BS374DX"
},
{
"SchoolName": "The Ridings Federation Winterbourne International Academy",
"Postcode": "BS361JL"
},
{
"SchoolName": "Sirius Academy West",
"Postcode": "HU47JB"
},
{
"SchoolName": "All Saints Academy Dunstable",
"Postcode": "LU55AB"
},
{
"SchoolName": "Manchester Settlement",
"Postcode": "M111JG"
},
{
"SchoolName": "Haberdashers' Aske's Crayford Academy",
"Postcode": "DA14RS"
},
{
"SchoolName": "The Canterbury Centre",
"Postcode": "M55AG"
},
{
"SchoolName": "Surrey Hills Church of England Primary School",
"Postcode": "RH43QF"
},
{
"SchoolName": "Harris Academy Purley",
"Postcode": "CR26DT"
},
{
"SchoolName": "Grace Academy Darlaston",
"Postcode": "WS108QJ"
},
{
"SchoolName": "Clacton Coastal Academy",
"Postcode": "CO153JL"
},
{
"SchoolName": "Oasis Academy Hadley",
"Postcode": "EN34PX"
},
{
"SchoolName": "Bristol Metropolitan Academy",
"Postcode": "BS162HD"
},
{
"SchoolName": "Ormiston Park Academy",
"Postcode": "RM154RU"
},
{
"SchoolName": "Outwood Grange Academy",
"Postcode": "WF12PF"
},
{
"SchoolName": "Shoreham Academy",
"Postcode": "BN436YT"
},
{
"SchoolName": "Outwood Academy Adwick",
"Postcode": "DN67SF"
},
{
"SchoolName": "Strood Academy",
"Postcode": "ME22SX"
},
{
"SchoolName": "Ark Charter Academy",
"Postcode": "PO54HL"
},
{
"SchoolName": "Kettering Buccleuch Academy",
"Postcode": "NN169NS"
},
{
"SchoolName": "Kettering Science Academy",
"Postcode": "NN157AA"
},
{
"SchoolName": "Oasis Academy Shirley Park",
"Postcode": "CR97AL"
},
{
"SchoolName": "South Leeds Academy",
"Postcode": "LS102JU"
},
{
"SchoolName": "Ark St Alban's Academy",
"Postcode": "B120YH"
},
{
"SchoolName": "Park Hall Academy",
"Postcode": "B369HF"
},
{
"SchoolName": "The Crest Academy",
"Postcode": "NW27SN"
},
{
"SchoolName": "Ashlea House School",
"Postcode": "M346ET"
},
{
"SchoolName": "Ormiston Sandwell Community Academy",
"Postcode": "B692HE"
},
{
"SchoolName": "Ormiston Bushfield Academy",
"Postcode": "PE25RQ"
},
{
"SchoolName": "Bolton St Catherine's Academy",
"Postcode": "BL24HU"
},
{
"SchoolName": "South Wolverhampton and Bilston Academy",
"Postcode": "WV140LN"
},
{
"SchoolName": "Cirencester Primary School",
"Postcode": "GL71EX"
},
{
"SchoolName": "Oracle",
"Postcode": "MK454HS"
},
{
"SchoolName": "Assunnah Primary School",
"Postcode": "N176SB"
},
{
"SchoolName": "Faraday School",
"Postcode": "E140FH"
},
{
"SchoolName": "Cambian Walnut Tree Lodge School",
"Postcode": "MK442PY"
},
{
"SchoolName": "Fleetdown Primary School",
"Postcode": "DA26JX"
},
{
"SchoolName": "The Deenway Montessori School",
"Postcode": "RG14QX"
},
{
"SchoolName": "Great Denham Primary School",
"Postcode": "MK404GG"
},
{
"SchoolName": "Green Meadow Independent Primary School",
"Postcode": "WA32RD"
},
{
"SchoolName": "Woodland Grange",
"Postcode": "GU68HP"
},
{
"SchoolName": "The Gateshead Cheder Primary School",
"Postcode": "NE83HY"
},
{
"SchoolName": "Aurora Brambles School",
"Postcode": "PR267TB"
},
{
"SchoolName": "Eton Community School",
"Postcode": "IG12XG"
},
{
"SchoolName": "Horbury St Peter's and Clifton CofE (VC) Primary School",
"Postcode": "WF45BE"
},
{
"SchoolName": "Abbey Hill Primary & Nursery",
"Postcode": "NG177NZ"
},
{
"SchoolName": "Queens Gate Foundation Primary",
"Postcode": "PO326PA"
},
{
"SchoolName": "Medina College",
"Postcode": "PO302DX"
},
{
"SchoolName": "Carisbrooke College",
"Postcode": "PO305QU"
},
{
"SchoolName": "The Bay Church of England Primary",
"Postcode": "PO369BA"
},
{
"SchoolName": "Edgware Jewish Girls - Beis Chinuch",
"Postcode": "HA88NP"
},
{
"SchoolName": "Bnos Zion of Bobov",
"Postcode": "N166TJ"
},
{
"SchoolName": "All Saints' Academy, Cheltenham",
"Postcode": "GL510WH"
},
{
"SchoolName": "On Track Education Centre Westbury",
"Postcode": "BA134JY"
},
{
"SchoolName": "Iqra Academy",
"Postcode": "PE38YQ"
},
{
"SchoolName": "The Corner House",
"Postcode": "WR90LF"
},
{
"SchoolName": "Oasis Academy Oldham",
"Postcode": "OL84JZ"
},
{
"SchoolName": "Dagenham Park CofE School",
"Postcode": "RM109QH"
},
{
"SchoolName": "North Birmingham Academy",
"Postcode": "B440HF"
},
{
"SchoolName": "Children's Support Service <NAME>",
"Postcode": "SS166HG"
},
{
"SchoolName": "Al-Noor College",
"Postcode": "B114RU"
},
{
"SchoolName": "Wings School Notts",
"Postcode": "UB70AE"
},
{
"SchoolName": "The Grange School",
"Postcode": "WF59JE"
},
{
"SchoolName": "Maltby Academy",
"Postcode": "S668AB"
},
{
"SchoolName": "House of Light",
"Postcode": "CV115RB"
},
{
"SchoolName": "St George's Academy",
"Postcode": "NG347PP"
},
{
"SchoolName": "My Choice School - Maple House",
"Postcode": "RH161XQ"
},
{
"SchoolName": "<NAME> Independent Secondary School for Girls",
"Postcode": "TW32AD"
},
{
"SchoolName": "Gretton School",
"Postcode": "CB30RX"
},
{
"SchoolName": "Bracken School",
"Postcode": "PR41YA"
},
{
"SchoolName": "East London Independent Special School",
"Postcode": "E151HB"
},
{
"SchoolName": "Millfields Church of England (Controlled) Primary School",
"Postcode": "CH629EB"
},
{
"SchoolName": "Chepstow House School",
"Postcode": "W111QS"
},
{
"SchoolName": "St Peter and St Paul CofE Primary School",
"Postcode": "DN163FX"
},
{
"SchoolName": "Outwoods Primary School",
"Postcode": "CV91EH"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "L86QB"
},
{
"SchoolName": "Al-Furqan Community College (Boys)",
"Postcode": "B113BZ"
},
{
"SchoolName": "Watermore Primary School",
"Postcode": "BS362LE"
},
{
"SchoolName": "East Wichel Primary School & Nursery",
"Postcode": "SN17AG"
},
{
"SchoolName": "Mountwood Academy",
"Postcode": "PR18BS"
},
{
"SchoolName": "Newton's Walk",
"Postcode": "DE221HL"
},
{
"SchoolName": "Beacon Reach",
"Postcode": "PR33YB"
},
{
"SchoolName": "Coopers Edge School",
"Postcode": "GL34DY"
},
{
"SchoolName": "River View Community Primary School",
"Postcode": "M71QZ"
},
{
"SchoolName": "Barncroft Primary School",
"Postcode": "PO93HN"
},
{
"SchoolName": "Willow Tree Primary School",
"Postcode": "M65TJ"
},
{
"SchoolName": "Holy Family VA RC Primary School",
"Postcode": "M65WX"
},
{
"SchoolName": "Abbey College Cambridge",
"Postcode": "CB28EB"
},
{
"SchoolName": "Bedford Academy",
"Postcode": "MK429TR"
},
{
"SchoolName": "Beis Ruchel Girls School",
"Postcode": "M74AJ"
},
{
"SchoolName": "St Vincent's Catholic Primary School",
"Postcode": "WA158EY"
},
{
"SchoolName": "Olsen House School",
"Postcode": "L235TD"
},
{
"SchoolName": "The East Manchester Academy",
"Postcode": "M113DS"
},
{
"SchoolName": "Drapers' Academy",
"Postcode": "RM39XR"
},
{
"SchoolName": "The Phoenix Collegiate",
"Postcode": "B712BX"
},
{
"SchoolName": "W<NAME>",
"Postcode": "SE96DN"
},
{
"SchoolName": "Bewley Primary School",
"Postcode": "TS233LR"
},
{
"SchoolName": "Trinity Academy, Halifax",
"Postcode": "HX29TZ"
},
{
"SchoolName": "Al-Ikhlaas Primary School",
"Postcode": "BB97TN"
},
{
"SchoolName": "StreetVibes Media Academy",
"Postcode": "SE91DA"
},
{
"SchoolName": "KWS Educational Services",
"Postcode": "LU11LP"
},
{
"SchoolName": "The Co-Operative Academy of Stoke-On-Trent",
"Postcode": "ST64LD"
},
{
"SchoolName": "Manchester Communication Academy",
"Postcode": "M408NT"
},
{
"SchoolName": "The Eastbourne Academy",
"Postcode": "BN229RQ"
},
{
"SchoolName": "Brompton Academy",
"Postcode": "ME75HT"
},
{
"SchoolName": "The Victory Academy",
"Postcode": "ME45JB"
},
{
"SchoolName": "St Thomas CE (VC) Primary School",
"Postcode": "HD21RQ"
},
{
"SchoolName": "The Priory Lodge School",
"Postcode": "SW155JJ"
},
{
"SchoolName": "Two Mile Hill Primary School",
"Postcode": "BS158AA"
},
{
"SchoolName": "New Forest Small School",
"Postcode": "SO437BU"
},
{
"SchoolName": "Woodlands Meed",
"Postcode": "RH159EY"
},
{
"SchoolName": "The Oldham Academy North",
"Postcode": "OL25BF"
},
{
"SchoolName": "<NAME> Girls School",
"Postcode": "M72BT"
},
{
"SchoolName": "Kensington Primary School",
"Postcode": "L72QG"
},
{
"SchoolName": "Enterprise South Liverpool Academy",
"Postcode": "L195NY"
},
{
"SchoolName": "The Bishop of Winchester Academy",
"Postcode": "BH89PW"
},
{
"SchoolName": "Thornaby Academy",
"Postcode": "TS179DB"
},
{
"SchoolName": "KWS Educational Services",
"Postcode": "MK419TJ"
},
{
"SchoolName": "H<NAME>ul Kubra Girls School",
"Postcode": "B100BP"
},
{
"SchoolName": "Holy Spirit Catholic and Church of England Primary School",
"Postcode": "CH462RP"
},
{
"SchoolName": "The Bourne Academy",
"Postcode": "BH105HS"
},
{
"SchoolName": "Sidney Stringer Academy",
"Postcode": "CV15LY"
},
{
"SchoolName": "Shirebrook Academy",
"Postcode": "NG208QF"
},
{
"SchoolName": "Knole Academy",
"Postcode": "TN133LE"
},
{
"SchoolName": "Ebrahim Academy",
"Postcode": "E11EJ"
},
{
"SchoolName": "Kearsley Academy",
"Postcode": "BL48HY"
},
{
"SchoolName": "Landau Forte Academy, Amington",
"Postcode": "B774FF"
},
{
"SchoolName": "Skinners' Academy",
"Postcode": "N41SY"
},
{
"SchoolName": "Freebrough Academy",
"Postcode": "TS122SJ"
},
{
"SchoolName": "Primary Pupil Referral Service",
"Postcode": "WF175LP"
},
{
"SchoolName": "The Sutton Academy",
"Postcode": "WA95AU"
},
{
"SchoolName": "All Saints Church of England Academy",
"Postcode": "PL53NE"
},
{
"SchoolName": "Tiferes",
"Postcode": "M72JR"
},
{
"SchoolName": "Ormiston Sir Stanley Matthews Academy",
"Postcode": "ST33JD"
},
{
"SchoolName": "North Shore Academy",
"Postcode": "TS202AY"
},
{
"SchoolName": "Aylward Academy",
"Postcode": "N181NB"
},
{
"SchoolName": "Waterhead Academy",
"Postcode": "OL43NY"
},
{
"SchoolName": "<NAME>",
"Postcode": "SW35BY"
},
{
"SchoolName": "King Edward VI Sheldon Heath Academy",
"Postcode": "B262RZ"
},
{
"SchoolName": "Broughton Manor Preparatory School",
"Postcode": "MK109AA"
},
{
"SchoolName": "Havant Academy",
"Postcode": "PO95JD"
},
{
"SchoolName": "Nightingale Academy",
"Postcode": "N98DQ"
},
{
"SchoolName": "The Nuneaton Academy",
"Postcode": "CV107PD"
},
{
"SchoolName": "The Forge Secondary Short Stay School",
"Postcode": "B988HF"
},
{
"SchoolName": "Annan School",
"Postcode": "TN225RE"
},
{
"SchoolName": "Hebburn Lakes Primary School",
"Postcode": "NE312SL"
},
{
"SchoolName": "Brighton Aldridge Community Academy",
"Postcode": "BN19PW"
},
{
"SchoolName": "Marine Academy Plymouth",
"Postcode": "PL52AF"
},
{
"SchoolName": "Bradshaw Farm Independent School",
"Postcode": "SK170QY"
},
{
"SchoolName": "Old Sams Farm Independent School",
"Postcode": "SK170SN"
},
{
"SchoolName": "Hammersmith Academy",
"Postcode": "W129JD"
},
{
"SchoolName": "Staples Road Primary School",
"Postcode": "IG101HR"
},
{
"SchoolName": "The Co-operative Academy of Manchester",
"Postcode": "M90WQ"
},
{
"SchoolName": "Dover Christ Church Academy",
"Postcode": "CT162EG"
},
{
"SchoolName": "Duke of York's Royal Military School",
"Postcode": "CT155EQ"
},
{
"SchoolName": "Harton Primary School",
"Postcode": "NE346PF"
},
{
"SchoolName": "North East Wolverhampton Academy",
"Postcode": "WV106SE"
},
{
"SchoolName": "Sarum Academy",
"Postcode": "SP29HS"
},
{
"SchoolName": "The Winsford Academy",
"Postcode": "CW72BT"
},
{
"SchoolName": "Ormiston Bolingbroke Academy",
"Postcode": "WA76EP"
},
{
"SchoolName": "Ormiston Victory Academy",
"Postcode": "NR50PX"
},
{
"SchoolName": "Ormiston Venture Academy",
"Postcode": "NR317JJ"
},
{
"SchoolName": "Eternal Light Secondary School",
"Postcode": "BD59DH"
},
{
"SchoolName": "Heston Primary School",
"Postcode": "TW50QR"
},
{
"SchoolName": "Cleethorpes Academy",
"Postcode": "DN359NX"
},
{
"SchoolName": "The Taunton Academy",
"Postcode": "TA27QP"
},
{
"SchoolName": "The Priory Ruskin Academy",
"Postcode": "NG318ED"
},
{
"SchoolName": "Colchester Academy",
"Postcode": "CO43JL"
},
{
"SchoolName": "The John Wallis Church of England Academy",
"Postcode": "TN233HG"
},
{
"SchoolName": "University Academy Keighley",
"Postcode": "BD206EB"
},
{
"SchoolName": "Gloucester Academy",
"Postcode": "GL46RN"
},
{
"SchoolName": "Dartmouth Academy",
"Postcode": "TQ69HW"
},
{
"SchoolName": "Malcolm Arnold Academy",
"Postcode": "NN26JW"
},
{
"SchoolName": "King's Lynn Academy",
"Postcode": "PE304QG"
},
{
"SchoolName": "The Quest Academy",
"Postcode": "CR28HD"
},
{
"SchoolName": "The Thetford Academy",
"Postcode": "IP241LH"
},
{
"SchoolName": "Wilmington Academy",
"Postcode": "DA27DR"
},
{
"SchoolName": "St Aldhelm's Academy",
"Postcode": "BH124HS"
},
{
"SchoolName": "New Life Christian Academy",
"Postcode": "HU20DU"
},
{
"SchoolName": "Richmond Park Academy",
"Postcode": "SW148RG"
},
{
"SchoolName": "Fitrah Sips",
"Postcode": "SO140EJ"
},
{
"SchoolName": "Birtley House Independent School",
"Postcode": "TN156AY"
},
{
"SchoolName": "Harborne Academy",
"Postcode": "B153JL"
},
{
"SchoolName": "Skegness Academy",
"Postcode": "PE252QH"
},
{
"SchoolName": "Options College Stoke",
"Postcode": "ST31EJ"
},
{
"SchoolName": "Stockbridge Village Primary School",
"Postcode": "L281AB"
},
{
"SchoolName": "Hodge Clough Primary School",
"Postcode": "OL14JX"
},
{
"SchoolName": "Cumnor House School",
"Postcode": "CR83HB"
},
{
"SchoolName": "On Track Education Centre Northants",
"Postcode": "NN36QB"
},
{
"SchoolName": "TLC The Learning Centre",
"Postcode": "BR51EB"
},
{
"SchoolName": "Phoenix School Cambridge",
"Postcode": "CB63PX"
},
{
"SchoolName": "Willow House",
"Postcode": "SK86RF"
},
{
"SchoolName": "Bnos Beis Yaakov Primary School",
"Postcode": "NW98XR"
},
{
"SchoolName": "Rufford Primary and Nursery School",
"Postcode": "NG68LE"
},
{
"SchoolName": "Sacrewell Lodge School",
"Postcode": "PE86HJ"
},
{
"SchoolName": "Begdale House School",
"Postcode": "PE140AZ"
},
{
"SchoolName": "The Alternative School",
"Postcode": "BB185DW"
},
{
"SchoolName": "Fairfield House School",
"Postcode": "M314NL"
},
{
"SchoolName": "Queen Emma Primary School",
"Postcode": "CB18QY"
},
{
"SchoolName": "TLG Manchester",
"Postcode": "M95US"
},
{
"SchoolName": "Stradbroke",
"Postcode": "IG88HD"
},
{
"SchoolName": "Pace Education Ltd",
"Postcode": "ST50LS"
},
{
"SchoolName": "<NAME>",
"Postcode": "HP30DF"
},
{
"SchoolName": "The Pier Head Preparatory Montessori School",
"Postcode": "E1W3TD"
},
{
"SchoolName": "Goat Lees Primary School",
"Postcode": "TN249RR"
},
{
"SchoolName": "Keelman's Way School",
"Postcode": "NE311QY"
},
{
"SchoolName": "Oleander Preparatory School",
"Postcode": "SW21NR"
},
{
"SchoolName": "Meadows School",
"Postcode": "OL129EN"
},
{
"SchoolName": "Bahr Academy",
"Postcode": "NE46PR"
},
{
"SchoolName": "Keys 7 Ks",
"Postcode": "TS38BT"
},
{
"SchoolName": "Our Place",
"Postcode": "WR65JE"
},
{
"SchoolName": "Oxford Spires Academy",
"Postcode": "OX42AU"
},
{
"SchoolName": "Norton College",
"Postcode": "WR52PU"
},
{
"SchoolName": "The Holmewood School London",
"Postcode": "N128SH"
},
{
"SchoolName": "Manchester Young Lives",
"Postcode": "M229TF"
},
{
"SchoolName": "Baston House School",
"Postcode": "BR27AB"
},
{
"SchoolName": "Arthur Mellows Village College",
"Postcode": "PE67JX"
},
{
"SchoolName": "Chadwell Heath Academy",
"Postcode": "RM64RS"
},
{
"SchoolName": "Tollbar Academy",
"Postcode": "DN364RZ"
},
{
"SchoolName": "St Buryan Primary School",
"Postcode": "TR196BB"
},
{
"SchoolName": "Westlands Primary School",
"Postcode": "ME101XN"
},
{
"SchoolName": "Hartismere School",
"Postcode": "IP237BL"
},
{
"SchoolName": "Westcliff High School for Boys Academy",
"Postcode": "SS00BP"
},
{
"SchoolName": "Audenshaw School Academy Trust",
"Postcode": "M345NB"
},
{
"SchoolName": "Barnby Road Academy Primary and Nursery school",
"Postcode": "NG241RU"
},
{
"SchoolName": "The Premier Academy",
"Postcode": "MK23AH"
},
{
"SchoolName": "Watford Grammar School for Boys",
"Postcode": "WD187JF"
},
{
"SchoolName": "Healing Science Academy",
"Postcode": "DN417QD"
},
{
"SchoolName": "The Fallibroome Academy",
"Postcode": "SK104AF"
},
{
"SchoolName": "Brine Leas School",
"Postcode": "CW57DY"
},
{
"SchoolName": "Broadclyst Primary Academy Trust",
"Postcode": "EX53JG"
},
{
"SchoolName": "Kemnal Technology College",
"Postcode": "DA145AA"
},
{
"SchoolName": "The Giles Academy",
"Postcode": "PE229LD"
},
{
"SchoolName": "Heckmondwike Grammar School",
"Postcode": "WF160AH"
},
{
"SchoolName": "Cuckoo Hall Academy",
"Postcode": "N98DR"
},
{
"SchoolName": "Seaton Academy",
"Postcode": "CA141NP"
},
{
"SchoolName": "Westlands School",
"Postcode": "ME101PF"
},
{
"SchoolName": "Uffculme School",
"Postcode": "EX153AG"
},
{
"SchoolName": "Durand Academy",
"Postcode": "SW90RD"
},
{
"SchoolName": "Watford Grammar School for Girls",
"Postcode": "WD180AE"
},
{
"SchoolName": "Queen Elizabeth's School, Barnet",
"Postcode": "EN54DQ"
},
{
"SchoolName": "George Spencer Academy and Technology College",
"Postcode": "NG97EW"
},
{
"SchoolName": "The Cotswold Academy",
"Postcode": "GL542BD"
},
{
"SchoolName": "Goddard Park Community Primary School",
"Postcode": "SN32QN"
},
{
"SchoolName": "Huish Episcopi Academy",
"Postcode": "TA109SS"
},
{
"SchoolName": "Holyrood Academy",
"Postcode": "TA201JL"
},
{
"SchoolName": "Hardenhuish School",
"Postcode": "SN146RJ"
},
{
"SchoolName": "Urmston Grammar Academy",
"Postcode": "M415UG"
},
{
"SchoolName": "The Charter School",
"Postcode": "SE249JH"
},
{
"SchoolName": "Northampton School for Boys",
"Postcode": "NN15RT"
},
{
"SchoolName": "SchoolsCompany The Goodwin Academy",
"Postcode": "CT149BD"
},
{
"SchoolName": "Brinsworth Academy",
"Postcode": "S605EJ"
},
{
"SchoolName": "The Canterbury Academy",
"Postcode": "CT28QA"
},
{
"SchoolName": "Park Hall Infant Academy",
"Postcode": "WS53HF"
},
{
"SchoolName": "Orchards Academy",
"Postcode": "BR87TE"
},
{
"SchoolName": "Highsted Grammar School",
"Postcode": "ME104PT"
},
{
"SchoolName": "<NAME>'s School",
"Postcode": "GL20LF"
},
{
"SchoolName": "Highdown School and Sixth Form Centre",
"Postcode": "RG48LR"
},
{
"SchoolName": "Ashmole Academy",
"Postcode": "N145RJ"
},
{
"SchoolName": "Kingsdale Foundation School",
"Postcode": "SE218SQ"
},
{
"SchoolName": "Tudor Grange Academy, Solihull",
"Postcode": "B913PD"
},
{
"SchoolName": "Somervale School Specialist Media Arts College",
"Postcode": "BA32JD"
},
{
"SchoolName": "Trenance Learning Academy",
"Postcode": "TR72LU"
},
{
"SchoolName": "The Rochester Grammar School",
"Postcode": "ME13BY"
},
{
"SchoolName": "The Westborough Academy",
"Postcode": "SS09BS"
},
{
"SchoolName": "Queen Elizabeth's Grammar Alford - A Selective Academy",
"Postcode": "LN139HY"
},
{
"SchoolName": "Forest Academy",
"Postcode": "IP270FP"
},
{
"SchoolName": "Sandwich Technology School",
"Postcode": "CT130FA"
},
{
"SchoolName": "Sandy Hill Academy",
"Postcode": "PL253AT"
},
{
"SchoolName": "Denbigh High School",
"Postcode": "LU31HE"
},
{
"SchoolName": "St Patricks Church of England Primary Academy",
"Postcode": "B946DE"
},
{
"SchoolName": "Torquay Boys' Grammar School",
"Postcode": "TQ27EL"
},
{
"SchoolName": "Samuel Ward Academy",
"Postcode": "CB90LD"
},
{
"SchoolName": "John Taylor High School",
"Postcode": "DE138AZ"
},
{
"SchoolName": "Fulston Manor School",
"Postcode": "ME104EG"
},
{
"SchoolName": "R A Butler Infant School",
"Postcode": "CB113DG"
},
{
"SchoolName": "Green Lane Primary Academy",
"Postcode": "LS252JX"
},
{
"SchoolName": "Kingsmead School",
"Postcode": "EN11YQ"
},
{
"SchoolName": "R A Butler Junior School",
"Postcode": "CB113DG"
},
{
"SchoolName": "Guru Nanak Sikh Academy",
"Postcode": "UB40LT"
},
{
"SchoolName": "Erith School",
"Postcode": "DA83BN"
},
{
"SchoolName": "Wales High School",
"Postcode": "S265QQ"
},
{
"SchoolName": "Crosshall Infant School Academy Trust",
"Postcode": "PE197GG"
},
{
"SchoolName": "Arden",
"Postcode": "B930PT"
},
{
"SchoolName": "Beths Grammar School",
"Postcode": "DA51NE"
},
{
"SchoolName": "Norton Hill Academy",
"Postcode": "BA34AD"
},
{
"SchoolName": "Ivybridge Community College",
"Postcode": "PL210JA"
},
{
"SchoolName": "Fort Pitt Grammar School",
"Postcode": "ME46TJ"
},
{
"SchoolName": "Cle<NAME>",
"Postcode": "KT139TS"
},
{
"SchoolName": "Crosshall Junior School",
"Postcode": "PE197GG"
},
{
"SchoolName": "Sandbach High School and Sixth Form College",
"Postcode": "CW113NT"
},
{
"SchoolName": "Lampton Academy",
"Postcode": "TW34EP"
},
{
"SchoolName": "King Harold Business & Enterprise Academy",
"Postcode": "EN91LF"
},
{
"SchoolName": "Garforth Academy",
"Postcode": "LS251LJ"
},
{
"SchoolName": "The Canterbury Primary School",
"Postcode": "CT28PT"
},
{
"SchoolName": "Lark Rise Academy",
"Postcode": "LU63PT"
},
{
"SchoolName": "<NAME>man Catholic College",
"Postcode": "B375GA"
},
{
"SchoolName": "Gosforth Junior High Academy",
"Postcode": "NE31EE"
},
{
"SchoolName": "The Hayesbrook School",
"Postcode": "TN92PH"
},
{
"SchoolName": "Caistor Grammar School",
"Postcode": "LN76QJ"
},
{
"SchoolName": "Meopham Community Academy",
"Postcode": "DA130JW"
},
{
"SchoolName": "Gosforth Academy",
"Postcode": "NE32JH"
},
{
"SchoolName": "Pate's Grammar School",
"Postcode": "GL510HG"
},
{
"SchoolName": "Bourne Abbey Church of England Primary Academy",
"Postcode": "PE109EP"
},
{
"SchoolName": "Darrick Wood School",
"Postcode": "BR68ER"
},
{
"SchoolName": "Martham Primary and Nursery School",
"Postcode": "NR294PR"
},
{
"SchoolName": "Queen Elizabeth School",
"Postcode": "LA62HJ"
},
{
"SchoolName": "Branston Community Academy",
"Postcode": "LN41LH"
},
{
"SchoolName": "Dartford Grammar School",
"Postcode": "DA12HW"
},
{
"SchoolName": "Chellaston Academy",
"Postcode": "DE735UB"
},
{
"SchoolName": "Redhill Academy",
"Postcode": "NG58GX"
},
{
"SchoolName": "Roger Ascham Primary School",
"Postcode": "E175HU"
},
{
"SchoolName": "Yardley Primary School",
"Postcode": "E47PH"
},
{
"SchoolName": "Hambleton Primary Academy",
"Postcode": "FY69BZ"
},
{
"SchoolName": "Colyton Grammar School",
"Postcode": "EX246HN"
},
{
"SchoolName": "Kingsbridge Academy",
"Postcode": "TQ71PL"
},
{
"SchoolName": "Parkstone Grammar School",
"Postcode": "BH177EP"
},
{
"SchoolName": "Bexley Grammar School",
"Postcode": "DA162BL"
},
{
"SchoolName": "Unity College",
"Postcode": "HP123AE"
},
{
"SchoolName": "Wigmore Primary School",
"Postcode": "HR69UN"
},
{
"SchoolName": "The Greetland Academy",
"Postcode": "HX48JB"
},
{
"SchoolName": "Park Road Academy Primary School",
"Postcode": "WA145AP"
},
{
"SchoolName": "Wellington School",
"Postcode": "WA157RH"
},
{
"SchoolName": "Wellacre Technology Academy",
"Postcode": "M416AP"
},
{
"SchoolName": "Highworth Grammar School",
"Postcode": "TN248UD"
},
{
"SchoolName": "Oreston Community Academy",
"Postcode": "PL97JY"
},
{
"SchoolName": "Lancaster Girls' Grammar School",
"Postcode": "LA11SF"
},
{
"SchoolName": "Chatham & Clarendon Grammar School",
"Postcode": "CT117PS"
},
{
"SchoolName": "Bodmin College",
"Postcode": "PL311DD"
},
{
"SchoolName": "Newquay Junior Academy",
"Postcode": "TR72NL"
},
{
"SchoolName": "Whitburn Church of England Academy",
"Postcode": "SR67EF"
},
{
"SchoolName": "The Ockendon Academy",
"Postcode": "RM155AY"
},
{
"SchoolName": "Churston Ferrers Grammar School Academy",
"Postcode": "TQ50LN"
},
{
"SchoolName": "Lavington School",
"Postcode": "SN104EB"
},
{
"SchoolName": "Clitheroe Royal Grammar School",
"Postcode": "BB72DJ"
},
{
"SchoolName": "South Wilts Grammar School for Girls",
"Postcode": "SP13JJ"
},
{
"SchoolName": "The Morley Academy",
"Postcode": "LS270PD"
},
{
"SchoolName": "St Stephen's Junior School",
"Postcode": "CT27AD"
},
{
"SchoolName": "Wakefield City Academy",
"Postcode": "WF14SF"
},
{
"SchoolName": "Lever Edge Primary Academy",
"Postcode": "BL33HP"
},
{
"SchoolName": "The Broxbourne School",
"Postcode": "EN107DD"
},
{
"SchoolName": "The King's (The Cathedral) School",
"Postcode": "PE12UE"
},
{
"SchoolName": "John Kyrle High School and Sixth Form Centre Academy",
"Postcode": "HR97ET"
},
{
"SchoolName": "The St Leonards Academy",
"Postcode": "TN388HH"
},
{
"SchoolName": "The Hastings Academy",
"Postcode": "TN355DN"
},
{
"SchoolName": "Beit Shvidler Primary School",
"Postcode": "HA88NX"
},
{
"SchoolName": "Horizon Community College",
"Postcode": "S706PD"
},
{
"SchoolName": "Wigmore School",
"Postcode": "HR69UW"
},
{
"SchoolName": "Ninestiles, an Academy",
"Postcode": "B277QG"
},
{
"SchoolName": "Pilgrims' Cross CofE Aided Primary School",
"Postcode": "SP116TY"
},
{
"SchoolName": "The De La Salle Academy",
"Postcode": "L114SG"
},
{
"SchoolName": "Birkenhead Park School",
"Postcode": "CH434UY"
},
{
"SchoolName": "Chelmsford County High School for Girls",
"Postcode": "CM11RW"
},
{
"SchoolName": "Hillyfield Primary Academy",
"Postcode": "E176ED"
},
{
"SchoolName": "The de Ferrers Academy",
"Postcode": "DE130LL"
},
{
"SchoolName": "<NAME> CofE Comprehensive School",
"Postcode": "LN23JB"
},
{
"SchoolName": "Debenham High School",
"Postcode": "IP146BL"
},
{
"SchoolName": "Tonbridge Grammar School",
"Postcode": "TN92JR"
},
{
"SchoolName": "The Compton School",
"Postcode": "N120QG"
},
{
"SchoolName": "Dr Challoner's Grammar School",
"Postcode": "HP65HA"
},
{
"SchoolName": "Upton Court Grammar School",
"Postcode": "SL37PR"
},
{
"SchoolName": "Hope Academy",
"Postcode": "WA120AQ"
},
{
"SchoolName": "Drumbeat School and ASD Service",
"Postcode": "BR15LE"
},
{
"SchoolName": "Green Crescent Primary School",
"Postcode": "NG60DG"
},
{
"SchoolName": "St. Joseph's Catholic Primary School, Reddish",
"Postcode": "SK56BG"
},
{
"SchoolName": "George Carey Church of England Primary School",
"Postcode": "IG110FJ"
},
{
"SchoolName": "<NAME>man Roman Catholic College",
"Postcode": "OL99QY"
},
{
"SchoolName": "Liberty Lodge Independent School",
"Postcode": "IP12NY"
},
{
"SchoolName": "Our Lady Queen of Martyrs Roman Catholic Voluntary Aided Primary School",
"Postcode": "YO244JW"
},
{
"SchoolName": "Pakefield School",
"Postcode": "NR337AQ"
},
{
"SchoolName": "Priorslee Primary School",
"Postcode": "TF29RS"
},
{
"SchoolName": "The Flitch Green Academy",
"Postcode": "CM63GG"
},
{
"SchoolName": "Linton Village College",
"Postcode": "CB214JB"
},
{
"SchoolName": "Southend High School for Boys",
"Postcode": "SS00RG"
},
{
"SchoolName": "Southend High School for Girls",
"Postcode": "SS24UZ"
},
{
"SchoolName": "Christ the Saviour Church of England Primary School",
"Postcode": "W52AA"
},
{
"SchoolName": "The Priory Primary School",
"Postcode": "RG265QD"
},
{
"SchoolName": "Kendrick School",
"Postcode": "RG15BN"
},
{
"SchoolName": "Reading School",
"Postcode": "RG15LW"
},
{
"SchoolName": "Platanos College",
"Postcode": "SW90AL"
},
{
"SchoolName": "The Academy at Shotton Hall",
"Postcode": "SR81AU"
},
{
"SchoolName": "Ipswich Academy",
"Postcode": "IP30SP"
},
{
"SchoolName": "Oakgrove School",
"Postcode": "MK109JQ"
},
{
"SchoolName": "Weald of Kent Grammar School",
"Postcode": "TN92JP"
},
{
"SchoolName": "Rainham School for Girls",
"Postcode": "ME80BX"
},
{
"SchoolName": "Churchend Primary Academy",
"Postcode": "RG304HP"
},
{
"SchoolName": "Altrincham Grammar School for Boys",
"Postcode": "WA142RS"
},
{
"SchoolName": "The Polesworth School",
"Postcode": "B781QT"
},
{
"SchoolName": "St Joseph's College",
"Postcode": "ST45NT"
},
{
"SchoolName": "Ossett Academy and Sixth Form College",
"Postcode": "WF50DG"
},
{
"SchoolName": "Comberton Village College",
"Postcode": "CB237DU"
},
{
"SchoolName": "Coopers School",
"Postcode": "BR75PS"
},
{
"SchoolName": "Herne Bay High School",
"Postcode": "CT67NS"
},
{
"SchoolName": "B<NAME>us CofE School",
"Postcode": "BR28HZ"
},
{
"SchoolName": "Chislehurst School for Girls",
"Postcode": "BR76HE"
},
{
"SchoolName": "Denbigh School",
"Postcode": "MK56EX"
},
{
"SchoolName": "Prince Henry's High School",
"Postcode": "WR114QH"
},
{
"SchoolName": "Sharnbrook Academy",
"Postcode": "MK441JL"
},
{
"SchoolName": "Lincroft Middle School",
"Postcode": "MK437RE"
},
{
"SchoolName": "Harrold Priory Middle School",
"Postcode": "MK437DE"
},
{
"SchoolName": "Balcarras School",
"Postcode": "GL538QF"
},
{
"SchoolName": "Margaret Beaufort Middle School",
"Postcode": "MK441DR"
},
{
"SchoolName": "The West Grantham Academy St Hugh's",
"Postcode": "NG317PX"
},
{
"SchoolName": "The West Grantham Academy St John's",
"Postcode": "NG317XQ"
},
{
"SchoolName": "Charles Read Academy",
"Postcode": "NG334NT"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NN126JA"
},
{
"SchoolName": "Wymondham College",
"Postcode": "NR189SZ"
},
{
"SchoolName": "Hockerill Anglo-European College",
"Postcode": "CM235HX"
},
{
"SchoolName": "Oldfield School",
"Postcode": "BA19AB"
},
{
"SchoolName": "The Royal Grammar School, High Wycombe",
"Postcode": "HP136QT"
},
{
"SchoolName": "Kirk Hallam Community Academy",
"Postcode": "DE74HH"
},
{
"SchoolName": "Town End Academy",
"Postcode": "SR54NX"
},
{
"SchoolName": "Bexhill Academy",
"Postcode": "SR54PJ"
},
{
"SchoolName": "Sponne School",
"Postcode": "NN126DJ"
},
{
"SchoolName": "Guilsborough Academy",
"Postcode": "NN68QE"
},
{
"SchoolName": "Westcliff High School for Girls",
"Postcode": "SS00BS"
},
{
"SchoolName": "De Aston School",
"Postcode": "LN83RF"
},
{
"SchoolName": "Bradworthy Primary Academy",
"Postcode": "EX227RT"
},
{
"SchoolName": "Teignmouth Community School, Mill Lane",
"Postcode": "TQ149BB"
},
{
"SchoolName": "Teign School",
"Postcode": "TQ123JG"
},
{
"SchoolName": "Teignmouth Community School, Exeter Road",
"Postcode": "TQ149HZ"
},
{
"SchoolName": "Devonport High School for Boys",
"Postcode": "PL15QP"
},
{
"SchoolName": "Harrogate Grammar School",
"Postcode": "HG20DZ"
},
{
"SchoolName": "Sale Grammar School",
"Postcode": "M333NH"
},
{
"SchoolName": "Amherst School",
"Postcode": "TN132AX"
},
{
"SchoolName": "Bishop Wordsworth's Grammar School",
"Postcode": "SP12ED"
},
{
"SchoolName": "<NAME> Manwood's School",
"Postcode": "CT139JX"
},
{
"SchoolName": "North Huddersfield Trust School",
"Postcode": "HD21DJ"
},
{
"SchoolName": "<NAME>",
"Postcode": "M72FR"
},
{
"SchoolName": "TLG West London",
"Postcode": "W69JJ"
},
{
"SchoolName": "The Ecclesbourne School",
"Postcode": "DE564GS"
},
{
"SchoolName": "Torquay Girls Grammar School",
"Postcode": "TQ27DY"
},
{
"SchoolName": "St Marie's Catholic Primary School and Nursery",
"Postcode": "CV227AF"
},
{
"SchoolName": "Northleigh House School",
"Postcode": "CV357HZ"
},
{
"SchoolName": "Whitechapel Church of England Primary School",
"Postcode": "BD196HR"
},
{
"SchoolName": "Whitley Park Primary and Nursery School",
"Postcode": "RG27RB"
},
{
"SchoolName": "Blue River Academy",
"Postcode": "B100PR"
},
{
"SchoolName": "Saint Michael CofE Primary School (Voluntary Aided)",
"Postcode": "PE28SZ"
},
{
"SchoolName": "Springwood High School",
"Postcode": "PE304AW"
},
{
"SchoolName": "Newport Girls' High School Academy Trust",
"Postcode": "TF107HL"
},
{
"SchoolName": "Ravens Wood School",
"Postcode": "BR28HP"
},
{
"SchoolName": "Mottram St Andrew Primary Academy",
"Postcode": "SK104QL"
},
{
"SchoolName": "Haydon School",
"Postcode": "HA52LX"
},
{
"SchoolName": "Beechen Cliff School",
"Postcode": "BA24RE"
},
{
"SchoolName": "Langley Grammar School",
"Postcode": "SL37QS"
},
{
"SchoolName": "Cranford Community College",
"Postcode": "TW59PD"
},
{
"SchoolName": "Bodriggy Academy",
"Postcode": "TR274DR"
},
{
"SchoolName": "Camborne Science and International Academy",
"Postcode": "TR147PP"
},
{
"SchoolName": "Hurworth School",
"Postcode": "DL22JG"
},
{
"SchoolName": "The Queen Katherine School",
"Postcode": "LA96PJ"
},
{
"SchoolName": "Cirencester Deer Park School",
"Postcode": "GL71XB"
},
{
"SchoolName": "Robinswood Primary Academy",
"Postcode": "GL46HE"
},
{
"SchoolName": "Sunbury Manor School",
"Postcode": "TW166LF"
},
{
"SchoolName": "Catmose College",
"Postcode": "LE156RP"
},
{
"SchoolName": "Weydon School",
"Postcode": "GU98UG"
},
{
"SchoolName": "Ashperton Primary Academy",
"Postcode": "HR82SE"
},
{
"SchoolName": "Newquay Tretherras",
"Postcode": "TR73BH"
},
{
"SchoolName": "Glyn School",
"Postcode": "KT171NB"
},
{
"SchoolName": "Holly Meadows School",
"Postcode": "PE321BW"
},
{
"SchoolName": "Lincoln Castle Academy",
"Postcode": "LN13SP"
},
{
"SchoolName": "Trinity Church of England School, Belvedere",
"Postcode": "DA176HT"
},
{
"SchoolName": "Eaton Bray Academy",
"Postcode": "LU62DT"
},
{
"SchoolName": "The Ravensbourne School",
"Postcode": "BR29EH"
},
{
"SchoolName": "Sandye Place Academy",
"Postcode": "SG191JD"
},
{
"SchoolName": "Hartwell Primary School",
"Postcode": "NN72HL"
},
{
"SchoolName": "The Bishops' Blue Coat Church of England High School",
"Postcode": "CH35XF"
},
{
"SchoolName": "Manor Church of England Academy Trust",
"Postcode": "YO266PA"
},
{
"SchoolName": "Charles Darwin School",
"Postcode": "TN163AU"
},
{
"SchoolName": "Whitehill Community Academy",
"Postcode": "HX29RL"
},
{
"SchoolName": "Brookfield Academy Trust",
"Postcode": "S403NS"
},
{
"SchoolName": "Belgrave St Bartholomew's Academy",
"Postcode": "ST34TP"
},
{
"SchoolName": "Alban Church of England Academy",
"Postcode": "MK443HZ"
},
{
"SchoolName": "Newstead Wood School",
"Postcode": "BR69SA"
},
{
"SchoolName": "Goldington Academy",
"Postcode": "MK419BX"
},
{
"SchoolName": "Delamere CofE Primary Academy",
"Postcode": "CW60ST"
},
{
"SchoolName": "<NAME>'s School",
"Postcode": "EN62DU"
},
{
"SchoolName": "Debden Park High School",
"Postcode": "IG102BQ"
},
{
"SchoolName": "Ridgeway School",
"Postcode": "PL72RS"
},
{
"SchoolName": "Hele's Trust",
"Postcode": "PL74LT"
},
{
"SchoolName": "Coombe Dean School Academy Trust",
"Postcode": "PL98ES"
},
{
"SchoolName": "Redborne Upper School and Community College",
"Postcode": "MK452NU"
},
{
"SchoolName": "Woodland Middle School Academy",
"Postcode": "MK451NP"
},
{
"SchoolName": "Ashburton Primary School",
"Postcode": "TQ137DW"
},
{
"SchoolName": "Buckfastleigh Primary School",
"Postcode": "TQ110DD"
},
{
"SchoolName": "Widecombe-in-the-Moor Primary",
"Postcode": "TQ137TB"
},
{
"SchoolName": "Whitehorse Manor Infant School",
"Postcode": "CR78SB"
},
{
"SchoolName": "Whitehorse Manor Junior School",
"Postcode": "CR78SB"
},
{
"SchoolName": "Ecclesbourne Primary School",
"Postcode": "CR77FA"
},
{
"SchoolName": "Penair School",
"Postcode": "TR11TN"
},
{
"SchoolName": "Plymstock School",
"Postcode": "PL99AZ"
},
{
"SchoolName": "South Dartmoor Community College",
"Postcode": "TQ137EW"
},
{
"SchoolName": "Queen Elizabeth's Grammar School",
"Postcode": "ME137BQ"
},
{
"SchoolName": "Hartsdown Academy",
"Postcode": "CT95RE"
},
{
"SchoolName": "The Roseland Academy",
"Postcode": "TR25SE"
},
{
"SchoolName": "Penrice Academy",
"Postcode": "PL253NR"
},
{
"SchoolName": "Corfe Hills School",
"Postcode": "BH189BG"
},
{
"SchoolName": "Saltash.net community school",
"Postcode": "PL124AY"
},
{
"SchoolName": "The Brittons Academy Trust",
"Postcode": "RM137BB"
},
{
"SchoolName": "The King John School",
"Postcode": "SS71RQ"
},
{
"SchoolName": "The Crypt School",
"Postcode": "GL25AE"
},
{
"SchoolName": "The Appleton School",
"Postcode": "SS75RN"
},
{
"SchoolName": "Swavesey Village College",
"Postcode": "CB244RS"
},
{
"SchoolName": "Valley Park School",
"Postcode": "ME145DT"
},
{
"SchoolName": "Invicta Grammar School",
"Postcode": "ME145DS"
},
{
"SchoolName": "Towers School and Sixth Form Centre",
"Postcode": "TN249AL"
},
{
"SchoolName": "King Ethelbert School",
"Postcode": "CT79BL"
},
{
"SchoolName": "Dane Court Grammar School",
"Postcode": "CT102RT"
},
{
"SchoolName": "Langley Park School for Boys",
"Postcode": "BR33BP"
},
{
"SchoolName": "Ashlawn School",
"Postcode": "CV225ET"
},
{
"SchoolName": "Devonport High School for Girls",
"Postcode": "PL23DL"
},
{
"SchoolName": "Bartley Green School",
"Postcode": "B323QJ"
},
{
"SchoolName": "Kings Norton Girls' School",
"Postcode": "B301HW"
},
{
"SchoolName": "John <NAME>",
"Postcode": "DE656LU"
},
{
"SchoolName": "Lordswood Girls' School and Sixth Form Centre",
"Postcode": "B178QB"
},
{
"SchoolName": "Fairfield High School for Girls",
"Postcode": "M436AB"
},
{
"SchoolName": "Holcombe Grammar School",
"Postcode": "ME46JB"
},
{
"SchoolName": "Rugby High School",
"Postcode": "CV227RE"
},
{
"SchoolName": "Mount Hawke Academy",
"Postcode": "TR48BA"
},
{
"SchoolName": "Trevithick Learning Academy",
"Postcode": "TR147RH"
},
{
"SchoolName": "East Wickham Primary Academy",
"Postcode": "DA163BP"
},
{
"SchoolName": "The Coopers' Company and Coborn School",
"Postcode": "RM143HS"
},
{
"SchoolName": "Weare Academy First School",
"Postcode": "BS262JS"
},
{
"SchoolName": "St Margaret's Academy",
"Postcode": "TQ14PA"
},
{
"SchoolName": "Bennett Memorial Diocesan School",
"Postcode": "TN49SH"
},
{
"SchoolName": "Brighouse High School",
"Postcode": "HD62NY"
},
{
"SchoolName": "William de Ferrers School",
"Postcode": "CM35JU"
},
{
"SchoolName": "Rickmansworth School",
"Postcode": "WD33AQ"
},
{
"SchoolName": "The John Warner School",
"Postcode": "EN110QF"
},
{
"SchoolName": "The Knights Templar School",
"Postcode": "SG76DZ"
},
{
"SchoolName": "Sandringham School",
"Postcode": "AL49NX"
},
{
"SchoolName": "Soham Village College",
"Postcode": "CB75AA"
},
{
"SchoolName": "The Corsham School",
"Postcode": "SN139DF"
},
{
"SchoolName": "Exmouth Community College",
"Postcode": "EX83AF"
},
{
"SchoolName": "Airedale Academy",
"Postcode": "WF103JU"
},
{
"SchoolName": "Pool Academy",
"Postcode": "TR153PZ"
},
{
"SchoolName": "The Tiffin Girls' School",
"Postcode": "KT25PL"
},
{
"SchoolName": "Wood Green Academy",
"Postcode": "WS109QU"
},
{
"SchoolName": "Archbishop Holgate's School, A Church of England Academy",
"Postcode": "YO105ZA"
},
{
"SchoolName": "Windsor High School and Sixth Form",
"Postcode": "B634BB"
},
{
"SchoolName": "Ryders Hayes School",
"Postcode": "WS34HX"
},
{
"SchoolName": "Shire Oak Academy",
"Postcode": "WS99PA"
},
{
"SchoolName": "Wilson's School",
"Postcode": "SM69JW"
},
{
"SchoolName": "Alcester Grammar School",
"Postcode": "B495ED"
},
{
"SchoolName": "Chosen Hill School",
"Postcode": "GL32PL"
},
{
"SchoolName": "<NAME>ls' High School & Sixth Form",
"Postcode": "NG317JR"
},
{
"SchoolName": "Davenant Foundation School",
"Postcode": "IG102LD"
},
{
"SchoolName": "Stoke Damerel Community College",
"Postcode": "PL34BD"
},
{
"SchoolName": "Carlton le Willows Academy",
"Postcode": "NG44AA"
},
{
"SchoolName": "The West Bridgford School",
"Postcode": "NG27FA"
},
{
"SchoolName": "Uppingham Community College",
"Postcode": "LE159TJ"
},
{
"SchoolName": "Corsham Primary School",
"Postcode": "SN139YW"
},
{
"SchoolName": "Swakeleys School for Girls",
"Postcode": "UB100EJ"
},
{
"SchoolName": "Sheldon School",
"Postcode": "SN146HJ"
},
{
"SchoolName": "Castleford Academy",
"Postcode": "WF104JQ"
},
{
"SchoolName": "West Park School",
"Postcode": "DE217BT"
},
{
"SchoolName": "Yealmpton Primary School",
"Postcode": "PL82HF"
},
{
"SchoolName": "Parkside Community College",
"Postcode": "CB11EH"
},
{
"SchoolName": "Maiden Erlegh School",
"Postcode": "RG67HS"
},
{
"SchoolName": "Clyst Vale Community College",
"Postcode": "EX53AJ"
},
{
"SchoolName": "Kingsmead Academy",
"Postcode": "TA42NE"
},
{
"SchoolName": "The Mountbatten School",
"Postcode": "SO515SY"
},
{
"SchoolName": "Freemantle Church of England Community Academy",
"Postcode": "SO153BQ"
},
{
"SchoolName": "King Edward VI Grammar School, Chelmsford",
"Postcode": "CM13SX"
},
{
"SchoolName": "Bohunt School",
"Postcode": "GU307NY"
},
{
"SchoolName": "Hayes School",
"Postcode": "BR27DB"
},
{
"SchoolName": "Christleton High School",
"Postcode": "CH37AD"
},
{
"SchoolName": "Queen Elizabeth's",
"Postcode": "EX173LU"
},
{
"SchoolName": "Kennet School",
"Postcode": "RG194LL"
},
{
"SchoolName": "Hayes School",
"Postcode": "TQ45PJ"
},
{
"SchoolName": "Twynham School",
"Postcode": "BH231JF"
},
{
"SchoolName": "Coleridge Community College",
"Postcode": "CB13RJ"
},
{
"SchoolName": "Challney High School for Boys",
"Postcode": "LU49TJ"
},
{
"SchoolName": "The Arnewood School Academy",
"Postcode": "BH256RS"
},
{
"SchoolName": "Alderman Jacobs School",
"Postcode": "PE71XJ"
},
{
"SchoolName": "Wildern School",
"Postcode": "SO304EJ"
},
{
"SchoolName": "Congleton High School",
"Postcode": "CW124NS"
},
{
"SchoolName": "Claremont High School",
"Postcode": "HA30UH"
},
{
"SchoolName": "Ringwood School Academy",
"Postcode": "BH241SE"
},
{
"SchoolName": "East Barnet School",
"Postcode": "EN48PU"
},
{
"SchoolName": "Shiphay Learning Academy",
"Postcode": "TQ27NF"
},
{
"SchoolName": "Queen's Park Academy",
"Postcode": "MK404HA"
},
{
"SchoolName": "Yesoiday Hatorah School",
"Postcode": "M250JW"
},
{
"SchoolName": "<NAME>'s Mathematical School",
"Postcode": "ME13EL"
},
{
"SchoolName": "Abbs Cross Academy and Arts College",
"Postcode": "RM124YB"
},
{
"SchoolName": "Skipton Girls' High School",
"Postcode": "BD231QL"
},
{
"SchoolName": "Dulwich Hamlet Junior School",
"Postcode": "SE217AL"
},
{
"SchoolName": "High School for Girls",
"Postcode": "GL13JN"
},
{
"SchoolName": "South Hunsley School and Sixth Form College",
"Postcode": "HU143HS"
},
{
"SchoolName": "Lipson Co-operative Academy",
"Postcode": "PL47PG"
},
{
"SchoolName": "Brampton Manor Academy",
"Postcode": "E63SQ"
},
{
"SchoolName": "Leverington Primary Academy",
"Postcode": "PE135DE"
},
{
"SchoolName": "Kirkbie Kendal School",
"Postcode": "LA97EQ"
},
{
"SchoolName": "The Hayfield School",
"Postcode": "DN93HG"
},
{
"SchoolName": "The King's School",
"Postcode": "EX111RA"
},
{
"SchoolName": "The Mirfield Free Grammar and Sixth Form",
"Postcode": "WF149EZ"
},
{
"SchoolName": "Rossington All Saints Academy",
"Postcode": "DN110BZ"
},
{
"SchoolName": "Bottisham Village College",
"Postcode": "CB259DL"
},
{
"SchoolName": "RISE Education",
"Postcode": "CR43ED"
},
{
"SchoolName": "Ormiston Horizon Academy",
"Postcode": "ST66JZ"
},
{
"SchoolName": "Discovery Academy",
"Postcode": "ST20GA"
},
{
"SchoolName": "The Hermitage Academy",
"Postcode": "DH23AD"
},
{
"SchoolName": "The Buckinghamshire Primary Pupil Referral Unit",
"Postcode": "HP199NS"
},
{
"SchoolName": "Martec Training",
"Postcode": "ST51LZ"
},
{
"SchoolName": "St Teresa of Lisieux Catholic Primary School",
"Postcode": "L111DB"
},
{
"SchoolName": "Adventure Care Ltd",
"Postcode": "SK170TJ"
},
{
"SchoolName": "TLG Reading",
"Postcode": "RG314XR"
},
{
"SchoolName": "Hans Price Academy",
"Postcode": "BS233QP"
},
{
"SchoolName": "Bullers Wood School",
"Postcode": "BR75LJ"
},
{
"SchoolName": "Queensmead School",
"Postcode": "HA40LS"
},
{
"SchoolName": "Lowbrook Academy",
"Postcode": "SL63AR"
},
{
"SchoolName": "Robert Bloomfield Academy",
"Postcode": "SG175BU"
},
{
"SchoolName": "Gonville Academy",
"Postcode": "CR76DL"
},
{
"SchoolName": "Thornden School",
"Postcode": "SO532DW"
},
{
"SchoolName": "The Long Eaton School",
"Postcode": "NG103NP"
},
{
"SchoolName": "Hodgson Academy",
"Postcode": "FY67EU"
},
{
"SchoolName": "Aston Academy",
"Postcode": "S264SF"
},
{
"SchoolName": "The Burgate School and Sixth Form",
"Postcode": "SP61EZ"
},
{
"SchoolName": "Welling School",
"Postcode": "DA161LB"
},
{
"SchoolName": "Bishop Creighton Academy",
"Postcode": "PE15DB"
},
{
"SchoolName": "Backwell School",
"Postcode": "BS483BX"
},
{
"SchoolName": "Wycombe High School",
"Postcode": "HP111TB"
},
{
"SchoolName": "Fernwood School",
"Postcode": "NG82FT"
},
{
"SchoolName": "Cheltenham Bournside School and Sixth Form Centre",
"Postcode": "GL513EF"
},
{
"SchoolName": "Chalfont St Peter CofE Academy",
"Postcode": "SL99SS"
},
{
"SchoolName": "Oakwood Park Grammar School",
"Postcode": "ME168AH"
},
{
"SchoolName": "Norton College",
"Postcode": "YO179PT"
},
{
"SchoolName": "The Honywood Community Science School",
"Postcode": "CO61PZ"
},
{
"SchoolName": "Shenley Brook End School",
"Postcode": "MK57ZT"
},
{
"SchoolName": "Ripley St Thomas Church of England Academy",
"Postcode": "LA14RS"
},
{
"SchoolName": "Queen Elizabeth Grammar School Penrith",
"Postcode": "CA117EG"
},
{
"SchoolName": "Park House School",
"Postcode": "RG146NQ"
},
{
"SchoolName": "Buttsbury Junior School",
"Postcode": "CM120QR"
},
{
"SchoolName": "St Edward's College",
"Postcode": "L121LF"
},
{
"SchoolName": "South Craven School",
"Postcode": "BD207RL"
},
{
"SchoolName": "Wood End Academy",
"Postcode": "UB60EQ"
},
{
"SchoolName": "EF Academy Torbay",
"Postcode": "TQ13BG"
},
{
"SchoolName": "PPP Community School",
"Postcode": "W106TH"
},
{
"SchoolName": "Lancaster Royal Grammar School",
"Postcode": "LA13EF"
},
{
"SchoolName": "Manchester Secondary PRU",
"Postcode": "M217JJ"
},
{
"SchoolName": "North Durham Academy",
"Postcode": "DH90TW"
},
{
"SchoolName": "L<NAME>isha Academy",
"Postcode": "IG118PY"
},
{
"SchoolName": "La Scuola Italiana A Londra",
"Postcode": "W114UH"
},
{
"SchoolName": "Highcroft School",
"Postcode": "DL135AG"
},
{
"SchoolName": "West London Free School",
"Postcode": "W69LP"
},
{
"SchoolName": "Sandown Bay Academy",
"Postcode": "PO369JH"
},
{
"SchoolName": "Lawrence House School",
"Postcode": "L365SJ"
},
{
"SchoolName": "Ryde Academy",
"Postcode": "PO333LN"
},
{
"SchoolName": "Oakfield School",
"Postcode": "LE84FE"
},
{
"SchoolName": "Pewley Down Infant School",
"Postcode": "GU13PT"
},
{
"SchoolName": "Overton Grange School",
"Postcode": "SM26TQ"
},
{
"SchoolName": "Stour Valley Community School",
"Postcode": "CO108PJ"
},
{
"SchoolName": "West Hatch High School",
"Postcode": "IG75BT"
},
{
"SchoolName": "King's Caple Primary Academy",
"Postcode": "HR14TZ"
},
{
"SchoolName": "Charlestown Primary School",
"Postcode": "PL253PB"
},
{
"SchoolName": "Lord Scudamore Primary Academy",
"Postcode": "HR40AS"
},
{
"SchoolName": "The Violet Way Academy",
"Postcode": "DE159ES"
},
{
"SchoolName": "Highcliffe School",
"Postcode": "BH234QD"
},
{
"SchoolName": "Winchcombe School",
"Postcode": "GL545LB"
},
{
"SchoolName": "Sutton Primary Academy",
"Postcode": "HR13SZ"
},
{
"SchoolName": "Linslade Academy Trust",
"Postcode": "LU72PA"
},
{
"SchoolName": "Ribston Hall High School",
"Postcode": "GL15LE"
},
{
"SchoolName": "Uxbridge High School",
"Postcode": "UB82PR"
},
{
"SchoolName": "West Thornton Primary Academy",
"Postcode": "CR03BS"
},
{
"SchoolName": "King James I Academy Bishop Auckland",
"Postcode": "DL147JZ"
},
{
"SchoolName": "<NAME> Grammar School",
"Postcode": "HP111SZ"
},
{
"SchoolName": "Cleeve School",
"Postcode": "GL528AE"
},
{
"SchoolName": "Queen Mary's Grammar School",
"Postcode": "WS12PG"
},
{
"SchoolName": "Minehead Middle School",
"Postcode": "TA245RH"
},
{
"SchoolName": "Sawston Village College",
"Postcode": "CB223BP"
},
{
"SchoolName": "Saffron Walden County High School",
"Postcode": "CB114UH"
},
{
"SchoolName": "Queen Mary's High School",
"Postcode": "WS42AE"
},
{
"SchoolName": "Sutton Coldfield Grammar School for Girls",
"Postcode": "B735PT"
},
{
"SchoolName": "The Heath School",
"Postcode": "WA74SY"
},
{
"SchoolName": "St Anselm's College",
"Postcode": "CH431UQ"
},
{
"SchoolName": "<NAME>'s Grammar School",
"Postcode": "SL72BR"
},
{
"SchoolName": "<NAME>ills High School",
"Postcode": "IP139HE"
},
{
"SchoolName": "The Kings of Wessex Academy",
"Postcode": "BS273AQ"
},
{
"SchoolName": "Eaglesfield Paddle CofE Primary Academy",
"Postcode": "CA130QY"
},
{
"SchoolName": "Cheam High School",
"Postcode": "SM38PW"
},
{
"SchoolName": "Studley High School",
"Postcode": "B807QX"
},
{
"SchoolName": "Sutton Grammar School",
"Postcode": "SM14AS"
},
{
"SchoolName": "The North Halifax Grammar School",
"Postcode": "HX29SU"
},
{
"SchoolName": "Wallington High School for Girls",
"Postcode": "SM60PH"
},
{
"SchoolName": "Fosse Way Academy",
"Postcode": "LN68DU"
},
{
"SchoolName": "West Somerset College",
"Postcode": "TA246AY"
},
{
"SchoolName": "Olney Infant Academy",
"Postcode": "MK465AD"
},
{
"SchoolName": "Tower Road Academy",
"Postcode": "PE219PX"
},
{
"SchoolName": "Regis Manor Primary School",
"Postcode": "ME102HT"
},
{
"SchoolName": "Nonsuch High School for Girls",
"Postcode": "SM38AB"
},
{
"SchoolName": "Westbourne Primary School",
"Postcode": "SM12NT"
},
{
"SchoolName": "Carshalton High School for Girls",
"Postcode": "SM52QX"
},
{
"SchoolName": "Wallington County Grammar School",
"Postcode": "SM67PH"
},
{
"SchoolName": "Carshalton Boys Sports College",
"Postcode": "SM51RW"
},
{
"SchoolName": "Greenshaw High School",
"Postcode": "SM13DY"
},
{
"SchoolName": "Preston Muslim Girls High School",
"Postcode": "PR16QQ"
},
{
"SchoolName": "Trumpington Meadows Primary School",
"Postcode": "CB29AY"
},
{
"SchoolName": "John Masefield High School",
"Postcode": "HR82HF"
},
{
"SchoolName": "Trinity Church School",
"Postcode": "BA33DE"
},
{
"SchoolName": "Chester Blue Coat Church of England Primary School",
"Postcode": "CH14HG"
},
{
"SchoolName": "St Luke's Church of England Primary",
"Postcode": "NW37SU"
},
{
"SchoolName": "Eden Primary",
"Postcode": "N101NR"
},
{
"SchoolName": "Cranford Primary School",
"Postcode": "TW46LB"
},
{
"SchoolName": "Mosspits Lane Primary School",
"Postcode": "L156UN"
},
{
"SchoolName": "Woolton Primary School",
"Postcode": "L255NN"
},
{
"SchoolName": "Thorndown Primary School",
"Postcode": "PE276SE"
},
{
"SchoolName": "Banners Gate Primary School",
"Postcode": "B736UE"
},
{
"SchoolName": "Beis Yaakov Girls School",
"Postcode": "N160QJ"
},
{
"SchoolName": "The Free School Norwich",
"Postcode": "NR13NX"
},
{
"SchoolName": "Bristol Free School",
"Postcode": "BS106NJ"
},
{
"SchoolName": "Al-Ihsaan Community College",
"Postcode": "LE12HX"
},
{
"SchoolName": "St Peter's Academy",
"Postcode": "ST42RR"
},
{
"SchoolName": "St. Theresa's",
"Postcode": "OL14NA"
},
{
"SchoolName": "Leeds East Academy",
"Postcode": "LS146TY"
},
{
"SchoolName": "Copleston High School",
"Postcode": "IP45HD"
},
{
"SchoolName": "Collingwood College",
"Postcode": "GU154AE"
},
{
"SchoolName": "Arnold Academy",
"Postcode": "MK454JZ"
},
{
"SchoolName": "Elmlea Junior School",
"Postcode": "BS93UF"
},
{
"SchoolName": "Trewirgie Junior School",
"Postcode": "TR152QN"
},
{
"SchoolName": "Thomas Knyvett College",
"Postcode": "TW153DU"
},
{
"SchoolName": "Howard of Effingham School",
"Postcode": "KT245JR"
},
{
"SchoolName": "Farlingaye High School",
"Postcode": "IP124JX"
},
{
"SchoolName": "Reid Street Primary School",
"Postcode": "DL36EX"
},
{
"SchoolName": "Hummersknott Academy",
"Postcode": "DL38AR"
},
{
"SchoolName": "Ansford Academy Trust",
"Postcode": "BA77JJ"
},
{
"SchoolName": "Whitley Academy",
"Postcode": "CV34BD"
},
{
"SchoolName": "Wedmore First School Academy",
"Postcode": "BS284BS"
},
{
"SchoolName": "Walton High",
"Postcode": "MK77WH"
},
{
"SchoolName": "The Hazeley Academy",
"Postcode": "MK80PT"
},
{
"SchoolName": "<NAME> School",
"Postcode": "HP218PE"
},
{
"SchoolName": "Aylesbury High School",
"Postcode": "HP217SX"
},
{
"SchoolName": "Mascalls Academy",
"Postcode": "TN126LT"
},
{
"SchoolName": "Brookside Community Primary School",
"Postcode": "BA160PR"
},
{
"SchoolName": "Pewsey Vale School",
"Postcode": "SN95EW"
},
{
"SchoolName": "Poole Grammar School",
"Postcode": "BH179JU"
},
{
"SchoolName": "Bishop Fox's School",
"Postcode": "TA13HQ"
},
{
"SchoolName": "Penryn College",
"Postcode": "TR108PZ"
},
{
"SchoolName": "Oxley Park Academy",
"Postcode": "MK44TA"
},
{
"SchoolName": "Gable Hall School",
"Postcode": "SS178JT"
},
{
"SchoolName": "Moulsham Infant School",
"Postcode": "CM29DG"
},
{
"SchoolName": "Gordano School",
"Postcode": "BS207QR"
},
{
"SchoolName": "Bovingdon Primary Academy",
"Postcode": "HP30HL"
},
{
"SchoolName": "Highcrest Academy",
"Postcode": "HP137NQ"
},
{
"SchoolName": "Cliffe Woods Primary School",
"Postcode": "ME38UJ"
},
{
"SchoolName": "Highworth Warneford School",
"Postcode": "SN67BZ"
},
{
"SchoolName": "The Billericay School",
"Postcode": "CM129LH"
},
{
"SchoolName": "St Columb Major Academy",
"Postcode": "TR96RW"
},
{
"SchoolName": "Moulsham High School",
"Postcode": "CM29ES"
},
{
"SchoolName": "Rainham Mark Grammar School",
"Postcode": "ME87AJ"
},
{
"SchoolName": "Southwater Junior Academy",
"Postcode": "RH139JH"
},
{
"SchoolName": "Southwater Infant Academy",
"Postcode": "RH139JH"
},
{
"SchoolName": "Pilton Community College",
"Postcode": "EX311RB"
},
{
"SchoolName": "The King Edmund School",
"Postcode": "SS41TL"
},
{
"SchoolName": "St Columb Minor Academy",
"Postcode": "TR73JF"
},
{
"SchoolName": "Ermine Primary Academy",
"Postcode": "LN22HG"
},
{
"SchoolName": "North Kesteven School",
"Postcode": "LN69AG"
},
{
"SchoolName": "Mounts Bay Academy",
"Postcode": "TR183JT"
},
{
"SchoolName": "Stroud High School",
"Postcode": "GL54HF"
},
{
"SchoolName": "St Martin's School Brentwood",
"Postcode": "CM132HG"
},
{
"SchoolName": "Prospect School",
"Postcode": "RG304EX"
},
{
"SchoolName": "Queens' School",
"Postcode": "WD232TY"
},
{
"SchoolName": "Toot Hill School",
"Postcode": "NG138BL"
},
{
"SchoolName": "St Hilary School",
"Postcode": "TR209DR"
},
{
"SchoolName": "The Holt School",
"Postcode": "RG411EE"
},
{
"SchoolName": "Trewirgie Infant School",
"Postcode": "TR152SZ"
},
{
"SchoolName": "Aston Manor Academy",
"Postcode": "B64PZ"
},
{
"SchoolName": "Chestnut Grove School",
"Postcode": "SW128JZ"
},
{
"SchoolName": "Aylesbury Grammar School",
"Postcode": "HP217RP"
},
{
"SchoolName": "Barr Beacon School",
"Postcode": "WS90RF"
},
{
"SchoolName": "Erasmus Darwin Academy",
"Postcode": "WS73QW"
},
{
"SchoolName": "Chesterton Community College",
"Postcode": "CB43NY"
},
{
"SchoolName": "South Farnham School",
"Postcode": "GU98DY"
},
{
"SchoolName": "St Bede Academy",
"Postcode": "BL33LJ"
},
{
"SchoolName": "Christopher Whitehead Language College",
"Postcode": "WR24AF"
},
{
"SchoolName": "The Piggott School",
"Postcode": "RG108DS"
},
{
"SchoolName": "Eden Park Primary School Academy",
"Postcode": "TQ59NH"
},
{
"SchoolName": "St Michael's Church of England High School",
"Postcode": "PR71RS"
},
{
"SchoolName": "Preston School Academy",
"Postcode": "BA213JD"
},
{
"SchoolName": "The Oldershaw Academy",
"Postcode": "CH454RJ"
},
{
"SchoolName": "Rossett School",
"Postcode": "HG29JP"
},
{
"SchoolName": "The Chantry School",
"Postcode": "WR66QA"
},
{
"SchoolName": "Haybridge High School and Sixth Form",
"Postcode": "DY82XS"
},
{
"SchoolName": "Parmiter's School",
"Postcode": "WD250UU"
},
{
"SchoolName": "St Wilfrid's Church of England Academy",
"Postcode": "BB22JR"
},
{
"SchoolName": "St Clement Danes School",
"Postcode": "WD36EW"
},
{
"SchoolName": "Keswick School",
"Postcode": "CA125QB"
},
{
"SchoolName": "The Petersfield School",
"Postcode": "GU323LU"
},
{
"SchoolName": "Great Baddow High School",
"Postcode": "CM29RZ"
},
{
"SchoolName": "Ilkley Grammar School",
"Postcode": "LS298TR"
},
{
"SchoolName": "George Abbot School",
"Postcode": "GU11XX"
},
{
"SchoolName": "Myton School",
"Postcode": "CV346PJ"
},
{
"SchoolName": "Fairfax",
"Postcode": "B757JT"
},
{
"SchoolName": "Heart of England School",
"Postcode": "CV77FW"
},
{
"SchoolName": "Tiffin School",
"Postcode": "KT26RL"
},
{
"SchoolName": "Royal Wootton Bassett Academy",
"Postcode": "SN47HG"
},
{
"SchoolName": "Honiton Community College",
"Postcode": "EX141QT"
},
{
"SchoolName": "Crispin School",
"Postcode": "BA160AD"
},
{
"SchoolName": "Glenthorne High School",
"Postcode": "SM39PS"
},
{
"SchoolName": "Warren Road Primary School",
"Postcode": "BR66JF"
},
{
"SchoolName": "The Castle School",
"Postcode": "TA15AU"
},
{
"SchoolName": "Haygrove School",
"Postcode": "TA67HW"
},
{
"SchoolName": "Hadleigh High School",
"Postcode": "IP75HU"
},
{
"SchoolName": "Ilsington Church of England Primary School",
"Postcode": "TQ139RE"
},
{
"SchoolName": "Hayes Primary School",
"Postcode": "BR27LQ"
},
{
"SchoolName": "Cottingham High School and Sixth Form College",
"Postcode": "HU165PX"
},
{
"SchoolName": "Yavneh College",
"Postcode": "WD61HL"
},
{
"SchoolName": "St Augustine Academy",
"Postcode": "ME168AE"
},
{
"SchoolName": "Woodrush Community High School",
"Postcode": "B475JW"
},
{
"SchoolName": "Pershore High School",
"Postcode": "WR102BX"
},
{
"SchoolName": "The Redstart Primary School",
"Postcode": "TA201SD"
},
{
"SchoolName": "Droitwich Spa High School and Sixth Form Centre",
"Postcode": "WR90AA"
},
{
"SchoolName": "Jubilee Wood Primary School",
"Postcode": "MK62LB"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "LE56HN"
},
{
"SchoolName": "King's Hedges Nursery School",
"Postcode": "CB42HU"
},
{
"SchoolName": "Willow Bank Primary School",
"Postcode": "SE29XB"
},
{
"SchoolName": "Aldborough Primary School",
"Postcode": "IG38HZ"
},
{
"SchoolName": "Brantwood Specialist School",
"Postcode": "S71NU"
},
{
"SchoolName": "Etz Chaim Jewish Primary School",
"Postcode": "NW74SL"
},
{
"SchoolName": "Penistone St John's Voluntary Aided Primary School",
"Postcode": "S366BS"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "TS247LE"
},
{
"SchoolName": "Birmingham Ormiston Academy",
"Postcode": "B47QD"
},
{
"SchoolName": "The Montessori Place",
"Postcode": "BN33ER"
},
{
"SchoolName": "Weston Favell Academy",
"Postcode": "NN33EZ"
},
{
"SchoolName": "Meadow View Farm School",
"Postcode": "LE98FT"
},
{
"SchoolName": "Langley Hall Primary Academy",
"Postcode": "SL38GW"
},
{
"SchoolName": "Woodpecker Hall Primary Academy",
"Postcode": "N98BF"
},
{
"SchoolName": "High Grange School",
"Postcode": "DE30DR"
},
{
"SchoolName": "Madni Institute",
"Postcode": "SL15PR"
},
{
"SchoolName": "Brunel Primary & Nursery Academy",
"Postcode": "PL126DX"
},
{
"SchoolName": "Caistor Yarborough Academy",
"Postcode": "LN76QZ"
},
{
"SchoolName": "The Cheadle Academy",
"Postcode": "ST101LH"
},
{
"SchoolName": "Chipping Campden School",
"Postcode": "GL556HU"
},
{
"SchoolName": "Christ Church Academy",
"Postcode": "ST158JD"
},
{
"SchoolName": "Feversham College",
"Postcode": "BD30LT"
},
{
"SchoolName": "Finham Park School",
"Postcode": "CV36EA"
},
{
"SchoolName": "Great Marlow School",
"Postcode": "SL71JE"
},
{
"SchoolName": "Flixton Girls School",
"Postcode": "M415DR"
},
{
"SchoolName": "Hayesfield Girls School",
"Postcode": "BA23LA"
},
{
"SchoolName": "Holy Cross Catholic Primary School, Harlow",
"Postcode": "CM186JJ"
},
{
"SchoolName": "John Spendluffe Foundation Technology College",
"Postcode": "LN139BL"
},
{
"SchoolName": "Kesgrave High School",
"Postcode": "IP52PB"
},
{
"SchoolName": "Oakfield Academy",
"Postcode": "BA114JF"
},
{
"SchoolName": "Park View School",
"Postcode": "DH33QA"
},
{
"SchoolName": "Queen Elizabeth's Grammar School",
"Postcode": "DE61EP"
},
{
"SchoolName": "Roundwood Park School",
"Postcode": "AL53AE"
},
{
"SchoolName": "Sawtry Community College Academy",
"Postcode": "PE285TQ"
},
{
"SchoolName": "Signhills Academy",
"Postcode": "DN350DN"
},
{
"SchoolName": "Southfield School for Girls",
"Postcode": "NN156HE"
},
{
"SchoolName": "St Helen's Catholic Junior School",
"Postcode": "CM159BY"
},
{
"SchoolName": "Stratford School",
"Postcode": "E79PR"
},
{
"SchoolName": "The Marches School",
"Postcode": "SY112AR"
},
{
"SchoolName": "St Joseph's Catholic College",
"Postcode": "SN33LR"
},
{
"SchoolName": "Holy Cross Catholic Primary School",
"Postcode": "SN31AR"
},
{
"SchoolName": "St Peter's Catholic High School and Sixth Form Centre",
"Postcode": "GL40DD"
},
{
"SchoolName": "Suckley Primary School",
"Postcode": "WR65DE"
},
{
"SchoolName": "Great Malvern Primary School",
"Postcode": "WR142BY"
},
{
"SchoolName": "<NAME>'s School",
"Postcode": "GL88AE"
},
{
"SchoolName": "The Coleshill School",
"Postcode": "B463EX"
},
{
"SchoolName": "The Swinton High School",
"Postcode": "M276JU"
},
{
"SchoolName": "Abbey Infants' School",
"Postcode": "DL38JA"
},
{
"SchoolName": "Abbey Junior School",
"Postcode": "DL38NN"
},
{
"SchoolName": "Bury St Edmunds County Upper School",
"Postcode": "IP326RF"
},
{
"SchoolName": "Henley In Arden School",
"Postcode": "B956AF"
},
{
"SchoolName": "Longsands Academy",
"Postcode": "PE191LQ"
},
{
"SchoolName": "Alderbrook School",
"Postcode": "B911SN"
},
{
"SchoolName": "Beverley Grammar School",
"Postcode": "HU178NF"
},
{
"SchoolName": "Bournemouth School for Girls",
"Postcode": "BH89UJ"
},
{
"SchoolName": "Bowland High",
"Postcode": "BB74QS"
},
{
"SchoolName": "Bungay High School",
"Postcode": "NR351RW"
},
{
"SchoolName": "Charlton Kings Infants' School",
"Postcode": "GL538AY"
},
{
"SchoolName": "Churchill Academy",
"Postcode": "BS255QN"
},
{
"SchoolName": "Crofton Academy",
"Postcode": "WF41NF"
},
{
"SchoolName": "Freman College",
"Postcode": "SG99BT"
},
{
"SchoolName": "Fullbrook School",
"Postcode": "KT153HW"
},
{
"SchoolName": "Outwood Academy Foxhills",
"Postcode": "DN158LJ"
},
{
"SchoolName": "Graveney School",
"Postcode": "SW179BU"
},
{
"SchoolName": "Langley Park School for Girls",
"Postcode": "BR33BE"
},
{
"SchoolName": "Langley School",
"Postcode": "B927ER"
},
{
"SchoolName": "Lode Heath School",
"Postcode": "B912HW"
},
{
"SchoolName": "Rivers Academy West London",
"Postcode": "TW149PE"
},
{
"SchoolName": "Lynch Hill School Primary Academy",
"Postcode": "SL22AN"
},
{
"SchoolName": "Minsthorpe Community College, A Specialist Science College",
"Postcode": "WF92UJ"
},
{
"SchoolName": "Newport Community School Primary Academy",
"Postcode": "EX329BW"
},
{
"SchoolName": "Notley High School and Braintree Sixth Form",
"Postcode": "CM71WY"
},
{
"SchoolName": "The Raleigh School",
"Postcode": "KT246LX"
},
{
"SchoolName": "Canary Wharf College",
"Postcode": "E143BA"
},
{
"SchoolName": "Radnor House",
"Postcode": "TW14QG"
},
{
"SchoolName": "Rodborough Technology College",
"Postcode": "GU85BZ"
},
{
"SchoolName": "West Hill School",
"Postcode": "SK151LX"
},
{
"SchoolName": "Bishopton Redmarshall CofE Primary School",
"Postcode": "TS211HD"
},
{
"SchoolName": "Heighington Church of England Primary School",
"Postcode": "DL56PH"
},
{
"SchoolName": "Chulmleigh Primary School",
"Postcode": "EX187AA"
},
{
"SchoolName": "Chulmleigh Community College",
"Postcode": "EX187AA"
},
{
"SchoolName": "East Worlington Primary School",
"Postcode": "EX174TS"
},
{
"SchoolName": "Burrington Church of England Controlled Primary School",
"Postcode": "EX379JG"
},
{
"SchoolName": "Hadleigh Infant and Nursery School",
"Postcode": "SS72HQ"
},
{
"SchoolName": "Nower Hill High School",
"Postcode": "HA55RP"
},
{
"SchoolName": "South Benfleet Primary School",
"Postcode": "SS75HA"
},
{
"SchoolName": "Westwood Academy",
"Postcode": "SS72SU"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "GL31HU"
},
{
"SchoolName": "Darrick Wood Infant School",
"Postcode": "BR68ER"
},
{
"SchoolName": "Katharine Lady Berkeley's School",
"Postcode": "GL128RB"
},
{
"SchoolName": "Holyhead School",
"Postcode": "B210HN"
},
{
"SchoolName": "Stewart Fleming Primary School",
"Postcode": "SE207YB"
},
{
"SchoolName": "Lightcliffe Academy",
"Postcode": "HX38TL"
},
{
"SchoolName": "Upper Shirley High School",
"Postcode": "SO157QU"
},
{
"SchoolName": "Verulam School",
"Postcode": "AL14PR"
},
{
"SchoolName": "The Hathershaw College",
"Postcode": "OL83EP"
},
{
"SchoolName": "The Campion School",
"Postcode": "RM113BX"
},
{
"SchoolName": "West Park Academy",
"Postcode": "DL22GF"
},
{
"SchoolName": "King Edward VI Aston School",
"Postcode": "B66DJ"
},
{
"SchoolName": "King Edward VI Camp Hill School for Girls",
"Postcode": "B147QJ"
},
{
"SchoolName": "King Edward VI Camp Hill School for Boys",
"Postcode": "B147QJ"
},
{
"SchoolName": "King Edward VI Five Ways School",
"Postcode": "B324BT"
},
{
"SchoolName": "King Edward VI Handsworth School",
"Postcode": "B219AR"
},
{
"SchoolName": "Mayflower High School",
"Postcode": "CM120RT"
},
{
"SchoolName": "Montsaye Academy",
"Postcode": "NN146BB"
},
{
"SchoolName": "Nunnery Wood High School",
"Postcode": "WR52LT"
},
{
"SchoolName": "Ousedale School",
"Postcode": "MK160BJ"
},
{
"SchoolName": "Plantsbrook School",
"Postcode": "B721RB"
},
{
"SchoolName": "Runwell Community Primary School",
"Postcode": "SS117BJ"
},
{
"SchoolName": "<NAME> High School",
"Postcode": "NR349PG"
},
{
"SchoolName": "St Alban's Catholic Academy",
"Postcode": "CM202NP"
},
{
"SchoolName": "St Laurence School",
"Postcode": "BA151DZ"
},
{
"SchoolName": "St Mark's West Essex Catholic School",
"Postcode": "CM186AA"
},
{
"SchoolName": "Thomas Keble School",
"Postcode": "GL67DY"
},
{
"SchoolName": "Tolworth Girls' School and Sixth Form",
"Postcode": "KT67LQ"
},
{
"SchoolName": "Two Mile Ash School",
"Postcode": "MK88LH"
},
{
"SchoolName": "Westbury-On-Trym Church of England Academy",
"Postcode": "BS93HZ"
},
{
"SchoolName": "Portslade Aldridge Community Academy",
"Postcode": "BN412WS"
},
{
"SchoolName": "The Macclesfield Academy",
"Postcode": "SK118JR"
},
{
"SchoolName": "The Co-operative Academy of Leeds",
"Postcode": "LS97HD"
},
{
"SchoolName": "Ash Hill Academy",
"Postcode": "DN76JH"
},
{
"SchoolName": "Green Street Green Primary School",
"Postcode": "BR66DT"
},
{
"SchoolName": "St Ursula's E-ACT Academy",
"Postcode": "BS94DT"
},
{
"SchoolName": "Pickhurst Infant Academy",
"Postcode": "BR40HL"
},
{
"SchoolName": "Pickhurst Junior School",
"Postcode": "BR40HL"
},
{
"SchoolName": "St Johns Church of England Primary School",
"Postcode": "CT11BD"
},
{
"SchoolName": "Hylands School",
"Postcode": "CM13ET"
},
{
"SchoolName": "Kingstone High School",
"Postcode": "HR29HJ"
},
{
"SchoolName": "Holy Rood Catholic Primary School",
"Postcode": "SN12LU"
},
{
"SchoolName": "Park High School",
"Postcode": "HA71PL"
},
{
"SchoolName": "Treverbyn Academy",
"Postcode": "PL268TL"
},
{
"SchoolName": "Rosedale College",
"Postcode": "UB32SE"
},
{
"SchoolName": "Hewens College",
"Postcode": "UB48JP"
},
{
"SchoolName": "The George Eliot School",
"Postcode": "CV114QP"
},
{
"SchoolName": "Stanchester Academy",
"Postcode": "TA146UG"
},
{
"SchoolName": "St Thomas More Catholic Primary School, Saffron Walden",
"Postcode": "CB113DW"
},
{
"SchoolName": "Nene Park Academy",
"Postcode": "PE27EA"
},
{
"SchoolName": "Abbey Grange Church of England Academy",
"Postcode": "LS165EA"
},
{
"SchoolName": "The Voyager Academy",
"Postcode": "PE46HX"
},
{
"SchoolName": "Carlton Academy",
"Postcode": "NG43SH"
},
{
"SchoolName": "Bishop Stopford School",
"Postcode": "NN156BJ"
},
{
"SchoolName": "Campion School",
"Postcode": "NN73QG"
},
{
"SchoolName": "The Palmer Catholic Academy",
"Postcode": "IG38EU"
},
{
"SchoolName": "Caroline Chisholm School",
"Postcode": "NN46TP"
},
{
"SchoolName": "The Chauncy School",
"Postcode": "SG120DP"
},
{
"SchoolName": "Chesham Grammar School",
"Postcode": "HP51BA"
},
{
"SchoolName": "Diss High School",
"Postcode": "IP224DH"
},
{
"SchoolName": "Dunraven School",
"Postcode": "SW162QB"
},
{
"SchoolName": "Enfield Grammar School",
"Postcode": "EN26LN"
},
{
"SchoolName": "The Academy, Selsey",
"Postcode": "PO209EH"
},
{
"SchoolName": "Farmor's School",
"Postcode": "GL74JQ"
},
{
"SchoolName": "Longdon Hall School",
"Postcode": "WS154PT"
},
{
"SchoolName": "Gravesend Grammar School",
"Postcode": "DA122PR"
},
{
"SchoolName": "The Hart School",
"Postcode": "WS152UE"
},
{
"SchoolName": "Hanley Castle High School",
"Postcode": "WR80BL"
},
{
"SchoolName": "Highnam CofE Primary Academy",
"Postcode": "GL28LW"
},
{
"SchoolName": "Hillview School for Girls",
"Postcode": "TN92HE"
},
{
"SchoolName": "King's Oak Academy",
"Postcode": "BS154JT"
},
{
"SchoolName": "<NAME>",
"Postcode": "CA174HA"
},
{
"SchoolName": "Lee Chapel Primary School",
"Postcode": "SS165RU"
},
{
"SchoolName": "Ormiston Ilkeston Enterprise Academy",
"Postcode": "DE75HS"
},
{
"SchoolName": "Longdean School",
"Postcode": "HP38ES"
},
{
"SchoolName": "Lostock Hall Academy Trust",
"Postcode": "PR55UR"
},
{
"SchoolName": "South Nottinghamshire Academy",
"Postcode": "NG122FQ"
},
{
"SchoolName": "Everest Community Academy",
"Postcode": "RG249UP"
},
{
"SchoolName": "Ark Oval Primary Academy",
"Postcode": "CR06BA"
},
{
"SchoolName": "Lutterworth High School",
"Postcode": "LE174QH"
},
{
"SchoolName": "The Magna Carta School",
"Postcode": "TW183HJ"
},
{
"SchoolName": "Retford Oaks Academy",
"Postcode": "DN227NJ"
},
{
"SchoolName": "Maiden Beech Academy",
"Postcode": "TA188HG"
},
{
"SchoolName": "The Hundred of Hoo Academy",
"Postcode": "ME39HH"
},
{
"SchoolName": "Manor High School",
"Postcode": "LE24FU"
},
{
"SchoolName": "Harris Academy Beckenham",
"Postcode": "BR33SJ"
},
{
"SchoolName": "Marling School",
"Postcode": "GL54HE"
},
{
"SchoolName": "Newton Abbot College",
"Postcode": "TQ122NF"
},
{
"SchoolName": "Noadswood School",
"Postcode": "SO454ZF"
},
{
"SchoolName": "North Town Primary School",
"Postcode": "TA11DF"
},
{
"SchoolName": "Parbold Douglas Church of England Academy",
"Postcode": "WN87HS"
},
{
"SchoolName": "Perins School A Community Sports College",
"Postcode": "SO249BS"
},
{
"SchoolName": "Priestlands School",
"Postcode": "SO418FZ"
},
{
"SchoolName": "Prenton High School for Girls",
"Postcode": "CH426RR"
},
{
"SchoolName": "Queen Elizabeth's Girls' School",
"Postcode": "EN55RR"
},
{
"SchoolName": "Redmarley Church of England Primary School",
"Postcode": "GL193HS"
},
{
"SchoolName": "The Blue Coat CofE School",
"Postcode": "OL13SQ"
},
{
"SchoolName": "East Point Academy",
"Postcode": "NR330UQ"
},
{
"SchoolName": "<NAME> Academy",
"Postcode": "LN69AF"
},
{
"SchoolName": "Horizon Primary Academy",
"Postcode": "BR87BT"
},
{
"SchoolName": "Rydens Enterprise School and Sixth Form College",
"Postcode": "KT125PY"
},
{
"SchoolName": "Bexleyheath Academy",
"Postcode": "DA67DA"
},
{
"SchoolName": "St Aidan's Church of England High School",
"Postcode": "HG28JR"
},
{
"SchoolName": "King Alfred's",
"Postcode": "OX129BY"
},
{
"SchoolName": "Serlby Park Academy",
"Postcode": "DN118EF"
},
{
"SchoolName": "St Breock Primary School",
"Postcode": "PL277XL"
},
{
"SchoolName": "St Edward's Church of England School & Sixth Form College",
"Postcode": "RM79NX"
},
{
"SchoolName": "Landau Forte Academy, QEMS",
"Postcode": "B798AH"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "SN21PE"
},
{
"SchoolName": "Jerry Clay Academy",
"Postcode": "WF20NP"
},
{
"SchoolName": "Staunton and Corse Church of England Primary School",
"Postcode": "GL193RA"
},
{
"SchoolName": "Swanland Primary School",
"Postcode": "HU143NE"
},
{
"SchoolName": "Ormiston Rivers Academy",
"Postcode": "CM08QB"
},
{
"SchoolName": "Teesdale School",
"Postcode": "DL128HH"
},
{
"SchoolName": "The Abbey School",
"Postcode": "ME138RZ"
},
{
"SchoolName": "The Deanery Church of England Primary School",
"Postcode": "B762RD"
},
{
"SchoolName": "Leventhorpe",
"Postcode": "CM219BY"
},
{
"SchoolName": "The London Oratory School",
"Postcode": "SW61RX"
},
{
"SchoolName": "The Manor Academy",
"Postcode": "NG198QA"
},
{
"SchoolName": "The National CofE Academy",
"Postcode": "NG157DB"
},
{
"SchoolName": "The Ridgeway School & Sixth Form College",
"Postcode": "SN49DJ"
},
{
"SchoolName": "The Robert Smyth Academy",
"Postcode": "LE167JG"
},
{
"SchoolName": "The Stourport High School and Sixth Form Centre",
"Postcode": "DY138AX"
},
{
"SchoolName": "The Thomas Hardye School",
"Postcode": "DT12ET"
},
{
"SchoolName": "Staffordshire University Academy",
"Postcode": "WS124JH"
},
{
"SchoolName": "Woodlands Academy",
"Postcode": "CV57FF"
},
{
"SchoolName": "The King's School, Grantham",
"Postcode": "NG316RP"
},
{
"SchoolName": "Trinity High School and Sixth Form Centre",
"Postcode": "B988HB"
},
{
"SchoolName": "Rookery School",
"Postcode": "B219PY"
},
{
"SchoolName": "Vandyke Upper School and Community College",
"Postcode": "LU73DY"
},
{
"SchoolName": "Welland Park Academy",
"Postcode": "LE169DR"
},
{
"SchoolName": "Wirral Grammar School for Girls",
"Postcode": "CH633AF"
},
{
"SchoolName": "Alcester Academy",
"Postcode": "B496QQ"
},
{
"SchoolName": "Churchdown Village Infant School",
"Postcode": "GL32NB"
},
{
"SchoolName": "Avishayes Community Primary School",
"Postcode": "TA201NS"
},
{
"SchoolName": "Tatworth Primary School",
"Postcode": "TA202RX"
},
{
"SchoolName": "Coombeshead Academy",
"Postcode": "TQ121PT"
},
{
"SchoolName": "Harrow High School",
"Postcode": "HA12JG"
},
{
"SchoolName": "Bentley Wood High School",
"Postcode": "HA73JW"
},
{
"SchoolName": "Horringer Court Middle School",
"Postcode": "IP332EX"
},
{
"SchoolName": "Westley Middle School",
"Postcode": "IP333JB"
},
{
"SchoolName": "The UCL Academy",
"Postcode": "NW33AQ"
},
{
"SchoolName": "Djanogly Northgate Academy",
"Postcode": "NG77GB"
},
{
"SchoolName": "Padstow School",
"Postcode": "PL288EX"
},
{
"SchoolName": "Nottingham Girls' Academy",
"Postcode": "NG83LD"
},
{
"SchoolName": "St Matthias Church of England Primary School",
"Postcode": "WR141NA"
},
{
"SchoolName": "<NAME> CofE Academy",
"Postcode": "WR141WD"
},
{
"SchoolName": "Ernulf Academy",
"Postcode": "PE192SH"
},
{
"SchoolName": "Tendring Technology College",
"Postcode": "CO130AZ"
},
{
"SchoolName": "The Commonweal School",
"Postcode": "SN14JE"
},
{
"SchoolName": "Lethbridge Primary School",
"Postcode": "SN14BY"
},
{
"SchoolName": "Whitstone",
"Postcode": "BA45PF"
},
{
"SchoolName": "Bucklers Mead Academy",
"Postcode": "BA214NH"
},
{
"SchoolName": "Springbank Primary Academy",
"Postcode": "GL510PH"
},
{
"SchoolName": "David Livingstone Academy",
"Postcode": "CR78HX"
},
{
"SchoolName": "Ormiston Maritime Academy",
"Postcode": "DN345AH"
},
{
"SchoolName": "Hall Mead School",
"Postcode": "RM141SF"
},
{
"SchoolName": "Rooks Heath College",
"Postcode": "HA29AH"
},
{
"SchoolName": "Canons High School",
"Postcode": "HA86AN"
},
{
"SchoolName": "Humberston Academy",
"Postcode": "DN364TF"
},
{
"SchoolName": "Heighington Millfield Primary Academy",
"Postcode": "LN41RQ"
},
{
"SchoolName": "St Dunstan's School",
"Postcode": "BA69BY"
},
{
"SchoolName": "Westfield Academy",
"Postcode": "BA213EP"
},
{
"SchoolName": "Hatch End High School",
"Postcode": "HA36NR"
},
{
"SchoolName": "Dallam School",
"Postcode": "LA77DD"
},
{
"SchoolName": "Tor Bridge High",
"Postcode": "PL68UN"
},
{
"SchoolName": "Gotherington Primary School",
"Postcode": "GL529QT"
},
{
"SchoolName": "Holbrook Academy",
"Postcode": "IP92QX"
},
{
"SchoolName": "Tile Hill Wood School and Language College",
"Postcode": "CV49PW"
},
{
"SchoolName": "Abraham Guest Academy",
"Postcode": "WN50DQ"
},
{
"SchoolName": "Warden Park Primary Academy",
"Postcode": "RH163JR"
},
{
"SchoolName": "Waycroft Academy",
"Postcode": "BS148PS"
},
{
"SchoolName": "Carre's Grammar School",
"Postcode": "NG347DD"
},
{
"SchoolName": "William Edwards School",
"Postcode": "RM163NJ"
},
{
"SchoolName": "The Chalfonts Community College",
"Postcode": "SL98TP"
},
{
"SchoolName": "Balgowan Primary School",
"Postcode": "BR34HJ"
},
{
"SchoolName": "Cirencester Kingshill School",
"Postcode": "GL71HS"
},
{
"SchoolName": "East Bergholt High School",
"Postcode": "CO76RJ"
},
{
"SchoolName": "Dr Challoner's High School",
"Postcode": "HP79QB"
},
{
"SchoolName": "Kingston School",
"Postcode": "SS73HG"
},
{
"SchoolName": "Drayton Manor High School",
"Postcode": "W71EU"
},
{
"SchoolName": "Longfield Academy of Sport",
"Postcode": "DL30HT"
},
{
"SchoolName": "Falmouth School",
"Postcode": "TR114LH"
},
{
"SchoolName": "Mount Grace School",
"Postcode": "EN61EZ"
},
{
"SchoolName": "The Westwood Academy",
"Postcode": "CV48DY"
},
{
"SchoolName": "Great Berry Primary School",
"Postcode": "SS166SG"
},
{
"SchoolName": "Wilmington Grammar School for Boys",
"Postcode": "DA27DA"
},
{
"SchoolName": "Great Torrington School",
"Postcode": "EX387DJ"
},
{
"SchoolName": "Hounsdown School",
"Postcode": "SO409FT"
},
{
"SchoolName": "Kingdown School",
"Postcode": "BA129DR"
},
{
"SchoolName": "Light Hall School",
"Postcode": "B902PZ"
},
{
"SchoolName": "Ringmer Community College",
"Postcode": "BN85RB"
},
{
"SchoolName": "Sacred Heart of Mary Girls' School",
"Postcode": "RM142QR"
},
{
"SchoolName": "Staindrop School an Academy",
"Postcode": "DL23JU"
},
{
"SchoolName": "Stratford Girls' Grammar School",
"Postcode": "CV379HA"
},
{
"SchoolName": "Stratford Upon Avon School",
"Postcode": "CV379DH"
},
{
"SchoolName": "Thamesmead School",
"Postcode": "TW179EE"
},
{
"SchoolName": "Hammond Academy",
"Postcode": "HP25TD"
},
{
"SchoolName": "The Romsey School",
"Postcode": "SO518ZB"
},
{
"SchoolName": "The Sandon School",
"Postcode": "CM27AQ"
},
{
"SchoolName": "Thurstable School Sports College and Sixth Form Centre",
"Postcode": "CO50EW"
},
{
"SchoolName": "Valley Primary School",
"Postcode": "BR20DA"
},
{
"SchoolName": "West Kirby Grammar School",
"Postcode": "CH485DP"
},
{
"SchoolName": "Biggin Hill Primary School",
"Postcode": "TN163LY"
},
{
"SchoolName": "Hilltop Junior School",
"Postcode": "SS118LT"
},
{
"SchoolName": "The Robert Drake Primary School",
"Postcode": "SS73HT"
},
{
"SchoolName": "Jotmans Hall Primary School",
"Postcode": "SS75RG"
},
{
"SchoolName": "St Peter's School",
"Postcode": "PE297DD"
},
{
"SchoolName": "Alameda Middle School",
"Postcode": "MK452QR"
},
{
"SchoolName": "Wilmington Grammar School for Girls",
"Postcode": "DA27BB"
},
{
"SchoolName": "Appleby Grammar School",
"Postcode": "CA166XU"
},
{
"SchoolName": "William Howard School",
"Postcode": "CA81AR"
},
{
"SchoolName": "Caldew School",
"Postcode": "CA57NN"
},
{
"SchoolName": "Rowanfield Junior School",
"Postcode": "GL518HY"
},
{
"SchoolName": "<NAME>amsay School",
"Postcode": "HP157UB"
},
{
"SchoolName": "<NAME>'s Voluntary Aided Church of England Primary School",
"Postcode": "PL125EA"
},
{
"SchoolName": "<NAME> CofE Primary School",
"Postcode": "TR11BN"
},
{
"SchoolName": "Baylis Court School",
"Postcode": "SL13AH"
},
{
"SchoolName": "Chelmer Valley High School",
"Postcode": "CM17ER"
},
{
"SchoolName": "John Colet School",
"Postcode": "HP226HF"
},
{
"SchoolName": "Kepier",
"Postcode": "DH45BH"
},
{
"SchoolName": "Hazelwick School",
"Postcode": "RH101SX"
},
{
"SchoolName": "Lydiard Park Academy",
"Postcode": "SN56HN"
},
{
"SchoolName": "Kingsdown School",
"Postcode": "SN27SH"
},
{
"SchoolName": "Charlton Kings Junior School",
"Postcode": "GL538QE"
},
{
"SchoolName": "Ranelagh School",
"Postcode": "RG129DA"
},
{
"SchoolName": "Chadsmead Primary Academy",
"Postcode": "WS137HJ"
},
{
"SchoolName": "Settlebeck High School",
"Postcode": "LA105AL"
},
{
"SchoolName": "S<NAME>es School",
"Postcode": "AL54QP"
},
{
"SchoolName": "Bishops Cleeve Primary School",
"Postcode": "GL528NN"
},
{
"SchoolName": "Blue Coat Church of England School and Music College",
"Postcode": "CV12BA"
},
{
"SchoolName": "Tarbiyyah Primary School",
"Postcode": "UB34SA"
},
{
"SchoolName": "Bloxwich Academy",
"Postcode": "WS27NR"
},
{
"SchoolName": "Edstart",
"Postcode": "M66DW"
},
{
"SchoolName": "Dixons Kings Academy",
"Postcode": "BD72AN"
},
{
"SchoolName": "New Forest School",
"Postcode": "SO451FJ"
},
{
"SchoolName": "Chiltern Hills Academy",
"Postcode": "HP52RG"
},
{
"SchoolName": "All Saints Junior School",
"Postcode": "RG16NP"
},
{
"SchoolName": "University Academy Holbeach",
"Postcode": "PE127PU"
},
{
"SchoolName": "Christ The King Catholic Primary School",
"Postcode": "CV62DJ"
},
{
"SchoolName": "The Eastwood Academy",
"Postcode": "SS95UU"
},
{
"SchoolName": "The Blue School",
"Postcode": "BA52NR"
},
{
"SchoolName": "Montacute School",
"Postcode": "BH179NG"
},
{
"SchoolName": "Slough and Eton Church of England Business and Enterprise College",
"Postcode": "SL12PU"
},
{
"SchoolName": "Hitchin Girls' School",
"Postcode": "SG49RS"
},
{
"SchoolName": "Altrincham Grammar School for Girls",
"Postcode": "WA142NL"
},
{
"SchoolName": "Greenfield CofE VC Lower School",
"Postcode": "MK455ES"
},
{
"SchoolName": "Pulloxhill Lower School",
"Postcode": "MK455HN"
},
{
"SchoolName": "Somers Park Primary School",
"Postcode": "WR141SE"
},
{
"SchoolName": "Springhill Catholic Primary School",
"Postcode": "SO152HW"
},
{
"SchoolName": "The Crompton House Church of England Academy",
"Postcode": "OL27HS"
},
{
"SchoolName": "Corpus Christi Catholic Primary School",
"Postcode": "SW25BL"
},
{
"SchoolName": "Bishop Rawstorne Church of England Academy",
"Postcode": "PR269HH"
},
{
"SchoolName": "Birkdale High School",
"Postcode": "PR83DT"
},
{
"SchoolName": "Severn Vale School",
"Postcode": "GL24PR"
},
{
"SchoolName": "Richard Challoner School",
"Postcode": "KT35PE"
},
{
"SchoolName": "Priory Community School",
"Postcode": "BS226BP"
},
{
"SchoolName": "King Edward VI School",
"Postcode": "CV376BE"
},
{
"SchoolName": "Independent Jewish Day School",
"Postcode": "NW42AH"
},
{
"SchoolName": "Ilsham Church of England Academy",
"Postcode": "TQ12JQ"
},
{
"SchoolName": "St Ivo School",
"Postcode": "PE276RR"
},
{
"SchoolName": "Hessle High School and Penshurst Primary School",
"Postcode": "HU130JQ"
},
{
"SchoolName": "Malmesbury School",
"Postcode": "SN160DF"
},
{
"SchoolName": "The King David High School",
"Postcode": "M85DY"
},
{
"SchoolName": "St Thomas More High School",
"Postcode": "SS00BW"
},
{
"SchoolName": "St Mary's Church of England Junior School",
"Postcode": "NR152UY"
},
{
"SchoolName": "St Bernard's High School",
"Postcode": "SS07JS"
},
{
"SchoolName": "Sexey's School",
"Postcode": "BA100DF"
},
{
"SchoolName": "Woolmer Hill School",
"Postcode": "GU271QB"
},
{
"SchoolName": "Testwood School",
"Postcode": "SO403ZW"
},
{
"SchoolName": "Goole High School",
"Postcode": "DN146AN"
},
{
"SchoolName": "Stephenson Studio School",
"Postcode": "LE673TN"
},
{
"SchoolName": "Bnei Zion Community School",
"Postcode": "N166TJ"
},
{
"SchoolName": "Tuxford Academy",
"Postcode": "NG220JH"
},
{
"SchoolName": "Rainbow Primary School",
"Postcode": "BD50HD"
},
{
"SchoolName": "Felixstowe Academy",
"Postcode": "IP119QR"
},
{
"SchoolName": "Tameside Pupil Referral Service",
"Postcode": "SK164UJ"
},
{
"SchoolName": "Ark Atwood Primary Academy",
"Postcode": "W92JY"
},
{
"SchoolName": "The Linden Academy",
"Postcode": "LU13HJ"
},
{
"SchoolName": "St George's Preparatory School & Little Dragons Preschool",
"Postcode": "PE217HB"
},
{
"SchoolName": "Burnside Secondary PRU",
"Postcode": "E48YJ"
},
{
"SchoolName": "Ark Conway Primary Academy",
"Postcode": "W120QT"
},
{
"SchoolName": "CATS College London",
"Postcode": "WC1A2RA"
},
{
"SchoolName": "Chilworth House Upper School",
"Postcode": "OX331JP"
},
{
"SchoolName": "Auckley School",
"Postcode": "DN93JN"
},
{
"SchoolName": "The Corbet School Technology College",
"Postcode": "SY42AX"
},
{
"SchoolName": "Beech Hill School",
"Postcode": "HX15TN"
},
{
"SchoolName": "Cartmel Priory CofE School",
"Postcode": "LA117SA"
},
{
"SchoolName": "St Albans Girls' School",
"Postcode": "AL36DB"
},
{
"SchoolName": "Casterton College Rutland",
"Postcode": "PE94AT"
},
{
"SchoolName": "Scout Road Academy",
"Postcode": "HX75JR"
},
{
"SchoolName": "Garstang Community Academy",
"Postcode": "PR31YE"
},
{
"SchoolName": "Amersham School",
"Postcode": "HP79HH"
},
{
"SchoolName": "Royal Latin School",
"Postcode": "MK181AX"
},
{
"SchoolName": "Oaklands Catholic School",
"Postcode": "PO77BW"
},
{
"SchoolName": "Hillcrest School A Specialist Maths and Computing College and Sixth Form Centre",
"Postcode": "B323AE"
},
{
"SchoolName": "Salterlee Primary School",
"Postcode": "HX37AY"
},
{
"SchoolName": "Great Smeaton Academy Primary School",
"Postcode": "DL62EQ"
},
{
"SchoolName": "St Peter's Catholic Comprehensive School",
"Postcode": "BH64AH"
},
{
"SchoolName": "Hope Valley College",
"Postcode": "S336SD"
},
{
"SchoolName": "Summercroft Primary School",
"Postcode": "CM235BJ"
},
{
"SchoolName": "Shelley College",
"Postcode": "HD88NL"
},
{
"SchoolName": "The St Marylebone CofE School",
"Postcode": "W1U5BA"
},
{
"SchoolName": "Northgate School Arts College",
"Postcode": "NN26LR"
},
{
"SchoolName": "Waddesdon Church of England School",
"Postcode": "HP180LQ"
},
{
"SchoolName": "Biddulph High School",
"Postcode": "ST87AR"
},
{
"SchoolName": "Wallingford School",
"Postcode": "OX108HH"
},
{
"SchoolName": "Brooke Hill Academy",
"Postcode": "LE156HQ"
},
{
"SchoolName": "Westcliff Primary School",
"Postcode": "FY29BY"
},
{
"SchoolName": "Whickham School",
"Postcode": "NE165AR"
},
{
"SchoolName": "Whitefield School",
"Postcode": "NW21TR"
},
{
"SchoolName": "Norbridge Academy",
"Postcode": "S817HX"
},
{
"SchoolName": "Cambridge Park Academy",
"Postcode": "DN345EB"
},
{
"SchoolName": "Eastrop Infant School",
"Postcode": "SN67AP"
},
{
"SchoolName": "Wadebridge Primary Academy",
"Postcode": "PL276BL"
},
{
"SchoolName": "Limehurst Academy",
"Postcode": "LE111NH"
},
{
"SchoolName": "Hurstmere School",
"Postcode": "DA159AW"
},
{
"SchoolName": "Trinity School",
"Postcode": "CA11JB"
},
{
"SchoolName": "Medmerry Primary School",
"Postcode": "PO200QJ"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Devizes",
"Postcode": "SN101DD"
},
{
"SchoolName": "<NAME>",
"Postcode": "HP270DT"
},
{
"SchoolName": "St Dominic's Catholic Primary School",
"Postcode": "GL55HP"
},
{
"SchoolName": "The Totteridge Academy",
"Postcode": "N208AZ"
},
{
"SchoolName": "St Augustine's Catholic College",
"Postcode": "BA149EN"
},
{
"SchoolName": "The Thomas Aveling School",
"Postcode": "ME12UW"
},
{
"SchoolName": "Abbey College, Ramsey",
"Postcode": "PE261DG"
},
{
"SchoolName": "Ashingdon Primary Academy",
"Postcode": "SS43LN"
},
{
"SchoolName": "Harris Girls Academy Bromley",
"Postcode": "BR31QR"
},
{
"SchoolName": "Northumberland Heath Primary School",
"Postcode": "DA81JE"
},
{
"SchoolName": "Plumberow Primary School",
"Postcode": "SS55BX"
},
{
"SchoolName": "Wyedean School and 6th Form Centre",
"Postcode": "NP167AA"
},
{
"SchoolName": "Woodkirk Academy",
"Postcode": "WF31JQ"
},
{
"SchoolName": "Cannock Chase High School",
"Postcode": "WS111JT"
},
{
"SchoolName": "Get U Started Training",
"Postcode": "NE638SF"
},
{
"SchoolName": "Mill Hill County High School",
"Postcode": "NW74LL"
},
{
"SchoolName": "Dene Magna School",
"Postcode": "GL170DU"
},
{
"SchoolName": "Christ's College Finchley",
"Postcode": "N20SE"
},
{
"SchoolName": "Chatham Grammar School for Girls",
"Postcode": "ME57EH"
},
{
"SchoolName": "The Holly Hall Academy",
"Postcode": "DY12DU"
},
{
"SchoolName": "Burnley Road Academy",
"Postcode": "HX75DE"
},
{
"SchoolName": "Bolton Brow Primary Academy",
"Postcode": "HX62BA"
},
{
"SchoolName": "The New North Academy",
"Postcode": "N18SJ"
},
{
"SchoolName": "Humberston Park School",
"Postcode": "DN364HS"
},
{
"SchoolName": "Kents Hill Infant School",
"Postcode": "SS75PS"
},
{
"SchoolName": "Redden Court School",
"Postcode": "RM30TS"
},
{
"SchoolName": "Sheldwich Primary School",
"Postcode": "ME130LU"
},
{
"SchoolName": "Old Earth Primary School",
"Postcode": "HX59PL"
},
{
"SchoolName": "Castle Hall Academy Trust",
"Postcode": "WF149PH"
},
{
"SchoolName": "Yewlands Academy",
"Postcode": "S358NN"
},
{
"SchoolName": "Woodbrook Vale School",
"Postcode": "LE112ST"
},
{
"SchoolName": "St Mewan Community Primary School",
"Postcode": "PL267DP"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "PO144RP"
},
{
"SchoolName": "Westerings Primary Academy",
"Postcode": "SS54NZ"
},
{
"SchoolName": "Bishop Ramsey Church of England School",
"Postcode": "HA48EE"
},
{
"SchoolName": "Churchfields Academy",
"Postcode": "SN31ER"
},
{
"SchoolName": "The Becket School",
"Postcode": "NG27QY"
},
{
"SchoolName": "The Rosary Catholic Primary School",
"Postcode": "GL54AB"
},
{
"SchoolName": "The Holy Trinity Church of England Primary Academy",
"Postcode": "SN105TL"
},
{
"SchoolName": "Outwood Academy Ripon",
"Postcode": "HG42DE"
},
{
"SchoolName": "Harris Primary Academy Peckham Park",
"Postcode": "SE155TD"
},
{
"SchoolName": "Emerson Park Academy",
"Postcode": "RM113AD"
},
{
"SchoolName": "Kingstone and Thruxton Primary School",
"Postcode": "HR29HJ"
},
{
"SchoolName": "Warden Park School",
"Postcode": "RH175DP"
},
{
"SchoolName": "Peareswood Primary School",
"Postcode": "DA83PR"
},
{
"SchoolName": "The Ursuline Academy Ilford",
"Postcode": "IG14JU"
},
{
"SchoolName": "St Mary's Church of England Academy",
"Postcode": "IP287LR"
},
{
"SchoolName": "Accrington St Christopher's Church of England High School",
"Postcode": "BB54AY"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "GU113DD"
},
{
"SchoolName": "Chislehurst and Sidcup Grammar School",
"Postcode": "DA159AG"
},
{
"SchoolName": "Batley Girls High School",
"Postcode": "WF170LD"
},
{
"SchoolName": "Blessed Robert Widmerpool Catholic Primary and Nursery School",
"Postcode": "NG119BH"
},
{
"SchoolName": "Saint Edmund's Roman Catholic Primary School",
"Postcode": "SN119BX"
},
{
"SchoolName": "Bassingbourn Village College",
"Postcode": "SG85NJ"
},
{
"SchoolName": "St Edmund Campion Catholic Primary School",
"Postcode": "NG25NH"
},
{
"SchoolName": "Colne Community School and College",
"Postcode": "CO70QL"
},
{
"SchoolName": "Oasis Academy Johanna",
"Postcode": "SE17RH"
},
{
"SchoolName": "Cromer Academy",
"Postcode": "NR270EX"
},
{
"SchoolName": "Field Court Junior School",
"Postcode": "GL24UF"
},
{
"SchoolName": "Priory School",
"Postcode": "IP327BH"
},
{
"SchoolName": "Cottenham Village College",
"Postcode": "CB248UA"
},
{
"SchoolName": "The Avenue Special School",
"Postcode": "RG304BZ"
},
{
"SchoolName": "Formby High School",
"Postcode": "L373HW"
},
{
"SchoolName": "Enmore Church of England Primary School",
"Postcode": "TA52DX"
},
{
"SchoolName": "Rooks Nest Academy",
"Postcode": "WF13DX"
},
{
"SchoolName": "Our Lady & St Edward Primary & Nursery Catholic Voluntary Academy",
"Postcode": "NG32LG"
},
{
"SchoolName": "Cotham School",
"Postcode": "BS66DT"
},
{
"SchoolName": "Tidemill Academy",
"Postcode": "SE84RJ"
},
{
"SchoolName": "Clapton Girls' Academy",
"Postcode": "E50RB"
},
{
"SchoolName": "Warren Primary Academy",
"Postcode": "NG59PJ"
},
{
"SchoolName": "Rastrick High School",
"Postcode": "HD63XB"
},
{
"SchoolName": "Passmores Academy",
"Postcode": "CM186JH"
},
{
"SchoolName": "Adams' Grammar School",
"Postcode": "TF107BD"
},
{
"SchoolName": "<NAME>'s Hospital School",
"Postcode": "LN24PN"
},
{
"SchoolName": "<NAME> High School",
"Postcode": "M298JN"
},
{
"SchoolName": "Holmes Chapel Comprehensive School",
"Postcode": "CW47DX"
},
{
"SchoolName": "Lacey Green Primary Academy",
"Postcode": "SK94DP"
},
{
"SchoolName": "Westgate Academy",
"Postcode": "LN13BQ"
},
{
"SchoolName": "Bournemouth School",
"Postcode": "BH89PY"
},
{
"SchoolName": "The Vale Academy",
"Postcode": "DN208AR"
},
{
"SchoolName": "Stockland Church of England Primary Academy",
"Postcode": "EX149EF"
},
{
"SchoolName": "Pheasant Bank Academy",
"Postcode": "DN110PQ"
},
{
"SchoolName": "St Clere's School",
"Postcode": "SS170NW"
},
{
"SchoolName": "Cramlington Learning Village",
"Postcode": "NE236BN"
},
{
"SchoolName": "Brockhill Park Performing Arts College",
"Postcode": "CT214HL"
},
{
"SchoolName": "The Ashley School Academy Trust",
"Postcode": "NR324EU"
},
{
"SchoolName": "Southfield Junior School",
"Postcode": "SN67BZ"
},
{
"SchoolName": "Wymondham High Academy",
"Postcode": "NR180QT"
},
{
"SchoolName": "Cedars Upper School",
"Postcode": "LU72AE"
},
{
"SchoolName": "Redby Academy",
"Postcode": "SR69QP"
},
{
"SchoolName": "<NAME>gift Academy",
"Postcode": "DN379EH"
},
{
"SchoolName": "St Bartholomew's School",
"Postcode": "RG146JP"
},
{
"SchoolName": "Ludgvan School",
"Postcode": "TR208EX"
},
{
"SchoolName": "Lynsted and Norton Primary School",
"Postcode": "ME90RL"
},
{
"SchoolName": "St Ives Infant School",
"Postcode": "TR261DH"
},
{
"SchoolName": "St John's School",
"Postcode": "MK428AA"
},
{
"SchoolName": "The Springfields Academy",
"Postcode": "SN110DS"
},
{
"SchoolName": "Bamford Academy",
"Postcode": "OL115PS"
},
{
"SchoolName": "Don Valley Academy and Performing Arts College",
"Postcode": "DN59DD"
},
{
"SchoolName": "Corelli College",
"Postcode": "SE38EP"
},
{
"SchoolName": "Barton Court Grammar School",
"Postcode": "CT11PH"
},
{
"SchoolName": "Hinchingbrooke School",
"Postcode": "PE293BN"
},
{
"SchoolName": "Wirral Grammar School for Boys",
"Postcode": "CH633AQ"
},
{
"SchoolName": "Field Court Church of England Infant Academy",
"Postcode": "GL24UF"
},
{
"SchoolName": "Pencalenick School",
"Postcode": "TR11TE"
},
{
"SchoolName": "Oasis Academy Limeside",
"Postcode": "OL83SB"
},
{
"SchoolName": "Southwark Primary School",
"Postcode": "NG60DT"
},
{
"SchoolName": "Selling Church of England Primary School",
"Postcode": "ME139RQ"
},
{
"SchoolName": "Grange Lane Infant Academy",
"Postcode": "DN110QY"
},
{
"SchoolName": "Milstead and Frinsted Church of England Primary School",
"Postcode": "ME90SJ"
},
{
"SchoolName": "Homewood School and Sixth Form Centre",
"Postcode": "TN306LT"
},
{
"SchoolName": "Hadleigh Junior School",
"Postcode": "SS72DQ"
},
{
"SchoolName": "Batley Grammar School",
"Postcode": "WF170AD"
},
{
"SchoolName": "The Priors School",
"Postcode": "CV477RR"
},
{
"SchoolName": "Sandbach School",
"Postcode": "CW113NS"
},
{
"SchoolName": "Nishkam Primary School Birmingham",
"Postcode": "B219SN"
},
{
"SchoolName": "Fosse Way School",
"Postcode": "BA33AL"
},
{
"SchoolName": "<NAME>",
"Postcode": "BD100TD"
},
{
"SchoolName": "Maharishi Free School",
"Postcode": "L406JJ"
},
{
"SchoolName": "Moor End Academy",
"Postcode": "HD45JA"
},
{
"SchoolName": "Peninim",
"Postcode": "NW42NL"
},
{
"SchoolName": "Calder Valley Steiner School",
"Postcode": "HX75TF"
},
{
"SchoolName": "<NAME>",
"Postcode": "N165RS"
},
{
"SchoolName": "Wandle Valley School",
"Postcode": "SM51LW"
},
{
"SchoolName": "Priory Hurworth House",
"Postcode": "DL22AD"
},
{
"SchoolName": "Belthorn Academy Primary School",
"Postcode": "BB12NY"
},
{
"SchoolName": "Broughton Primary School",
"Postcode": "CA130YT"
},
{
"SchoolName": "Chesterfield High School",
"Postcode": "L239YB"
},
{
"SchoolName": "Colchester County High School for Girls",
"Postcode": "CO33US"
},
{
"SchoolName": "Great Chesterford Church of England Primary Academy",
"Postcode": "CB101NN"
},
{
"SchoolName": "Harrowbarrow School",
"Postcode": "PL178BQ"
},
{
"SchoolName": "Henleaze Junior School",
"Postcode": "BS94LG"
},
{
"SchoolName": "Lindley Junior School",
"Postcode": "HD33LY"
},
{
"SchoolName": "Maghull High School",
"Postcode": "L317AW"
},
{
"SchoolName": "The Brooksbank School",
"Postcode": "HX50QG"
},
{
"SchoolName": "Wootton Upper School",
"Postcode": "MK439HT"
},
{
"SchoolName": "Wellsway School",
"Postcode": "BS311PH"
},
{
"SchoolName": "<NAME> Academy",
"Postcode": "NG71SJ"
},
{
"SchoolName": "St Ann's Well Academy",
"Postcode": "NG33PQ"
},
{
"SchoolName": "Melbourn Village College",
"Postcode": "SG86EF"
},
{
"SchoolName": "Rydon Primary School",
"Postcode": "TQ123LP"
},
{
"SchoolName": "Smarden Primary School",
"Postcode": "TN278ND"
},
{
"SchoolName": "Alexandra Park School",
"Postcode": "N112AZ"
},
{
"SchoolName": "Goffs School",
"Postcode": "EN75QW"
},
{
"SchoolName": "Deyes High School",
"Postcode": "L316DE"
},
{
"SchoolName": "Amery Hill School",
"Postcode": "GU342BZ"
},
{
"SchoolName": "Arnold Hill Academy",
"Postcode": "NG56NZ"
},
{
"SchoolName": "<NAME>wood CofE Primary School",
"Postcode": "LA61ND"
},
{
"SchoolName": "Cams Hill School",
"Postcode": "PO168AH"
},
{
"SchoolName": "Hasmonean High School",
"Postcode": "NW41NA"
},
{
"SchoolName": "The Kibworth School",
"Postcode": "LE80LG"
},
{
"SchoolName": "Lynn Grove Academy",
"Postcode": "NR318AP"
},
{
"SchoolName": "Mellor Primary School",
"Postcode": "SK65PL"
},
{
"SchoolName": "Pennine Way Junior Academy",
"Postcode": "DE119EY"
},
{
"SchoolName": "Stisted Church of England Primary Academy",
"Postcode": "CM778AN"
},
{
"SchoolName": "St John's (CofE) Primary Academy, Clifton",
"Postcode": "HD64HP"
},
{
"SchoolName": "Twyford Church of England High School",
"Postcode": "W39PP"
},
{
"SchoolName": "Witchford Village College",
"Postcode": "CB62JA"
},
{
"SchoolName": "Writhlington School",
"Postcode": "BA33NQ"
},
{
"SchoolName": "Harris Academy Chafford Hundred",
"Postcode": "RM166SA"
},
{
"SchoolName": "Huntingdon Academy",
"Postcode": "NG34AY"
},
{
"SchoolName": "Mount Street Academy",
"Postcode": "LN13JG"
},
{
"SchoolName": "Stewards Academy - Science Specialist, Harlow",
"Postcode": "CM187NQ"
},
{
"SchoolName": "The Weston Road Academy",
"Postcode": "ST180YG"
},
{
"SchoolName": "Thriftwood School",
"Postcode": "CM28RW"
},
{
"SchoolName": "Eversholt Lower School",
"Postcode": "MK179DU"
},
{
"SchoolName": "Broadoak Primary School",
"Postcode": "M270EP"
},
{
"SchoolName": "Highams Park School",
"Postcode": "E49PJ"
},
{
"SchoolName": "Redstone Educational Academy",
"Postcode": "B129AN"
},
{
"SchoolName": "The Imam Muhammad Adam Institute Secondary School",
"Postcode": "LE55AY"
},
{
"SchoolName": "Ocean Lodge Independent School",
"Postcode": "SS07PU"
},
{
"SchoolName": "Belleville Primary School",
"Postcode": "SW116PR"
},
{
"SchoolName": "Burnham Grammar School",
"Postcode": "SL17HG"
},
{
"SchoolName": "William Alvey School",
"Postcode": "NG347EA"
},
{
"SchoolName": "William Tyndale Primary School",
"Postcode": "N12GG"
},
{
"SchoolName": "Croydon Metropolitan College",
"Postcode": "CR01DN"
},
{
"SchoolName": "Oak Tree High",
"Postcode": "S48DG"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "W30DY"
},
{
"SchoolName": "Buckingham Park Church of England Primary School",
"Postcode": "HP199DZ"
},
{
"SchoolName": "Black Country Wheels School",
"Postcode": "DY97ND"
},
{
"SchoolName": "Bourne Academy",
"Postcode": "PE109DT"
},
{
"SchoolName": "Unity School",
"Postcode": "ST14EU"
},
{
"SchoolName": "Lime Tree Primary School",
"Postcode": "KT66DG"
},
{
"SchoolName": "The Samuel Lister Academy",
"Postcode": "BD161TZ"
},
{
"SchoolName": "The Farnley Academy",
"Postcode": "LS125EU"
},
{
"SchoolName": "Ark Kings Academy",
"Postcode": "B389DE"
},
{
"SchoolName": "The Ebbsfleet Academy",
"Postcode": "DA100BZ"
},
{
"SchoolName": "University of Chester Academy Northwich",
"Postcode": "CW97DT"
},
{
"SchoolName": "LPW Independent School",
"Postcode": "BS34AG"
},
{
"SchoolName": "The Centre School",
"Postcode": "CB248UA"
},
{
"SchoolName": "Epsom and Ewell High School",
"Postcode": "KT199JW"
},
{
"SchoolName": "Sheffield Inclusion Centre",
"Postcode": "S22JQ"
},
{
"SchoolName": "Values Academy",
"Postcode": "CV108JX"
},
{
"SchoolName": "Berwick Academy",
"Postcode": "TD152JF"
},
{
"SchoolName": "Bourne Westfield Primary Academy",
"Postcode": "PE109QS"
},
{
"SchoolName": "Stamford Welland Academy",
"Postcode": "PE91HE"
},
{
"SchoolName": "Cheetham CofE Community Academy",
"Postcode": "M89FR"
},
{
"SchoolName": "Dearham Primary School",
"Postcode": "CA157HR"
},
{
"SchoolName": "Ridgewood School",
"Postcode": "DN57UB"
},
{
"SchoolName": "Greenbank High School",
"Postcode": "PR82LT"
},
{
"SchoolName": "Dove House School",
"Postcode": "RG215SU"
},
{
"SchoolName": "Heanor Gate Science College",
"Postcode": "DE757RA"
},
{
"SchoolName": "The Tyrrells School",
"Postcode": "CM16JN"
},
{
"SchoolName": "<NAME>' School",
"Postcode": "HR53AR"
},
{
"SchoolName": "Saint George's Church of England School",
"Postcode": "DA117LS"
},
{
"SchoolName": "St Leonard's Church of England Primary Academy, Blunsdon",
"Postcode": "SN267AP"
},
{
"SchoolName": "Lisle Marsden Church of England Primary Academy",
"Postcode": "DN320DF"
},
{
"SchoolName": "Range High School",
"Postcode": "L372YN"
},
{
"SchoolName": "Manor School Sports College",
"Postcode": "NN96PA"
},
{
"SchoolName": "Moulton School and Science College",
"Postcode": "NN37SD"
},
{
"SchoolName": "Maidstone, St John's Church of England Primary School",
"Postcode": "ME145TZ"
},
{
"SchoolName": "Nansloe Academy",
"Postcode": "TR138JF"
},
{
"SchoolName": "John Ferneley College",
"Postcode": "LE131LH"
},
{
"SchoolName": "Springwest Academy",
"Postcode": "TW137EF"
},
{
"SchoolName": "Philip Morant School and College",
"Postcode": "CO34QS"
},
{
"SchoolName": "Colebrook Infant Academy",
"Postcode": "SN34AS"
},
{
"SchoolName": "Sheringham High School",
"Postcode": "NR268ND"
},
{
"SchoolName": "Carmel College",
"Postcode": "DL38RW"
},
{
"SchoolName": "St Merryn School",
"Postcode": "PL288NP"
},
{
"SchoolName": "Brockhampton Primary School",
"Postcode": "WR65TD"
},
{
"SchoolName": "The Chase",
"Postcode": "WR143NZ"
},
{
"SchoolName": "Bourn CofE Primary Academy",
"Postcode": "CB232SP"
},
{
"SchoolName": "St Bede's Catholic College",
"Postcode": "BS110SU"
},
{
"SchoolName": "The Joseph Whitaker School",
"Postcode": "NG210AG"
},
{
"SchoolName": "Rowena Academy",
"Postcode": "DN123JY"
},
{
"SchoolName": "Walderslade Girls' School",
"Postcode": "ME50LE"
},
{
"SchoolName": "Kents Hill Junior School",
"Postcode": "SS75PS"
},
{
"SchoolName": "Etonbury Academy",
"Postcode": "SG156XS"
},
{
"SchoolName": "Bishopshalt School",
"Postcode": "UB83RF"
},
{
"SchoolName": "Churchdown School",
"Postcode": "GL32RB"
},
{
"SchoolName": "Vyners School",
"Postcode": "UB108AB"
},
{
"SchoolName": "Brooklands Middle School",
"Postcode": "LU73PF"
},
{
"SchoolName": "Birchwood High School",
"Postcode": "CM235BD"
},
{
"SchoolName": "Consett Academy",
"Postcode": "DH86LZ"
},
{
"SchoolName": "Buckden CofE Primary School",
"Postcode": "PE195TT"
},
{
"SchoolName": "Rawlins Academy",
"Postcode": "LE128DY"
},
{
"SchoolName": "Clayton-le-Moors All Saints Church of England Primary School",
"Postcode": "BB55HT"
},
{
"SchoolName": "Lady Seaward's Church of England Primary School",
"Postcode": "EX30RE"
},
{
"SchoolName": "Gawthorpe Community Academy",
"Postcode": "WF59QP"
},
{
"SchoolName": "Orchard Vale Community School",
"Postcode": "EX328QY"
},
{
"SchoolName": "Hendon School",
"Postcode": "NW42HP"
},
{
"SchoolName": "<NAME>",
"Postcode": "NW80NL"
},
{
"SchoolName": "South Brent Primary School",
"Postcode": "TQ109JN"
},
{
"SchoolName": "Redriff Primary School",
"Postcode": "SE165LQ"
},
{
"SchoolName": "Sidbury Church of England Primary School",
"Postcode": "EX100SB"
},
{
"SchoolName": "The John Bentley School",
"Postcode": "SN118YH"
},
{
"SchoolName": "Sampford Peverell Church of England Primary School",
"Postcode": "EX167BR"
},
{
"SchoolName": "The Willows School",
"Postcode": "UB49QB"
},
{
"SchoolName": "Castle Carrock School",
"Postcode": "CA89LU"
},
{
"SchoolName": "Hemyock Primary School",
"Postcode": "EX153RY"
},
{
"SchoolName": "The Freeston Academy",
"Postcode": "WF61HZ"
},
{
"SchoolName": "Meridian School",
"Postcode": "SG87JH"
},
{
"SchoolName": "Roysia Middle School",
"Postcode": "SG85EQ"
},
{
"SchoolName": "The Greneway School",
"Postcode": "SG87JF"
},
{
"SchoolName": "Wilcombe Primary School",
"Postcode": "EX164AL"
},
{
"SchoolName": "Joydens Wood Infant School",
"Postcode": "DA52JD"
},
{
"SchoolName": "Joydens Wood Junior School",
"Postcode": "DA27NE"
},
{
"SchoolName": "Salcombe Church of England Primary School",
"Postcode": "TQ88AG"
},
{
"SchoolName": "Wilmington Primary School",
"Postcode": "DA27DF"
},
{
"SchoolName": "Newton Ferrers Church of England Primary School",
"Postcode": "PL81AS"
},
{
"SchoolName": "Blackpool Church of England Primary School",
"Postcode": "TQ126JB"
},
{
"SchoolName": "Chudleigh Knighton Church of England Primary School",
"Postcode": "TQ130EU"
},
{
"SchoolName": "Kesteven and Sleaford High School Selective Academy",
"Postcode": "NG347RS"
},
{
"SchoolName": "Educational Excellence and Wellbeing",
"Postcode": "CR01ND"
},
{
"SchoolName": "Ormiston Forge Academy",
"Postcode": "B646QU"
},
{
"SchoolName": "Ormiston Endeavour Academy",
"Postcode": "IP16SG"
},
{
"SchoolName": "King's Leadership Academy, Liverpool",
"Postcode": "L89SJ"
},
{
"SchoolName": "Hawkswood",
"Postcode": "E47RT"
},
{
"SchoolName": "The Hollyfield School and Sixth Form Centre",
"Postcode": "KT64TU"
},
{
"SchoolName": "Icknield High School",
"Postcode": "LU32AH"
},
{
"SchoolName": "Malcolm Sargent Primary School",
"Postcode": "PE92SR"
},
{
"SchoolName": "St Catherine's Catholic School",
"Postcode": "DA67QJ"
},
{
"SchoolName": "Sir William Burrough Primary School",
"Postcode": "E147PQ"
},
{
"SchoolName": "Crofton Junior School",
"Postcode": "BR51EL"
},
{
"SchoolName": "The Dorcan Academy",
"Postcode": "SN35DA"
},
{
"SchoolName": "Kingsbury High School",
"Postcode": "NW99JR"
},
{
"SchoolName": "Arnside National CofE School",
"Postcode": "LA50DW"
},
{
"SchoolName": "Sittingbourne Community College",
"Postcode": "ME104NL"
},
{
"SchoolName": "E-ACT Blackley Academy",
"Postcode": "M90RD"
},
{
"SchoolName": "Millbrook Academy",
"Postcode": "GL34QF"
},
{
"SchoolName": "Bilton School",
"Postcode": "CV227JT"
},
{
"SchoolName": "Forest Academy",
"Postcode": "IG63TN"
},
{
"SchoolName": "Bransgore Church of England Primary School",
"Postcode": "BH238JH"
},
{
"SchoolName": "Burnt Mill Academy",
"Postcode": "CM202NR"
},
{
"SchoolName": "Cox Green School",
"Postcode": "SL63AX"
},
{
"SchoolName": "Framwellgate School Durham",
"Postcode": "DH15BQ"
},
{
"SchoolName": "Coppice Primary School",
"Postcode": "B475JN"
},
{
"SchoolName": "Hutton All Saints' Church of England Primary School",
"Postcode": "CM131JW"
},
{
"SchoolName": "Luddendenfoot Academy",
"Postcode": "HX26AU"
},
{
"SchoolName": "Ilminster Avenue E-ACT Academy",
"Postcode": "BS41BX"
},
{
"SchoolName": "Oldbury Academy",
"Postcode": "B688NE"
},
{
"SchoolName": "St John's School & Sixth Form College - A Catholic Academy",
"Postcode": "DL146JT"
},
{
"SchoolName": "Queen Elizabeth Humanities College",
"Postcode": "HR74QS"
},
{
"SchoolName": "Otley Prince Henry's Grammar School Specialist Language College",
"Postcode": "LS212BB"
},
{
"SchoolName": "The High Arcal School",
"Postcode": "DY31BP"
},
{
"SchoolName": "Willenhall E-ACT Academy",
"Postcode": "WV124BD"
},
{
"SchoolName": "The Streetly Academy",
"Postcode": "B742EX"
},
{
"SchoolName": "Sacred Heart Catholic High School",
"Postcode": "NE49YH"
},
{
"SchoolName": "Herschel Grammar School",
"Postcode": "SL13BW"
},
{
"SchoolName": "Anglo European School",
"Postcode": "CM40DJ"
},
{
"SchoolName": "Chiddingstone Church of England School",
"Postcode": "TN87AH"
},
{
"SchoolName": "Featherstone High School",
"Postcode": "UB25HF"
},
{
"SchoolName": "Heath Park",
"Postcode": "WV111RD"
},
{
"SchoolName": "Holmer CofE Academy",
"Postcode": "HR49RX"
},
{
"SchoolName": "Littletown Primary Academy",
"Postcode": "EX142EG"
},
{
"SchoolName": "Shoeburyness High School",
"Postcode": "SS39LL"
},
{
"SchoolName": "St Thomas More Roman Catholic Academy",
"Postcode": "NE298LF"
},
{
"SchoolName": "The Beacon School",
"Postcode": "SM71AG"
},
{
"SchoolName": "Rosebery School",
"Postcode": "KT187NQ"
},
{
"SchoolName": "South Ossett Infant Academy",
"Postcode": "WF50BE"
},
{
"SchoolName": "Cranbrook School",
"Postcode": "TN173JD"
},
{
"SchoolName": "Furze Platt Senior School",
"Postcode": "SL67NQ"
},
{
"SchoolName": "Selwood Academy",
"Postcode": "BA112EF"
},
{
"SchoolName": "South Axholme Academy",
"Postcode": "DN91BY"
},
{
"SchoolName": "The Wickford Church of England School",
"Postcode": "SS118HE"
},
{
"SchoolName": "Woodside High School",
"Postcode": "N225QJ"
},
{
"SchoolName": "The King Edward VI Academy",
"Postcode": "NE611DN"
},
{
"SchoolName": "Morpeth Chantry Middle School",
"Postcode": "NE611RQ"
},
{
"SchoolName": "Morpeth Newminster Middle School",
"Postcode": "NE611RH"
},
{
"SchoolName": "Queen Elizabeth's Academy",
"Postcode": "NG197AP"
},
{
"SchoolName": "The Connected Hub",
"Postcode": "BN17GU"
},
{
"SchoolName": "The Rubicon Centre",
"Postcode": "YO84AN"
},
{
"SchoolName": "Tewkesbury School",
"Postcode": "GL208DF"
},
{
"SchoolName": "Bradley Stoke Community School",
"Postcode": "BS329BS"
},
{
"SchoolName": "Norbury Manor Business and Enterprise College for Girls",
"Postcode": "CR78BT"
},
{
"SchoolName": "Brixham College",
"Postcode": "TQ59HF"
},
{
"SchoolName": "The Firs Lower School",
"Postcode": "MK452QR"
},
{
"SchoolName": "Bishop's Hatfield Girls' School",
"Postcode": "AL108NL"
},
{
"SchoolName": "Biscovey Academy",
"Postcode": "PL242DB"
},
{
"SchoolName": "The Axholme Academy",
"Postcode": "DN174HU"
},
{
"SchoolName": "Waltham Leas Primary Academy",
"Postcode": "DN370NU"
},
{
"SchoolName": "New Waltham Academy",
"Postcode": "DN364NH"
},
{
"SchoolName": "West Town Lane Academy",
"Postcode": "BS45DT"
},
{
"SchoolName": "The Brunts Academy",
"Postcode": "NG182AT"
},
{
"SchoolName": "Cathedral Academy",
"Postcode": "WF28QF"
},
{
"SchoolName": "Conisbrough Ivanhoe Primary Academy",
"Postcode": "DN123LR"
},
{
"SchoolName": "Campion School",
"Postcode": "CV311QH"
},
{
"SchoolName": "Higham Lane School",
"Postcode": "CV100BJ"
},
{
"SchoolName": "Tarleton Academy",
"Postcode": "PR46AQ"
},
{
"SchoolName": "Townley Grammar School",
"Postcode": "DA67AB"
},
{
"SchoolName": "Aylesford School and Sixth Form College",
"Postcode": "CV346XR"
},
{
"SchoolName": "Etone College",
"Postcode": "CV116AA"
},
{
"SchoolName": "Shirley High School Performing Arts College",
"Postcode": "CR05EF"
},
{
"SchoolName": "The Kingswinford School & Science College",
"Postcode": "DY67AD"
},
{
"SchoolName": "The Gerrards Cross CofE School",
"Postcode": "SL98BD"
},
{
"SchoolName": "Horsforth School",
"Postcode": "LS185RF"
},
{
"SchoolName": "Bickleigh on Exe Church of England Primary School",
"Postcode": "EX168RE"
},
{
"SchoolName": "Denefield School",
"Postcode": "RG316XY"
},
{
"SchoolName": "Hadrian Academy",
"Postcode": "LU54SR"
},
{
"SchoolName": "Lapford Community Primary School",
"Postcode": "EX176QE"
},
{
"SchoolName": "Ash Green School",
"Postcode": "CV79AH"
},
{
"SchoolName": "The Regis School",
"Postcode": "PO215LH"
},
{
"SchoolName": "Lowton Church of England High School",
"Postcode": "WA31DU"
},
{
"SchoolName": "Unity Girls High School",
"Postcode": "NW97DY"
},
{
"SchoolName": "Prism Independent School",
"Postcode": "BD89ES"
},
{
"SchoolName": "Sycamore Academy",
"Postcode": "NG34QP"
},
{
"SchoolName": "Scartho Junior Academy",
"Postcode": "DN332DH"
},
{
"SchoolName": "Datchet St Mary's CofE Primary School",
"Postcode": "SL39EJ"
},
{
"SchoolName": "Green Spring Academy Shoreditch",
"Postcode": "E26NW"
},
{
"SchoolName": "Plume School",
"Postcode": "CM96AB"
},
{
"SchoolName": "Bay House School",
"Postcode": "PO122QP"
},
{
"SchoolName": "Onslow St Audrey's School",
"Postcode": "AL108AB"
},
{
"SchoolName": "Bourne Grammar School",
"Postcode": "PE109JE"
},
{
"SchoolName": "Bracebridge Heath St John's Primary Academy",
"Postcode": "LN42LD"
},
{
"SchoolName": "Sallygate School",
"Postcode": "CT170RX"
},
{
"SchoolName": "Selly Oak Nursery School",
"Postcode": "B296BP"
},
{
"SchoolName": "Park Hall Junior Academy",
"Postcode": "WS53HF"
},
{
"SchoolName": "Bluecoat Academy",
"Postcode": "NG85GY"
},
{
"SchoolName": "Humphrey Perkins School",
"Postcode": "LE128JU"
},
{
"SchoolName": "Borden Grammar School",
"Postcode": "ME104DB"
},
{
"SchoolName": "Trinity CofE High School",
"Postcode": "M156HP"
},
{
"SchoolName": "La Chouette School",
"Postcode": "W52PJ"
},
{
"SchoolName": "Repton Manor Primary School",
"Postcode": "TN233RX"
},
{
"SchoolName": "Leaways School",
"Postcode": "E59NZ"
},
{
"SchoolName": "Wiznitz Cheder School",
"Postcode": "N166QT"
},
{
"SchoolName": "Brierley Forest Primary and Nursery School",
"Postcode": "NG172HT"
},
{
"SchoolName": "East Ravendale CofE Primary School Academy",
"Postcode": "DN370RX"
},
{
"SchoolName": "The Earls High School",
"Postcode": "B633SL"
},
{
"SchoolName": "Hartsholme Academy",
"Postcode": "LN60DE"
},
{
"SchoolName": "Colchester Royal Grammar School",
"Postcode": "CO33ND"
},
{
"SchoolName": "Weatherhead High School",
"Postcode": "CH443HS"
},
{
"SchoolName": "Rann Horizon School",
"Postcode": "SW47JR"
},
{
"SchoolName": "City United Academy (CUA)",
"Postcode": "B67SS"
},
{
"SchoolName": "The Parks",
"Postcode": "WA33PU"
},
{
"SchoolName": "Westwood High",
"Postcode": "OL96HR"
},
{
"SchoolName": "R<NAME>",
"Postcode": "S625AF"
},
{
"SchoolName": "Lickhill Primary School",
"Postcode": "DY138UA"
},
{
"SchoolName": "Impington Village College",
"Postcode": "CB249LX"
},
{
"SchoolName": "<NAME>'s Girls' School",
"Postcode": "SP11RD"
},
{
"SchoolName": "The Martin High School Anstey",
"Postcode": "LE77EB"
},
{
"SchoolName": "Northwood School",
"Postcode": "HA61QN"
},
{
"SchoolName": "Joseph Leckie Academy",
"Postcode": "WS54PG"
},
{
"SchoolName": "Benedict Biscop Church of England Academy",
"Postcode": "SR32RE"
},
{
"SchoolName": "Huntcliff School",
"Postcode": "DN214NN"
},
{
"SchoolName": "The Maplesden Noakes School",
"Postcode": "ME160TJ"
},
{
"SchoolName": "Mayfield Grammar School, Gravesend",
"Postcode": "DA110JE"
},
{
"SchoolName": "Wentworth Primary School",
"Postcode": "DA13NG"
},
{
"SchoolName": "The Folkestone School for Girls",
"Postcode": "CT203RB"
},
{
"SchoolName": "Thomas Wolsey School",
"Postcode": "IP16SG"
},
{
"SchoolName": "Looe Community Academy",
"Postcode": "PL131NQ"
},
{
"SchoolName": "Broadoak Mathematics and Computing College",
"Postcode": "BS234NP"
},
{
"SchoolName": "Hall Cross Academy",
"Postcode": "DN12HY"
},
{
"SchoolName": "Cheadle Hulme High School",
"Postcode": "SK87JY"
},
{
"SchoolName": "Barnhill Community High School",
"Postcode": "UB49LE"
},
{
"SchoolName": "Oakhill Primary Academy",
"Postcode": "S715AG"
},
{
"SchoolName": "Stanborough School",
"Postcode": "AL86YR"
},
{
"SchoolName": "Coombe Girls' School",
"Postcode": "KT33TU"
},
{
"SchoolName": "St Alban's Catholic High School",
"Postcode": "IP43NJ"
},
{
"SchoolName": "Goldsworth Primary School",
"Postcode": "GU216NL"
},
{
"SchoolName": "St Thomas More Catholic School",
"Postcode": "NE214BQ"
},
{
"SchoolName": "Cardinal Hume Catholic School",
"Postcode": "NE96RZ"
},
{
"SchoolName": "Cranfield Church of England Academy",
"Postcode": "MK430DR"
},
{
"SchoolName": "Gretton Primary School",
"Postcode": "GL545EY"
},
{
"SchoolName": "Hinchley Wood School",
"Postcode": "KT100AQ"
},
{
"SchoolName": "St Agatha's Catholic Primary School",
"Postcode": "KT25TY"
},
{
"SchoolName": "Quarrydale Academy",
"Postcode": "NG172DU"
},
{
"SchoolName": "Hall Green School",
"Postcode": "B280AA"
},
{
"SchoolName": "Coombe Boys' School",
"Postcode": "KT36NU"
},
{
"SchoolName": "Great Corby Primary School",
"Postcode": "CA48NE"
},
{
"SchoolName": "Little Reddings Primary School",
"Postcode": "WD233PR"
},
{
"SchoolName": "The E-Act Burnham Park Academy",
"Postcode": "SL17LZ"
},
{
"SchoolName": "St Barnabas CofE Primary Academy",
"Postcode": "M112JX"
},
{
"SchoolName": "Thomas Clarkson Academy",
"Postcode": "PE132SE"
},
{
"SchoolName": "Salendine Nook Academy Trust",
"Postcode": "HD34GN"
},
{
"SchoolName": "St Mary's Church of England Primary School, Barnsley",
"Postcode": "S752DF"
},
{
"SchoolName": "Graveney Primary School",
"Postcode": "ME139DU"
},
{
"SchoolName": "Bushey Meads School",
"Postcode": "WD234PA"
},
{
"SchoolName": "The Deepings School",
"Postcode": "PE68NF"
},
{
"SchoolName": "The Boswells School",
"Postcode": "CM16LY"
},
{
"SchoolName": "Kingsley School",
"Postcode": "NN155DP"
},
{
"SchoolName": "Old Priory Junior Academy",
"Postcode": "PL71QN"
},
{
"SchoolName": "Shenfield High School",
"Postcode": "CM158RY"
},
{
"SchoolName": "Chenderit School",
"Postcode": "OX172QR"
},
{
"SchoolName": "Gamlingay Village College",
"Postcode": "SG193HD"
},
{
"SchoolName": "Stanground Academy",
"Postcode": "PE73BY"
},
{
"SchoolName": "Oaks Primary Academy",
"Postcode": "ME159AX"
},
{
"SchoolName": "Tree Tops Primary Academy",
"Postcode": "ME159EZ"
},
{
"SchoolName": "Milestone Academy",
"Postcode": "DA38JZ"
},
{
"SchoolName": "Clevedon School",
"Postcode": "BS216AH"
},
{
"SchoolName": "Reddish Vale Technology College",
"Postcode": "SK57HD"
},
{
"SchoolName": "Stratton Upper School",
"Postcode": "SG188JB"
},
{
"SchoolName": "Music Stuff",
"Postcode": "M112NA"
},
{
"SchoolName": "Rudston Primary School",
"Postcode": "L164PQ"
},
{
"SchoolName": "Limespring School",
"Postcode": "N29PJ"
},
{
"SchoolName": "Phoenix U16",
"Postcode": "ST14AF"
},
{
"SchoolName": "The John Henry Newman Catholic School",
"Postcode": "SG14AE"
},
{
"SchoolName": "Weatherfield Academy",
"Postcode": "LU61AF"
},
{
"SchoolName": "Redhill Primary School",
"Postcode": "DE723SF"
},
{
"SchoolName": "Joseph Swan Academy",
"Postcode": "NE96LE"
},
{
"SchoolName": "Hungerhill School",
"Postcode": "DN32JY"
},
{
"SchoolName": "St Cuthbert's High School",
"Postcode": "NE157PX"
},
{
"SchoolName": "Stradbroke High School",
"Postcode": "IP215JN"
},
{
"SchoolName": "Netherthorpe School",
"Postcode": "S433PU"
},
{
"SchoolName": "Parkside Academy",
"Postcode": "DL150QF"
},
{
"SchoolName": "Fulbrook Middle School",
"Postcode": "MK178NP"
},
{
"SchoolName": "Forest Way School",
"Postcode": "LE674UU"
},
{
"SchoolName": "Blenheim High School",
"Postcode": "KT199BH"
},
{
"SchoolName": "Chiswick School",
"Postcode": "W43UN"
},
{
"SchoolName": "Saint John Houghton Catholic Voluntary Academy",
"Postcode": "DE74HX"
},
{
"SchoolName": "The Priory Catholic Voluntary Academy",
"Postcode": "NG163GT"
},
{
"SchoolName": "Hanwell Fields Community School",
"Postcode": "OX161ER"
},
{
"SchoolName": "Woodlands School",
"Postcode": "DE222LW"
},
{
"SchoolName": "Sir Christopher Hatton Academy",
"Postcode": "NN84RP"
},
{
"SchoolName": "Notre Dame High School, Norwich",
"Postcode": "NR13PB"
},
{
"SchoolName": "Saint Joan of Arc Catholic School",
"Postcode": "WD31HG"
},
{
"SchoolName": "Nethergate School",
"Postcode": "NG118HX"
},
{
"SchoolName": "The Blue Coat School",
"Postcode": "L159EE"
},
{
"SchoolName": "Southborough High School",
"Postcode": "KT65AS"
},
{
"SchoolName": "Woodland View Primary School",
"Postcode": "NN45FZ"
},
{
"SchoolName": "Bartholomew School",
"Postcode": "OX294AP"
},
{
"SchoolName": "Rush Common School",
"Postcode": "OX142AW"
},
{
"SchoolName": "Gillotts School",
"Postcode": "RG91PS"
},
{
"SchoolName": "Saint Michael's Catholic High School",
"Postcode": "WD250SS"
},
{
"SchoolName": "Hazel Grove High School",
"Postcode": "SK75JX"
},
{
"SchoolName": "St Bede's Inter-Church School",
"Postcode": "CB13TD"
},
{
"SchoolName": "The Douay Martyrs Catholic Secondary School",
"Postcode": "UB108QY"
},
{
"SchoolName": "The Gilberd School",
"Postcode": "CO49PU"
},
{
"SchoolName": "The Stanway School",
"Postcode": "CO30QA"
},
{
"SchoolName": "Gumley House RC Convent School, FCJ",
"Postcode": "TW76XF"
},
{
"SchoolName": "Upton Hall School FCJ",
"Postcode": "CH496LJ"
},
{
"SchoolName": "Tubbenden Primary School",
"Postcode": "BR69SD"
},
{
"SchoolName": "South Wigston High School",
"Postcode": "LE184TA"
},
{
"SchoolName": "Glen Hills Primary School",
"Postcode": "LE29NY"
},
{
"SchoolName": "Fairfield Community Primary School",
"Postcode": "LE184WA"
},
{
"SchoolName": "Alfriston School",
"Postcode": "HP92TS"
},
{
"SchoolName": "Sacred Heart High School",
"Postcode": "W67DG"
},
{
"SchoolName": "Chipping Norton School",
"Postcode": "OX75DY"
},
{
"SchoolName": "The Thomas Lord Audley School",
"Postcode": "CO28NJ"
},
{
"SchoolName": "Nicholas Breakspear Catholic School",
"Postcode": "AL40TT"
},
{
"SchoolName": "Bourton Meadow Academy",
"Postcode": "MK187HX"
},
{
"SchoolName": "Isleworth and Syon School for Boys",
"Postcode": "TW75LJ"
},
{
"SchoolName": "Harlington Upper School",
"Postcode": "LU56NX"
},
{
"SchoolName": "Lord Lawson of Beamish Academy",
"Postcode": "DH32LP"
},
{
"SchoolName": "Applecroft School",
"Postcode": "AL86JZ"
},
{
"SchoolName": "St Helena School",
"Postcode": "CO33LE"
},
{
"SchoolName": "Manningtree High School",
"Postcode": "CO112BW"
},
{
"SchoolName": "Harwich and Dovercourt High School",
"Postcode": "CO123TG"
},
{
"SchoolName": "Biggleswade Academy",
"Postcode": "SG188JU"
},
{
"SchoolName": "Samuel Whitbread Academy",
"Postcode": "SG175QS"
},
{
"SchoolName": "Wayland Academy Norfolk",
"Postcode": "IP256BA"
},
{
"SchoolName": "Ashwicke Hall School",
"Postcode": "SN148AG"
},
{
"SchoolName": "Silver Springs Primary Academy",
"Postcode": "SK151EA"
},
{
"SchoolName": "City Heights E-ACT Academy",
"Postcode": "SW23PW"
},
{
"SchoolName": "North West Kent Alternative Provision Service",
"Postcode": "DA27DP"
},
{
"SchoolName": "Peak Education",
"Postcode": "ST195PR"
},
{
"SchoolName": "Leweston School Junior Department",
"Postcode": "DT96EN"
},
{
"SchoolName": "<NAME>' Roman Catholic Primary School",
"Postcode": "BR51BL"
},
{
"SchoolName": "<NAME> the Great RC Primary and Nursery School",
"Postcode": "CR78HJ"
},
{
"SchoolName": "The Vaynor First School",
"Postcode": "B975BL"
},
{
"SchoolName": "Hampton Primary School",
"Postcode": "CT68NB"
},
{
"SchoolName": "Stramongate Primary School",
"Postcode": "LA94BT"
},
{
"SchoolName": "Stowford School",
"Postcode": "PL210BG"
},
{
"SchoolName": "Hamilton Academy",
"Postcode": "HP136SG"
},
{
"SchoolName": "Blackfen School for Girls",
"Postcode": "DA159NU"
},
{
"SchoolName": "St Martin in the Fields High School for Girls",
"Postcode": "SW23UP"
},
{
"SchoolName": "Horbury Bridge Church of England Junior and Infant Academy",
"Postcode": "WF45PS"
},
{
"SchoolName": "Redmoor High School Academy Trust",
"Postcode": "LE100EP"
},
{
"SchoolName": "Bosworth Academy",
"Postcode": "LE99JL"
},
{
"SchoolName": "The Cherwell School",
"Postcode": "OX27EE"
},
{
"SchoolName": "Moulsham Junior School",
"Postcode": "CM29DG"
},
{
"SchoolName": "Mesty Croft Academy",
"Postcode": "WS100QY"
},
{
"SchoolName": "Montgomery High School",
"Postcode": "FY20AZ"
},
{
"SchoolName": "Aldridge School - A Science College",
"Postcode": "WS90BG"
},
{
"SchoolName": "Helena Romanes School and Sixth Form Centre",
"Postcode": "CM62AU"
},
{
"SchoolName": "Langtree School",
"Postcode": "RG80RA"
},
{
"SchoolName": "Washingborough Academy",
"Postcode": "LN41BW"
},
{
"SchoolName": "Witham St Hughs Academy",
"Postcode": "LN69WF"
},
{
"SchoolName": "Chepping View Primary Academy",
"Postcode": "HP124PR"
},
{
"SchoolName": "<NAME> School",
"Postcode": "PO211BG"
},
{
"SchoolName": "Ashfield Comprehensive School",
"Postcode": "NG178HP"
},
{
"SchoolName": "Beacon Academy",
"Postcode": "TN62AS"
},
{
"SchoolName": "Wreake Valley Academy",
"Postcode": "LE71LY"
},
{
"SchoolName": "Wigston Academy",
"Postcode": "LE182DT"
},
{
"SchoolName": "Presdales School",
"Postcode": "SG129NX"
},
{
"SchoolName": "Leverton Church of England Academy",
"Postcode": "DN220AD"
},
{
"SchoolName": "Bradshaw Primary School",
"Postcode": "HX29PF"
},
{
"SchoolName": "Bishop Vesey's Grammar School",
"Postcode": "B742NH"
},
{
"SchoolName": "Henry Hinde Infant School",
"Postcode": "CV227JQ"
},
{
"SchoolName": "High Halstow Primary School",
"Postcode": "ME38TF"
},
{
"SchoolName": "Harwood Meadows Primary School",
"Postcode": "BL23PS"
},
{
"SchoolName": "Faringdon Infant School",
"Postcode": "SN78AH"
},
{
"SchoolName": "Faringdon Community College",
"Postcode": "SN77LB"
},
{
"SchoolName": "Convent of Jesus and Mary Language College",
"Postcode": "NW104EP"
},
{
"SchoolName": "St Mark's Catholic School",
"Postcode": "TW33EJ"
},
{
"SchoolName": "Middlethorpe Primary Academy",
"Postcode": "DN359PY"
},
{
"SchoolName": "Woolgrove School, Special Needs Academy",
"Postcode": "SG62PT"
},
{
"SchoolName": "Tregonwell Academy",
"Postcode": "BH76QP"
},
{
"SchoolName": "Red Balloon Learner Centre Reading",
"Postcode": "RG14JJ"
},
{
"SchoolName": "St. George's Church of England Academy",
"Postcode": "DL21LD"
},
{
"SchoolName": "Pluckley Church of England Primary School",
"Postcode": "TN270QS"
},
{
"SchoolName": "Knutsford Academy",
"Postcode": "WA160EA"
},
{
"SchoolName": "Gilbert Inglefield Academy",
"Postcode": "LU73FU"
},
{
"SchoolName": "Gorse Hill Primary School",
"Postcode": "SN28BZ"
},
{
"SchoolName": "Seven Fields Primary School",
"Postcode": "SN25DE"
},
{
"SchoolName": "De Lacy Academy",
"Postcode": "WF110BZ"
},
{
"SchoolName": "Hatfield Woodhouse Primary School",
"Postcode": "DN76NH"
},
{
"SchoolName": "Crookesbroom Primary Academy",
"Postcode": "DN76JP"
},
{
"SchoolName": "Faringdon Junior School",
"Postcode": "SN77HZ"
},
{
"SchoolName": "Eagley Infant School",
"Postcode": "BL79LN"
},
{
"SchoolName": "The Westgate School",
"Postcode": "SL15AH"
},
{
"SchoolName": "Cippenham Primary School",
"Postcode": "SL15RB"
},
{
"SchoolName": "St Joseph's Catholic Primary Voluntary Academy",
"Postcode": "DN359DL"
},
{
"SchoolName": "St Mary's Catholic Primary Voluntary Academy",
"Postcode": "DN208BB"
},
{
"SchoolName": "St Bernadette's Catholic Voluntary Academy",
"Postcode": "DN162LW"
},
{
"SchoolName": "Saint Augustine Webster Catholic Voluntary Academy",
"Postcode": "DN158BU"
},
{
"SchoolName": "St Bede's Catholic Voluntary Academy",
"Postcode": "DN162TF"
},
{
"SchoolName": "The Norton Knatchbull School",
"Postcode": "TN240QJ"
},
{
"SchoolName": "The John of Gaunt School",
"Postcode": "BA149EH"
},
{
"SchoolName": "St Christophers Academy",
"Postcode": "LU54NJ"
},
{
"SchoolName": "St Mary's CofE Academy Stotfold",
"Postcode": "SG54DL"
},
{
"SchoolName": "Coundon Court",
"Postcode": "CV62AJ"
},
{
"SchoolName": "Wadebridge School",
"Postcode": "PL276BU"
},
{
"SchoolName": "Monkton Junior School",
"Postcode": "NE349RD"
},
{
"SchoolName": "Webheath Academy Primary School",
"Postcode": "B975RJ"
},
{
"SchoolName": "Henlow Church of England Academy",
"Postcode": "SG166AN"
},
{
"SchoolName": "Lyons Hall School",
"Postcode": "CM79FH"
},
{
"SchoolName": "Godmanchester Community Academy",
"Postcode": "PE292AG"
},
{
"SchoolName": "Huxlow Science College",
"Postcode": "NN95TY"
},
{
"SchoolName": "King Charles I School",
"Postcode": "DY101XA"
},
{
"SchoolName": "Victoria Park Primary",
"Postcode": "B663HH"
},
{
"SchoolName": "Luddenham School",
"Postcode": "ME130TE"
},
{
"SchoolName": "Lugwardine Primary Academy",
"Postcode": "HR14DH"
},
{
"SchoolName": "Tyldesley Primary School",
"Postcode": "M297PY"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "HR11UX"
},
{
"SchoolName": "The Cowplain School",
"Postcode": "PO88RY"
},
{
"SchoolName": "Hellesdon High School",
"Postcode": "NR65SB"
},
{
"SchoolName": "The Epiphany Church of England Primary School",
"Postcode": "BH93PE"
},
{
"SchoolName": "Braunton Academy",
"Postcode": "EX332BP"
},
{
"SchoolName": "The Marlborough Science Academy",
"Postcode": "AL12QA"
},
{
"SchoolName": "Bursley Academy",
"Postcode": "ST58JQ"
},
{
"SchoolName": "The St Christopher School",
"Postcode": "SS94AW"
},
{
"SchoolName": "Greenacre School",
"Postcode": "ME50LP"
},
{
"SchoolName": "Ellacombe Academy",
"Postcode": "TQ11TG"
},
{
"SchoolName": "Lansdowne Primary Academy",
"Postcode": "RM187QB"
},
{
"SchoolName": "Tangmere Primary Academy",
"Postcode": "PO202JB"
},
{
"SchoolName": "The Bewbush Academy",
"Postcode": "RH118XW"
},
{
"SchoolName": "The Henrietta Barnett School",
"Postcode": "NW117BN"
},
{
"SchoolName": "Ark Chamberlain Primary Academy",
"Postcode": "B100HU"
},
{
"SchoolName": "Sir Harry Smith Community College",
"Postcode": "PE71XB"
},
{
"SchoolName": "St Anthony's Girls' Catholic Academy",
"Postcode": "SR27JN"
},
{
"SchoolName": "Stretton Sugwas CofE Academy",
"Postcode": "HR47AE"
},
{
"SchoolName": "Waynflete Infants' School",
"Postcode": "NN136AF"
},
{
"SchoolName": "Long Bennington Church of England Academy",
"Postcode": "NG235EH"
},
{
"SchoolName": "Holmer Green Senior School",
"Postcode": "HP156SP"
},
{
"SchoolName": "Rockwood Academy",
"Postcode": "B83HG"
},
{
"SchoolName": "Signhills Infant Academy",
"Postcode": "DN350DN"
},
{
"SchoolName": "Benjamin Adlard Primary School",
"Postcode": "DN211DB"
},
{
"SchoolName": "East Tilbury Primary School and Nursery",
"Postcode": "RM188SB"
},
{
"SchoolName": "Cippenham Infant School",
"Postcode": "SL15JP"
},
{
"SchoolName": "Daubeney Academy",
"Postcode": "MK427PS"
},
{
"SchoolName": "Tapton School",
"Postcode": "S105RG"
},
{
"SchoolName": "Chetwynd Primary Academy",
"Postcode": "NG96FW"
},
{
"SchoolName": "Seal Primary Academy",
"Postcode": "PO200BN"
},
{
"SchoolName": "Hamford Primary Academy",
"Postcode": "CO148TE"
},
{
"SchoolName": "DSLV E-ACT Academy",
"Postcode": "NN114LJ"
},
{
"SchoolName": "St James the Great Academy",
"Postcode": "ME196SD"
},
{
"SchoolName": "Easington Academy",
"Postcode": "SR83AY"
},
{
"SchoolName": "The Elizabethan Academy",
"Postcode": "DN227PY"
},
{
"SchoolName": "Willow Academy",
"Postcode": "DN47EZ"
},
{
"SchoolName": "Meadowdale Academy",
"Postcode": "NE226HA"
},
{
"SchoolName": "The Roundhill Academy",
"Postcode": "LE48GQ"
},
{
"SchoolName": "St Joseph's Catholic Voluntary Academy",
"Postcode": "LE169BZ"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "LE53HH"
},
{
"SchoolName": "Hull Trinity House Academy",
"Postcode": "HU13BP"
},
{
"SchoolName": "Highfields Primary Academy",
"Postcode": "DN67JB"
},
{
"SchoolName": "Clacton County High School",
"Postcode": "CO156DZ"
},
{
"SchoolName": "Hibaldstow Academy",
"Postcode": "DN209PN"
},
{
"SchoolName": "Scawby Academy",
"Postcode": "DN209AN"
},
{
"SchoolName": "B<NAME> Girls' School",
"Postcode": "BD96NA"
},
{
"SchoolName": "Springfield Academy",
"Postcode": "DL12AN"
},
{
"SchoolName": "Haughton Academy",
"Postcode": "DL12AN"
},
{
"SchoolName": "Saint John Fisher Catholic Voluntary Academy, Wigston, Leicestershire",
"Postcode": "LE183QL"
},
{
"SchoolName": "Beaumont Hill Academy",
"Postcode": "DL12AN"
},
{
"SchoolName": "Ash Field Academy",
"Postcode": "LE54PY"
},
{
"SchoolName": "Cedar Mount Academy",
"Postcode": "M187DT"
},
{
"SchoolName": "<NAME>",
"Postcode": "WV146LU"
},
{
"SchoolName": "Oastlers School",
"Postcode": "BD47RH"
},
{
"SchoolName": "TTD Gur School",
"Postcode": "N166UX"
},
{
"SchoolName": "Kite Ridge School - A Specialist Boarding PRU",
"Postcode": "HP123NE"
},
{
"SchoolName": "Southmoor Academy",
"Postcode": "SR27TF"
},
{
"SchoolName": "Timberley Academy",
"Postcode": "B347RL"
},
{
"SchoolName": "Our Lady Immaculate Catholic Primary School",
"Postcode": "CM20RG"
},
{
"SchoolName": "Loreto College",
"Postcode": "AL13RQ"
},
{
"SchoolName": "Bishop Perowne CofE College",
"Postcode": "WR38LE"
},
{
"SchoolName": "The Market Bosworth School",
"Postcode": "CV130JT"
},
{
"SchoolName": "Holy Trinity Church of England Academy",
"Postcode": "SN110AR"
},
{
"SchoolName": "Hawkley Hall High School",
"Postcode": "WN35NY"
},
{
"SchoolName": "BBG Academy",
"Postcode": "BD194BE"
},
{
"SchoolName": "By Brook Valley Academy Trust",
"Postcode": "SN147BA"
},
{
"SchoolName": "Catmose Primary",
"Postcode": "LE156SH"
},
{
"SchoolName": "St Joseph's Catholic Voluntary Academy",
"Postcode": "LE51HF"
},
{
"SchoolName": "Campsmount (A Co-Operative Academy)",
"Postcode": "DN69AS"
},
{
"SchoolName": "Langer Primary Academy",
"Postcode": "IP112HL"
},
{
"SchoolName": "Ateres Girls High School",
"Postcode": "NE109PQ"
},
{
"SchoolName": "Include - Oxfordshire",
"Postcode": "OX41DD"
},
{
"SchoolName": "Kenton School",
"Postcode": "NE33RU"
},
{
"SchoolName": "St Nicolas' Church of England Combined School",
"Postcode": "SL60ET"
},
{
"SchoolName": "Columbus School and College",
"Postcode": "CM14ZB"
},
{
"SchoolName": "Ashton-on-Mersey School",
"Postcode": "M335BP"
},
{
"SchoolName": "Broadoak School",
"Postcode": "M314BU"
},
{
"SchoolName": "Hatfield Academy",
"Postcode": "S56HY"
},
{
"SchoolName": "St John's Church of England Academy",
"Postcode": "DL14UB"
},
{
"SchoolName": "Firthmoor Primary School",
"Postcode": "DL14RW"
},
{
"SchoolName": "Oakwood Academy",
"Postcode": "M309DY"
},
{
"SchoolName": "Woodspring School",
"Postcode": "BS227YA"
},
{
"SchoolName": "The Mead Community Primary School",
"Postcode": "BA147GN"
},
{
"SchoolName": "Saint Ambrose College",
"Postcode": "WA150HE"
},
{
"SchoolName": "<NAME>'s School",
"Postcode": "RG291NA"
},
{
"SchoolName": "The Arthur Terry School",
"Postcode": "B744RZ"
},
{
"SchoolName": "Stockland Green School",
"Postcode": "B237JH"
},
{
"SchoolName": "Westfield House School",
"Postcode": "PE344EX"
},
{
"SchoolName": "Wellington Community Primary School",
"Postcode": "GU111QJ"
},
{
"SchoolName": "Perry Beeches the Academy",
"Postcode": "B422PY"
},
{
"SchoolName": "Lubavitch House School (Senior Girls)",
"Postcode": "N165RP"
},
{
"SchoolName": "Bath Academy",
"Postcode": "BA12HX"
},
{
"SchoolName": "Hartford Church of England High School",
"Postcode": "CW81LH"
},
{
"SchoolName": "The Lincoln Manor Leas Infants School",
"Postcode": "LN68BE"
},
{
"SchoolName": "Lutterworth College",
"Postcode": "LE174EW"
},
{
"SchoolName": "Grove Park Primary School",
"Postcode": "ME101PT"
},
{
"SchoolName": "Eagley Junior School",
"Postcode": "BL79AT"
},
{
"SchoolName": "Woodnewton- A Learning Community",
"Postcode": "NN172NU"
},
{
"SchoolName": "Stafford Leys Community Primary School",
"Postcode": "LE33LJ"
},
{
"SchoolName": "Gartree High School Oadby",
"Postcode": "LE25TQ"
},
{
"SchoolName": "Dorothy Goodman School Hinckley",
"Postcode": "LE100EA"
},
{
"SchoolName": "Grangewood School",
"Postcode": "HA52JQ"
},
{
"SchoolName": "Moorcroft School T/A the Eden Academy",
"Postcode": "UB83BF"
},
{
"SchoolName": "Gilsland CofE Primary School",
"Postcode": "CA87AA"
},
{
"SchoolName": "Cedar Road Primary School",
"Postcode": "NN32JF"
},
{
"SchoolName": "Place Farm Primary Academy",
"Postcode": "CB98HF"
},
{
"SchoolName": "Castle Manor Academy",
"Postcode": "CB99JE"
},
{
"SchoolName": "Barnby Dun Primary Academy",
"Postcode": "DN31BG"
},
{
"SchoolName": "St Thomas More's Catholic Primary School, Colchester",
"Postcode": "CO12QB"
},
{
"SchoolName": "St Osmund's Church of England Voluntary Aided Middle School, Dorchester",
"Postcode": "DT12DZ"
},
{
"SchoolName": "Marish Primary School",
"Postcode": "SL38NZ"
},
{
"SchoolName": "Astor College (A Specialist College for the Arts)",
"Postcode": "CT170AS"
},
{
"SchoolName": "White Cliffs Primary College for the Arts",
"Postcode": "CT170LB"
},
{
"SchoolName": "Barton Junior School",
"Postcode": "CT162ND"
},
{
"SchoolName": "Shatterlocks Infant School",
"Postcode": "CT162PB"
},
{
"SchoolName": "Harewood College",
"Postcode": "BH76NZ"
},
{
"SchoolName": "St Bede's Catholic Comprehensive School and Sixth Form College, Lanchester",
"Postcode": "DH70RD"
},
{
"SchoolName": "The Meadow Community Primary School",
"Postcode": "LE183QZ"
},
{
"SchoolName": "Belfairs Academy",
"Postcode": "SS93TG"
},
{
"SchoolName": "Mowden Infants' School",
"Postcode": "DL39QG"
},
{
"SchoolName": "Mowden Junior School",
"Postcode": "DL39DE"
},
{
"SchoolName": "Cromwell Community College",
"Postcode": "PE166UU"
},
{
"SchoolName": "Riddlesdown Collegiate",
"Postcode": "CR81EX"
},
{
"SchoolName": "Heathfield Primary School",
"Postcode": "DL11EJ"
},
{
"SchoolName": "Hurworth Primary School",
"Postcode": "DL22ET"
},
{
"SchoolName": "Priory Academy",
"Postcode": "LU54JA"
},
{
"SchoolName": "All Faiths Children's Academy",
"Postcode": "ME24UF"
},
{
"SchoolName": "Bellerive FCJ Catholic College",
"Postcode": "L173AA"
},
{
"SchoolName": "Wyvern College",
"Postcode": "SO507AN"
},
{
"SchoolName": "St Thomas More Catholic Voluntary Academy",
"Postcode": "LE23TA"
},
{
"SchoolName": "Dorchester Middle School",
"Postcode": "DT12HS"
},
{
"SchoolName": "Woodcote High School",
"Postcode": "CR52EH"
},
{
"SchoolName": "Woodford Valley Church of England Aided School",
"Postcode": "SP46NR"
},
{
"SchoolName": "St Mary's Church of England Middle School, Puddletown",
"Postcode": "DT28SA"
},
{
"SchoolName": "Harrogate High School",
"Postcode": "HG14AP"
},
{
"SchoolName": "The South Wolds Academy & Sixth Form",
"Postcode": "NG125FF"
},
{
"SchoolName": "Ryvers School",
"Postcode": "SL37TS"
},
{
"SchoolName": "Avonbourne College",
"Postcode": "BH76NY"
},
{
"SchoolName": "Erdington Hall Primary School",
"Postcode": "B248JJ"
},
{
"SchoolName": "Molehill Primary Academy",
"Postcode": "ME157ND"
},
{
"SchoolName": "School 21",
"Postcode": "E154RZ"
},
{
"SchoolName": "Sandymoor",
"Postcode": "WA71QU"
},
{
"SchoolName": "Perry Beeches II The Free School",
"Postcode": "B31SJ"
},
{
"SchoolName": "Hatfield Community Free School",
"Postcode": "AL108ES"
},
{
"SchoolName": "Wapping High School",
"Postcode": "E12DA"
},
{
"SchoolName": "Kingfisher Hall Primary Academy",
"Postcode": "EN37GB"
},
{
"SchoolName": "Bedminster Down School",
"Postcode": "BS137DQ"
},
{
"SchoolName": "Fleetville Junior School",
"Postcode": "AL14LW"
},
{
"SchoolName": "Fleetville Infant and Nursery School",
"Postcode": "AL14LX"
},
{
"SchoolName": "Denton West End Primary School",
"Postcode": "M342JX"
},
{
"SchoolName": "Woodfield Academy",
"Postcode": "B987HH"
},
{
"SchoolName": "Ardley Hill Academy",
"Postcode": "LU63NZ"
},
{
"SchoolName": "The Henry Box School",
"Postcode": "OX284AX"
},
{
"SchoolName": "Kibblesworth Academy",
"Postcode": "NE110XP"
},
{
"SchoolName": "Atkinson Road Primary Academy",
"Postcode": "NE48XT"
},
{
"SchoolName": "Eppleton Academy Primary School",
"Postcode": "DH59AJ"
},
{
"SchoolName": "The Duston School",
"Postcode": "NN56XA"
},
{
"SchoolName": "The Wroxham School",
"Postcode": "EN63DJ"
},
{
"SchoolName": "The Priory School, A Business and Enterprise College",
"Postcode": "SY39EE"
},
{
"SchoolName": "Henbury School",
"Postcode": "BS107QH"
},
{
"SchoolName": "Dorrington Academy",
"Postcode": "B421QR"
},
{
"SchoolName": "The Pioneer School",
"Postcode": "SS142LA"
},
{
"SchoolName": "Tauheedul Islam Boys' High School",
"Postcode": "BB12HT"
},
{
"SchoolName": "St Joseph's College",
"Postcode": "SE193HL"
},
{
"SchoolName": "Aston University Engineering Academy",
"Postcode": "B74AG"
},
{
"SchoolName": "The Da Vinci Studio School of Science and Engineering",
"Postcode": "SG11LA"
},
{
"SchoolName": "Cobham Free School",
"Postcode": "KT111JJ"
},
{
"SchoolName": "Avanti House School",
"Postcode": "HA51NB"
},
{
"SchoolName": "Bedford Free School",
"Postcode": "MK429AD"
},
{
"SchoolName": "Wigan UTC",
"Postcode": "WN11RP"
},
{
"SchoolName": "Alban City School",
"Postcode": "AL13RR"
},
{
"SchoolName": "Tiger Primary School",
"Postcode": "ME159QL"
},
{
"SchoolName": "Atherton Community School",
"Postcode": "M460AY"
},
{
"SchoolName": "All Saints Academy Darfield",
"Postcode": "S739EU"
},
{
"SchoolName": "The Parker E-ACT Academy",
"Postcode": "NN110QF"
},
{
"SchoolName": "High Weald Academy",
"Postcode": "TN172PJ"
},
{
"SchoolName": "Oasis Academy Nunsthorpe",
"Postcode": "DN331AW"
},
{
"SchoolName": "St Augustine's School",
"Postcode": "S810DW"
},
{
"SchoolName": "Becket Keys Church of England Free School",
"Postcode": "CM159DA"
},
{
"SchoolName": "Lubavitch Junior Boys",
"Postcode": "E59AE"
},
{
"SchoolName": "Manor Church of England Infant School",
"Postcode": "SO452QG"
},
{
"SchoolName": "Hopedale School",
"Postcode": "ST137ED"
},
{
"SchoolName": "M A Girls School",
"Postcode": "BD87RZ"
},
{
"SchoolName": "The Greenwich Free School",
"Postcode": "SE184LH"
},
{
"SchoolName": "Sirius Academy North",
"Postcode": "HU69BP"
},
{
"SchoolName": "Outwood Academy Valley",
"Postcode": "S817EN"
},
{
"SchoolName": "Outwood Academy Portland",
"Postcode": "S802SF"
},
{
"SchoolName": "Switched-On Christian School",
"Postcode": "BH91DE"
},
{
"SchoolName": "IES Breckland",
"Postcode": "IP270NJ"
},
{
"SchoolName": "Dixons Trinity Academy",
"Postcode": "BD50BE"
},
{
"SchoolName": "Dixons Music Primary",
"Postcode": "BD50BE"
},
{
"SchoolName": "Stephenson Academy",
"Postcode": "MK146AX"
},
{
"SchoolName": "Corby Technical School",
"Postcode": "NN171TD"
},
{
"SchoolName": "Tendring Enterprise Studio School",
"Postcode": "CO168BE"
},
{
"SchoolName": "Stoke Studio College for Construction and Building Excellence",
"Postcode": "ST61JJ"
},
{
"SchoolName": "Cramlington Village Primary School",
"Postcode": "NE232SN"
},
{
"SchoolName": "Emmanuel Community School",
"Postcode": "E173BN"
},
{
"SchoolName": "The Hawthorne's Free School",
"Postcode": "L206AQ"
},
{
"SchoolName": "Bilingual Primary School - Brighton & Hove",
"Postcode": "BN37QA"
},
{
"SchoolName": "City Gateway 14-19 Provision",
"Postcode": "E149UB"
},
{
"SchoolName": "Southwark Free School",
"Postcode": "SE151SH"
},
{
"SchoolName": "Stone Soup Academy",
"Postcode": "NG11HN"
},
{
"SchoolName": "Reach Academy Feltham",
"Postcode": "TW134AB"
},
{
"SchoolName": "Ark Bolingbroke Academy",
"Postcode": "SW116BF"
},
{
"SchoolName": "Barrow 1618 CofE Free School",
"Postcode": "TF125BW"
},
{
"SchoolName": "Europa School Uk",
"Postcode": "OX143DZ"
},
{
"SchoolName": "Harris Primary Free School Peckham",
"Postcode": "SE155DZ"
},
{
"SchoolName": "City of Peterborough Academy, Special School",
"Postcode": "PE15LQ"
},
{
"SchoolName": "Rimon Jewish Primary School",
"Postcode": "NW118AE"
},
{
"SchoolName": "Saxmundham Free School",
"Postcode": "IP171DZ"
},
{
"SchoolName": "Beccles Free School",
"Postcode": "NR347BQ"
},
{
"SchoolName": "The Minerva Academy",
"Postcode": "W22HR"
},
{
"SchoolName": "Solebay Primary - A Paradigm Academy",
"Postcode": "E14PW"
},
{
"SchoolName": "Derby Pride Academy",
"Postcode": "DE248BY"
},
{
"SchoolName": "Oasis Academy Connaught",
"Postcode": "BS41NH"
},
{
"SchoolName": "Weelsby Academy",
"Postcode": "DN327PF"
},
{
"SchoolName": "Winhills Primary School",
"Postcode": "PE192DX"
},
{
"SchoolName": "Wilson Stuart School",
"Postcode": "B237AT"
},
{
"SchoolName": "The National Church of England Junior School, Grantham",
"Postcode": "NG316SR"
},
{
"SchoolName": "The Harrowby Church of England Infant School, Grantham",
"Postcode": "NG319LJ"
},
{
"SchoolName": "Rauceby Church of England Primary School",
"Postcode": "NG348QW"
},
{
"SchoolName": "Riverside Primary Academy",
"Postcode": "NE119DX"
},
{
"SchoolName": "Beaumont School",
"Postcode": "AL40XB"
},
{
"SchoolName": "The Costello School",
"Postcode": "RG214AL"
},
{
"SchoolName": "St Catherine of Siena Catholic Primary School",
"Postcode": "WD257HP"
},
{
"SchoolName": "Burford School",
"Postcode": "OX184PL"
},
{
"SchoolName": "Saint Martin's Catholic Voluntary Academy",
"Postcode": "CV136HT"
},
{
"SchoolName": "Boston West Academy",
"Postcode": "PE217QG"
},
{
"SchoolName": "St Mary Roman Catholic Primary School",
"Postcode": "SG87DB"
},
{
"SchoolName": "Crigglestone St James CofE Primary Academy",
"Postcode": "WF43HY"
},
{
"SchoolName": "Sacred Heart Catholic Voluntary Academy",
"Postcode": "LE112BG"
},
{
"SchoolName": "Saint Mary's Catholic Primary School, Loughborough",
"Postcode": "LE115AX"
},
{
"SchoolName": "Saint Clare's Primary School A Catholic Voluntary Academy, Coalville, Leicestershire",
"Postcode": "LE673SF"
},
{
"SchoolName": "Holy Cross School A Catholic Voluntary Academy",
"Postcode": "LE675AT"
},
{
"SchoolName": "De Lisle Catholic School Loughborough Leicestershire",
"Postcode": "LE114SQ"
},
{
"SchoolName": "Saint Winefride's Catholic Primary School, Shepshed, Leicestershire",
"Postcode": "LE129AE"
},
{
"SchoolName": "Waterloo Primary School",
"Postcode": "FY43AG"
},
{
"SchoolName": "Newbridge High School",
"Postcode": "LE673SJ"
},
{
"SchoolName": "Holy Trinity Primary School, A Church of England Academy",
"Postcode": "HX12ES"
},
{
"SchoolName": "Warren Farm Primary School",
"Postcode": "B440DT"
},
{
"SchoolName": "Crawshaw Academy",
"Postcode": "LS289HU"
},
{
"SchoolName": "Tregoze Primary School",
"Postcode": "SN56JU"
},
{
"SchoolName": "Rodbourne Cheney Primary School",
"Postcode": "SN253BN"
},
{
"SchoolName": "Nyland School",
"Postcode": "SN33RD"
},
{
"SchoolName": "Mountford Manor Primary School",
"Postcode": "SN33EZ"
},
{
"SchoolName": "Drove Primary School",
"Postcode": "SN13AH"
},
{
"SchoolName": "Elburton Primary School",
"Postcode": "PL98HJ"
},
{
"SchoolName": "St Teresa's Catholic Primary School, Colchester",
"Postcode": "CO39BE"
},
{
"SchoolName": "Westminster City School",
"Postcode": "SW1E5HJ"
},
{
"SchoolName": "The Grey Coat Hospital",
"Postcode": "SW1P2DY"
},
{
"SchoolName": "Armthorpe Academy",
"Postcode": "DN32DA"
},
{
"SchoolName": "Pilton Bluecoat Church of England Academy",
"Postcode": "EX311JU"
},
{
"SchoolName": "St John Roman Catholic Primary School",
"Postcode": "SG76TT"
},
{
"SchoolName": "Christ Church Church of England Primary School",
"Postcode": "BS83AW"
},
{
"SchoolName": "Neston High School",
"Postcode": "CH649NH"
},
{
"SchoolName": "Godolphin Junior School",
"Postcode": "SL13HS"
},
{
"SchoolName": "Huncote Community Primary School",
"Postcode": "LE93BS"
},
{
"SchoolName": "Our Lady Catholic Primary School",
"Postcode": "SG51XT"
},
{
"SchoolName": "Brookvale High School Groby",
"Postcode": "LE60FP"
},
{
"SchoolName": "Ruskington Chestnut Street Church of England Academy",
"Postcode": "NG349DL"
},
{
"SchoolName": "Chingford Hall Primary School",
"Postcode": "E48YJ"
},
{
"SchoolName": "The Frances Bardsley Academy for Girls",
"Postcode": "RM12RR"
},
{
"SchoolName": "Heath Lane Academy",
"Postcode": "LE97PD"
},
{
"SchoolName": "Chattenden Primary School",
"Postcode": "ME38LF"
},
{
"SchoolName": "St Bernard's Catholic High School",
"Postcode": "S653BE"
},
{
"SchoolName": "The Gainsborough Hillcrest Early Years Academy",
"Postcode": "DN211SW"
},
{
"SchoolName": "East Herrington Primary Academy",
"Postcode": "SR33PR"
},
{
"SchoolName": "The Vale Primary Academy",
"Postcode": "WF118JF"
},
{
"SchoolName": "Kings Bournemouth",
"Postcode": "BH26LD"
},
{
"SchoolName": "The Gateway Primary Free School",
"Postcode": "RM164LU"
},
{
"SchoolName": "St Cyprian's Greek Orthodox Primary Academy",
"Postcode": "CR78DZ"
},
{
"SchoolName": "Rodillian Academy",
"Postcode": "WF33PS"
},
{
"SchoolName": "All Saints' Catholic High School",
"Postcode": "S22RJ"
},
{
"SchoolName": "Our Lady of Perpetual Succour Catholic Primary School",
"Postcode": "NG69FN"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "NG76FL"
},
{
"SchoolName": "St Teresa's Catholic Primary School",
"Postcode": "NG83EP"
},
{
"SchoolName": "The Trinity Catholic School A Voluntary Academy",
"Postcode": "NG83EZ"
},
{
"SchoolName": "Altwood CofE Secondary School",
"Postcode": "SL64PU"
},
{
"SchoolName": "Woodlands Academy of Learning",
"Postcode": "WV125PR"
},
{
"SchoolName": "Farndon Fields Primary School",
"Postcode": "LE169JH"
},
{
"SchoolName": "Meadowdale Primary School",
"Postcode": "LE167XQ"
},
{
"SchoolName": "Ridgeway Primary Academy",
"Postcode": "LE167HQ"
},
{
"SchoolName": "Parkland Primary School South Wigston",
"Postcode": "LE184TA"
},
{
"SchoolName": "Harris Primary Academy Chafford Hundred",
"Postcode": "RM166SA"
},
{
"SchoolName": "Ivanhoe College Ashby-De-La-Zouch",
"Postcode": "LE651HX"
},
{
"SchoolName": "The Rural Enterprise Academy",
"Postcode": "ST195PH"
},
{
"SchoolName": "Tring School",
"Postcode": "HP235JD"
},
{
"SchoolName": "Cotgrave Candleby Lane School",
"Postcode": "NG123JG"
},
{
"SchoolName": "St Thomas More Roman Catholic Primary School",
"Postcode": "SG63QB"
},
{
"SchoolName": "Hilbre High School",
"Postcode": "CH486EQ"
},
{
"SchoolName": "St George's School",
"Postcode": "AL54TD"
},
{
"SchoolName": "Thurcroft Junior Academy",
"Postcode": "S669DD"
},
{
"SchoolName": "Kibworth Church of England Primary School",
"Postcode": "LE80NH"
},
{
"SchoolName": "Great Bowden Church of England Primary School",
"Postcode": "LE167HZ"
},
{
"SchoolName": "St Mary's Church of England High School (VA)",
"Postcode": "EN75FB"
},
{
"SchoolName": "Notre Dame High School",
"Postcode": "S103BT"
},
{
"SchoolName": "Gurney Pease Academy",
"Postcode": "DL12NG"
},
{
"SchoolName": "Abacus College",
"Postcode": "OX39AX"
},
{
"SchoolName": "Willow Brook Primary School Academy",
"Postcode": "E107BH"
},
{
"SchoolName": "Sherwood Academy",
"Postcode": "NG44HX"
},
{
"SchoolName": "Oakbank",
"Postcode": "RG71ER"
},
{
"SchoolName": "Parkside Studio College",
"Postcode": "UB32SE"
},
{
"SchoolName": "Barton Hill Academy",
"Postcode": "TQ28JA"
},
{
"SchoolName": "Torquay Academy",
"Postcode": "TQ27NU"
},
{
"SchoolName": "Ark Rose Primary Academy",
"Postcode": "B389DH"
},
{
"SchoolName": "Meadow Park Academy",
"Postcode": "RG306BS"
},
{
"SchoolName": "Chantry Academy",
"Postcode": "IP29LR"
},
{
"SchoolName": "West Walsall E-ACT Academy",
"Postcode": "WS29UA"
},
{
"SchoolName": "Bridgwater College Academy",
"Postcode": "TA64QY"
},
{
"SchoolName": "The Dolphin School",
"Postcode": "BS65RD"
},
{
"SchoolName": "Clannad Education Centre",
"Postcode": "BR60DW"
},
{
"SchoolName": "Everton Free School",
"Postcode": "L44DL"
},
{
"SchoolName": "Lighthouse School Leeds",
"Postcode": "LS166QB"
},
{
"SchoolName": "Enfield Heights Academy",
"Postcode": "EN35BY"
},
{
"SchoolName": "Steiner Academy Frome",
"Postcode": "BA111EU"
},
{
"SchoolName": "Kings London",
"Postcode": "BR34PR"
},
{
"SchoolName": "LeAF Studio",
"Postcode": "BH119JW"
},
{
"SchoolName": "Park View Academy",
"Postcode": "DA161SR"
},
{
"SchoolName": "Isle of Portland Aldridge Community Academy",
"Postcode": "DT52NA"
},
{
"SchoolName": "Garden City Academy",
"Postcode": "SG62JZ"
},
{
"SchoolName": "Heron Park Primary Academy",
"Postcode": "BN229EE"
},
{
"SchoolName": "Oakwood Primary Academy",
"Postcode": "BN220SS"
},
{
"SchoolName": "Glenleigh Park Primary Academy",
"Postcode": "TN394ED"
},
{
"SchoolName": "Wilthorpe Primary School",
"Postcode": "S751EG"
},
{
"SchoolName": "Bath Community Academy",
"Postcode": "BA22QL"
},
{
"SchoolName": "Chilwell Croft Academy",
"Postcode": "B192QH"
},
{
"SchoolName": "Nechells Primary E-ACT Academy",
"Postcode": "B75LB"
},
{
"SchoolName": "Ark Tindal Primary Academy",
"Postcode": "B129QS"
},
{
"SchoolName": "Field Lane Primary School",
"Postcode": "HD63JT"
},
{
"SchoolName": "The Ferns Primary Academy",
"Postcode": "BL40DA"
},
{
"SchoolName": "King Offa Primary Academy",
"Postcode": "TN394HS"
},
{
"SchoolName": "Willow Green Academy",
"Postcode": "WF118PT"
},
{
"SchoolName": "Portfield Primary Academy",
"Postcode": "PO197HA"
},
{
"SchoolName": "London Academy of Excellence",
"Postcode": "E151AJ"
},
{
"SchoolName": "Briscoe Primary School & Nursery Academy",
"Postcode": "SS131PN"
},
{
"SchoolName": "Earlscliffe (Sussex Summer Schools Ltd)",
"Postcode": "CT202NB"
},
{
"SchoolName": "Wandsworth Preparatory School",
"Postcode": "SW182PQ"
},
{
"SchoolName": "Pier View Academy",
"Postcode": "DA122AX"
},
{
"SchoolName": "Oasis Academy Bank Leaze",
"Postcode": "BS110SN"
},
{
"SchoolName": "Percy Shurmer Academy",
"Postcode": "B129ED"
},
{
"SchoolName": "Meden School",
"Postcode": "NG200QN"
},
{
"SchoolName": "Southway Primary School",
"Postcode": "PO215EZ"
},
{
"SchoolName": "Chaucer School",
"Postcode": "S58NH"
},
{
"SchoolName": "Gooseacre Primary Academy",
"Postcode": "S630NU"
},
{
"SchoolName": "Dukesgate Academy",
"Postcode": "M389HF"
},
{
"SchoolName": "Marlborough Road Academy",
"Postcode": "M74XD"
},
{
"SchoolName": "The Albion Academy",
"Postcode": "M66QT"
},
{
"SchoolName": "Diamond Academy",
"Postcode": "IP243DP"
},
{
"SchoolName": "Croft Academy",
"Postcode": "WS28JE"
},
{
"SchoolName": "The Dean Academy",
"Postcode": "GL155DZ"
},
{
"SchoolName": "Eastfield Academy",
"Postcode": "NN32RJ"
},
{
"SchoolName": "The Croft Primary School",
"Postcode": "SN31RA"
},
{
"SchoolName": "The Shirestone Academy",
"Postcode": "B330DH"
},
{
"SchoolName": "Peacehaven Heights Primary School",
"Postcode": "BN107QY"
},
{
"SchoolName": "Greenfield Academy",
"Postcode": "GL115HD"
},
{
"SchoolName": "Peak Academy",
"Postcode": "GL115HD"
},
{
"SchoolName": "The Ridge Academy",
"Postcode": "GL525QH"
},
{
"SchoolName": "Race Leys Junior School",
"Postcode": "CV128HG"
},
{
"SchoolName": "St Clement's Church of England Academy",
"Postcode": "B75NS"
},
{
"SchoolName": "St Michael's CofE Primary Academy, Handsworth",
"Postcode": "B210UX"
},
{
"SchoolName": "Northdown Primary School",
"Postcode": "CT93RE"
},
{
"SchoolName": "Tamworth Enterprise College and AET Academy",
"Postcode": "B772NE"
},
{
"SchoolName": "Newlands Primary School",
"Postcode": "CT117AJ"
},
{
"SchoolName": "Bridgemary School",
"Postcode": "PO130JN"
},
{
"SchoolName": "Salmestone Primary School",
"Postcode": "CT94DB"
},
{
"SchoolName": "Sir Herbert Leon Academy",
"Postcode": "MK23HQ"
},
{
"SchoolName": "Charles Warren Academy",
"Postcode": "MK63AZ"
},
{
"SchoolName": "Compass Community School",
"Postcode": "HX50SH"
},
{
"SchoolName": "Skegness Junior Academy",
"Postcode": "PE252QX"
},
{
"SchoolName": "Wyndham Primary Academy",
"Postcode": "DE240EP"
},
{
"SchoolName": "Ingoldmells Academy",
"Postcode": "PE251PS"
},
{
"SchoolName": "Mablethorpe Primary Academy",
"Postcode": "LN121EW"
},
{
"SchoolName": "Harris Primary Academy Coleraine Park",
"Postcode": "N179XT"
},
{
"SchoolName": "Harris Primary Academy Philip Lane",
"Postcode": "N154AB"
},
{
"SchoolName": "Orchard School Bristol",
"Postcode": "BS70XZ"
},
{
"SchoolName": "Harris Academy Greenwich",
"Postcode": "SE95EQ"
},
{
"SchoolName": "The Bridge Short Stay School",
"Postcode": "CH657AR"
},
{
"SchoolName": "Reedswood E-ACT Academy",
"Postcode": "WS28RX"
},
{
"SchoolName": "Broadfield East Junior School",
"Postcode": "RH119PD"
},
{
"SchoolName": "Hornbeam Academy Special Academy",
"Postcode": "E175NT"
},
{
"SchoolName": "Voyage Learning Campus",
"Postcode": "BS249AX"
},
{
"SchoolName": "Wembley High Technology College",
"Postcode": "HA03NT"
},
{
"SchoolName": "Salvatorian Roman Catholic College",
"Postcode": "HA35DY"
},
{
"SchoolName": "The Holy Cross School",
"Postcode": "KT35AR"
},
{
"SchoolName": "Teddington School",
"Postcode": "TW119PJ"
},
{
"SchoolName": "Waldegrave School",
"Postcode": "TW25LH"
},
{
"SchoolName": "Hockley Heath Academy",
"Postcode": "B946RA"
},
{
"SchoolName": "St Francis Xavier's College",
"Postcode": "L256EG"
},
{
"SchoolName": "Loreto Grammar School",
"Postcode": "WA144AH"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "BS58AS"
},
{
"SchoolName": "Nailsea School",
"Postcode": "BS482HN"
},
{
"SchoolName": "Bursar Primary Academy",
"Postcode": "DN358DS"
},
{
"SchoolName": "Thrunscoe Primary and Nursery Academy",
"Postcode": "DN358UL"
},
{
"SchoolName": "Chantry Primary Academy",
"Postcode": "LU40QP"
},
{
"SchoolName": "St Mary's Catholic High School, A Catholic Voluntary Academy",
"Postcode": "S418AG"
},
{
"SchoolName": "The Gryphon School",
"Postcode": "DT94EQ"
},
{
"SchoolName": "Hailsham Community College",
"Postcode": "BN271DT"
},
{
"SchoolName": "Seaford Head School",
"Postcode": "BN254LX"
},
{
"SchoolName": "Ratton School",
"Postcode": "BN212XR"
},
{
"SchoolName": "The Cavendish School",
"Postcode": "BN211UE"
},
{
"SchoolName": "St Anne's Catholic School",
"Postcode": "SO152WZ"
},
{
"SchoolName": "Castle Rock High School",
"Postcode": "LE674BR"
},
{
"SchoolName": "King William Street Church of England Primary School",
"Postcode": "SN13LB"
},
{
"SchoolName": "The Harvey Grammar School",
"Postcode": "CT195JY"
},
{
"SchoolName": "Kirkby College",
"Postcode": "NG177DH"
},
{
"SchoolName": "Rushcliffe School",
"Postcode": "NG27BW"
},
{
"SchoolName": "Tarporley High School and Sixth Form College",
"Postcode": "CW60BL"
},
{
"SchoolName": "The Sele School",
"Postcode": "SG142DG"
},
{
"SchoolName": "Knightsfield School",
"Postcode": "AL87LW"
},
{
"SchoolName": "Branston Junior Academy",
"Postcode": "LN41LH"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "LN106RQ"
},
{
"SchoolName": "Didcot Girls' School",
"Postcode": "OX117AJ"
},
{
"SchoolName": "The Bishop Wand Church of England School",
"Postcode": "TW166LT"
},
{
"SchoolName": "Greenway Academy",
"Postcode": "RH122JS"
},
{
"SchoolName": "Spring Lane Primary School",
"Postcode": "NN12JW"
},
{
"SchoolName": "Lumbertubs Primary School",
"Postcode": "NN38HZ"
},
{
"SchoolName": "Harris Academy Morden",
"Postcode": "SM46DU"
},
{
"SchoolName": "The Forest High School",
"Postcode": "GL142AZ"
},
{
"SchoolName": "Harpfield Primary Academy",
"Postcode": "ST46AP"
},
{
"SchoolName": "Bolton Islamic Girls School",
"Postcode": "BL32AW"
},
{
"SchoolName": "Banbury Academy",
"Postcode": "OX169HY"
},
{
"SchoolName": "Dashwood Banbury Academy",
"Postcode": "OX164RX"
},
{
"SchoolName": "<NAME> Academy",
"Postcode": "CR06JN"
},
{
"SchoolName": "Elaine Primary Academy",
"Postcode": "ME22YN"
},
{
"SchoolName": "Arrow Vale RSA Academy",
"Postcode": "B980EN"
},
{
"SchoolName": "Ormiston Sudbury Academy",
"Postcode": "CO101NW"
},
{
"SchoolName": "The Grove Academy",
"Postcode": "WD259RH"
},
{
"SchoolName": "St Augustine's Catholic Primary and Nursery School, A Voluntary Academy",
"Postcode": "NG34JS"
},
{
"SchoolName": "St Columba Church of England Primary Academy",
"Postcode": "PO156LL"
},
{
"SchoolName": "Phoenix Junior Academy",
"Postcode": "ME45QD"
},
{
"SchoolName": "The Robert Napier School",
"Postcode": "ME72LX"
},
{
"SchoolName": "Hartley Brook Primary School",
"Postcode": "S50JF"
},
{
"SchoolName": "St <NAME>er, a Catholic Voluntary Academy",
"Postcode": "DE240PA"
},
{
"SchoolName": "Vishnitz Girls School",
"Postcode": "N165DL"
},
{
"SchoolName": "Ark Isaac Newton Academy",
"Postcode": "IG11FY"
},
{
"SchoolName": "Worlaby Academy",
"Postcode": "DN200NA"
},
{
"SchoolName": "Brockington College",
"Postcode": "LE194AQ"
},
{
"SchoolName": "Ralph Allen School",
"Postcode": "BA27AD"
},
{
"SchoolName": "St Bede's RC Primary School",
"Postcode": "DL13ES"
},
{
"SchoolName": "Trinity School",
"Postcode": "RG142DU"
},
{
"SchoolName": "Portland Academy",
"Postcode": "SR32NQ"
},
{
"SchoolName": "Thomas Estley Community College",
"Postcode": "LE96PT"
},
{
"SchoolName": "Cosby Primary School",
"Postcode": "LE91TE"
},
{
"SchoolName": "Countesthorpe Leysland Community College",
"Postcode": "LE85PR"
},
{
"SchoolName": "Barbara Priestman Academy",
"Postcode": "SR27QN"
},
{
"SchoolName": "Westbury Park Primary School",
"Postcode": "BS67NU"
},
{
"SchoolName": "Melland High School",
"Postcode": "M187DT"
},
{
"SchoolName": "Newlands Spring Primary School Academy Trust",
"Postcode": "CM14UU"
},
{
"SchoolName": "Holley Park Academy",
"Postcode": "NE380LR"
},
{
"SchoolName": "Simpson's Lane Academy",
"Postcode": "WF110PL"
},
{
"SchoolName": "Balsall Common Primary School",
"Postcode": "CV77FS"
},
{
"SchoolName": "Hawes Side Academy",
"Postcode": "FY43LN"
},
{
"SchoolName": "Northgate Primary School",
"Postcode": "CM232RL"
},
{
"SchoolName": "Jubilee Academy Mossley",
"Postcode": "WS32SQ"
},
{
"SchoolName": "King Ina Church of England Academy (Juniors)",
"Postcode": "TA117NL"
},
{
"SchoolName": "Yarborough Academy",
"Postcode": "DN344JU"
},
{
"SchoolName": "Broughton Jewish Cassel Fox Primary School",
"Postcode": "M74RT"
},
{
"SchoolName": "Albany Academy",
"Postcode": "PR73AY"
},
{
"SchoolName": "Meadowhead School Academy Trust",
"Postcode": "S88BR"
},
{
"SchoolName": "Charlton Park Academy",
"Postcode": "SE78HX"
},
{
"SchoolName": "Sutherland Primary Academy",
"Postcode": "ST33DY"
},
{
"SchoolName": "Haywood Academy",
"Postcode": "ST67AB"
},
{
"SchoolName": "Eaton Park Academy",
"Postcode": "ST29PF"
},
{
"SchoolName": "The Crescent Academy",
"Postcode": "ST36HZ"
},
{
"SchoolName": "Queensmead Primary Academy",
"Postcode": "LE31PF"
},
{
"SchoolName": "Acre Rigg Academy",
"Postcode": "SR82DU"
},
{
"SchoolName": "Victoria Lane Academy",
"Postcode": "DL148NN"
},
{
"SchoolName": "Stephenson Way Academy and Nursery School",
"Postcode": "DL57DD"
},
{
"SchoolName": "Tudhoe Colliery Primary School",
"Postcode": "DL166TJ"
},
{
"SchoolName": "St. Augustine's Academy",
"Postcode": "LU54AS"
},
{
"SchoolName": "Brambles Primary Academy",
"Postcode": "TS39DB"
},
{
"SchoolName": "Pennyman Primary Academy",
"Postcode": "TS30QS"
},
{
"SchoolName": "King's Leadership Academy Warrington",
"Postcode": "WA14PF"
},
{
"SchoolName": "Aurora Hedgeway School",
"Postcode": "BS354JN"
},
{
"SchoolName": "Buttercup Primary School",
"Postcode": "E12LX"
},
{
"SchoolName": "Brighton and Hove Pupil Referral Unit",
"Postcode": "BN17FP"
},
{
"SchoolName": "Grindon Hall Christian School",
"Postcode": "SR48PG"
},
{
"SchoolName": "<NAME> Northwest",
"Postcode": "OL81TJ"
},
{
"SchoolName": "Houghton Regis Academy",
"Postcode": "LU55PX"
},
{
"SchoolName": "Mansfield Primary Academy",
"Postcode": "NG182LB"
},
{
"SchoolName": "Queensbury Academy",
"Postcode": "LU63BU"
},
{
"SchoolName": "Top Valley Academy",
"Postcode": "NG59AZ"
},
{
"SchoolName": "White Hall Academy",
"Postcode": "CO153SP"
},
{
"SchoolName": "Grasmere Academy",
"Postcode": "NE126TS"
},
{
"SchoolName": "Welbeck Academy",
"Postcode": "NE62QL"
},
{
"SchoolName": "Hersden Village Primary School",
"Postcode": "CT34HS"
},
{
"SchoolName": "Physis Heathgates Academy",
"Postcode": "SY132AJ"
},
{
"SchoolName": "Thameside Primary School",
"Postcode": "RM176EF"
},
{
"SchoolName": "Samuel Ryder Academy",
"Postcode": "AL15AR"
},
{
"SchoolName": "Chalfont Valley E-ACT Primary Academy",
"Postcode": "HP66PF"
},
{
"SchoolName": "Christ Church CE Academy",
"Postcode": "HD21JP"
},
{
"SchoolName": "The New Forest Academy",
"Postcode": "SO452PA"
},
{
"SchoolName": "Nishkam High School",
"Postcode": "B192LF"
},
{
"SchoolName": "Noel Park Primary School",
"Postcode": "N226LH"
},
{
"SchoolName": "Trinity Primary Academy",
"Postcode": "N228ES"
},
{
"SchoolName": "Slade Primary School",
"Postcode": "B237PX"
},
{
"SchoolName": "Goldsmith Primary Academy",
"Postcode": "WS31DL"
},
{
"SchoolName": "St Laurence In Thanet Church of England Junior Academy",
"Postcode": "CT110QX"
},
{
"SchoolName": "The Featherstone Academy",
"Postcode": "WF75AJ"
},
{
"SchoolName": "Middlefield Primary Academy",
"Postcode": "PE192QE"
},
{
"SchoolName": "Hope Corner Academy",
"Postcode": "WA74TD"
},
{
"SchoolName": "Harrow Primary School",
"Postcode": "HA12LS"
},
{
"SchoolName": "La Petite Ecole Bilingue",
"Postcode": "W105UW"
},
{
"SchoolName": "Kings Oxford",
"Postcode": "OX42UJ"
},
{
"SchoolName": "Herons' Moor Academy",
"Postcode": "BS247DX"
},
{
"SchoolName": "Greensted Junior School",
"Postcode": "SS141RX"
},
{
"SchoolName": "Orchard Academy",
"Postcode": "MK63HW"
},
{
"SchoolName": "Blue Coat Church of England Academy",
"Postcode": "WS12ND"
},
{
"SchoolName": "Lady Margaret School",
"Postcode": "SW64UN"
},
{
"SchoolName": "Sudbury Primary School",
"Postcode": "HA03EY"
},
{
"SchoolName": "Queens Park Community School",
"Postcode": "NW67BQ"
},
{
"SchoolName": "Alperton Community School",
"Postcode": "HA04JE"
},
{
"SchoolName": "Crofton Infant School",
"Postcode": "BR51EL"
},
{
"SchoolName": "St Thomas Becket Catholic Primary School",
"Postcode": "SE255BN"
},
{
"SchoolName": "Cranford Park Academy",
"Postcode": "UB34LQ"
},
{
"SchoolName": "Altrincham College of Arts",
"Postcode": "WA158QW"
},
{
"SchoolName": "Upperwood Academy",
"Postcode": "S739NL"
},
{
"SchoolName": "The Wey Valley School",
"Postcode": "DT35AN"
},
{
"SchoolName": "Chew Stoke Church School",
"Postcode": "BS408UY"
},
{
"SchoolName": "The Oaks Primary School",
"Postcode": "RH105DP"
},
{
"SchoolName": "St Catherine's Catholic Primary School, Swindon",
"Postcode": "SN27LL"
},
{
"SchoolName": "Thomas Bennett Community College",
"Postcode": "RH105AD"
},
{
"SchoolName": "Wood End Park Academy",
"Postcode": "UB32PD"
},
{
"SchoolName": "Saint Benedict, A Catholic Voluntary Academy",
"Postcode": "DE221JD"
},
{
"SchoolName": "St John's Marlborough",
"Postcode": "SN84AX"
},
{
"SchoolName": "Rye College",
"Postcode": "TN317NQ"
},
{
"SchoolName": "Ludlow Infant Academy",
"Postcode": "SO192EU"
},
{
"SchoolName": "Portswood Primary School",
"Postcode": "SO173AA"
},
{
"SchoolName": "Groby Community College",
"Postcode": "LE60GE"
},
{
"SchoolName": "Long Field Academy",
"Postcode": "LE130BN"
},
{
"SchoolName": "Easton Royal Academy",
"Postcode": "SN95LZ"
},
{
"SchoolName": "Devizes School",
"Postcode": "SN103AG"
},
{
"SchoolName": "Aveton Gifford CofE Primary School",
"Postcode": "TQ74LB"
},
{
"SchoolName": "Monk's Walk School",
"Postcode": "AL87NL"
},
{
"SchoolName": "Ribbon Academy Trust",
"Postcode": "SR79QR"
},
{
"SchoolName": "Maplefields Academy",
"Postcode": "NN180TH"
},
{
"SchoolName": "White Waltham CofE Academy",
"Postcode": "SL63SG"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "SN32PT"
},
{
"SchoolName": "Louth Kidgate Primary Academy",
"Postcode": "LN119BX"
},
{
"SchoolName": "Kesteven and Grantham Girls' School",
"Postcode": "NG319AU"
},
{
"SchoolName": "The Nettleham Infant School",
"Postcode": "LN22NT"
},
{
"SchoolName": "The Gainsborough Parish Church Primary School",
"Postcode": "DN212LN"
},
{
"SchoolName": "The Kimberley School",
"Postcode": "NG162NJ"
},
{
"SchoolName": "Costessey Junior School",
"Postcode": "NR50RR"
},
{
"SchoolName": "Northern House School",
"Postcode": "OX27JN"
},
{
"SchoolName": "Hartshill School",
"Postcode": "CV100NA"
},
{
"SchoolName": "Seymour Primary School",
"Postcode": "RH119ES"
},
{
"SchoolName": "Parklands High School",
"Postcode": "PR71LL"
},
{
"SchoolName": "Hilltop Primary School",
"Postcode": "RH118QL"
},
{
"SchoolName": "Grasvenor Avenue Infant School",
"Postcode": "EN52BY"
},
{
"SchoolName": "St Columba's Catholic Boys' School",
"Postcode": "DA67QB"
},
{
"SchoolName": "Orleans Park School",
"Postcode": "TW13BB"
},
{
"SchoolName": "The Cedars Academy",
"Postcode": "NE96QD"
},
{
"SchoolName": "Briscoe Lane Academy",
"Postcode": "M402TB"
},
{
"SchoolName": "Elmridge Primary School",
"Postcode": "WA150JF"
},
{
"SchoolName": "Begbrook Primary Academy",
"Postcode": "BS161HG"
},
{
"SchoolName": "Chandlers Ridge Academy",
"Postcode": "TS70JL"
},
{
"SchoolName": "Siddal Primary School",
"Postcode": "HX39DL"
},
{
"SchoolName": "Summerhill Academy",
"Postcode": "BS57JU"
},
{
"SchoolName": "Castleview Primary School",
"Postcode": "SL37LJ"
},
{
"SchoolName": "Foxwood Academy",
"Postcode": "NG93GF"
},
{
"SchoolName": "Eaton Bank Academy",
"Postcode": "CW121NT"
},
{
"SchoolName": "Whitemoor Academy (Primary and Nursery)",
"Postcode": "NG85FF"
},
{
"SchoolName": "Waseley Hills High School",
"Postcode": "B459EL"
},
{
"SchoolName": "Queen Elizabeth's Grammar School, Horncastle",
"Postcode": "LN95AD"
},
{
"SchoolName": "St George's Catholic Voluntary Academy",
"Postcode": "DE231GG"
},
{
"SchoolName": "Lord Williams's School",
"Postcode": "OX92AQ"
},
{
"SchoolName": "Filton Avenue Primary School",
"Postcode": "BS79RP"
},
{
"SchoolName": "Alpha Preparatory School",
"Postcode": "E173JJ"
},
{
"SchoolName": "Tregolls School - an Academy",
"Postcode": "TR11LH"
},
{
"SchoolName": "Beanfield Primary School",
"Postcode": "NN180LJ"
},
{
"SchoolName": "Park View Primary Academy",
"Postcode": "LS117DG"
},
{
"SchoolName": "Brockworth Primary Academy",
"Postcode": "GL34JL"
},
{
"SchoolName": "Ryecroft Primary Academy",
"Postcode": "BD40LS"
},
{
"SchoolName": "Wainwright Primary Academy",
"Postcode": "NG196TF"
},
{
"SchoolName": "Newington Academy",
"Postcode": "HU35DD"
},
{
"SchoolName": "The Green Way Academy",
"Postcode": "HU68HD"
},
{
"SchoolName": "Hall Road Academy",
"Postcode": "HU68PP"
},
{
"SchoolName": "Ark Bentworth Primary Academy",
"Postcode": "W127AJ"
},
{
"SchoolName": "Ark Putney Academy",
"Postcode": "SW153DG"
},
{
"SchoolName": "Southfields Academy",
"Postcode": "SW185JU"
},
{
"SchoolName": "Millbank Academy",
"Postcode": "SW1P4HR"
},
{
"SchoolName": "Thames View Infants' School",
"Postcode": "IG110LG"
},
{
"SchoolName": "Copthall School",
"Postcode": "NW72EP"
},
{
"SchoolName": "Cleeve Park School",
"Postcode": "DA144JN"
},
{
"SchoolName": "Oasis Academy Byron",
"Postcode": "CR52XE"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "HA86ES"
},
{
"SchoolName": "Latchmere School",
"Postcode": "KT25TT"
},
{
"SchoolName": "Barclay Primary School",
"Postcode": "E106EJ"
},
{
"SchoolName": "Chingford Foundation School",
"Postcode": "E47LT"
},
{
"SchoolName": "Greenholm Primary School",
"Postcode": "B448HS"
},
{
"SchoolName": "Great Barr Primary School",
"Postcode": "B448NT"
},
{
"SchoolName": "George Dixon Academy",
"Postcode": "B169GD"
},
{
"SchoolName": "West Derby School",
"Postcode": "L137HQ"
},
{
"SchoolName": "New Bridge School",
"Postcode": "OL83PH"
},
{
"SchoolName": "Beis Yaakov High School",
"Postcode": "M74FF"
},
{
"SchoolName": "The Byrchall High School",
"Postcode": "WN49PQ"
},
{
"SchoolName": "The Hill Primary Academy",
"Postcode": "S630DS"
},
{
"SchoolName": "Highgate Primary Academy",
"Postcode": "S639AS"
},
{
"SchoolName": "Carrfield Primary Academy",
"Postcode": "S638AL"
},
{
"SchoolName": "Castle Academy",
"Postcode": "DN123DB"
},
{
"SchoolName": "St Oswald's CofE Academy",
"Postcode": "DN93EQ"
},
{
"SchoolName": "Armthorpe Shaw Wood Academy",
"Postcode": "DN32DG"
},
{
"SchoolName": "King James's School",
"Postcode": "HD46SG"
},
{
"SchoolName": "Horbury Academy",
"Postcode": "WF45HE"
},
{
"SchoolName": "Colston's Primary School",
"Postcode": "BS66AL"
},
{
"SchoolName": "Greenfield E-Act Primary Academy",
"Postcode": "BS41QW"
},
{
"SchoolName": "Oasis Academy New Oak",
"Postcode": "BS149SN"
},
{
"SchoolName": "Outwood Academy Ormesby",
"Postcode": "TS30RH"
},
{
"SchoolName": "Epworth Primary Academy",
"Postcode": "DN91DL"
},
{
"SchoolName": "Westwoodside Church of England Academy",
"Postcode": "DN92DR"
},
{
"SchoolName": "The Vale Academy",
"Postcode": "LU54QP"
},
{
"SchoolName": "Shepherdswell Academy",
"Postcode": "MK63NP"
},
{
"SchoolName": "Wyvern Academy",
"Postcode": "DT35AL"
},
{
"SchoolName": "Woodham Academy",
"Postcode": "DL54AX"
},
{
"SchoolName": "Hope Wood Academy",
"Postcode": "SR83LP"
},
{
"SchoolName": "Hook-With-Warsash Church of England Academy",
"Postcode": "SO319GF"
},
{
"SchoolName": "Eggar's School",
"Postcode": "GU344EQ"
},
{
"SchoolName": "Ibstock Community College",
"Postcode": "LE676NE"
},
{
"SchoolName": "The Faber Catholic Primary School",
"Postcode": "ST103DN"
},
{
"SchoolName": "St Filumena's Catholic Primary School",
"Postcode": "ST119EA"
},
{
"SchoolName": "St Giles Catholic Primary School",
"Postcode": "ST101ED"
},
{
"SchoolName": "St Mary's Catholic Academy",
"Postcode": "ST138BW"
},
{
"SchoolName": "St Thomas' Catholic Primary School",
"Postcode": "ST104DS"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "ST147JX"
},
{
"SchoolName": "The Rawlett School (An Aet Academy)",
"Postcode": "B799AA"
},
{
"SchoolName": "Painsley Catholic College",
"Postcode": "ST101LH"
},
{
"SchoolName": "The Manor CofE VC Primary School",
"Postcode": "SN127NG"
},
{
"SchoolName": "Godolphin Infant School",
"Postcode": "SL13BQ"
},
{
"SchoolName": "Lymm High School",
"Postcode": "WA130RB"
},
{
"SchoolName": "Christow Primary School",
"Postcode": "EX67PE"
},
{
"SchoolName": "Joyce Frankland Academy, Newport",
"Postcode": "CB113TR"
},
{
"SchoolName": "Kenningtons Primary Academy",
"Postcode": "RM154NB"
},
{
"SchoolName": "Beacon Hill Academy",
"Postcode": "RM155AY"
},
{
"SchoolName": "West Malling Church of England Voluntary Controlled Primary School and Language Unit",
"Postcode": "ME196RL"
},
{
"SchoolName": "Sturry Church of England Primary School",
"Postcode": "CT20NR"
},
{
"SchoolName": "Norbreck Primary Academy",
"Postcode": "FY51PD"
},
{
"SchoolName": "Old Basford School",
"Postcode": "NG60GF"
},
{
"SchoolName": "The Milford Academy",
"Postcode": "NG119BT"
},
{
"SchoolName": "Kelsall Primary School",
"Postcode": "CW60PU"
},
{
"SchoolName": "The County High School Leftwich",
"Postcode": "CW98EZ"
},
{
"SchoolName": "Ghyllside Primary School",
"Postcode": "LA94JB"
},
{
"SchoolName": "St John's Church of England Academy",
"Postcode": "GL168DU"
},
{
"SchoolName": "Newent Community School and Sixth Form Centre",
"Postcode": "GL181QF"
},
{
"SchoolName": "Hertswood Academy",
"Postcode": "WD65LG"
},
{
"SchoolName": "North Hykeham Ling Moor Primary School",
"Postcode": "LN68QZ"
},
{
"SchoolName": "Hogsthorpe Primary Academy",
"Postcode": "PE245PT"
},
{
"SchoolName": "Skegness Infant Academy",
"Postcode": "PE252QU"
},
{
"SchoolName": "Carlton Road Academy",
"Postcode": "PE218QX"
},
{
"SchoolName": "Staniland Academy",
"Postcode": "PE218DF"
},
{
"SchoolName": "Ellison Boulters Church of England Primary School",
"Postcode": "LN22UZ"
},
{
"SchoolName": "Haven High Academy",
"Postcode": "PE219HB"
},
{
"SchoolName": "The Thomas Cowley High School",
"Postcode": "PE114TF"
},
{
"SchoolName": "William Lovell Church of England School",
"Postcode": "PE228AA"
},
{
"SchoolName": "Skegness Grammar School",
"Postcode": "PE252QS"
},
{
"SchoolName": "Acle Academy",
"Postcode": "NR133ER"
},
{
"SchoolName": "Flegg High School",
"Postcode": "NR294QD"
},
{
"SchoolName": "Boughton Primary School",
"Postcode": "NN28RG"
},
{
"SchoolName": "Gretton Primary School",
"Postcode": "NN173DB"
},
{
"SchoolName": "St Birinus School",
"Postcode": "OX118AZ"
},
{
"SchoolName": "Axbridge Church of England First School Academy",
"Postcode": "BS262BA"
},
{
"SchoolName": "Danetree Primary School",
"Postcode": "KT199SE"
},
{
"SchoolName": "The Matthew Arnold School",
"Postcode": "TW181PF"
},
{
"SchoolName": "Wishmore Cross Academy",
"Postcode": "GU248NE"
},
{
"SchoolName": "Shipston High School",
"Postcode": "CV364DY"
},
{
"SchoolName": "The King's House School, Windsor",
"Postcode": "SL43AQ"
},
{
"SchoolName": "The St Michael Steiner School",
"Postcode": "TW136PN"
},
{
"SchoolName": "Curledge Street Academy",
"Postcode": "TQ45BA"
},
{
"SchoolName": "Kings Ash Academy",
"Postcode": "TQ33XA"
},
{
"SchoolName": "<NAME> Academy",
"Postcode": "OX44LS"
},
{
"SchoolName": "East Birmingham Network Academy",
"Postcode": "B261AL"
},
{
"SchoolName": "Al-Madinah School",
"Postcode": "DE248WH"
},
{
"SchoolName": "La Petite Ecole Bilingue",
"Postcode": "NW54NL"
},
{
"SchoolName": "Copperfield School",
"Postcode": "NR301DX"
},
{
"SchoolName": "Severn View Academy",
"Postcode": "GL51NL"
},
{
"SchoolName": "King Edward VI Academy",
"Postcode": "PE235EW"
},
{
"SchoolName": "Rushbrook Primary Academy",
"Postcode": "M187TN"
},
{
"SchoolName": "Stanley Grove Primary Academy",
"Postcode": "M124NL"
},
{
"SchoolName": "Offa's Mead Academy",
"Postcode": "NP167DT"
},
{
"SchoolName": "Childwall Sports & Science Academy",
"Postcode": "L156XZ"
},
{
"SchoolName": "Forest Gate Academy",
"Postcode": "M314PN"
},
{
"SchoolName": "Minerva Primary Academy",
"Postcode": "BS164HA"
},
{
"SchoolName": "Landau Forte Academy Moorhead",
"Postcode": "DE240AN"
},
{
"SchoolName": "Frome Vale Academy",
"Postcode": "BS162QS"
},
{
"SchoolName": "Stoneleigh Academy",
"Postcode": "OL14LJ"
},
{
"SchoolName": "Great Yarmouth Primary Academy",
"Postcode": "NR303DT"
},
{
"SchoolName": "Fishponds Church of England Academy",
"Postcode": "BS163UH"
},
{
"SchoolName": "Dersingham Primary School",
"Postcode": "PE316LR"
},
{
"SchoolName": "Kelling CE Primary School",
"Postcode": "NR257ED"
},
{
"SchoolName": "Walsingham CE VA Primary School",
"Postcode": "NR226DU"
},
{
"SchoolName": "Nansen Primary School",
"Postcode": "B83HG"
},
{
"SchoolName": "Ambleside Primary School",
"Postcode": "NG85PN"
},
{
"SchoolName": "Hafs Academy",
"Postcode": "E151JW"
},
{
"SchoolName": "Octavia House Schools",
"Postcode": "SE116AU"
},
{
"SchoolName": "Ashby Hill Top Primary School",
"Postcode": "LE652NF"
},
{
"SchoolName": "Broomfield Community Primary School",
"Postcode": "LE73ZQ"
},
{
"SchoolName": "Eastfield Primary School",
"Postcode": "LE48FP"
},
{
"SchoolName": "Gaddesby Primary School",
"Postcode": "LE74WF"
},
{
"SchoolName": "Huttoft Primary School",
"Postcode": "LN139RE"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "LE60ZA"
},
{
"SchoolName": "Christ The King Voluntary Academy",
"Postcode": "NG57JZ"
},
{
"SchoolName": "The Good Shepherd Catholic Primary, Arnold",
"Postcode": "NG54LT"
},
{
"SchoolName": "Holy Cross Primary Catholic Voluntary Academy",
"Postcode": "NG158BZ"
},
{
"SchoolName": "Sacred Heart Catholic Primary School, Carlton",
"Postcode": "NG41EQ"
},
{
"SchoolName": "St Margaret Clitherow Catholic Primary School",
"Postcode": "NG55RS"
},
{
"SchoolName": "Stourfield Infant School",
"Postcode": "BH65JS"
},
{
"SchoolName": "The Little Gonerby Church of England Infant School, Grantham",
"Postcode": "NG319AZ"
},
{
"SchoolName": "The Marlborough Church of England School",
"Postcode": "OX201LP"
},
{
"SchoolName": "The Merton Primary School",
"Postcode": "LE72PT"
},
{
"SchoolName": "Belvoir High School and Melton Vale Post 16 Centre",
"Postcode": "NG130AX"
},
{
"SchoolName": "Castle Donington College",
"Postcode": "DE742LN"
},
{
"SchoolName": "King Edward VII Science and Sport College",
"Postcode": "LE674UW"
},
{
"SchoolName": "Wootton Primary School",
"Postcode": "NN46HJ"
},
{
"SchoolName": "Charters School",
"Postcode": "SL59QY"
},
{
"SchoolName": "Manston St James Primary Academy",
"Postcode": "LS158JH"
},
{
"SchoolName": "Grey Court School",
"Postcode": "TW107HN"
},
{
"SchoolName": "New Seaham Academy",
"Postcode": "SR70HX"
},
{
"SchoolName": "Saint Norbert's Catholic Primary Voluntary Academy",
"Postcode": "DN174HL"
},
{
"SchoolName": "St Thomas of Canterbury School, a Catholic Voluntary Academy",
"Postcode": "S87TR"
},
{
"SchoolName": "Reepham High School and College",
"Postcode": "NR104JT"
},
{
"SchoolName": "St Wilfrid's Catholic Primary School",
"Postcode": "S72HE"
},
{
"SchoolName": "Winterton Community Academy",
"Postcode": "DN159QD"
},
{
"SchoolName": "Alderman White School",
"Postcode": "NG93DU"
},
{
"SchoolName": "Ashby School",
"Postcode": "LE651DT"
},
{
"SchoolName": "Brentwood Ursuline Convent High School",
"Postcode": "CM144EX"
},
{
"SchoolName": "Bacup and Rawtenstall Grammar School",
"Postcode": "BB47BJ"
},
{
"SchoolName": "The Bolsover School",
"Postcode": "S446XA"
},
{
"SchoolName": "The Bramcote School",
"Postcode": "NG93GD"
},
{
"SchoolName": "The Pochin School",
"Postcode": "LE73QL"
},
{
"SchoolName": "Sir William Robertson Academy, Welbourn",
"Postcode": "LN50PA"
},
{
"SchoolName": "Welton Church of England Academy",
"Postcode": "NN112JZ"
},
{
"SchoolName": "King Ecgbert School",
"Postcode": "S173QU"
},
{
"SchoolName": "Goose Green Primary School",
"Postcode": "SE228HG"
},
{
"SchoolName": "St. Michael's Academy",
"Postcode": "BA214JW"
},
{
"SchoolName": "Holywell School",
"Postcode": "MK430JA"
},
{
"SchoolName": "Nunthorpe Academy",
"Postcode": "TS70LA"
},
{
"SchoolName": "Ormiston South Parade Academy",
"Postcode": "DN311TU"
},
{
"SchoolName": "Roseacre Primary Academy",
"Postcode": "FY42PF"
},
{
"SchoolName": "St Marie's School, A Catholic Voluntary Academy",
"Postcode": "S103DQ"
},
{
"SchoolName": "Pen Mill Infants' School",
"Postcode": "BA214LD"
},
{
"SchoolName": "St Margaret's Church of England Academy",
"Postcode": "L176AB"
},
{
"SchoolName": "St Paul's CofE Primary School, Astley Bridge",
"Postcode": "BL18QA"
},
{
"SchoolName": "S.Peter's Collegiate Church of England School",
"Postcode": "WV39DU"
},
{
"SchoolName": "Woodchurch High School",
"Postcode": "CH497NG"
},
{
"SchoolName": "North Ormesby Primary Academy",
"Postcode": "TS36LB"
},
{
"SchoolName": "Redland Green School",
"Postcode": "BS67EH"
},
{
"SchoolName": "Edward Heneage Primary Academy",
"Postcode": "DN329HL"
},
{
"SchoolName": "Abbeyfield School",
"Postcode": "NN48BU"
},
{
"SchoolName": "Rushcroft Foundation School",
"Postcode": "E48SG"
},
{
"SchoolName": "Queen's Park Academy",
"Postcode": "BH89PU"
},
{
"SchoolName": "Paignton Community and Sports Academy",
"Postcode": "TQ33WA"
},
{
"SchoolName": "Montgomery Primary Academy",
"Postcode": "B111EH"
},
{
"SchoolName": "The James Hornsby School",
"Postcode": "SS155NX"
},
{
"SchoolName": "Strand Primary Academy",
"Postcode": "DN327BE"
},
{
"SchoolName": "Feversham Primary Academy",
"Postcode": "BD39EG"
},
{
"SchoolName": "Meadow View Learning Centre",
"Postcode": "PR68BN"
},
{
"SchoolName": "Madani Boys School",
"Postcode": "LE55LL"
},
{
"SchoolName": "Focus School-Berkeley Campus",
"Postcode": "GL139RS"
},
{
"SchoolName": "The Newark Academy",
"Postcode": "NG243AL"
},
{
"SchoolName": "The Treehouse School",
"Postcode": "OX109LG"
},
{
"SchoolName": "Amberleigh Residential Therapeutic School",
"Postcode": "TF29NZ"
},
{
"SchoolName": "Include Suffolk",
"Postcode": "IP83AS"
},
{
"SchoolName": "Assess Education",
"Postcode": "L154LP"
},
{
"SchoolName": "Desborough College",
"Postcode": "SL62QB"
},
{
"SchoolName": "Turnstone House School",
"Postcode": "NR352HP"
},
{
"SchoolName": "Cambian Southwick Park School",
"Postcode": "GL207DG"
},
{
"SchoolName": "St John's and St Peter's CofE Academy",
"Postcode": "B168RN"
},
{
"SchoolName": "Aurora Brambles East School",
"Postcode": "BB32NG"
},
{
"SchoolName": "The Clarendon Academy",
"Postcode": "BA140DJ"
},
{
"SchoolName": "Ruskin Junior School",
"Postcode": "NN83EG"
},
{
"SchoolName": "Warwick Academy",
"Postcode": "NN82PS"
},
{
"SchoolName": "Billesley Primary School",
"Postcode": "B130ES"
},
{
"SchoolName": "Kings Rise Academy",
"Postcode": "B440JL"
},
{
"SchoolName": "Macaulay Primary Academy",
"Postcode": "DN312ES"
},
{
"SchoolName": "Broom Leys School",
"Postcode": "LE674DB"
},
{
"SchoolName": "Lane End Primary School",
"Postcode": "LS116AA"
},
{
"SchoolName": "Wigston College",
"Postcode": "LE182DS"
},
{
"SchoolName": "Bexhill High Academy",
"Postcode": "TN394BY"
},
{
"SchoolName": "Crosby-on-Eden CofE School",
"Postcode": "CA64QN"
},
{
"SchoolName": "Gosford Hill School",
"Postcode": "OX52NT"
},
{
"SchoolName": "Hollybrook Infant School",
"Postcode": "SO166RN"
},
{
"SchoolName": "The Mosley Academy",
"Postcode": "DE139QD"
},
{
"SchoolName": "Little Mead Primary Academy",
"Postcode": "BS106DS"
},
{
"SchoolName": "Notley Green Primary School",
"Postcode": "CM777ZJ"
},
{
"SchoolName": "St Michael & All Angels Church of England Primary School",
"Postcode": "LE74YB"
},
{
"SchoolName": "Shirley Infant School",
"Postcode": "SO155XE"
},
{
"SchoolName": "Parson Street Primary School",
"Postcode": "BS35NR"
},
{
"SchoolName": "Bottesford Church of England Primary School",
"Postcode": "NG130BS"
},
{
"SchoolName": "Holywell Primary School",
"Postcode": "LE113SJ"
},
{
"SchoolName": "Dunsville Primary School",
"Postcode": "DN74HX"
},
{
"SchoolName": "Rendell Primary School",
"Postcode": "LE111LL"
},
{
"SchoolName": "Tanworth-in-Arden CofE Primary School",
"Postcode": "B945AJ"
},
{
"SchoolName": "Shirley Junior School",
"Postcode": "SO155XE"
},
{
"SchoolName": "Cann Hall Primary School",
"Postcode": "CO168DA"
},
{
"SchoolName": "Dordon Community Primary School",
"Postcode": "B781PJ"
},
{
"SchoolName": "Riverside Academy",
"Postcode": "CV211EH"
},
{
"SchoolName": "Oakfield Primary Academy",
"Postcode": "CV226AU"
},
{
"SchoolName": "St Oswald's Church of England Primary Academy",
"Postcode": "BD73JT"
},
{
"SchoolName": "Briar Hill Primary School",
"Postcode": "NN48SW"
},
{
"SchoolName": "The Nicholas Hamond Academy",
"Postcode": "PE377DZ"
},
{
"SchoolName": "Admirals Academy",
"Postcode": "IP242JT"
},
{
"SchoolName": "Winton Community Academy",
"Postcode": "SP102PS"
},
{
"SchoolName": "Kirk Sandall Infant School",
"Postcode": "DN31JT"
},
{
"SchoolName": "Oxclose Community Academy",
"Postcode": "NE380LN"
},
{
"SchoolName": "Heston Community School",
"Postcode": "TW50QR"
},
{
"SchoolName": "Fir Vale School Academy Trust",
"Postcode": "S48GB"
},
{
"SchoolName": "Thrussington Church of England Primary School",
"Postcode": "LE74TH"
},
{
"SchoolName": "Thames Primary Academy",
"Postcode": "FY41EE"
},
{
"SchoolName": "Warlingham School",
"Postcode": "CR69YB"
},
{
"SchoolName": "Church Hill Infant School",
"Postcode": "LE48DE"
},
{
"SchoolName": "Church Hill Church of England Junior School",
"Postcode": "LE48DE"
},
{
"SchoolName": "Queniborough Church of England Primary School",
"Postcode": "LE73DR"
},
{
"SchoolName": "Kingsthorpe College",
"Postcode": "NN27HR"
},
{
"SchoolName": "Rickley Park Primary School",
"Postcode": "MK36EW"
},
{
"SchoolName": "Birchwood Primary School",
"Postcode": "B781QU"
},
{
"SchoolName": "Wigston Birkett House Community Special School",
"Postcode": "LE182FZ"
},
{
"SchoolName": "The Wilnecote School",
"Postcode": "B775LF"
},
{
"SchoolName": "Handsworth Wood Girls' Academy",
"Postcode": "B202HL"
},
{
"SchoolName": "Harlington Lower School",
"Postcode": "LU56PD"
},
{
"SchoolName": "Sundon Lower School",
"Postcode": "LU33PQ"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "GL502NR"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "WF94LJ"
},
{
"SchoolName": "St Cuthbert's Church of England Infants School",
"Postcode": "BA51TZ"
},
{
"SchoolName": "Upminster Infant School",
"Postcode": "RM143BS"
},
{
"SchoolName": "Upminster Junior School",
"Postcode": "RM143BS"
},
{
"SchoolName": "St Benedict's Catholic Primary School",
"Postcode": "LS251PS"
},
{
"SchoolName": "St Ignatius Catholic Primary School",
"Postcode": "WF50DQ"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "WF84AA"
},
{
"SchoolName": "Penwortham Priory Academy",
"Postcode": "PR10JE"
},
{
"SchoolName": "St Joseph's Catholic Primary School Castleford",
"Postcode": "WF104JB"
},
{
"SchoolName": "St Thomas a Becket Catholic Secondary School, A Voluntary Academy",
"Postcode": "WF26EQ"
},
{
"SchoolName": "St Wilfrid's Catholic High School & Sixth Form College: A Voluntary Academy",
"Postcode": "WF76BD"
},
{
"SchoolName": "Abington Vale Primary School",
"Postcode": "NN33NQ"
},
{
"SchoolName": "Ecton Brook Primary School",
"Postcode": "NN35DY"
},
{
"SchoolName": "Headlands Primary School",
"Postcode": "NN32NS"
},
{
"SchoolName": "Lings Primary School",
"Postcode": "NN38NN"
},
{
"SchoolName": "Weston Favell CofE Primary School",
"Postcode": "NN33HH"
},
{
"SchoolName": "Ss Simon & Jude CofE Primary School, Bolton",
"Postcode": "BL32DT"
},
{
"SchoolName": "St. John the Baptist Catholic Primary School",
"Postcode": "WF62HZ"
},
{
"SchoolName": "Thornhill Community Academy Trust",
"Postcode": "WF120HE"
},
{
"SchoolName": "Sacred Heart Catholic School",
"Postcode": "SE50RP"
},
{
"SchoolName": "St Michael's Catholic College",
"Postcode": "SE164UN"
},
{
"SchoolName": "Herringham Primary Academy",
"Postcode": "RM164JX"
},
{
"SchoolName": "Whitemoor Academy",
"Postcode": "PL267XQ"
},
{
"SchoolName": "East Leake Academy",
"Postcode": "LE126QN"
},
{
"SchoolName": "Barwell Church of England Academy",
"Postcode": "LE98DS"
},
{
"SchoolName": "Shooters Hill Post-16 Campus",
"Postcode": "SE184LD"
},
{
"SchoolName": "The CE Academy",
"Postcode": "NN13EX"
},
{
"SchoolName": "Trinity Christian School",
"Postcode": "RG27AG"
},
{
"SchoolName": "<NAME>ton Academy",
"Postcode": "LN24AG"
},
{
"SchoolName": "<NAME>",
"Postcode": "B347RD"
},
{
"SchoolName": "Dame Janet Primary Academy",
"Postcode": "CT126QY"
},
{
"SchoolName": "Cottingley Primary Academy",
"Postcode": "LS110HU"
},
{
"SchoolName": "St James Church of England Primary Academy",
"Postcode": "ME30BS"
},
{
"SchoolName": "Wybers Wood Academy",
"Postcode": "DN379QZ"
},
{
"SchoolName": "Hasting Hill Academy",
"Postcode": "SR34LY"
},
{
"SchoolName": "Acre Hall Primary School",
"Postcode": "M416NA"
},
{
"SchoolName": "Overthorpe CofE Academy",
"Postcode": "WF120BH"
},
{
"SchoolName": "Al Ashraaf Secondary School",
"Postcode": "E17RA"
},
{
"SchoolName": "Anglesey Primary Academy",
"Postcode": "DE143LG"
},
{
"SchoolName": "Belmore Primary Academy",
"Postcode": "UB49LF"
},
{
"SchoolName": "Blackthorn Primary School",
"Postcode": "NN38EP"
},
{
"SchoolName": "Broadlands Academy",
"Postcode": "BS312DY"
},
{
"SchoolName": "Brownhill Primary Academy",
"Postcode": "LS97DH"
},
{
"SchoolName": "The Rydal Academy",
"Postcode": "DL14BH"
},
{
"SchoolName": "Elm Academy",
"Postcode": "BH119JN"
},
{
"SchoolName": "Grampian Primary Academy",
"Postcode": "DE249LU"
},
{
"SchoolName": "Hatton Park Primary School",
"Postcode": "CB241AA"
},
{
"SchoolName": "Heybridge Primary School",
"Postcode": "CM94TU"
},
{
"SchoolName": "Hilton Primary Academy",
"Postcode": "NE53RN"
},
{
"SchoolName": "Kingsmoor Academy",
"Postcode": "CM187PS"
},
{
"SchoolName": "Kingston Park Academy",
"Postcode": "S819AW"
},
{
"SchoolName": "Mansfield Green E-ACT Academy",
"Postcode": "B65NH"
},
{
"SchoolName": "Millfield L.E.A.D. Academy",
"Postcode": "LE32WF"
},
{
"SchoolName": "Moor Green Primary Academy",
"Postcode": "B138QP"
},
{
"SchoolName": "Perry Wood Primary and Nursery School",
"Postcode": "WR51PP"
},
{
"SchoolName": "Reaside Academy",
"Postcode": "B450HY"
},
{
"SchoolName": "Lea Forest Primary Academy",
"Postcode": "B339RD"
},
{
"SchoolName": "Shafton Primary Academy",
"Postcode": "S728QA"
},
{
"SchoolName": "Beacon Academy",
"Postcode": "LE112NF"
},
{
"SchoolName": "St Helen's Primary Academy",
"Postcode": "S712PS"
},
{
"SchoolName": "Tudor Grange Primary Academy, St James",
"Postcode": "B902BT"
},
{
"SchoolName": "Saint Mary's Catholic Voluntary Academy",
"Postcode": "DN327JX"
},
{
"SchoolName": "Tame Valley Academy",
"Postcode": "B368QJ"
},
{
"SchoolName": "Rushden Community College",
"Postcode": "NN106AG"
},
{
"SchoolName": "Merritts Brook Primary E-ACT Academy",
"Postcode": "B315QD"
},
{
"SchoolName": "Woodlands Primary Academy",
"Postcode": "LS96DA"
},
{
"SchoolName": "The Woodside Primary Academy",
"Postcode": "E173JX"
},
{
"SchoolName": "Al-Huda Primary School",
"Postcode": "BL13EH"
},
{
"SchoolName": "The Beeches Independent School",
"Postcode": "PE13PB"
},
{
"SchoolName": "Woodwater Academy",
"Postcode": "EX25AW"
},
{
"SchoolName": "Ipsley CE RSA Academy",
"Postcode": "B980UB"
},
{
"SchoolName": "Drapers Mills Primary Academy",
"Postcode": "CT92SP"
},
{
"SchoolName": "The Corsham Regis Primary Academy",
"Postcode": "SN130EG"
},
{
"SchoolName": "Oasis Academy Henderson Avenue",
"Postcode": "DN157RW"
},
{
"SchoolName": "Oasis Academy Parkwood",
"Postcode": "DN171SS"
},
{
"SchoolName": "Fulwell Infant School Academy",
"Postcode": "SR68ED"
},
{
"SchoolName": "Ludlow Junior School",
"Postcode": "SO192DW"
},
{
"SchoolName": "Redcar Academy - A Community School for the Performing and Visual Arts",
"Postcode": "TS104AB"
},
{
"SchoolName": "Ridgeway Academy",
"Postcode": "B966BD"
},
{
"SchoolName": "Southfield Primary School",
"Postcode": "NN136AU"
},
{
"SchoolName": "St John Plessington Catholic College",
"Postcode": "CH637LF"
},
{
"SchoolName": "St Nicholas of Tolentine Catholic Primary School",
"Postcode": "BS50TJ"
},
{
"SchoolName": "St Teresa's Catholic Primary School",
"Postcode": "BS70UP"
},
{
"SchoolName": "Mountfields Lodge School",
"Postcode": "LE113GE"
},
{
"SchoolName": "Crowle Primary Academy",
"Postcode": "DN174ET"
},
{
"SchoolName": "Kings Langley School",
"Postcode": "WD49HN"
},
{
"SchoolName": "Oak Academy",
"Postcode": "BH119JJ"
},
{
"SchoolName": "Outwoods Edge Primary School",
"Postcode": "LE112LD"
},
{
"SchoolName": "Preston Hedges Primary School",
"Postcode": "NN46BU"
},
{
"SchoolName": "St John's Primary School In Rishworth",
"Postcode": "HX64QR"
},
{
"SchoolName": "St Marys C of E Primary and Nursery, Academy, Handsworth",
"Postcode": "B202RW"
},
{
"SchoolName": "Woodside Academy",
"Postcode": "BD62PG"
},
{
"SchoolName": "Bristnall Hall Academy",
"Postcode": "B689PA"
},
{
"SchoolName": "Whetley Academy",
"Postcode": "BD89HZ"
},
{
"SchoolName": "Four Dwellings Academy",
"Postcode": "B321RJ"
},
{
"SchoolName": "Greenwood Academy",
"Postcode": "B357NL"
},
{
"SchoolName": "Bridge Learning Campus",
"Postcode": "BS130RL"
},
{
"SchoolName": "Bannerman Road Community Academy",
"Postcode": "BS50HR"
},
{
"SchoolName": "Merrill Academy",
"Postcode": "DE240AN"
},
{
"SchoolName": "Temple Grove Academy",
"Postcode": "TN23UA"
},
{
"SchoolName": "Pendle Primary Academy",
"Postcode": "BB95AW"
},
{
"SchoolName": "Swallow Hill Community College",
"Postcode": "LS123DS"
},
{
"SchoolName": "Cordeaux Academy",
"Postcode": "LN110HG"
},
{
"SchoolName": "Oasis Academy Harpur Mount",
"Postcode": "M95XR"
},
{
"SchoolName": "New Chapter Primary School",
"Postcode": "MK65EA"
},
{
"SchoolName": "Iceni Academy",
"Postcode": "IP264PE"
},
{
"SchoolName": "Melior Community Academy",
"Postcode": "DN171HA"
},
{
"SchoolName": "Lodge Park Academy",
"Postcode": "NN172JH"
},
{
"SchoolName": "The Arbours Primary Academy",
"Postcode": "NN33QF"
},
{
"SchoolName": "The Dukeries Academy",
"Postcode": "NG229TD"
},
{
"SchoolName": "Sutton Community Academy",
"Postcode": "NG171EE"
},
{
"SchoolName": "Cutteslowe Primary School",
"Postcode": "OX27SX"
},
{
"SchoolName": "Beacon View Primary Academy",
"Postcode": "PO63PS"
},
{
"SchoolName": "Battle Primary Academy",
"Postcode": "RG302TD"
},
{
"SchoolName": "Abbeywood Community School",
"Postcode": "BS348SF"
},
{
"SchoolName": "Thistley Hough Academy",
"Postcode": "ST45JJ"
},
{
"SchoolName": "Weyfield Academy",
"Postcode": "GU11QJ"
},
{
"SchoolName": "North Road Academy",
"Postcode": "ST62BP"
},
{
"SchoolName": "University Academy Warrington",
"Postcode": "WA20LN"
},
{
"SchoolName": "Penryn Primary Academy",
"Postcode": "TR108RA"
},
{
"SchoolName": "Meopham School",
"Postcode": "DA130AH"
},
{
"SchoolName": "<NAME>roft Academy",
"Postcode": "WF127DW"
},
{
"SchoolName": "Oakwood Primary Academy",
"Postcode": "LS83LZ"
},
{
"SchoolName": "Seymour Road Academy",
"Postcode": "M114PR"
},
{
"SchoolName": "Kingfisher School",
"Postcode": "OX143RR"
},
{
"SchoolName": "Outwood Primary Academy Kirkhamgate",
"Postcode": "WF20RS"
},
{
"SchoolName": "Fir Tree Primary School and Nursery",
"Postcode": "RG142RA"
},
{
"SchoolName": "City of Peterborough Academy",
"Postcode": "PE15LQ"
},
{
"SchoolName": "Carlton Primary Academy",
"Postcode": "S713HF"
},
{
"SchoolName": "Parkside Primary Academy",
"Postcode": "S714QP"
},
{
"SchoolName": "Summerfields Primary Academy",
"Postcode": "S714SF"
},
{
"SchoolName": "Histon and Impington Infant School",
"Postcode": "CB249LL"
},
{
"SchoolName": "Histon and Impington Junior School",
"Postcode": "CB249JA"
},
{
"SchoolName": "Kennett Primary School",
"Postcode": "CB87QQ"
},
{
"SchoolName": "Lerryn CofE Primary School",
"Postcode": "PL220QA"
},
{
"SchoolName": "St Mabyn CofE School",
"Postcode": "PL303BQ"
},
{
"SchoolName": "St Petroc's Church of England Voluntary Aided Primary School",
"Postcode": "PL311DS"
},
{
"SchoolName": "St Tudy CofE Primary School",
"Postcode": "PL303NH"
},
{
"SchoolName": "St Winnow CofE School",
"Postcode": "PL220RA"
},
{
"SchoolName": "Aerodrome Primary Academy",
"Postcode": "CR04EJ"
},
{
"SchoolName": "Brentford School for Girls",
"Postcode": "TW80PG"
},
{
"SchoolName": "Allington Primary School",
"Postcode": "ME160PG"
},
{
"SchoolName": "Measham Church of England Primary School",
"Postcode": "DE127LG"
},
{
"SchoolName": "St Peter's Church of England Primary Academy",
"Postcode": "CV130NP"
},
{
"SchoolName": "Eaton Hall Special Academy",
"Postcode": "NR47BU"
},
{
"SchoolName": "Bradfield School",
"Postcode": "S350AE"
},
{
"SchoolName": "Lakelands Academy",
"Postcode": "SY120EA"
},
{
"SchoolName": "Farringdon Academy",
"Postcode": "SR33DJ"
},
{
"SchoolName": "Dilkes Academy",
"Postcode": "RM155JQ"
},
{
"SchoolName": "Belmont Castle Academy",
"Postcode": "RM175YN"
},
{
"SchoolName": "Woodside Academy",
"Postcode": "RM162GJ"
},
{
"SchoolName": "Knottingley St Botolphs C of E Academy",
"Postcode": "WF119BT"
},
{
"SchoolName": "Outwood Primary Academy Ledger Lane",
"Postcode": "WF12PH"
},
{
"SchoolName": "Worthing High School",
"Postcode": "BN147AR"
},
{
"SchoolName": "Kilton Thorpe Specialist Academy",
"Postcode": "TS122UW"
},
{
"SchoolName": "Woodvale Primary Academy",
"Postcode": "NN38JJ"
},
{
"SchoolName": "Sunnyside Primary Academy",
"Postcode": "NN28QS"
},
{
"SchoolName": "Harmonize Academy AP Free School",
"Postcode": "L66DL"
},
{
"SchoolName": "Belvedere Junior School",
"Postcode": "DA176AA"
},
{
"SchoolName": "Henbury Court Primary Academy",
"Postcode": "BS107NY"
},
{
"SchoolName": "Brookside Primary School",
"Postcode": "UB49LW"
},
{
"SchoolName": "Kingswood Academy",
"Postcode": "HU74WR"
},
{
"SchoolName": "Exeter - A Learning Community Academy",
"Postcode": "NN188DL"
},
{
"SchoolName": "Oasis Academy Blakenhale Infants",
"Postcode": "B330XD"
},
{
"SchoolName": "St Richard Reynolds Catholic High School",
"Postcode": "TW14LT"
},
{
"SchoolName": "St Richard Reynolds Catholic Primary School",
"Postcode": "TW14LT"
},
{
"SchoolName": "North Walsall Primary Academy",
"Postcode": "WS27BH"
},
{
"SchoolName": "Ridgeway Primary Academy",
"Postcode": "NE348AB"
},
{
"SchoolName": "Oasis Academy Short Heath",
"Postcode": "B235JP"
},
{
"SchoolName": "St George's Church of England Academy, Newtown",
"Postcode": "B193QY"
},
{
"SchoolName": "The Nethersole CofE Academy",
"Postcode": "B781DZ"
},
{
"SchoolName": "Oasis Academy Woodview",
"Postcode": "B152HU"
},
{
"SchoolName": "Oasis Academy Blakenhale Junior",
"Postcode": "B330XG"
},
{
"SchoolName": "Colne Primet Academy",
"Postcode": "BB88JF"
},
{
"SchoolName": "Four Dwellings Primary Academy",
"Postcode": "B321PJ"
},
{
"SchoolName": "Meadstead Primary Academy",
"Postcode": "S714JS"
},
{
"SchoolName": "Southey Green Primary School and Nurseries",
"Postcode": "S57QG"
},
{
"SchoolName": "Fox Hill Primary",
"Postcode": "S61AZ"
},
{
"SchoolName": "Catch 22",
"Postcode": "NG244UT"
},
{
"SchoolName": "The Forest Academy",
"Postcode": "S703NG"
},
{
"SchoolName": "Mansel Primary",
"Postcode": "S59QN"
},
{
"SchoolName": "Aldersley High School",
"Postcode": "WV81RT"
},
{
"SchoolName": "All Hallows Catholic College",
"Postcode": "SK118LB"
},
{
"SchoolName": "Boston High School",
"Postcode": "PE219PF"
},
{
"SchoolName": "Bracebridge Infant and Nursery School",
"Postcode": "LN58QG"
},
{
"SchoolName": "Bridgnorth Endowed School",
"Postcode": "WV164ER"
},
{
"SchoolName": "Calday Grange Grammar School",
"Postcode": "CH488GG"
},
{
"SchoolName": "Cheney School",
"Postcode": "OX37QH"
},
{
"SchoolName": "Chickerell Primary Academy",
"Postcode": "DT34AT"
},
{
"SchoolName": "Chorlton High School",
"Postcode": "M217SL"
},
{
"SchoolName": "Elveden Church of England Primary Academy",
"Postcode": "IP243TN"
},
{
"SchoolName": "Forest View Primary School",
"Postcode": "GL142QA"
},
{
"SchoolName": "Gordon's School",
"Postcode": "GU249PT"
},
{
"SchoolName": "Great Sankey High School",
"Postcode": "WA53AA"
},
{
"SchoolName": "Hedingham School and Sixth Form",
"Postcode": "CO93QH"
},
{
"SchoolName": "Hitchin Boys' School",
"Postcode": "SG51JB"
},
{
"SchoolName": "Launceston College",
"Postcode": "PL159JR"
},
{
"SchoolName": "Lordswood Boys' School",
"Postcode": "B178BJ"
},
{
"SchoolName": "Magdalen College School",
"Postcode": "NN136FB"
},
{
"SchoolName": "Mandeville Primary School",
"Postcode": "AL12LE"
},
{
"SchoolName": "Mark Rutherford School",
"Postcode": "MK418PX"
},
{
"SchoolName": "Marston Vale Middle School",
"Postcode": "MK439NH"
},
{
"SchoolName": "Parkfield Community School",
"Postcode": "B83AX"
},
{
"SchoolName": "Rowde Church of England Primary Academy",
"Postcode": "SN102ND"
},
{
"SchoolName": "Seer Green Church of England School",
"Postcode": "HP92QJ"
},
{
"SchoolName": "Severnbanks Primary School",
"Postcode": "GL155AU"
},
{
"SchoolName": "Shaw Primary Academy",
"Postcode": "RM155QJ"
},
{
"SchoolName": "Silverdale School",
"Postcode": "S119QH"
},
{
"SchoolName": "Spalding Academy",
"Postcode": "PE112EJ"
},
{
"SchoolName": "St Ann's CE Primary School",
"Postcode": "N155JG"
},
{
"SchoolName": "St David's Church of England Primary School",
"Postcode": "GL560LQ"
},
{
"SchoolName": "St Edward's Church of England Academy",
"Postcode": "ST138DN"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "B114EA"
},
{
"SchoolName": "St Michael's Church of England Aided Primary School",
"Postcode": "B323JS"
},
{
"SchoolName": "St Michael's CofE Primary School",
"Postcode": "N228HE"
},
{
"SchoolName": "St Paul's and All Hallows CofE Infant School",
"Postcode": "N170HH"
},
{
"SchoolName": "St Paul's and All Hallows CofE Junior School",
"Postcode": "N170TU"
},
{
"SchoolName": "Stamford St Gilberts Church of England Primary School",
"Postcode": "PE92PP"
},
{
"SchoolName": "Tabor Academy",
"Postcode": "CM75XP"
},
{
"SchoolName": "The Boston Grammar School",
"Postcode": "PE216JY"
},
{
"SchoolName": "The Bromfords School and Sixth Form College",
"Postcode": "SS120LZ"
},
{
"SchoolName": "The Crossley Heath School",
"Postcode": "HX30HG"
},
{
"SchoolName": "The Oaklands Primary School",
"Postcode": "B277BT"
},
{
"SchoolName": "Venerable Bede Church of England Academy",
"Postcode": "SR20SX"
},
{
"SchoolName": "Walkwood CofE Middle School",
"Postcode": "B975AQ"
},
{
"SchoolName": "Warden House Primary School",
"Postcode": "CT149SF"
},
{
"SchoolName": "Welton St Mary's Church of England Primary Academy",
"Postcode": "LN23LA"
},
{
"SchoolName": "Whitecross Hereford",
"Postcode": "HR40RN"
},
{
"SchoolName": "Park Academy",
"Postcode": "PE219LQ"
},
{
"SchoolName": "Gosberton Academy",
"Postcode": "PE114NW"
},
{
"SchoolName": "Guildford County School",
"Postcode": "GU24LU"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "LE130NA"
},
{
"SchoolName": "Skerne Park Academy",
"Postcode": "DL15AJ"
},
{
"SchoolName": "Beamont Collegiate",
"Postcode": "WA28PX"
},
{
"SchoolName": "Links Academy",
"Postcode": "AL40TZ"
},
{
"SchoolName": "Willow Primary School",
"Postcode": "SL25FF"
},
{
"SchoolName": "Woden Primary School",
"Postcode": "WV100LH"
},
{
"SchoolName": "Weavers Close Church of England Primary School",
"Postcode": "LE97AH"
},
{
"SchoolName": "Christ Church Church of England Academy",
"Postcode": "BD182NT"
},
{
"SchoolName": "Downham Market Academy",
"Postcode": "PE389LL"
},
{
"SchoolName": "Kingshill Church School",
"Postcode": "BS482NP"
},
{
"SchoolName": "Hazelwood Academy",
"Postcode": "SN58DR"
},
{
"SchoolName": "Outwood Academy Carlton",
"Postcode": "S713EW"
},
{
"SchoolName": "Outwood Academy Shafton",
"Postcode": "S728RE"
},
{
"SchoolName": "Christ Church (Erith) CofE Primary School",
"Postcode": "DA83DG"
},
{
"SchoolName": "St Augustine of Canterbury CofE Primary School",
"Postcode": "DA175HP"
},
{
"SchoolName": "Oasis Academy Hobmoor",
"Postcode": "B258FD"
},
{
"SchoolName": "Tuxford Primary Academy",
"Postcode": "NG220NA"
},
{
"SchoolName": "Sneinton St Stephen's CofE Primary School",
"Postcode": "NG24QB"
},
{
"SchoolName": "Whipperley Infant Academy",
"Postcode": "LU15QY"
},
{
"SchoolName": "Serene House",
"Postcode": "W69RU"
},
{
"SchoolName": "Date Palm Primary School",
"Postcode": "E12DE"
},
{
"SchoolName": "Coleridge Primary",
"Postcode": "S651LW"
},
{
"SchoolName": "East Dene Primary",
"Postcode": "S652DF"
},
{
"SchoolName": "Star Academy, Sandyford",
"Postcode": "ST65PT"
},
{
"SchoolName": "Maple Court Academy",
"Postcode": "ST20QD"
},
{
"SchoolName": "Merlin Top Primary Academy",
"Postcode": "BD226HZ"
},
{
"SchoolName": "Queens Road Academy",
"Postcode": "S711AR"
},
{
"SchoolName": "Windmill L.E.A.D. Academy",
"Postcode": "NG24FZ"
},
{
"SchoolName": "The JCB Academy",
"Postcode": "ST145JX"
},
{
"SchoolName": "Burton Hathow Preparatory School",
"Postcode": "LN12BB"
},
{
"SchoolName": "L'ecole Internationale Franco-Anglaise Ltd",
"Postcode": "W1B1LS"
},
{
"SchoolName": "Holy Trinity CofE Primary School",
"Postcode": "N179EJ"
},
{
"SchoolName": "St Mary's Primary School, Dilwyn",
"Postcode": "HR48HR"
},
{
"SchoolName": "Oasis Academy Boulton",
"Postcode": "B210RE"
},
{
"SchoolName": "The Kingfisher School",
"Postcode": "BS44BJ"
},
{
"SchoolName": "The Ramsey Academy, Halstead",
"Postcode": "CO92HR"
},
{
"SchoolName": "Messing Primary School",
"Postcode": "CO59TH"
},
{
"SchoolName": "Chantry Community Academy",
"Postcode": "DA122RL"
},
{
"SchoolName": "Christ Church Church of England Junior School, Ramsgate",
"Postcode": "CT110ZZ"
},
{
"SchoolName": "Windale Community Primary School",
"Postcode": "OX46JD"
},
{
"SchoolName": "Orchard Meadow Primary School",
"Postcode": "OX46BG"
},
{
"SchoolName": "Carter Community School",
"Postcode": "BH154BQ"
},
{
"SchoolName": "Chapel End Junior Academy",
"Postcode": "E174LS"
},
{
"SchoolName": "River Mead School",
"Postcode": "SN127ED"
},
{
"SchoolName": "Haveley Hey Community School",
"Postcode": "M229NS"
},
{
"SchoolName": "Bridge House Independent School",
"Postcode": "PE217NL"
},
{
"SchoolName": "Rosewood Free School",
"Postcode": "SO165NA"
},
{
"SchoolName": "Fishtoft Academy",
"Postcode": "PE210SF"
},
{
"SchoolName": "St George's Church of England Primary School",
"Postcode": "B168HY"
},
{
"SchoolName": "UTC Reading",
"Postcode": "RG15RQ"
},
{
"SchoolName": "Hawkesley Church Primary Academy",
"Postcode": "B389TR"
},
{
"SchoolName": "Mount Pellon Primary Academy",
"Postcode": "HX14RG"
},
{
"SchoolName": "Mark Hall Academy",
"Postcode": "CM179LR"
},
{
"SchoolName": "Neale-Wade Academy",
"Postcode": "PE159PX"
},
{
"SchoolName": "Front Lawn Primary Academy",
"Postcode": "PO95HX"
},
{
"SchoolName": "Nishkam Primary School Wolverhampton",
"Postcode": "WV30PR"
},
{
"SchoolName": "Laurel Lane Primary School",
"Postcode": "UB77TX"
},
{
"SchoolName": "Kingsley Academy",
"Postcode": "TW31NE"
},
{
"SchoolName": "Outwood Academy Brumby",
"Postcode": "DN161NT"
},
{
"SchoolName": "Churchfield Church School",
"Postcode": "TA93JF"
},
{
"SchoolName": "St Michael's CofE Academy",
"Postcode": "WF29JA"
},
{
"SchoolName": "Sandal Magna Community Academy",
"Postcode": "WF15NF"
},
{
"SchoolName": "Oasis Academy Longmeadow",
"Postcode": "BA147HE"
},
{
"SchoolName": "John Smeaton Academy",
"Postcode": "LS158TA"
},
{
"SchoolName": "Ratby Primary School",
"Postcode": "LE60LN"
},
{
"SchoolName": "St John's Church of England Middle School Academy",
"Postcode": "B617DH"
},
{
"SchoolName": "Stonebow Primary School Loughborough",
"Postcode": "LE114ZH"
},
{
"SchoolName": "Westbourne Academy",
"Postcode": "IP15JN"
},
{
"SchoolName": "Widewell Primary Academy",
"Postcode": "PL67ER"
},
{
"SchoolName": "Academy@Worden",
"Postcode": "PR251QX"
},
{
"SchoolName": "Bourton-on-the-Water Primary School",
"Postcode": "GL542AW"
},
{
"SchoolName": "Caludon Castle School",
"Postcode": "CV25BD"
},
{
"SchoolName": "Connaught School for Girls",
"Postcode": "E114AB"
},
{
"SchoolName": "Copley Academy",
"Postcode": "SK153RR"
},
{
"SchoolName": "Coteford Junior School",
"Postcode": "HA52JQ"
},
{
"SchoolName": "Gipsey Bridge Academy",
"Postcode": "PE227BP"
},
{
"SchoolName": "Greengate Lane Academy",
"Postcode": "S353GT"
},
{
"SchoolName": "Harriers Banbury Academy",
"Postcode": "OX169JW"
},
{
"SchoolName": "Hooe Primary Academy",
"Postcode": "PL99RG"
},
{
"SchoolName": "Platt Bridge Community Primary School",
"Postcode": "WN25NG"
},
{
"SchoolName": "St Matthew's CofE Primary School",
"Postcode": "UB77QJ"
},
{
"SchoolName": "Wansdyke School",
"Postcode": "SN105EF"
},
{
"SchoolName": "Spalding Grammar School",
"Postcode": "PE112XH"
},
{
"SchoolName": "Rough Hay Primary School",
"Postcode": "WS108NQ"
},
{
"SchoolName": "Cowley St Laurence CofE Primary School",
"Postcode": "UB83TH"
},
{
"SchoolName": "Bower Park Academy",
"Postcode": "RM14YY"
},
{
"SchoolName": "Canon Pyon CofE Academy",
"Postcode": "HR48PF"
},
{
"SchoolName": "Christ Church Cep Academy, Folkestone",
"Postcode": "CT201DJ"
},
{
"SchoolName": "Folkestone, St Mary's Church of England Primary Academy",
"Postcode": "CT196QH"
},
{
"SchoolName": "Hobart High School",
"Postcode": "NR146JU"
},
{
"SchoolName": "The Iffley Academy",
"Postcode": "OX44DU"
},
{
"SchoolName": "Llangrove CE Academy",
"Postcode": "HR96EZ"
},
{
"SchoolName": "Monkton Infants' School",
"Postcode": "NE349SD"
},
{
"SchoolName": "St Eanswythe's Church of England Primary School",
"Postcode": "CT201SE"
},
{
"SchoolName": "The Phoenix Academy",
"Postcode": "NG317US"
},
{
"SchoolName": "Whittingham Primary Academy",
"Postcode": "E175QX"
},
{
"SchoolName": "Conyers School",
"Postcode": "TS159ET"
},
{
"SchoolName": "Preston Manor School",
"Postcode": "HA98NA"
},
{
"SchoolName": "Greys Education Centre",
"Postcode": "MK427AB"
},
{
"SchoolName": "Fitzwaryn School",
"Postcode": "OX129ET"
},
{
"SchoolName": "St James Church School",
"Postcode": "TA11XU"
},
{
"SchoolName": "Kingswood Primary Academy",
"Postcode": "NN189BE"
},
{
"SchoolName": "Firbeck Academy",
"Postcode": "NG82FB"
},
{
"SchoolName": "The ACE Academy",
"Postcode": "DY47NR"
},
{
"SchoolName": "North East Centre for Autism - Aycliffe School",
"Postcode": "DL56UN"
},
{
"SchoolName": "Rose House Montessori School",
"Postcode": "SE232UJ"
},
{
"SchoolName": "Mercer's Wood Academy",
"Postcode": "DN212PD"
},
{
"SchoolName": "James Elliman Academy",
"Postcode": "SL25BA"
},
{
"SchoolName": "Firth Park Academy",
"Postcode": "S50SD"
},
{
"SchoolName": "Hemsworth Arts and Community Academy",
"Postcode": "WF94AB"
},
{
"SchoolName": "Meynell Community Primary School",
"Postcode": "S58GN"
},
{
"SchoolName": "Dursley Church of England Primary Academy",
"Postcode": "GL114NZ"
},
{
"SchoolName": "St John and St Francis Church School",
"Postcode": "TA65BP"
},
{
"SchoolName": "Asfordby Hill Primary School",
"Postcode": "LE143QX"
},
{
"SchoolName": "Swallowdale Primary School and Community Centre",
"Postcode": "LE130BJ"
},
{
"SchoolName": "Great Dalby School",
"Postcode": "LE142HA"
},
{
"SchoolName": "The Catholic High School, Chester A Specialist Science College",
"Postcode": "CH47HS"
},
{
"SchoolName": "Red Hill Field Primary School",
"Postcode": "LE193EF"
},
{
"SchoolName": "Downend School",
"Postcode": "BS166XA"
},
{
"SchoolName": "St Joseph's Primary School",
"Postcode": "S139AT"
},
{
"SchoolName": "St Patrick's Catholic Voluntary Academy",
"Postcode": "S50QF"
},
{
"SchoolName": "The Castle School",
"Postcode": "BS351HT"
},
{
"SchoolName": "St Peter and St Paul Church of England Academy",
"Postcode": "LE71HR"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Pudsey",
"Postcode": "LS287AZ"
},
{
"SchoolName": "St. Mary's Menston, a Catholic Voluntary Academy",
"Postcode": "LS296AE"
},
{
"SchoolName": "St Mary's Catholic Primary School, Horsforth",
"Postcode": "LS185AB"
},
{
"SchoolName": "The Sacred Heart Catholic Primary School",
"Postcode": "LS298NL"
},
{
"SchoolName": "Ss. Peter and Paul Catholic Primary School, a Voluntary Academy",
"Postcode": "LS197HW"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Otley",
"Postcode": "LS213AP"
},
{
"SchoolName": "Birstall Primary Academy",
"Postcode": "WF179EE"
},
{
"SchoolName": "Fieldhead Primary Academy",
"Postcode": "WF179BX"
},
{
"SchoolName": "Shibden Head Primary Academy",
"Postcode": "BD132ND"
},
{
"SchoolName": "Castleford Park Junior Academy",
"Postcode": "WF104BB"
},
{
"SchoolName": "Kelvedon St Mary's Church of England Primary Academy",
"Postcode": "CO59DS"
},
{
"SchoolName": "White's Wood Academy",
"Postcode": "DN211TJ"
},
{
"SchoolName": "St Thomas More Catholic School",
"Postcode": "N225HN"
},
{
"SchoolName": "Haringey Sixth Form Centre",
"Postcode": "N178HR"
},
{
"SchoolName": "Fulham College Boys' School",
"Postcode": "SW66SN"
},
{
"SchoolName": "Fulham Cross Girls' School and Language College",
"Postcode": "SW66BP"
},
{
"SchoolName": "Cobden Primary School & Community Centre",
"Postcode": "LE111AF"
},
{
"SchoolName": "The Beaconsfield School",
"Postcode": "HP91SJ"
},
{
"SchoolName": "Wade Deacon High School",
"Postcode": "WA87TD"
},
{
"SchoolName": "St George's Catholic School",
"Postcode": "W91RB"
},
{
"SchoolName": "Fulbridge Academy",
"Postcode": "PE13JQ"
},
{
"SchoolName": "Toddington St George Church of England School",
"Postcode": "LU56AJ"
},
{
"SchoolName": "Daventry UTC",
"Postcode": "NN110QE"
},
{
"SchoolName": "Grange Academy",
"Postcode": "MK428AU"
},
{
"SchoolName": "The Swanage School",
"Postcode": "BH192PH"
},
{
"SchoolName": "St Martin's Academy Chester",
"Postcode": "CH23NG"
},
{
"SchoolName": "Yarnfield Primary School",
"Postcode": "B113PJ"
},
{
"SchoolName": "Rudheath Primary Academy",
"Postcode": "CW97JL"
},
{
"SchoolName": "Purfleet Primary Academy",
"Postcode": "RM191TA"
},
{
"SchoolName": "Burbage Primary School",
"Postcode": "SN83TP"
},
{
"SchoolName": "Benyon Primary School",
"Postcode": "RM156PG"
},
{
"SchoolName": "St Laurences CofE Primary School",
"Postcode": "CV67ED"
},
{
"SchoolName": "Stretton Church of England Academy",
"Postcode": "CV33AE"
},
{
"SchoolName": "Manor Court Community Primary School",
"Postcode": "TA202ES"
},
{
"SchoolName": "Pembroke Park Primary School",
"Postcode": "SP29LY"
},
{
"SchoolName": "Wellesley Park Primary School",
"Postcode": "TA219AJ"
},
{
"SchoolName": "Priorswood Primary School",
"Postcode": "TA27AD"
},
{
"SchoolName": "Plains Farm Academy",
"Postcode": "SR31SU"
},
{
"SchoolName": "New Penshaw Academy",
"Postcode": "DH47HY"
},
{
"SchoolName": "Hardwick Green Primary Academy",
"Postcode": "TS198WF"
},
{
"SchoolName": "Applegarth Academy",
"Postcode": "CR09DL"
},
{
"SchoolName": "St Nicholas Catholic Primary School",
"Postcode": "EX13EG"
},
{
"SchoolName": "The Boulevard Academy",
"Postcode": "HU33QT"
},
{
"SchoolName": "Kemsley Primary Academy",
"Postcode": "ME102RP"
},
{
"SchoolName": "Milton Court Primary Academy",
"Postcode": "ME102EE"
},
{
"SchoolName": "Freshwaters Primary Academy",
"Postcode": "CM203QA"
},
{
"SchoolName": "Roydon Primary School",
"Postcode": "CM195HN"
},
{
"SchoolName": "Cliff Park Junior School",
"Postcode": "NR316SZ"
},
{
"SchoolName": "North Cambridge Academy",
"Postcode": "CB42JF"
},
{
"SchoolName": "Alec Hunter Academy",
"Postcode": "CM73NR"
},
{
"SchoolName": "Ormiston Denes Academy",
"Postcode": "NR324AH"
},
{
"SchoolName": "Abbey Hey Primary Academy",
"Postcode": "M188PF"
},
{
"SchoolName": "Dyke House Sports and Technology College",
"Postcode": "TS248NQ"
},
{
"SchoolName": "Langtons Junior Academy",
"Postcode": "RM113SD"
},
{
"SchoolName": "Cambourne Village College",
"Postcode": "CB236FR"
},
{
"SchoolName": "King's School",
"Postcode": "BN412PG"
},
{
"SchoolName": "St Andrew the Apostle Greek Orthodox School",
"Postcode": "N111NP"
},
{
"SchoolName": "The Academy of Central Bedfordshire",
"Postcode": "LU55PX"
},
{
"SchoolName": "The Heights Free School",
"Postcode": "BB24NW"
},
{
"SchoolName": "Beech Lodge School",
"Postcode": "SL66TG"
},
{
"SchoolName": "Halcyon London International School",
"Postcode": "W1H5AU"
},
{
"SchoolName": "The Elstree UTC",
"Postcode": "WD65NN"
},
{
"SchoolName": "The London Acorn School",
"Postcode": "SM45JD"
},
{
"SchoolName": "St Mary Magdalene Academy: the Courtyard",
"Postcode": "N78LT"
},
{
"SchoolName": "Independent Educational Services",
"Postcode": "CV108JH"
},
{
"SchoolName": "Willows Academy",
"Postcode": "DN379AT"
},
{
"SchoolName": "St Mary's Hampton Church of England Primary",
"Postcode": "TW122HP"
},
{
"SchoolName": "St Martin & St Mary Church of England Primary School",
"Postcode": "LA232DD"
},
{
"SchoolName": "Our Lady and St Joseph Catholic Primary School",
"Postcode": "E140DE"
},
{
"SchoolName": "Thorplands Primary School",
"Postcode": "NN38AQ"
},
{
"SchoolName": "Northern Saints CofE Voluntary Aided Primary School",
"Postcode": "SR55QL"
},
{
"SchoolName": "Prospect House",
"Postcode": "LA59TG"
},
{
"SchoolName": "Berridge Primary and Nursery School",
"Postcode": "NG75LE"
},
{
"SchoolName": "Seely Primary School",
"Postcode": "NG53AE"
},
{
"SchoolName": "UTC Plymouth",
"Postcode": "PL14RL"
},
{
"SchoolName": "The Maltings College",
"Postcode": "HX20TJ"
},
{
"SchoolName": "Buckinghamshire UTC",
"Postcode": "HP218PB"
},
{
"SchoolName": "Birchills Church of England Community Academy",
"Postcode": "WS28NF"
},
{
"SchoolName": "Temple Ewell Church of England Primary School",
"Postcode": "CT163DT"
},
{
"SchoolName": "Bramford Primary School",
"Postcode": "WV149TU"
},
{
"SchoolName": "The Willows Primary School",
"Postcode": "M221BQ"
},
{
"SchoolName": "Tiverton Academy",
"Postcode": "B296BW"
},
{
"SchoolName": "Mercenfeld Primary School",
"Postcode": "LE679WG"
},
{
"SchoolName": "South Charnwood High School",
"Postcode": "LE679TB"
},
{
"SchoolName": "Acocks Green Primary School",
"Postcode": "B277UQ"
},
{
"SchoolName": "Vale of Evesham School",
"Postcode": "WR111BN"
},
{
"SchoolName": "Webster Primary School",
"Postcode": "M156JU"
},
{
"SchoolName": "Brill Church of England School",
"Postcode": "HP189RY"
},
{
"SchoolName": "Queen's Park Infant Academy",
"Postcode": "BH89PU"
},
{
"SchoolName": "St Louis Roman Catholic Academy",
"Postcode": "CB87AA"
},
{
"SchoolName": "Heronsgate School",
"Postcode": "MK77BW"
},
{
"SchoolName": "Mere Green Primary School",
"Postcode": "B755BL"
},
{
"SchoolName": "Pokesdown Community Primary School",
"Postcode": "BH52AS"
},
{
"SchoolName": "Northwood Primary School",
"Postcode": "PO318PU"
},
{
"SchoolName": "Church Stretton School",
"Postcode": "SY66EX"
},
{
"SchoolName": "Saint Paul's Catholic High School",
"Postcode": "M232YS"
},
{
"SchoolName": "Knowle Church of England Primary Academy",
"Postcode": "B930JE"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "M220NT"
},
{
"SchoolName": "Worth Primary School",
"Postcode": "SK121QA"
},
{
"SchoolName": "St Mary's Church of England Voluntary Aided Primary School",
"Postcode": "NN160JH"
},
{
"SchoolName": "Freemans Endowed Church of England Junior Academy",
"Postcode": "NN83HD"
},
{
"SchoolName": "Highwoods Community Primary School",
"Postcode": "CO49SN"
},
{
"SchoolName": "St Mary's CofE Primary Academy, Burton Latimer",
"Postcode": "NN155RL"
},
{
"SchoolName": "Brookvale Primary School",
"Postcode": "B237YB"
},
{
"SchoolName": "Peckover Primary School",
"Postcode": "PE131PJ"
},
{
"SchoolName": "St <NAME> and Thomas More Catholic Primary School",
"Postcode": "M229NW"
},
{
"SchoolName": "Oak Wood Primary School",
"Postcode": "CV114QH"
},
{
"SchoolName": "Oak Wood Secondary School",
"Postcode": "CV114QH"
},
{
"SchoolName": "The Lincoln Manor Leas Junior School",
"Postcode": "LN68BE"
},
{
"SchoolName": "Birdwell Primary School",
"Postcode": "BS419AZ"
},
{
"SchoolName": "Old Clee Primary Academy",
"Postcode": "DN328EN"
},
{
"SchoolName": "Raynsford Church of England Academy",
"Postcode": "SG166AT"
},
{
"SchoolName": "One In A Million Free School",
"Postcode": "BD87DX"
},
{
"SchoolName": "Caldicotes Primary Academy",
"Postcode": "TS39HD"
},
{
"SchoolName": "Our Lady's Catholic Primary School",
"Postcode": "OX42LF"
},
{
"SchoolName": "Rustington Community Primary School",
"Postcode": "BN163PW"
},
{
"SchoolName": "Broadmere Primary Academy",
"Postcode": "GU215QE"
},
{
"SchoolName": "St John Fisher Catholic Primary School, Littlemore",
"Postcode": "OX46LD"
},
{
"SchoolName": "Leighfield Academy",
"Postcode": "LE159TS"
},
{
"SchoolName": "The Woodlands Academy",
"Postcode": "YO126QN"
},
{
"SchoolName": "Ashwell Academy",
"Postcode": "HU75DS"
},
{
"SchoolName": "Fairway Primary Academy",
"Postcode": "B388XQ"
},
{
"SchoolName": "Kedington Primary Academy",
"Postcode": "CB97QZ"
},
{
"SchoolName": "Farnham Heath End School",
"Postcode": "GU99BN"
},
{
"SchoolName": "Taverham High School",
"Postcode": "NR86HP"
},
{
"SchoolName": "Brentside Primary School",
"Postcode": "W71JL"
},
{
"SchoolName": "Deansbrook Junior School",
"Postcode": "NW73ED"
},
{
"SchoolName": "St Patrick's Catholic Primary and Nursery School",
"Postcode": "NG117AB"
},
{
"SchoolName": "Heartsease Primary Academy",
"Postcode": "NR79UE"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "TS199AD"
},
{
"SchoolName": "Woodlands Primary School",
"Postcode": "ME72DU"
},
{
"SchoolName": "Pelham Primary School",
"Postcode": "DA74HL"
},
{
"SchoolName": "Moorside Community Primary Academy School",
"Postcode": "WN89EA"
},
{
"SchoolName": "Lyndhurst Junior School",
"Postcode": "PO20NT"
},
{
"SchoolName": "King David Primary School",
"Postcode": "M85DJ"
},
{
"SchoolName": "The Quay School",
"Postcode": "BH165AH"
},
{
"SchoolName": "Pontefract Larks Hill Junior and Infant School",
"Postcode": "WF84RJ"
},
{
"SchoolName": "The King's School Specialising in Mathematics and Computing",
"Postcode": "WF84JF"
},
{
"SchoolName": "Carleton Community High School A Specialist Science With Mathematics School",
"Postcode": "WF83NW"
},
{
"SchoolName": "Pontefract Halfpenny Lane Junior Infant and Nursery School",
"Postcode": "WF84BW"
},
{
"SchoolName": "Pontefract Orchard Head Junior and Infant and Nursery School",
"Postcode": "WF82NJ"
},
{
"SchoolName": "The Rookeries Carleton Junior and Infant School",
"Postcode": "WF83NP"
},
{
"SchoolName": "Stoke Bishop Church of England Primary School",
"Postcode": "BS91BW"
},
{
"SchoolName": "Penketh High School",
"Postcode": "WA52BY"
},
{
"SchoolName": "Christ Church Chorleywood CofE School",
"Postcode": "WD35SG"
},
{
"SchoolName": "Biggin Hill Primary School",
"Postcode": "HU74RL"
},
{
"SchoolName": "The Bridge AP Academy",
"Postcode": "SW66HB"
},
{
"SchoolName": "Sharnbrook John Gibbard Lower School",
"Postcode": "MK441PF"
},
{
"SchoolName": "Bude Park Primary School",
"Postcode": "HU74EY"
},
{
"SchoolName": "Highlands Primary School",
"Postcode": "HU75DD"
},
{
"SchoolName": "Sutton Park Primary School",
"Postcode": "HU74AH"
},
{
"SchoolName": "Wensley Fold CofE Primary Academy",
"Postcode": "BB26LX"
},
{
"SchoolName": "St John Rigby Catholic Primary School",
"Postcode": "MK419DQ"
},
{
"SchoolName": "St Joseph's RC Lower School",
"Postcode": "MK404HN"
},
{
"SchoolName": "St Thomas More Catholic School",
"Postcode": "MK417UL"
},
{
"SchoolName": "St Nicholas' CofE Primary",
"Postcode": "B496AG"
},
{
"SchoolName": "Putnoe Primary School",
"Postcode": "MK410DH"
},
{
"SchoolName": "Hill West Primary School",
"Postcode": "B744LD"
},
{
"SchoolName": "Glyne Gap School",
"Postcode": "TN402PU"
},
{
"SchoolName": "The Hills Academy",
"Postcode": "MK419AT"
},
{
"SchoolName": "Goldington Green Academy",
"Postcode": "MK410DP"
},
{
"SchoolName": "Blockley Church of England Primary School",
"Postcode": "GL569BY"
},
{
"SchoolName": "Dorchester Primary School",
"Postcode": "HU76AH"
},
{
"SchoolName": "<NAME>ley School",
"Postcode": "B152AF"
},
{
"SchoolName": "Our Lady of Lourdes Catholic Primary School, Witney",
"Postcode": "OX285JZ"
},
{
"SchoolName": "St Gregory the Great Catholic School",
"Postcode": "OX43DR"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Thame",
"Postcode": "OX92AB"
},
{
"SchoolName": "St Thomas More Catholic Primary School, Kidlington",
"Postcode": "OX51EA"
},
{
"SchoolName": "St Augustine's RC Primary School",
"Postcode": "DL37HP"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Carterton",
"Postcode": "OX183JY"
},
{
"SchoolName": "Holy Family RC Primary School",
"Postcode": "DL39EN"
},
{
"SchoolName": "The Sweyne Park School",
"Postcode": "SS69BZ"
},
{
"SchoolName": "Cliff Park Infant School, Gorleston",
"Postcode": "NR316SZ"
},
{
"SchoolName": "The Telford Park School",
"Postcode": "TF31FA"
},
{
"SchoolName": "All Saints Interchurch Academy",
"Postcode": "PE158ND"
},
{
"SchoolName": "St Aidan's Catholic Academy",
"Postcode": "SR27HJ"
},
{
"SchoolName": "Stapeley Broad Lane CofE Primary School",
"Postcode": "CW57QL"
},
{
"SchoolName": "Combe Pafford School",
"Postcode": "TQ28NL"
},
{
"SchoolName": "Courtyard AP Academy",
"Postcode": "SW62LL"
},
{
"SchoolName": "Wrotham School",
"Postcode": "TN157RD"
},
{
"SchoolName": "The Rayleigh Primary School Academy Trust",
"Postcode": "SS67DD"
},
{
"SchoolName": "Monteney Primary School",
"Postcode": "S59DN"
},
{
"SchoolName": "Flamstead End School",
"Postcode": "EN76AG"
},
{
"SchoolName": "West London Free School Primary",
"Postcode": "W60LB"
},
{
"SchoolName": "St Gregory's Catholic Middle School",
"Postcode": "MK404AT"
},
{
"SchoolName": "Cornerstone CofE (VA) Primary School",
"Postcode": "PO157JH"
},
{
"SchoolName": "Thomson House School",
"Postcode": "SW148HY"
},
{
"SchoolName": "Chaulden Junior School",
"Postcode": "HP12JU"
},
{
"SchoolName": "Olympic Primary School",
"Postcode": "NN83QA"
},
{
"SchoolName": "Windmill Primary School",
"Postcode": "NN96LA"
},
{
"SchoolName": "The Ilfracombe Church of England Academy",
"Postcode": "EX349JB"
},
{
"SchoolName": "Trinity School",
"Postcode": "TN133SL"
},
{
"SchoolName": "The Shade Primary School",
"Postcode": "CB75DE"
},
{
"SchoolName": "Chesterton Primary School",
"Postcode": "CB41RW"
},
{
"SchoolName": "Lime Tree Primary School",
"Postcode": "RH13LH"
},
{
"SchoolName": "<NAME>",
"Postcode": "LE44JG"
},
{
"SchoolName": "Pinderfields Hospital PRU",
"Postcode": "WF20LW"
},
{
"SchoolName": "Hope Community School",
"Postcode": "DA145BU"
},
{
"SchoolName": "Alma Primary",
"Postcode": "N200LP"
},
{
"SchoolName": "City of Derby Academy",
"Postcode": "DE243AR"
},
{
"SchoolName": "George Betts Primary Academy",
"Postcode": "B661RE"
},
{
"SchoolName": "Stanford-Le-Hope Primary School",
"Postcode": "SS170DF"
},
{
"SchoolName": "Colnbrook Church of England Primary School",
"Postcode": "SL30JZ"
},
{
"SchoolName": "Havercroft Academy",
"Postcode": "WF42BE"
},
{
"SchoolName": "Ainthorpe Primary School",
"Postcode": "HU55EB"
},
{
"SchoolName": "City Road Primary School",
"Postcode": "B160HL"
},
{
"SchoolName": "Fakenham Academy Norfolk",
"Postcode": "NR219QT"
},
{
"SchoolName": "St Helen's CE Primary School",
"Postcode": "WF94EG"
},
{
"SchoolName": "Murrow Primary Academy",
"Postcode": "PE134HD"
},
{
"SchoolName": "Norwich Road Academy",
"Postcode": "IP242HT"
},
{
"SchoolName": "Quarry Hill Academy",
"Postcode": "RM175UT"
},
{
"SchoolName": "St Luke's Catholic Academy",
"Postcode": "CM194LU"
},
{
"SchoolName": "The Hathaway Academy",
"Postcode": "RM175LL"
},
{
"SchoolName": "Wheeler Primary School",
"Postcode": "HU35QE"
},
{
"SchoolName": "Woodlands Primary Academy",
"Postcode": "NR318QQ"
},
{
"SchoolName": "St Clare's Catholic Primary School",
"Postcode": "CO168AG"
},
{
"SchoolName": "Eskdale Academy",
"Postcode": "TS254BT"
},
{
"SchoolName": "Grange Primary Academy",
"Postcode": "NN160PL"
},
{
"SchoolName": "Compass School Southwark",
"Postcode": "SE162BT"
},
{
"SchoolName": "Liverpool Life Sciences UTC",
"Postcode": "L10BS"
},
{
"SchoolName": "The Studio School Liverpool",
"Postcode": "L10BS"
},
{
"SchoolName": "Stoke Studio College for Manufacturing and Design Engineering",
"Postcode": "ST61JJ"
},
{
"SchoolName": "Tooting Primary School",
"Postcode": "SW178HE"
},
{
"SchoolName": "The Archer Academy",
"Postcode": "N20GA"
},
{
"SchoolName": "Hackney New School",
"Postcode": "E84DL"
},
{
"SchoolName": "Parkfield School",
"Postcode": "BH13NL"
},
{
"SchoolName": "Boston Pioneers Free School Academy",
"Postcode": "PE218SS"
},
{
"SchoolName": "New Islington Free School",
"Postcode": "M46EY"
},
{
"SchoolName": "Heron Hall Academy",
"Postcode": "EN34SA"
},
{
"SchoolName": "The St Marylebone Church of England Bridge School",
"Postcode": "W104RS"
},
{
"SchoolName": "The Complete Works Independent School",
"Postcode": "E16LP"
},
{
"SchoolName": "Scientia Academy",
"Postcode": "DE130UF"
},
{
"SchoolName": "R.E.A.L Independent Schools",
"Postcode": "NG210PN"
},
{
"SchoolName": "Marine Academy Primary",
"Postcode": "PL52AF"
},
{
"SchoolName": "Abbots Hall Primary School",
"Postcode": "SS177BW"
},
{
"SchoolName": "All Saints Academy",
"Postcode": "TS175BL"
},
{
"SchoolName": "Barrs Court School",
"Postcode": "HR11EQ"
},
{
"SchoolName": "Burghill Community Academy",
"Postcode": "HR47RP"
},
{
"SchoolName": "Charville Primary School",
"Postcode": "UB48LF"
},
{
"SchoolName": "Edgar Stammers Primary Academy",
"Postcode": "WS31RQ"
},
{
"SchoolName": "English Martyrs' Catholic Primary School",
"Postcode": "LE156EH"
},
{
"SchoolName": "The Ferrars Academy",
"Postcode": "LU40LL"
},
{
"SchoolName": "Graham James Primary Academy",
"Postcode": "SS177ES"
},
{
"SchoolName": "Halewood Academy",
"Postcode": "L261UU"
},
{
"SchoolName": "Hartley Primary Academy",
"Postcode": "DA38BT"
},
{
"SchoolName": "Heartlands High School",
"Postcode": "N227ST"
},
{
"SchoolName": "Horrington Primary School",
"Postcode": "BA53EB"
},
{
"SchoolName": "Huntingtower Community Primary Academy",
"Postcode": "NG317AU"
},
{
"SchoolName": "Kanes Hill Primary School",
"Postcode": "SO196FW"
},
{
"SchoolName": "Narborough The Pastures Primary School",
"Postcode": "LE193YP"
},
{
"SchoolName": "Our Lady of Good Counsel Catholic Primary School",
"Postcode": "NG347AT"
},
{
"SchoolName": "Our Lady of Lincoln Catholic Primary School",
"Postcode": "LN22HE"
},
{
"SchoolName": "St Peter and St Paul, Catholic Voluntary Academy",
"Postcode": "LN67SX"
},
{
"SchoolName": "Beauchamp College",
"Postcode": "LE25TP"
},
{
"SchoolName": "The Eresby School, Spilsby",
"Postcode": "PE235HU"
},
{
"SchoolName": "The Saint Augustine's Catholic Voluntary Academy",
"Postcode": "PE91SR"
},
{
"SchoolName": "The Saint Hugh's Catholic Primary Voluntary Academy, Lincoln",
"Postcode": "LN60SH"
},
{
"SchoolName": "Tweendykes School",
"Postcode": "HU74PW"
},
{
"SchoolName": "Winifred Holtby Academy",
"Postcode": "HU74PW"
},
{
"SchoolName": "Woodside Primary School",
"Postcode": "SY111DT"
},
{
"SchoolName": "Pegasus Primary School",
"Postcode": "B356PR"
},
{
"SchoolName": "Hollybrook Junior School",
"Postcode": "SO166RL"
},
{
"SchoolName": "Parkfield Primary School",
"Postcode": "NW43PJ"
},
{
"SchoolName": "The Round House Primary Academy",
"Postcode": "PE196AW"
},
{
"SchoolName": "Woodhouse Primary Academy",
"Postcode": "B322DL"
},
{
"SchoolName": "Gray's Farm Primary Academy",
"Postcode": "BR53AD"
},
{
"SchoolName": "Harris Primary Academy Kenley",
"Postcode": "CR85NF"
},
{
"SchoolName": "Ravens Academy",
"Postcode": "CO168TZ"
},
{
"SchoolName": "Primrose Hill Church of England Primary Academy",
"Postcode": "GL155TA"
},
{
"SchoolName": "St Blasius Shanklin Cof E Primary Academy",
"Postcode": "PO377LY"
},
{
"SchoolName": "Ark Brunel Primary Academy",
"Postcode": "W105AT"
},
{
"SchoolName": "Leeds City Academy",
"Postcode": "LS62LG"
},
{
"SchoolName": "Continu Plus Academy",
"Postcode": "DY117FB"
},
{
"SchoolName": "Holy Family Catholic Academy",
"Postcode": "DN359NF"
},
{
"SchoolName": "Queen Eleanor Primary Academy",
"Postcode": "NN48NN"
},
{
"SchoolName": "Richmond Academy",
"Postcode": "OL96HY"
},
{
"SchoolName": "The Palmer Primary Academy",
"Postcode": "RG27PP"
},
{
"SchoolName": "Brymore Academy",
"Postcode": "TA52NB"
},
{
"SchoolName": "St Michael's Catholic Academy",
"Postcode": "TS233DX"
},
{
"SchoolName": "Anderida Learning Centre",
"Postcode": "BN228HR"
},
{
"SchoolName": "Kings Priory School",
"Postcode": "NE304RF"
},
{
"SchoolName": "Oasis Academy South Bank",
"Postcode": "SE17HS"
},
{
"SchoolName": "Abbey View",
"Postcode": "GL205SW"
},
{
"SchoolName": "Steiner Academy Exeter",
"Postcode": "EX45AD"
},
{
"SchoolName": "The Reach Free School",
"Postcode": "WD189BL"
},
{
"SchoolName": "<NAME>",
"Postcode": "MK183DL"
},
{
"SchoolName": "Wye School",
"Postcode": "TN255EJ"
},
{
"SchoolName": "The Pinetree School",
"Postcode": "IP243LH"
},
{
"SchoolName": "Devon Studio School",
"Postcode": "TQ27FT"
},
{
"SchoolName": "Chichester Free School",
"Postcode": "PO201QH"
},
{
"SchoolName": "Bristol Technology and Engineering Academy",
"Postcode": "BS348SF"
},
{
"SchoolName": "Reach School",
"Postcode": "B147BB"
},
{
"SchoolName": "Haberdashers' Aske's Hatcham Temple Grove Free School",
"Postcode": "SE145SF"
},
{
"SchoolName": "The Grangefield Academy",
"Postcode": "TS184LE"
},
{
"SchoolName": "Eastbrook Primary Academy",
"Postcode": "BN424NF"
},
{
"SchoolName": "Unity Academy Blackpool",
"Postcode": "FY20TS"
},
{
"SchoolName": "City Academy Whitehawk",
"Postcode": "BN25FL"
},
{
"SchoolName": "Harris Primary Academy Kent House",
"Postcode": "SE207QR"
},
{
"SchoolName": "Denham Green E-Act Academy",
"Postcode": "UB95JL"
},
{
"SchoolName": "St Bartholomew's Church of England Academy",
"Postcode": "CV32LP"
},
{
"SchoolName": "Hill Farm Academy",
"Postcode": "CV63BL"
},
{
"SchoolName": "Isca",
"Postcode": "EX26AP"
},
{
"SchoolName": "Ore Village Primary Academy",
"Postcode": "TN355DB"
},
{
"SchoolName": "Copperfield Academy",
"Postcode": "DA110RB"
},
{
"SchoolName": "Liverpool College",
"Postcode": "L188BG"
},
{
"SchoolName": "Mosaic Jewish Primary School",
"Postcode": "SW154EU"
},
{
"SchoolName": "Khalsa Science Academy",
"Postcode": "LS177HA"
},
{
"SchoolName": "Rye Studio School",
"Postcode": "TN317NQ"
},
{
"SchoolName": "Silverstone UTC",
"Postcode": "NN128TL"
},
{
"SchoolName": "Marchbank Free School",
"Postcode": "DL39BL"
},
{
"SchoolName": "Jewell Academy Bournemouth",
"Postcode": "BH80LT"
},
{
"SchoolName": "Waterwells Primary Academy",
"Postcode": "GL22FX"
},
{
"SchoolName": "Wallscourt Farm Academy",
"Postcode": "BS161GE"
},
{
"SchoolName": "UTC Sheffield",
"Postcode": "S14QF"
},
{
"SchoolName": "The Wells Free School",
"Postcode": "TN48FA"
},
{
"SchoolName": "Hadlow Rural Community School",
"Postcode": "TN110AU"
},
{
"SchoolName": "Ark Priory Primary Academy",
"Postcode": "W38NR"
},
{
"SchoolName": "Nightingale Primary Academy",
"Postcode": "LS97AX"
},
{
"SchoolName": "Beacon Primary Academy",
"Postcode": "PE252RN"
},
{
"SchoolName": "Chobham Academy",
"Postcode": "E201BD"
},
{
"SchoolName": "Coppice Primary Academy",
"Postcode": "OL81AP"
},
{
"SchoolName": "Dallow Primary School",
"Postcode": "LU11LZ"
},
{
"SchoolName": "R.Y.A.N Education Academy",
"Postcode": "B111LF"
},
{
"SchoolName": "University Academy Kidsgrove",
"Postcode": "ST74DL"
},
{
"SchoolName": "Abbey Woods Academy",
"Postcode": "OX107LZ"
},
{
"SchoolName": "Mayflower Academy",
"Postcode": "PL22NJ"
},
{
"SchoolName": "Magna Academy",
"Postcode": "BH178RE"
},
{
"SchoolName": "The Victory Primary School",
"Postcode": "PO64QP"
},
{
"SchoolName": "Ark Ayrton Primary Academy",
"Postcode": "PO54LS"
},
{
"SchoolName": "Portsmouth Academy for Girls",
"Postcode": "PO15PF"
},
{
"SchoolName": "Hamp Academy",
"Postcode": "TA66JB"
},
{
"SchoolName": "Ark All Saints Academy",
"Postcode": "SE50UB"
},
{
"SchoolName": "Landau Forte Academy Greenacres",
"Postcode": "B774AB"
},
{
"SchoolName": "Nishkam School West London",
"Postcode": "TW75AJ"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "RH42LR"
},
{
"SchoolName": "Carew Academy",
"Postcode": "SM67NH"
},
{
"SchoolName": "Riverley Primary School",
"Postcode": "E107BZ"
},
{
"SchoolName": "Sybourn Primary School",
"Postcode": "E178HA"
},
{
"SchoolName": "William Perkin Church of England High School",
"Postcode": "UB68PR"
},
{
"SchoolName": "Sacks Morasha Jewish Primary School",
"Postcode": "N129DX"
},
{
"SchoolName": "Thames Valley School",
"Postcode": "RG304BZ"
},
{
"SchoolName": "West Newcastle Academy",
"Postcode": "NE48XT"
},
{
"SchoolName": "Connell Sixth Form College",
"Postcode": "M113BS"
},
{
"SchoolName": "St Georges Academy",
"Postcode": "B193JG"
},
{
"SchoolName": "Churchill Special Free School",
"Postcode": "CB90LB"
},
{
"SchoolName": "Eden Park Academy",
"Postcode": "LS117EN"
},
{
"SchoolName": "Woodside Lodge Outdoor Learning Centre",
"Postcode": "LE128DB"
},
{
"SchoolName": "All Saints Catholic College",
"Postcode": "SK165AP"
},
{
"SchoolName": "Arden Grove Infant and Nursery School",
"Postcode": "NR66QA"
},
{
"SchoolName": "Battling Brook Primary School",
"Postcode": "LE100EX"
},
{
"SchoolName": "The Baverstock Academy",
"Postcode": "B145TL"
},
{
"SchoolName": "Brocks Hill Primary School",
"Postcode": "LE25WP"
},
{
"SchoolName": "Caradon Alternative Provision Academy",
"Postcode": "PL146BS"
},
{
"SchoolName": "Community & Hospital Education Service Ap Academy",
"Postcode": "TR140HX"
},
{
"SchoolName": "Corngreaves Academy",
"Postcode": "B646EZ"
},
{
"SchoolName": "Croftway Primary Academy",
"Postcode": "NE242HP"
},
{
"SchoolName": "Frisby Church of England Primary School",
"Postcode": "LE142NH"
},
{
"SchoolName": "Glynn House Alternative Provision Academy",
"Postcode": "TR13AY"
},
{
"SchoolName": "Hamstead Hall Academy",
"Postcode": "B201HL"
},
{
"SchoolName": "Harefield Primary School",
"Postcode": "SO185NZ"
},
{
"SchoolName": "Heather Garth Primary School Academy",
"Postcode": "S638ES"
},
{
"SchoolName": "Honeybourne First School",
"Postcode": "WR117PJ"
},
{
"SchoolName": "Ladygrove Park Primary School",
"Postcode": "OX117GB"
},
{
"SchoolName": "Launde Primary School",
"Postcode": "LE24LJ"
},
{
"SchoolName": "Leighton Academy",
"Postcode": "CW13PP"
},
{
"SchoolName": "Malmesbury Church of England Primary School",
"Postcode": "SN169JR"
},
{
"SchoolName": "Malvin's Close Primary Academy",
"Postcode": "NE245BL"
},
{
"SchoolName": "Manor School",
"Postcode": "OX117LB"
},
{
"SchoolName": "Morpeth Road Primary Academy",
"Postcode": "NE245TQ"
},
{
"SchoolName": "Risdene Academy",
"Postcode": "NN100HH"
},
{
"SchoolName": "Nine Maidens Alternative Provision Academy",
"Postcode": "TR166ND"
},
{
"SchoolName": "North Cornwall Alternative Provision Academy",
"Postcode": "PL339DA"
},
{
"SchoolName": "Penwith Alternative Provision Academy",
"Postcode": "TR182AT"
},
{
"SchoolName": "Restormel Alternative Provision Academy",
"Postcode": "PL254TJ"
},
{
"SchoolName": "St John's Primary School",
"Postcode": "OX109AG"
},
{
"SchoolName": "Shenfield St. Mary's Church of England Primary School",
"Postcode": "CM159AL"
},
{
"SchoolName": "St Thomas More Catholic High School, A Specialist School for Maths & ICT",
"Postcode": "CW28AE"
},
{
"SchoolName": "The Nottingham Emmanuel School",
"Postcode": "NG27YF"
},
{
"SchoolName": "The Telford Langley School",
"Postcode": "TF43JS"
},
{
"SchoolName": "Thringstone Primary School",
"Postcode": "LE678LJ"
},
{
"SchoolName": "Timbertree Academy",
"Postcode": "B647LT"
},
{
"SchoolName": "William Brookes School",
"Postcode": "TF136NB"
},
{
"SchoolName": "Willowcroft Community School",
"Postcode": "OX118BA"
},
{
"SchoolName": "TLG - Nottingham",
"Postcode": "NG72NR"
},
{
"SchoolName": "Edward Jenner School",
"Postcode": "GL12BH"
},
{
"SchoolName": "Leeds Jewish Free School",
"Postcode": "LS177TN"
},
{
"SchoolName": "Acorn Free School",
"Postcode": "LN59TL"
},
{
"SchoolName": "Rutherford House School",
"Postcode": "SW177BS"
},
{
"SchoolName": "The Olive Tree Primary School Bolton",
"Postcode": "BL33NY"
},
{
"SchoolName": "Tyndale Community School",
"Postcode": "OX42JX"
},
{
"SchoolName": "Oxford Tutorial College",
"Postcode": "OX14HT"
},
{
"SchoolName": "River Bank Primary School",
"Postcode": "LU31ES"
},
{
"SchoolName": "Park Avenue Girls' High School",
"Postcode": "ST42DT"
},
{
"SchoolName": "Mackworth House School",
"Postcode": "DE224LL"
},
{
"SchoolName": "Waverley Studio College",
"Postcode": "B95SX"
},
{
"SchoolName": "Walsall Studio School",
"Postcode": "WS11RL"
},
{
"SchoolName": "Longsight Community Primary",
"Postcode": "M130QX"
},
{
"SchoolName": "Riverside School",
"Postcode": "IG110HZ"
},
{
"SchoolName": "UTC Lancashire",
"Postcode": "BB111RA"
},
{
"SchoolName": "Tech City College",
"Postcode": "EC1V1JX"
},
{
"SchoolName": "Sparkwell All Saints Primary School",
"Postcode": "PL75DD"
},
{
"SchoolName": "Gildredge House",
"Postcode": "BN208AB"
},
{
"SchoolName": "Perry Beeches III the Free School",
"Postcode": "B152EF"
},
{
"SchoolName": "Kimberley 16 - 19 Stem College",
"Postcode": "MK439LY"
},
{
"SchoolName": "Wansbeck Primary School",
"Postcode": "HU89SR"
},
{
"SchoolName": "Ss Mary and John's Catholic Primary Academy",
"Postcode": "WV21HZ"
},
{
"SchoolName": "Potter Street Academy",
"Postcode": "CM179EU"
},
{
"SchoolName": "Gusford Community Primary School",
"Postcode": "IP29LQ"
},
{
"SchoolName": "Westwood Primary School",
"Postcode": "NR339RR"
},
{
"SchoolName": "Rockingham Primary School",
"Postcode": "NN171AJ"
},
{
"SchoolName": "Kirby Primary Academy",
"Postcode": "CO130LW"
},
{
"SchoolName": "Haskel School",
"Postcode": "NE84DR"
},
{
"SchoolName": "Burrsville Infant Academy",
"Postcode": "CO154HR"
},
{
"SchoolName": "Petham Primary School",
"Postcode": "CT45RD"
},
{
"SchoolName": "The Cedars School",
"Postcode": "CR05RD"
},
{
"SchoolName": "The Olive School Blackburn",
"Postcode": "BB26QQ"
},
{
"SchoolName": "The Olive School Hackney",
"Postcode": "N166AA"
},
{
"SchoolName": "Ark John Keats Academy",
"Postcode": "EN35PA"
},
{
"SchoolName": "Route 39 Academy",
"Postcode": "EX395SU"
},
{
"SchoolName": "The Hyde School",
"Postcode": "NW97EY"
},
{
"SchoolName": "St Michael's Church of England Primary Academy",
"Postcode": "EX12SN"
},
{
"SchoolName": "Weavers Academy",
"Postcode": "NN83JH"
},
{
"SchoolName": "Ark Swift Primary Academy",
"Postcode": "W127PT"
},
{
"SchoolName": "Ar<NAME> Parker Academy",
"Postcode": "TN342NT"
},
{
"SchoolName": "Archbishop Courtenay Primary School",
"Postcode": "ME156QN"
},
{
"SchoolName": "Outwood Academy Acklam",
"Postcode": "TS57JY"
},
{
"SchoolName": "Wilberforce Primary",
"Postcode": "W104LB"
},
{
"SchoolName": "Crabbs Cross Academy",
"Postcode": "B975JH"
},
{
"SchoolName": "Read Academy",
"Postcode": "IG14AD"
},
{
"SchoolName": "Corby Primary Academy",
"Postcode": "NN188QA"
},
{
"SchoolName": "Cathedral Primary School",
"Postcode": "BS15TS"
},
{
"SchoolName": "Harris Aspire Academy",
"Postcode": "BR31QR"
},
{
"SchoolName": "Ark Franklin Primary Academy",
"Postcode": "NW66HJ"
},
{
"SchoolName": "Sol Christian Academy",
"Postcode": "M126EL"
},
{
"SchoolName": "University Church Free School",
"Postcode": "CH11QP"
},
{
"SchoolName": "East London Science School",
"Postcode": "E33DU"
},
{
"SchoolName": "Rhodes Farm School",
"Postcode": "AL96NN"
},
{
"SchoolName": "Abacus Belsize Primary School",
"Postcode": "N1C4PF"
},
{
"SchoolName": "Bellfield Primary School",
"Postcode": "HU89DD"
},
{
"SchoolName": "Biddick Academy",
"Postcode": "NE388AL"
},
{
"SchoolName": "Birchwood Community High School",
"Postcode": "WA37PT"
},
{
"SchoolName": "Broadway Academy",
"Postcode": "B203DP"
},
{
"SchoolName": "Burntwood School",
"Postcode": "SW170AQ"
},
{
"SchoolName": "Burrowmoor Primary School",
"Postcode": "PE159RP"
},
{
"SchoolName": "Bury CofE Primary School",
"Postcode": "PE262NJ"
},
{
"SchoolName": "Captains Close Primary School",
"Postcode": "LE143TU"
},
{
"SchoolName": "Carmountside Primary Academy",
"Postcode": "ST28DJ"
},
{
"SchoolName": "Chipping Warden Primary Academy",
"Postcode": "OX171LD"
},
{
"SchoolName": "Collingwood Primary School",
"Postcode": "HU31AW"
},
{
"SchoolName": "Diamond Hall Infant Academy",
"Postcode": "SR46JF"
},
{
"SchoolName": "Eastfield Primary School",
"Postcode": "HU46DT"
},
{
"SchoolName": "Eldon Grove Academy",
"Postcode": "TS269LY"
},
{
"SchoolName": "Farringdon Community Academy",
"Postcode": "SR33EL"
},
{
"SchoolName": "The Forest School",
"Postcode": "RG415NE"
},
{
"SchoolName": "Gilmorton Chandler Church of England Primary School",
"Postcode": "LE175LU"
},
{
"SchoolName": "Glenmere Community Primary School",
"Postcode": "LE183RD"
},
{
"SchoolName": "Hinde House 3-16 School",
"Postcode": "S56AG"
},
{
"SchoolName": "Kings Sutton Primary School",
"Postcode": "OX173RT"
},
{
"SchoolName": "<NAME> (Controlled) Primary School",
"Postcode": "LE157HY"
},
{
"SchoolName": "Langmoor Primary School Oadby",
"Postcode": "LE25HS"
},
{
"SchoolName": "The Orchards Primary Academy",
"Postcode": "B311TX"
},
{
"SchoolName": "Loughton School",
"Postcode": "MK58DN"
},
{
"SchoolName": "Lound Infant School",
"Postcode": "S352EU"
},
{
"SchoolName": "Lound Junior School",
"Postcode": "S352UT"
},
{
"SchoolName": "Lubenham All Saints Church of England Primary School",
"Postcode": "LE169TW"
},
{
"SchoolName": "Meppershall Church of England Academy",
"Postcode": "SG175LZ"
},
{
"SchoolName": "Middleton Cheney Primary Academy",
"Postcode": "OX172PD"
},
{
"SchoolName": "Mildenhall College Academy",
"Postcode": "IP287HT"
},
{
"SchoolName": "North Thoresby Primary Academy",
"Postcode": "DN365PL"
},
{
"SchoolName": "Norwood Green Junior School",
"Postcode": "UB25RN"
},
{
"SchoolName": "Perry Hall Primary School",
"Postcode": "WV113RT"
},
{
"SchoolName": "Powers Hall Academy",
"Postcode": "CM81NA"
},
{
"SchoolName": "Redhill School and Specialist Language College",
"Postcode": "DY81JX"
},
{
"SchoolName": "Richard Hale School",
"Postcode": "SG138EN"
},
{
"SchoolName": "Rothley Church of England Primary School",
"Postcode": "LE77RZ"
},
{
"SchoolName": "Shireland Hall Primary Academy",
"Postcode": "B664PW"
},
{
"SchoolName": "St Bede's Catholic Primary School",
"Postcode": "S611PD"
},
{
"SchoolName": "St Gerard's Catholic Primary School",
"Postcode": "S654AE"
},
{
"SchoolName": "St Joseph's Catholic Academy",
"Postcode": "NE312ET"
},
{
"SchoolName": "St Lawrence CofE Primary School",
"Postcode": "BN69UY"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "S652NU"
},
{
"SchoolName": "St Mary's Catholic Primary School (Maltby)",
"Postcode": "S667JU"
},
{
"SchoolName": "St Mary's Catholic Primary School, Maidenhead",
"Postcode": "SL67EG"
},
{
"SchoolName": "Standish St Wilfrid's Church of England Primary Academy",
"Postcode": "WN60XB"
},
{
"SchoolName": "Stranton Primary School",
"Postcode": "TS251SQ"
},
{
"SchoolName": "The Utterby Primary Academy",
"Postcode": "LN110TN"
},
{
"SchoolName": "Thoresby Primary School",
"Postcode": "HU53RG"
},
{
"SchoolName": "Uffculme Primary School",
"Postcode": "EX153AY"
},
{
"SchoolName": "Washwood Heath Academy",
"Postcode": "B82AS"
},
{
"SchoolName": "Westbrook Primary School",
"Postcode": "TW50NB"
},
{
"SchoolName": "New Monument Primary Academy",
"Postcode": "GU228HA"
},
{
"SchoolName": "St Edmunds Catholic Academy",
"Postcode": "WV39DU"
},
{
"SchoolName": "St Michael's Catholic Primary Academy and Nursery",
"Postcode": "WV37LE"
},
{
"SchoolName": "St Teresa's Catholic Primary Academy",
"Postcode": "WV46AW"
},
{
"SchoolName": "SS Peter and Paul Catholic Primary Academy & Nursery",
"Postcode": "WV60HR"
},
{
"SchoolName": "Robert Owen Academy",
"Postcode": "HR49HS"
},
{
"SchoolName": "<NAME> Sixth Form Free School",
"Postcode": "NR21NR"
},
{
"SchoolName": "Khalsa Secondary Academy",
"Postcode": "SL24QP"
},
{
"SchoolName": "Pimlico Primary",
"Postcode": "SW1V3AT"
},
{
"SchoolName": "Windmill Primary School",
"Postcode": "RG413DR"
},
{
"SchoolName": "Wheatfield Primary School",
"Postcode": "RG415UU"
},
{
"SchoolName": "Ummid Independent School",
"Postcode": "BD73EX"
},
{
"SchoolName": "The Da Vinci Studio School of Creative Enterprise",
"Postcode": "SG63PA"
},
{
"SchoolName": "Southend YMCA Community School",
"Postcode": "SS26LH"
},
{
"SchoolName": "Grestone Academy",
"Postcode": "B201ND"
},
{
"SchoolName": "Harris Primary Academy Benson",
"Postcode": "CR08RQ"
},
{
"SchoolName": "Harris Academy Upper Norwood",
"Postcode": "SE193UG"
},
{
"SchoolName": "Judith Kerr Primary School",
"Postcode": "SE249JE"
},
{
"SchoolName": "Hewens Primary School",
"Postcode": "UB48JP"
},
{
"SchoolName": "Cranberry Academy",
"Postcode": "ST72LE"
},
{
"SchoolName": "RNIB Three Spires Academy",
"Postcode": "CV61PJ"
},
{
"SchoolName": "Windmill CofE (VC) Primary School",
"Postcode": "WF170NP"
},
{
"SchoolName": "Arley Primary School",
"Postcode": "CV78HB"
},
{
"SchoolName": "Marden Lodge Primary School and Nursery",
"Postcode": "CR36QH"
},
{
"SchoolName": "Warlingham Village Primary School",
"Postcode": "CR69EJ"
},
{
"SchoolName": "St Teresa's Catholic Primary School, Basildon",
"Postcode": "SS141UE"
},
{
"SchoolName": "Wodensborough Ormiston Academy",
"Postcode": "WS100DR"
},
{
"SchoolName": "Shaftesbury Extended Learning Centre",
"Postcode": "CV78LA"
},
{
"SchoolName": "The Holme Church of England Primary School",
"Postcode": "GU358PQ"
},
{
"SchoolName": "Mersey Primary Academy",
"Postcode": "HU88TX"
},
{
"SchoolName": "The Parks Primary Academy",
"Postcode": "HU69TA"
},
{
"SchoolName": "Plymouth School of Creative Arts",
"Postcode": "PL13EG"
},
{
"SchoolName": "Darwen Aldridge Enterprise Studio",
"Postcode": "BB31AF"
},
{
"SchoolName": "The Jubilee Academy",
"Postcode": "HA13AW"
},
{
"SchoolName": "Nanaksar Primary School",
"Postcode": "UB40LT"
},
{
"SchoolName": "Kingfisher Community Primary School",
"Postcode": "ME57NX"
},
{
"SchoolName": "Saxon Way Primary School",
"Postcode": "ME71SJ"
},
{
"SchoolName": "Norwich Primary Academy",
"Postcode": "NR58ED"
},
{
"SchoolName": "Highlees Primary School",
"Postcode": "PE37ER"
},
{
"SchoolName": "Dormanstown Primary Academy",
"Postcode": "TS105LY"
},
{
"SchoolName": "Pathways E-Act Primary Academy",
"Postcode": "S57NA"
},
{
"SchoolName": "Grange Primary",
"Postcode": "SY13QR"
},
{
"SchoolName": "Cheddon Fitzpaine Church School",
"Postcode": "TA28JY"
},
{
"SchoolName": "Charfield Primary School",
"Postcode": "GL128TG"
},
{
"SchoolName": "Nicholas Chamberlaine Technology College",
"Postcode": "CV129EA"
},
{
"SchoolName": "The Queen Elizabeth Academy",
"Postcode": "CV91LZ"
},
{
"SchoolName": "Theale Green School",
"Postcode": "RG75DA"
},
{
"SchoolName": "Allhallows Primary Academy",
"Postcode": "ME39HR"
},
{
"SchoolName": "Churchill Gardens Primary Academy",
"Postcode": "SW1V3EU"
},
{
"SchoolName": "Skegby Junior Academy",
"Postcode": "NG173FH"
},
{
"SchoolName": "Foxborough Primary School",
"Postcode": "SL38TX"
},
{
"SchoolName": "Frogmore Junior School",
"Postcode": "GU170NY"
},
{
"SchoolName": "Hayesdown First School",
"Postcode": "BA112BN"
},
{
"SchoolName": "Hightown Primary School",
"Postcode": "SO196AA"
},
{
"SchoolName": "Jubilee High School",
"Postcode": "KT151TE"
},
{
"SchoolName": "University Primary Academy Kidsgrove",
"Postcode": "ST74DJ"
},
{
"SchoolName": "Purford Green Primary School",
"Postcode": "CM186HP"
},
{
"SchoolName": "Pyrcroft Grange Primary School",
"Postcode": "KT169EW"
},
{
"SchoolName": "Reynolds Primary Academy",
"Postcode": "DN357LJ"
},
{
"SchoolName": "Sir William Stanier Community School",
"Postcode": "CW14EB"
},
{
"SchoolName": "St George's CofE Primary Academy",
"Postcode": "PL13RX"
},
{
"SchoolName": "St Newlyn East Learning Academy",
"Postcode": "TR85ND"
},
{
"SchoolName": "Holgate Academy",
"Postcode": "NG156PX"
},
{
"SchoolName": "Kingswood Secondary Academy",
"Postcode": "NN189NS"
},
{
"SchoolName": "The Mill Primary Academy",
"Postcode": "RH110EL"
},
{
"SchoolName": "The Oak Tree Academy",
"Postcode": "TS190SE"
},
{
"SchoolName": "Truro Learning Academy",
"Postcode": "TR13PQ"
},
{
"SchoolName": "Wrenn School",
"Postcode": "NN82DQ"
},
{
"SchoolName": "TLG - South East Birmingham",
"Postcode": "B144BN"
},
{
"SchoolName": "Engaging Potential",
"Postcode": "RG142PR"
},
{
"SchoolName": "Harris Junior Academy Carshalton",
"Postcode": "SM52NS"
},
{
"SchoolName": "Harris Primary Academy Crystal Palace",
"Postcode": "SE208RH"
},
{
"SchoolName": "Cliffdale Primary School",
"Postcode": "PO20SN"
},
{
"SchoolName": "Wold Academy",
"Postcode": "HU55QG"
},
{
"SchoolName": "Collective Spirit Free School",
"Postcode": "OL98DX"
},
{
"SchoolName": "Holyport College",
"Postcode": "SL63LE"
},
{
"SchoolName": "The Heights Primary School",
"Postcode": "RG48BH"
},
{
"SchoolName": "Dania School",
"Postcode": "N78AB"
},
{
"SchoolName": "Abbey Hill Academy",
"Postcode": "TS198BU"
},
{
"SchoolName": "Beckfoot School",
"Postcode": "BD161EE"
},
{
"SchoolName": "Catcote Academy",
"Postcode": "TS254EZ"
},
{
"SchoolName": "Hazelbeck Special School",
"Postcode": "BD161EE"
},
{
"SchoolName": "Southfield School",
"Postcode": "BD59ET"
},
{
"SchoolName": "Dauntsey Academy Primary School",
"Postcode": "SN104HY"
},
{
"SchoolName": "Eastfield Primary Academy",
"Postcode": "DN401LD"
},
{
"SchoolName": "Grange Technology College",
"Postcode": "BD59ET"
},
{
"SchoolName": "Humberstone Junior School",
"Postcode": "LE51AE"
},
{
"SchoolName": "Parish Church of England Primary School",
"Postcode": "BR14HF"
},
{
"SchoolName": "Pegasus School",
"Postcode": "OX46RQ"
},
{
"SchoolName": "Porter Croft Church of England Primary Academy",
"Postcode": "S118JN"
},
{
"SchoolName": "Stone with Woodford Church of England Primary School",
"Postcode": "GL139JX"
},
{
"SchoolName": "The Ferrers School",
"Postcode": "NN108LF"
},
{
"SchoolName": "The Green School",
"Postcode": "TW75BB"
},
{
"SchoolName": "Ursula Taylor Church of England School",
"Postcode": "MK416EG"
},
{
"SchoolName": "West Thurrock Academy",
"Postcode": "RM203HR"
},
{
"SchoolName": "Wingfield Academy",
"Postcode": "S614AU"
},
{
"SchoolName": "Woking High School",
"Postcode": "GU214TJ"
},
{
"SchoolName": "Yardleys School",
"Postcode": "B113EY"
},
{
"SchoolName": "Oasis Academy Lister Park",
"Postcode": "BD87ND"
},
{
"SchoolName": "Ark Helenswood Academy",
"Postcode": "TN377PS"
},
{
"SchoolName": "Carfax College",
"Postcode": "OX12EP"
},
{
"SchoolName": "Heyford Park Free School",
"Postcode": "OX255HD"
},
{
"SchoolName": "Radcliffe Primary School",
"Postcode": "M263RD"
},
{
"SchoolName": "Castle Hill Academy",
"Postcode": "CR00RJ"
},
{
"SchoolName": "Kirkby High School",
"Postcode": "L329PP"
},
{
"SchoolName": "The Blyth Academy",
"Postcode": "NE244JP"
},
{
"SchoolName": "West End Academy",
"Postcode": "WF94QJ"
},
{
"SchoolName": "Park Lane Primary School",
"Postcode": "CV108NL"
},
{
"SchoolName": "Winton Academy",
"Postcode": "BH104HT"
},
{
"SchoolName": "Glenmoor Academy",
"Postcode": "BH104EX"
},
{
"SchoolName": "Beaufort Co-operative Academy",
"Postcode": "GL40RT"
},
{
"SchoolName": "Cliftonville Primary School",
"Postcode": "CT93LY"
},
{
"SchoolName": "Corringham Primary School",
"Postcode": "SS179BH"
},
{
"SchoolName": "Ark Boulton Academy",
"Postcode": "B112QG"
},
{
"SchoolName": "Ormiston Herman Academy",
"Postcode": "NR317JL"
},
{
"SchoolName": "Highbank Primary and Nursery School",
"Postcode": "NG119FP"
},
{
"SchoolName": "Thomas Hinderwell Primary Academy",
"Postcode": "YO124HF"
},
{
"SchoolName": "Little Parndon Primary School",
"Postcode": "CM201PU"
},
{
"SchoolName": "Looe Primary School",
"Postcode": "PL131JY"
},
{
"SchoolName": "South Shore Academy",
"Postcode": "FY42AR"
},
{
"SchoolName": "Oasis Academy Pinewood",
"Postcode": "RM52TX"
},
{
"SchoolName": "Pontefract De Lacy Primary School",
"Postcode": "WF82TG"
},
{
"SchoolName": "Cooks Spinney Primary School and Nursery",
"Postcode": "CM203BW"
},
{
"SchoolName": "St John Fisher Catholic Primary School, A Voluntary Academy",
"Postcode": "S124HJ"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "GU84UF"
},
{
"SchoolName": "St Michael's Church of England Primary School",
"Postcode": "TR138AR"
},
{
"SchoolName": "St Paul's CofE Primary School",
"Postcode": "KT151TD"
},
{
"SchoolName": "St Peter's Church of England Academy",
"Postcode": "NN96PA"
},
{
"SchoolName": "Stanground St Johns CofE Primary School",
"Postcode": "PE28JG"
},
{
"SchoolName": "Stoke High School - Ormiston Academy",
"Postcode": "IP28PL"
},
{
"SchoolName": "Clover Hill VA Infant and Nursery School",
"Postcode": "NR59AP"
},
{
"SchoolName": "The Echelford Primary School",
"Postcode": "TW151EX"
},
{
"SchoolName": "Thomas Hepburn Community Academy",
"Postcode": "NE109UZ"
},
{
"SchoolName": "Ahavas Torah Boys Academy",
"Postcode": "M74QX"
},
{
"SchoolName": "The Thomas Alleyne School",
"Postcode": "SG13BE"
},
{
"SchoolName": "Leeds Christian School of Excellence",
"Postcode": "LS84EX"
},
{
"SchoolName": "Break Through",
"Postcode": "DA175JX"
},
{
"SchoolName": "Oasis Academy Skinner Street",
"Postcode": "ME71LG"
},
{
"SchoolName": "Oasis Academy Warndon",
"Postcode": "WR49PE"
},
{
"SchoolName": "Welland Academy",
"Postcode": "PE14TR"
},
{
"SchoolName": "Westfield Primary Academy",
"Postcode": "CB90BW"
},
{
"SchoolName": "Wolsey Junior Academy",
"Postcode": "CR00PH"
},
{
"SchoolName": "Clay Hill School",
"Postcode": "SO437DE"
},
{
"SchoolName": "Ixworth Free School",
"Postcode": "IP312HS"
},
{
"SchoolName": "Downview Primary School",
"Postcode": "PO228ER"
},
{
"SchoolName": "Westfield Academy",
"Postcode": "WD186NS"
},
{
"SchoolName": "Gateway Academy",
"Postcode": "NW88LN"
},
{
"SchoolName": "Havelock Infant School",
"Postcode": "NN142LU"
},
{
"SchoolName": "Oasis Academy Aspinal",
"Postcode": "M187NY"
},
{
"SchoolName": "Bedford Hall Methodist Primary School",
"Postcode": "WN73DJ"
},
{
"SchoolName": "Havelock Junior School",
"Postcode": "NN142LU"
},
{
"SchoolName": "Wardle Academy",
"Postcode": "OL129RD"
},
{
"SchoolName": "Boddington Church of England Voluntary School",
"Postcode": "NN116DL"
},
{
"SchoolName": "Boxgrove Primary School",
"Postcode": "GU12TD"
},
{
"SchoolName": "Chacombe CEVA Primary Academy",
"Postcode": "OX172JA"
},
{
"SchoolName": "Loatlands Primary School",
"Postcode": "NN142NJ"
},
{
"SchoolName": "Newnham Primary School",
"Postcode": "NN113HG"
},
{
"SchoolName": "Rothwell Victoria Infant School",
"Postcode": "NN146HZ"
},
{
"SchoolName": "St Andrew's Church School",
"Postcode": "TA26HA"
},
{
"SchoolName": "Cockington Primary School",
"Postcode": "TQ26AP"
},
{
"SchoolName": "Culloden Primary - A Paradigm Academy",
"Postcode": "E140PT"
},
{
"SchoolName": "Culworth Church of England School",
"Postcode": "OX172BB"
},
{
"SchoolName": "Kew House",
"Postcode": "TW80EX"
},
{
"SchoolName": "Longspee School",
"Postcode": "BH178PJ"
},
{
"SchoolName": "East Garforth Primary Academy",
"Postcode": "LS252HF"
},
{
"SchoolName": "Fareham Academy",
"Postcode": "PO141JJ"
},
{
"SchoolName": "English Martyrs' Catholic Voluntary Academy",
"Postcode": "NG104DA"
},
{
"SchoolName": "Fairfield Primary Academy",
"Postcode": "NG97HB"
},
{
"SchoolName": "Frederick Nattrass Primary Academy",
"Postcode": "TS201BZ"
},
{
"SchoolName": "Rothwell Junior School",
"Postcode": "NN146ER"
},
{
"SchoolName": "Rushton Primary School",
"Postcode": "NN141RL"
},
{
"SchoolName": "Gravenhurst Academy",
"Postcode": "MK454HY"
},
{
"SchoolName": "Harden Primary School",
"Postcode": "BD161LJ"
},
{
"SchoolName": "The Grove Academy",
"Postcode": "HG15EP"
},
{
"SchoolName": "The Duchy School Bradninch",
"Postcode": "EX54RF"
},
{
"SchoolName": "Three Ways School",
"Postcode": "BA25RF"
},
{
"SchoolName": "Alexandra Junior School",
"Postcode": "SE265DS"
},
{
"SchoolName": "St Mary's Catholic School",
"Postcode": "NE77PE"
},
{
"SchoolName": "Highfield Infants' School",
"Postcode": "BR20RX"
},
{
"SchoolName": "Holmes Chapel Primary School",
"Postcode": "CW47EB"
},
{
"SchoolName": "The Horsell Village School",
"Postcode": "GU214QQ"
},
{
"SchoolName": "Outwood Primary Academy Lofthouse Gate",
"Postcode": "WF33HU"
},
{
"SchoolName": "Leigh Westleigh Methodist Primary School",
"Postcode": "WN75NJ"
},
{
"SchoolName": "Raglan Primary School",
"Postcode": "BR29NL"
},
{
"SchoolName": "River Beach Primary School",
"Postcode": "BN176EW"
},
{
"SchoolName": "The Oaktree School",
"Postcode": "GU218WT"
},
{
"SchoolName": "Hollingworth Academy",
"Postcode": "OL163DR"
},
{
"SchoolName": "Torre Church of England Academy",
"Postcode": "TQ14DN"
},
{
"SchoolName": "Cloughwood Academy",
"Postcode": "CW81NU"
},
{
"SchoolName": "Wilbarston Church of England Primary School",
"Postcode": "LE168QN"
},
{
"SchoolName": "Old Dalby Church of England Primary School",
"Postcode": "LE143JY"
},
{
"SchoolName": "Old Ford Primary - A Paradigm Academy",
"Postcode": "E35LD"
},
{
"SchoolName": "Over Hall Community School",
"Postcode": "CW71LX"
},
{
"SchoolName": "Milford-on-Sea Church of England Primary School",
"Postcode": "SO410RF"
},
{
"SchoolName": "Roundthorn Primary Academy",
"Postcode": "OL45LN"
},
{
"SchoolName": "Sileby Redlands Community Primary School",
"Postcode": "LE127LZ"
},
{
"SchoolName": "St Loys Church of England Primary Academy, Weedon Lois",
"Postcode": "NN128PP"
},
{
"SchoolName": "Hastings High School",
"Postcode": "LE102QE"
},
{
"SchoolName": "Eggbuckland Community College",
"Postcode": "PL65YB"
},
{
"SchoolName": "Chichester High School",
"Postcode": "PO198EB"
},
{
"SchoolName": "Wainstalls School",
"Postcode": "HX27TE"
},
{
"SchoolName": "Alsager School",
"Postcode": "ST72HR"
},
{
"SchoolName": "Canklow Woods Primary School",
"Postcode": "S602XJ"
},
{
"SchoolName": "Darrington Church of England Primary School",
"Postcode": "WF83SB"
},
{
"SchoolName": "Iqra Academy Education Trust",
"Postcode": "BD88DA"
},
{
"SchoolName": "Morgan's Vale and Woodfalls Church of England Primary School",
"Postcode": "SP52HU"
},
{
"SchoolName": "Forest Academy",
"Postcode": "CR08HQ"
},
{
"SchoolName": "St Marys Catholic Academy",
"Postcode": "ST68EZ"
},
{
"SchoolName": "Whiston Junior and Infant School",
"Postcode": "S604DX"
},
{
"SchoolName": "Whiston Worry Goose Junior and Infant School",
"Postcode": "S604AG"
},
{
"SchoolName": "Tomlinscote School and Sixth Form College",
"Postcode": "GU168PY"
},
{
"SchoolName": "Costessey Infant School",
"Postcode": "NR50HG"
},
{
"SchoolName": "Dunswell Academy",
"Postcode": "HU60AD"
},
{
"SchoolName": "Oakley Vale Primary School",
"Postcode": "NN188RH"
},
{
"SchoolName": "The Attic",
"Postcode": "NR330RQ"
},
{
"SchoolName": "<NAME>",
"Postcode": "HA29DX"
},
{
"SchoolName": "Alleyne's Academy",
"Postcode": "ST158DT"
},
{
"SchoolName": "Anchorsholme Primary Academy",
"Postcode": "FY53RX"
},
{
"SchoolName": "Austrey CofE Primary School",
"Postcode": "CV93EQ"
},
{
"SchoolName": "Bishop Milner Catholic College",
"Postcode": "DY13BY"
},
{
"SchoolName": "Cawston Grange Primary School",
"Postcode": "CV227GU"
},
{
"SchoolName": "Devonshire Primary Academy",
"Postcode": "FY38AF"
},
{
"SchoolName": "Our Lady of Grace Catholic Academy",
"Postcode": "ST86LW"
},
{
"SchoolName": "Green End Primary School",
"Postcode": "M191DR"
},
{
"SchoolName": "Haltwhistle Community Campus Lower School",
"Postcode": "NE499DP"
},
{
"SchoolName": "Haltwhistle Community Campus Upper School",
"Postcode": "NE499BA"
},
{
"SchoolName": "Hawthorns School",
"Postcode": "M345SF"
},
{
"SchoolName": "Holland Park School",
"Postcode": "W87AF"
},
{
"SchoolName": "Henley-In-Arden CofE Primary School",
"Postcode": "B955FT"
},
{
"SchoolName": "Jubilee Park Academy",
"Postcode": "DY40QS"
},
{
"SchoolName": "Ladybarn Primary School",
"Postcode": "M204SR"
},
{
"SchoolName": "Newlands Academy",
"Postcode": "SE153AZ"
},
{
"SchoolName": "Newton Regis CofE Primary School",
"Postcode": "B790NL"
},
{
"SchoolName": "Ocker Hill Academy",
"Postcode": "DY40DS"
},
{
"SchoolName": "Our Lady and St Benedict Catholic Primary School",
"Postcode": "ST28AU"
},
{
"SchoolName": "Park Road Sale Primary School",
"Postcode": "M336HT"
},
{
"SchoolName": "Park Community Academy",
"Postcode": "FY39HF"
},
{
"SchoolName": "St Chad's Catholic Primary School",
"Postcode": "DY33UE"
},
{
"SchoolName": "St George and St Martin's Catholic Primary School",
"Postcode": "ST12NQ"
},
{
"SchoolName": "St John the Evangelist Catholic Primary",
"Postcode": "ST71AE"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "DY27PW"
},
{
"SchoolName": "St Joseph's Catholic Academy, Goldenhill",
"Postcode": "ST65RN"
},
{
"SchoolName": "St Margaret Ward Catholic Academy",
"Postcode": "ST66LZ"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "ST63HL"
},
{
"SchoolName": "St Wilfrid's Catholic Primary School",
"Postcode": "ST66EE"
},
{
"SchoolName": "<NAME>'s CofE Primary School",
"Postcode": "B790HP"
},
{
"SchoolName": "Woodside CofE Primary School",
"Postcode": "CV92BS"
},
{
"SchoolName": "Madeley High School",
"Postcode": "CW39JJ"
},
{
"SchoolName": "Lynch Hill Enterprise Academy",
"Postcode": "SL25AY"
},
{
"SchoolName": "Oriel Primary School",
"Postcode": "TW136QQ"
},
{
"SchoolName": "Chivenor Primary School",
"Postcode": "B357JA"
},
{
"SchoolName": "West Midlands Construction UTC",
"Postcode": "WV100JR"
},
{
"SchoolName": "Oasis Academy Foundry",
"Postcode": "B184LP"
},
{
"SchoolName": "Tymberwood Academy",
"Postcode": "DA124BN"
},
{
"SchoolName": "Aylesford Primary School",
"Postcode": "ME207JU"
},
{
"SchoolName": "Craven Primary Academy",
"Postcode": "HU92DR"
},
{
"SchoolName": "Abbey Park Academy",
"Postcode": "HX29DG"
},
{
"SchoolName": "Ramnoth Junior School",
"Postcode": "PE132JB"
},
{
"SchoolName": "The Nene Infant School",
"Postcode": "PE132AP"
},
{
"SchoolName": "St Michael's Community Academy",
"Postcode": "CW13SL"
},
{
"SchoolName": "St John's Wood Academy",
"Postcode": "WA168PA"
},
{
"SchoolName": "Balby Carr Community Academy",
"Postcode": "DN48ND"
},
{
"SchoolName": "Patrington CofE Primary Academy",
"Postcode": "HU120RW"
},
{
"SchoolName": "West St Leonards Primary Academy",
"Postcode": "TN388BX"
},
{
"SchoolName": "Southminster Church of England (Controlled) Primary School",
"Postcode": "CM07ES"
},
{
"SchoolName": "Weeley St Andrew's CofE Primary School",
"Postcode": "CO169DH"
},
{
"SchoolName": "Mill Chase Academy",
"Postcode": "GU350ER"
},
{
"SchoolName": "St Thomas Cantilupe CofE Academy",
"Postcode": "HR12DY"
},
{
"SchoolName": "Endike Academy",
"Postcode": "HU67UR"
},
{
"SchoolName": "The Wainfleet Magdalen Church of England/Methodist School",
"Postcode": "PE244DD"
},
{
"SchoolName": "Lordswood School",
"Postcode": "ME58NN"
},
{
"SchoolName": "Benedict Primary School",
"Postcode": "CR43BE"
},
{
"SchoolName": "Hethersett Academy",
"Postcode": "NR93DB"
},
{
"SchoolName": "Moorlands CofE Primary Academy",
"Postcode": "NR319PA"
},
{
"SchoolName": "Abbey CofE Academy",
"Postcode": "NN114GD"
},
{
"SchoolName": "Greenfields Primary School",
"Postcode": "NN156HY"
},
{
"SchoolName": "Victoria Primary Academy",
"Postcode": "NN84NT"
},
{
"SchoolName": "Churchfields Primary School",
"Postcode": "ST57HY"
},
{
"SchoolName": "Rivers Primary Academy",
"Postcode": "WS31NP"
},
{
"SchoolName": "Joseph Clarke School",
"Postcode": "E49PP"
},
{
"SchoolName": "Racemeadow Primary Academy",
"Postcode": "CV91LT"
},
{
"SchoolName": "Ormiston Six Villages Academy",
"Postcode": "PO203UE"
},
{
"SchoolName": "Langdale Free School",
"Postcode": "FY29RZ"
},
{
"SchoolName": "Westside Academy Trust",
"Postcode": "W60LT"
},
{
"SchoolName": "St Anthony's School",
"Postcode": "GL142AA"
},
{
"SchoolName": "Peaslake School",
"Postcode": "GU59ST"
},
{
"SchoolName": "Bradford Girls' Grammar School",
"Postcode": "BD96RB"
},
{
"SchoolName": "Cambian Chesham House School",
"Postcode": "BL96JD"
},
{
"SchoolName": "Immanuel Christian School",
"Postcode": "BS378QG"
},
{
"SchoolName": "Lace Hill Academy",
"Postcode": "MK187RR"
},
{
"SchoolName": "Harris Primary Academy Haling Park",
"Postcode": "CR26HS"
},
{
"SchoolName": "Oasis Academy Arena",
"Postcode": "SE254QL"
},
{
"SchoolName": "Mossbourne Victoria Park Academy",
"Postcode": "E97HD"
},
{
"SchoolName": "Berewood Primary School",
"Postcode": "PO73BE"
},
{
"SchoolName": "Kensington Aldridge Academy",
"Postcode": "W106EX"
},
{
"SchoolName": "Kensington Primary Academy",
"Postcode": "W148PU"
},
{
"SchoolName": "Bourne Elsea Park Church of England Primary Academy",
"Postcode": "PE100WP"
},
{
"SchoolName": "New Horizons Children's Academy",
"Postcode": "ME46NR"
},
{
"SchoolName": "Haywood Village Academy",
"Postcode": "BS248ES"
},
{
"SchoolName": "Endeavour Academy, Oxford",
"Postcode": "OX38DD"
},
{
"SchoolName": "Oasis Academy Fir Vale",
"Postcode": "S48GA"
},
{
"SchoolName": "Oasis Academy Watermead",
"Postcode": "S58RJ"
},
{
"SchoolName": "Willowdown Primary Academy",
"Postcode": "TA64FU"
},
{
"SchoolName": "University Academy of Engineering South Bank",
"Postcode": "SE172TP"
},
{
"SchoolName": "Oasis Academy Putney",
"Postcode": "SW151LY"
},
{
"SchoolName": "Castle Mead School",
"Postcode": "BA146GD"
},
{
"SchoolName": "Wellington Primary Academy",
"Postcode": "SP97FP"
},
{
"SchoolName": "Epic Learning",
"Postcode": "W111QS"
},
{
"SchoolName": "Full Circle Education",
"Postcode": "SE38ND"
},
{
"SchoolName": "Bridge School",
"Postcode": "W69RU"
},
{
"SchoolName": "Clifton All Saints Academy",
"Postcode": "SG175ES"
},
{
"SchoolName": "Appleton Primary School",
"Postcode": "HU54PG"
},
{
"SchoolName": "Barrow Hall Orchard Church of England Primary School",
"Postcode": "LE128HP"
},
{
"SchoolName": "Blue Bell Hill Primary and Nursery School",
"Postcode": "NG32LE"
},
{
"SchoolName": "Braddock CofE Primary School",
"Postcode": "PL144TB"
},
{
"SchoolName": "Boothroyd Primary Academy",
"Postcode": "WF133QE"
},
{
"SchoolName": "Bricknell Primary School",
"Postcode": "HU54ET"
},
{
"SchoolName": "Broadfields Primary School",
"Postcode": "HA88JP"
},
{
"SchoolName": "Charlton Primary School",
"Postcode": "OX127HG"
},
{
"SchoolName": "Countess Anne Church of England School",
"Postcode": "AL108AX"
},
{
"SchoolName": "The Glapton Academy",
"Postcode": "NG118EA"
},
{
"SchoolName": "Hoyland Common Primary School",
"Postcode": "S740DJ"
},
{
"SchoolName": "Hurst Primary School",
"Postcode": "DA53AJ"
},
{
"SchoolName": "Littledown School",
"Postcode": "SL13QW"
},
{
"SchoolName": "Longhill Primary School",
"Postcode": "HU89RW"
},
{
"SchoolName": "Maybury Primary School",
"Postcode": "HU93LD"
},
{
"SchoolName": "Neasden Primary School",
"Postcode": "HU80QB"
},
{
"SchoolName": "President Kennedy School Academy",
"Postcode": "CV64GL"
},
{
"SchoolName": "Ralph Sadleir School",
"Postcode": "SG111TF"
},
{
"SchoolName": "Saxon Primary School",
"Postcode": "TW170JB"
},
{
"SchoolName": "Stanton Under Bardon Community Primary School",
"Postcode": "LE679TQ"
},
{
"SchoolName": "Bridge Academy",
"Postcode": "MK146AX"
},
{
"SchoolName": "Thornton Primary School",
"Postcode": "LE671AH"
},
{
"SchoolName": "Thrybergh Academy and Sports College",
"Postcode": "S654BJ"
},
{
"SchoolName": "Wantage Church of England Primary School",
"Postcode": "OX128DJ"
},
{
"SchoolName": "Connaught Junior School",
"Postcode": "GU195JY"
},
{
"SchoolName": "Highfield Junior School",
"Postcode": "BR20RL"
},
{
"SchoolName": "Astwood Bank First School",
"Postcode": "B966EH"
},
{
"SchoolName": "Stoke Lodge Primary School",
"Postcode": "BS346DW"
},
{
"SchoolName": "Cheam Park Farm Primary School",
"Postcode": "SM39UU"
},
{
"SchoolName": "Regency High School",
"Postcode": "WR49JL"
},
{
"SchoolName": "Robin Hood Academy",
"Postcode": "B289PP"
},
{
"SchoolName": "Beechwood Junior School",
"Postcode": "SO184EG"
},
{
"SchoolName": "Moredon Primary School",
"Postcode": "SN22JG"
},
{
"SchoolName": "UTC Cambridge",
"Postcode": "CB20SZ"
},
{
"SchoolName": "Redfield Educate Together Primary Academy",
"Postcode": "BS59RH"
},
{
"SchoolName": "Oasis Academy Marksbury Road",
"Postcode": "BS35JL"
},
{
"SchoolName": "Fairlawn Primary School",
"Postcode": "BS65JL"
},
{
"SchoolName": "Small Acres",
"Postcode": "SE220SB"
},
{
"SchoolName": "King Edwin School",
"Postcode": "TS201LG"
},
{
"SchoolName": "Chase House School",
"Postcode": "W69RU"
},
{
"SchoolName": "Kingswood Parks Primary School",
"Postcode": "HU73JQ"
},
{
"SchoolName": "Beecroft Academy",
"Postcode": "LU61DW"
},
{
"SchoolName": "Friars Academy",
"Postcode": "NN82LA"
},
{
"SchoolName": "Buckland Church of England Primary School",
"Postcode": "SN78RB"
},
{
"SchoolName": "Cholsey Primary School",
"Postcode": "OX109PP"
},
{
"SchoolName": "Glebe Academy",
"Postcode": "ST43HZ"
},
{
"SchoolName": "Gothic Mede Academy",
"Postcode": "SG156SL"
},
{
"SchoolName": "Hillside Primary and Nursery School",
"Postcode": "NG156LW"
},
{
"SchoolName": "Longcot and Fernham Church of England Primary School",
"Postcode": "SN77SY"
},
{
"SchoolName": "Millbrook Primary School",
"Postcode": "SN58NU"
},
{
"SchoolName": "Newstead Primary Academy",
"Postcode": "ST33LQ"
},
{
"SchoolName": "Oak Bank School",
"Postcode": "LU73BE"
},
{
"SchoolName": "Our Lady's Catholic Academy",
"Postcode": "ST44NP"
},
{
"SchoolName": "Patchway Community College",
"Postcode": "BS324AJ"
},
{
"SchoolName": "Peatmoor Community Primary School",
"Postcode": "SN55DP"
},
{
"SchoolName": "Priory Primary School",
"Postcode": "HU55RU"
},
{
"SchoolName": "Shaw Ridge Primary School",
"Postcode": "SN55PU"
},
{
"SchoolName": "South Bromsgrove High",
"Postcode": "B603NL"
},
{
"SchoolName": "Shrivenham Church of England Controlled School",
"Postcode": "SN68AA"
},
{
"SchoolName": "<NAME> All-Through School",
"Postcode": "SG138AJ"
},
{
"SchoolName": "St Aidan's Catholic Primary Academy",
"Postcode": "IG14AS"
},
{
"SchoolName": "St Augustine's Catholic Academy",
"Postcode": "ST37DF"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "ST32QN"
},
{
"SchoolName": "St Maria Goretti Catholic Primary School",
"Postcode": "ST20LY"
},
{
"SchoolName": "St Matthews Church of England Academy",
"Postcode": "ST37NE"
},
{
"SchoolName": "Watchfield Primary School",
"Postcode": "SN68SD"
},
{
"SchoolName": "Westlea Primary School",
"Postcode": "SN57BT"
},
{
"SchoolName": "Hogarth Academy",
"Postcode": "NG36JG"
},
{
"SchoolName": "St Thomas More Catholic Academy",
"Postcode": "ST32NJ"
},
{
"SchoolName": "Preston CofE Primary School",
"Postcode": "BA213SN"
},
{
"SchoolName": "Penny Bridge CofE School",
"Postcode": "LA127RQ"
},
{
"SchoolName": "John Blandy Primary School",
"Postcode": "OX135DJ"
},
{
"SchoolName": "The Cornelius Vermuyden School",
"Postcode": "SS89QS"
},
{
"SchoolName": "Matchborough First School Academy",
"Postcode": "B980GD"
},
{
"SchoolName": "Hillsborough Primary School",
"Postcode": "S62AA"
},
{
"SchoolName": "Dudley Infant Academy",
"Postcode": "TN355NJ"
},
{
"SchoolName": "Castleford Glasshoughton Infant School",
"Postcode": "WF104BH"
},
{
"SchoolName": "Beaver Road Primary School",
"Postcode": "M206SX"
},
{
"SchoolName": "Kirby Muxloe Primary School",
"Postcode": "LE92AA"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "LE194LH"
},
{
"SchoolName": "Croxton Kerrial Church of England Primary School",
"Postcode": "NG321QR"
},
{
"SchoolName": "Summercourt Academy",
"Postcode": "TR85EA"
},
{
"SchoolName": "Skelton Primary School",
"Postcode": "TS122LR"
},
{
"SchoolName": "Barnehurst Infant School",
"Postcode": "DA83NL"
},
{
"SchoolName": "Barnehurst Junior School",
"Postcode": "DA83NL"
},
{
"SchoolName": "Furley Park Primary Academy",
"Postcode": "TN233PA"
},
{
"SchoolName": "Hamstreet Primary Academy",
"Postcode": "TN262EA"
},
{
"SchoolName": "Cleves Cross Primary School",
"Postcode": "DL178QY"
},
{
"SchoolName": "Mary Rose School",
"Postcode": "PO48GT"
},
{
"SchoolName": "The Halifax Academy",
"Postcode": "HX20BA"
},
{
"SchoolName": "Green Oaks Primary Academy",
"Postcode": "NN27RR"
},
{
"SchoolName": "Falmouth Primary Academy",
"Postcode": "TR112DR"
},
{
"SchoolName": "Castle Wood Academy",
"Postcode": "DN211EH"
},
{
"SchoolName": "Kinetic Academy",
"Postcode": "ST37DJ"
},
{
"SchoolName": "Foxhole Learning Academy",
"Postcode": "PL267UQ"
},
{
"SchoolName": "England Lane Academy",
"Postcode": "WF110JA"
},
{
"SchoolName": "Millbrook CofE Primary School",
"Postcode": "PL101BG"
},
{
"SchoolName": "Montem Academy",
"Postcode": "SL12TE"
},
{
"SchoolName": "Morehall Academy",
"Postcode": "CT194PN"
},
{
"SchoolName": "Pontefract Carleton Park Junior and Infant School",
"Postcode": "WF83PT"
},
{
"SchoolName": "Richmond Academy",
"Postcode": "ME122ET"
},
{
"SchoolName": "St John's Primary School",
"Postcode": "GU212AS"
},
{
"SchoolName": "St Joseph's School, a Catholic Voluntary Academy",
"Postcode": "DN110NB"
},
{
"SchoolName": "St Mary's Church of England Primary School",
"Postcode": "S62WJ"
},
{
"SchoolName": "St Nicolas' CofE VA School, Downderry",
"Postcode": "PL113LF"
},
{
"SchoolName": "Ulceby St Nicholas Church of England Primary School",
"Postcode": "DN396TB"
},
{
"SchoolName": "Wheatley Church of England Primary School",
"Postcode": "OX331NN"
},
{
"SchoolName": "Pilgrims' Way Primary School and Nursery",
"Postcode": "CT11XU"
},
{
"SchoolName": "St Martin's CofE Primary School",
"Postcode": "PL143DE"
},
{
"SchoolName": "Kenyngton Manor Primary School",
"Postcode": "TW167QL"
},
{
"SchoolName": "Cordwalles Junior School",
"Postcode": "GU154DR"
},
{
"SchoolName": "Springfield Primary School",
"Postcode": "TW166LY"
},
{
"SchoolName": "Whitesheet Church of England Primary Academy",
"Postcode": "BA126NL"
},
{
"SchoolName": "Southbroom St James Church Academy",
"Postcode": "SN103AH"
},
{
"SchoolName": "Carr Lodge Academy",
"Postcode": "DN48GA"
},
{
"SchoolName": "Avon Park School",
"Postcode": "CV225HR"
},
{
"SchoolName": "St Jude's Church of England Primary Academy",
"Postcode": "WV60DT"
},
{
"SchoolName": "The Laurels School",
"Postcode": "SW120AN"
},
{
"SchoolName": "Arnbrook Primary School",
"Postcode": "NG58NE"
},
{
"SchoolName": "Dixons Marchbank Primary",
"Postcode": "BD38QQ"
},
{
"SchoolName": "Browney Primary Academy",
"Postcode": "DH78HX"
},
{
"SchoolName": "The Rise Free School",
"Postcode": "TW137EF"
},
{
"SchoolName": "Castle Academy",
"Postcode": "NN12TR"
},
{
"SchoolName": "Nelson Academy",
"Postcode": "PE389PF"
},
{
"SchoolName": "<NAME> - Ormiston Academy",
"Postcode": "NR316TA"
},
{
"SchoolName": "Ernesford Grange Community Academy",
"Postcode": "CV32QD"
},
{
"SchoolName": "Great Clacton Church of England (Voluntary Aided) Junior School",
"Postcode": "CO154HR"
},
{
"SchoolName": "George Grenville Academy",
"Postcode": "MK181AP"
},
{
"SchoolName": "The Bluecoat Beechdale Academy",
"Postcode": "NG83GP"
},
{
"SchoolName": "Hardingstone Academy",
"Postcode": "NN46DJ"
},
{
"SchoolName": "Harris Church of England Academy",
"Postcode": "CV226EA"
},
{
"SchoolName": "Henry Hinde Junior School",
"Postcode": "CV227HN"
},
{
"SchoolName": "Langdon Academy",
"Postcode": "E62PS"
},
{
"SchoolName": "Ormiston Meadows Academy",
"Postcode": "PE25YQ"
},
{
"SchoolName": "Meadgate Primary School",
"Postcode": "CM27NS"
},
{
"SchoolName": "Nelson Primary School",
"Postcode": "TW27BU"
},
{
"SchoolName": "Newark Hill Academy",
"Postcode": "PE14RE"
},
{
"SchoolName": "Eastwood Village Primary School",
"Postcode": "S651RD"
},
{
"SchoolName": "Civitas Academy",
"Postcode": "RG17HL"
},
{
"SchoolName": "Pemberley Academy",
"Postcode": "CM201NW"
},
{
"SchoolName": "Veritas Primary Academy",
"Postcode": "ST180FL"
},
{
"SchoolName": "Avecinna Academy",
"Postcode": "B94BS"
},
{
"SchoolName": "Newbridge Short Stay Secondary School",
"Postcode": "WR51DS"
},
{
"SchoolName": "Burfield Academy",
"Postcode": "BN273NW"
},
{
"SchoolName": "High Cliff Academy",
"Postcode": "BN99FD"
},
{
"SchoolName": "Kimbolton Primary Academy",
"Postcode": "PE280HY"
},
{
"SchoolName": "John Locke Academy",
"Postcode": "UB100FW"
},
{
"SchoolName": "Hollinwood Academy",
"Postcode": "OL83PT"
},
{
"SchoolName": "Radford Primary Academy",
"Postcode": "CV61HD"
},
{
"SchoolName": "Lake Farm Park Academy",
"Postcode": "UB31JA"
},
{
"SchoolName": "Diamond Wood Community Academy",
"Postcode": "WF133AD"
},
{
"SchoolName": "Thistle Hill Academy",
"Postcode": "ME123UD"
},
{
"SchoolName": "Oasis Academy Don Valley",
"Postcode": "S93TY"
},
{
"SchoolName": "Harris Primary Academy Purley Way",
"Postcode": "CR04FE"
},
{
"SchoolName": "Braiswick Primary School",
"Postcode": "CO45QJ"
},
{
"SchoolName": "Riversides School",
"Postcode": "WR13HZ"
},
{
"SchoolName": "The Flying High Academy",
"Postcode": "NG196EW"
},
{
"SchoolName": "Rothwell Church of England Primary Academy",
"Postcode": "LS260NB"
},
{
"SchoolName": "Silverdale Primary Academy",
"Postcode": "ST56PB"
},
{
"SchoolName": "Springhill Primary Academy",
"Postcode": "WS74UN"
},
{
"SchoolName": "Brookfield Primary Academy",
"Postcode": "S648TQ"
},
{
"SchoolName": "The Kingfisher School",
"Postcode": "B980HF"
},
{
"SchoolName": "Thomas Gamuel Primary School",
"Postcode": "E178LG"
},
{
"SchoolName": "The Whitehaven Academy",
"Postcode": "CA288TY"
},
{
"SchoolName": "Whitelands Park Primary School",
"Postcode": "RG183FH"
},
{
"SchoolName": "Woolavington Village Primary School",
"Postcode": "TA78EA"
},
{
"SchoolName": "Oasis Academy Long Cross",
"Postcode": "BS110LP"
},
{
"SchoolName": "University Primary Academy Weaverham",
"Postcode": "CW83BD"
},
{
"SchoolName": "Pebsham Primary Academy",
"Postcode": "TN402PU"
},
{
"SchoolName": "Lord Derby Academy",
"Postcode": "L366DG"
},
{
"SchoolName": "Hillcrest Academy",
"Postcode": "LS74DR"
},
{
"SchoolName": "Kings Heath Primary Academy",
"Postcode": "NN57LN"
},
{
"SchoolName": "Outwood Academy City",
"Postcode": "S138SS"
},
{
"SchoolName": "Court Fields School",
"Postcode": "TA218SW"
},
{
"SchoolName": "St Matthew's Church of England Primary School",
"Postcode": "SK39EA"
},
{
"SchoolName": "Wood End Primary School",
"Postcode": "CV92QL"
},
{
"SchoolName": "Queen's Church of England Academy",
"Postcode": "CV115LR"
},
{
"SchoolName": "Tadpole Farm CofE Primary Academy",
"Postcode": "SN252QS"
},
{
"SchoolName": "Face Youth Therapeutic School",
"Postcode": "SW191JN"
},
{
"SchoolName": "Floreat Wandsworth Primary School",
"Postcode": "SW184EQ"
},
{
"SchoolName": "Bohunt School Worthing",
"Postcode": "BN148AH"
},
{
"SchoolName": "St Matthew's Church of England Primary and Nursery Academy",
"Postcode": "PL65FN"
},
{
"SchoolName": "Mossbourne Riverside Academy",
"Postcode": "E81AS"
},
{
"SchoolName": "Inspire Academy",
"Postcode": "OL69RU"
},
{
"SchoolName": "Discovery Academy",
"Postcode": "SK143LE"
},
{
"SchoolName": "Bradford Forster Academy",
"Postcode": "BD48RG"
},
{
"SchoolName": "Valley Invicta Primary School At Leybourne Chase",
"Postcode": "ME195FF"
},
{
"SchoolName": "Valley Invicta Primary School at Holborough Lakes",
"Postcode": "ME65GR"
},
{
"SchoolName": "Valley Invicta Primary School At Kings Hill",
"Postcode": "ME194AL"
},
{
"SchoolName": "Martello Grove Academy",
"Postcode": "CT196DT"
},
{
"SchoolName": "Chestnut Park Primary School",
"Postcode": "CR02UR"
},
{
"SchoolName": "Heathfield Academy",
"Postcode": "CR01EQ"
},
{
"SchoolName": "Billing Brook Special School",
"Postcode": "NN38EZ"
},
{
"SchoolName": "Cleeve Primary School",
"Postcode": "HU74JH"
},
{
"SchoolName": "Parkroyal Community School",
"Postcode": "SK116QX"
},
{
"SchoolName": "Sacred Heart School, A Catholic Voluntary Academy",
"Postcode": "S62NU"
},
{
"SchoolName": "St Mary's Primary School, A Catholic Voluntary Academy",
"Postcode": "S353HY"
},
{
"SchoolName": "St Ann's Catholic Primary School, A Voluntary Academy",
"Postcode": "S361DG"
},
{
"SchoolName": "St Bede's Catholic Academy",
"Postcode": "TS190DW"
},
{
"SchoolName": "Bursted Wood Primary School",
"Postcode": "DA75BS"
},
{
"SchoolName": "Ash Grove Academy",
"Postcode": "SK117TF"
},
{
"SchoolName": "The Kirkby-la-Thorpe Church of England Primary School",
"Postcode": "NG349NU"
},
{
"SchoolName": "Sandhill Primary Academy",
"Postcode": "S625LH"
},
{
"SchoolName": "Woodville Primary School",
"Postcode": "CM35SE"
},
{
"SchoolName": "Perry Hall Primary School",
"Postcode": "BR60EF"
},
{
"SchoolName": "Farnborough Primary School",
"Postcode": "BR67EQ"
},
{
"SchoolName": "Manor Oak Primary School",
"Postcode": "BR53PE"
},
{
"SchoolName": "Alexandra Infant School",
"Postcode": "BR31JG"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "BA32JN"
},
{
"SchoolName": "St Giles CofE Academy",
"Postcode": "WF81HG"
},
{
"SchoolName": "Christian Malford CofE Primary School",
"Postcode": "SN154BW"
},
{
"SchoolName": "Huish Primary School",
"Postcode": "BA201AY"
},
{
"SchoolName": "Horsington Church School",
"Postcode": "BA80BW"
},
{
"SchoolName": "Adelaide School",
"Postcode": "CW13DT"
},
{
"SchoolName": "Our Lady of Pity Catholic Primary School",
"Postcode": "CH491RE"
},
{
"SchoolName": "Oakwood High School",
"Postcode": "S602UH"
},
{
"SchoolName": "West Meadows Primary School",
"Postcode": "S749ET"
},
{
"SchoolName": "Monkwearmouth Academy",
"Postcode": "SR68LG"
},
{
"SchoolName": "Bentley Heath Church of England Primary School",
"Postcode": "B939AS"
},
{
"SchoolName": "Holy Trinity CE Primary Academy (Handsworth)",
"Postcode": "B203LP"
},
{
"SchoolName": "Mordiford CofE Primary School",
"Postcode": "HR14LW"
},
{
"SchoolName": "Bishop Bronescombe CofE School",
"Postcode": "PL253DT"
},
{
"SchoolName": "Grampound Road Village CofE School",
"Postcode": "TR24DY"
},
{
"SchoolName": "Grampound-with-Creed CofE School",
"Postcode": "TR24SB"
},
{
"SchoolName": "Ladock CofE School",
"Postcode": "TR24PL"
},
{
"SchoolName": "Veryan CofE School",
"Postcode": "TR25QA"
},
{
"SchoolName": "Chesterton Community Sports College",
"Postcode": "ST57LP"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "YO325UH"
},
{
"SchoolName": "Bishop Luffa School, Chichester",
"Postcode": "PO193LT"
},
{
"SchoolName": "The Hendreds Church of England School",
"Postcode": "OX128JX"
},
{
"SchoolName": "Grove Church of England School",
"Postcode": "OX127PW"
},
{
"SchoolName": "Loxford School",
"Postcode": "IG12UT"
},
{
"SchoolName": "<NAME> Primary School and Community Centre",
"Postcode": "LE115UJ"
},
{
"SchoolName": "Quethiock CofE VA School",
"Postcode": "PL143SQ"
},
{
"SchoolName": "Townhill Infant School",
"Postcode": "SO182FG"
},
{
"SchoolName": "Avicenna Academy",
"Postcode": "S95DL"
},
{
"SchoolName": "Manchester Communications Primary Academy",
"Postcode": "M95QN"
},
{
"SchoolName": "Isle of Ely Primary School",
"Postcode": "CB62FG"
},
{
"SchoolName": "St Martin's Church of England Primary School",
"Postcode": "UB77UF"
},
{
"SchoolName": "Bloo House",
"Postcode": "KT109LN"
},
{
"SchoolName": "Woodlands School",
"Postcode": "BL00QL"
},
{
"SchoolName": "Nisai Learning Hub (Nottingham)",
"Postcode": "NG11GD"
},
{
"SchoolName": "Norton Canes Primary Academy",
"Postcode": "WS119SQ"
},
{
"SchoolName": "Heath Hayes Primary Academy",
"Postcode": "WS122EP"
},
{
"SchoolName": "<NAME>",
"Postcode": "M74DQ"
},
{
"SchoolName": "<NAME>",
"Postcode": "NW97DH"
},
{
"SchoolName": "The Baird Primary Academy",
"Postcode": "TN343TH"
},
{
"SchoolName": "Braywick Court School",
"Postcode": "SL67JB"
},
{
"SchoolName": "Whitehall Park School",
"Postcode": "N193BH"
},
{
"SchoolName": "Jus'T'Learn",
"Postcode": "CR42QA"
},
{
"SchoolName": "Wygate Park Academy",
"Postcode": "PE113WT"
},
{
"SchoolName": "Park Lane Primary & Nursery School",
"Postcode": "PE71JB"
},
{
"SchoolName": "Smithills School",
"Postcode": "BL16JS"
},
{
"SchoolName": "The Quinta Primary School",
"Postcode": "CW124LX"
},
{
"SchoolName": "Leigh Primary School",
"Postcode": "B82YH"
},
{
"SchoolName": "Sunnyside Academy",
"Postcode": "TS80RJ"
},
{
"SchoolName": "Rose Wood Academy",
"Postcode": "TS80UG"
},
{
"SchoolName": "Viewley Hill Academy",
"Postcode": "TS89HL"
},
{
"SchoolName": "Rolph CofE Primary School",
"Postcode": "CO160DY"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SE152SW"
},
{
"SchoolName": "Beaufort Primary School",
"Postcode": "GU213RG"
},
{
"SchoolName": "Sythwood Primary School",
"Postcode": "GU213AX"
},
{
"SchoolName": "Northampton School for Girls",
"Postcode": "NN36DG"
},
{
"SchoolName": "Mitton Manor Primary School",
"Postcode": "GL208AR"
},
{
"SchoolName": "Landulph School",
"Postcode": "PL126ND"
},
{
"SchoolName": "St Stephens Community Academy",
"Postcode": "PL158HL"
},
{
"SchoolName": "Windmill Hill Academy",
"Postcode": "PL159AE"
},
{
"SchoolName": "Nova Hreod Academy",
"Postcode": "SN22NQ"
},
{
"SchoolName": "Glenfield Infant School",
"Postcode": "SO184RN"
},
{
"SchoolName": "Atwood Primary Academy",
"Postcode": "CR29EE"
},
{
"SchoolName": "Twickenham Primary School",
"Postcode": "B440NR"
},
{
"SchoolName": "Norton Primary Academy",
"Postcode": "TS202RD"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Aylesham",
"Postcode": "CT33AS"
},
{
"SchoolName": "South Avenue Primary School",
"Postcode": "ME104SU"
},
{
"SchoolName": "Lark Hall Infant & Nursery Academy",
"Postcode": "B798EF"
},
{
"SchoolName": "Flax Hill Junior Academy",
"Postcode": "B798QZ"
},
{
"SchoolName": "Bishop Walsh Catholic School",
"Postcode": "B761QT"
},
{
"SchoolName": "Holy Cross Catholic Primary School",
"Postcode": "B762SP"
},
{
"SchoolName": "Marden Primary Academy",
"Postcode": "HR13EW"
},
{
"SchoolName": "Stanley Green Infant Academy",
"Postcode": "BH153AA"
},
{
"SchoolName": "St Joseph's RC Primary School",
"Postcode": "B756PB"
},
{
"SchoolName": "St Nicholas Catholic Primary School",
"Postcode": "B735US"
},
{
"SchoolName": "Tudor Grange Primary Academy, Haselor",
"Postcode": "B496LU"
},
{
"SchoolName": "Severndale Specialist Academy",
"Postcode": "SY25SH"
},
{
"SchoolName": "Sherwood Park Primary School",
"Postcode": "DA159JQ"
},
{
"SchoolName": "Castlecombe Primary School",
"Postcode": "SE94AT"
},
{
"SchoolName": "Attleborough Academy Norfolk",
"Postcode": "NR172AJ"
},
{
"SchoolName": "Great Staughton Primary School",
"Postcode": "PE195BP"
},
{
"SchoolName": "Darlinghurst School",
"Postcode": "SS93JS"
},
{
"SchoolName": "St Simon Stock Catholic School",
"Postcode": "ME160JP"
},
{
"SchoolName": "New Road Primary School",
"Postcode": "PE71SZ"
},
{
"SchoolName": "Dodworth St John the Baptist CofE Primary Academy",
"Postcode": "S753JS"
},
{
"SchoolName": "Barnsbury Primary School",
"Postcode": "GU220BB"
},
{
"SchoolName": "Hemlington Hall Academy",
"Postcode": "TS89SJ"
},
{
"SchoolName": "Greater Manchester Sustainable Engineering UTC",
"Postcode": "OL96DE"
},
{
"SchoolName": "Bishop Alexander L.E.A.D. Academy",
"Postcode": "NG242BQ"
},
{
"SchoolName": "Ditchingham Church of England Primary Academy",
"Postcode": "NR352RE"
},
{
"SchoolName": "<NAME>/Methodist Junior School",
"Postcode": "S207JU"
},
{
"SchoolName": "Forge Valley School",
"Postcode": "S65HG"
},
{
"SchoolName": "Glenbrook Primary and Nursery School",
"Postcode": "NG84PD"
},
{
"SchoolName": "Magnus Church of England Academy",
"Postcode": "NG244AB"
},
{
"SchoolName": "Portland Spencer Academy",
"Postcode": "NG84HB"
},
{
"SchoolName": "Quay Academy",
"Postcode": "YO164LB"
},
{
"SchoolName": "Rawmarsh Community School",
"Postcode": "S627GA"
},
{
"SchoolName": "Djanogly Strelley Academy",
"Postcode": "NG86JZ"
},
{
"SchoolName": "St Christopher's Church of England School, Cowley",
"Postcode": "OX42HB"
},
{
"SchoolName": "St Clement's High School",
"Postcode": "PE344LZ"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Moorthorpe",
"Postcode": "WF92BP"
},
{
"SchoolName": "St Luke and St Philips Church of England Voluntary Aided Primary School",
"Postcode": "BB22LZ"
},
{
"SchoolName": "Beaminster St Mary's Academy",
"Postcode": "DT83BY"
},
{
"SchoolName": "Dunbury Church of England Academy",
"Postcode": "DT110AW"
},
{
"SchoolName": "Saint Nathaniel's Academy",
"Postcode": "ST64JG"
},
{
"SchoolName": "Haxby Road Primary Academy",
"Postcode": "YO318JN"
},
{
"SchoolName": "King's College London Maths School",
"Postcode": "SE116NJ"
},
{
"SchoolName": "The Ruth Gorse Academy",
"Postcode": "LS101HW"
},
{
"SchoolName": "J.A.M.E.S",
"Postcode": "BD94JB"
},
{
"SchoolName": "The Bridge College",
"Postcode": "TA11QA"
},
{
"SchoolName": "St Bede's and St Joseph's Catholic College",
"Postcode": "BD94BQ"
},
{
"SchoolName": "<NAME> Utc",
"Postcode": "CM203EZ"
},
{
"SchoolName": "Red Oak Primary School",
"Postcode": "NR330RZ"
},
{
"SchoolName": "Archbishop Cranmer Church of England Academy",
"Postcode": "NG139AW"
},
{
"SchoolName": "Beal High School",
"Postcode": "IG45LP"
},
{
"SchoolName": "Boyton Community Primary School",
"Postcode": "PL159RJ"
},
{
"SchoolName": "Callington Primary School",
"Postcode": "PL177EF"
},
{
"SchoolName": "The Cavendish High Academy",
"Postcode": "WA74YX"
},
{
"SchoolName": "Greenhill Academy",
"Postcode": "OL41RR"
},
{
"SchoolName": "John Mason School",
"Postcode": "OX141JB"
},
{
"SchoolName": "Laceby Acres Primary Academy",
"Postcode": "DN345QN"
},
{
"SchoolName": "Lewannick Community Primary School",
"Postcode": "PL157QY"
},
{
"SchoolName": "Maltby Redwood Academy",
"Postcode": "S668DL"
},
{
"SchoolName": "Newbottle Primary Academy",
"Postcode": "DH44EE"
},
{
"SchoolName": "Richmond Hill Primary Academy",
"Postcode": "DN57SB"
},
{
"SchoolName": "Smestow School",
"Postcode": "WV38HU"
},
{
"SchoolName": "Spring Cottage Primary School",
"Postcode": "HU89JH"
},
{
"SchoolName": "St Catherine's Catholic Voluntary Academy (Hallam)",
"Postcode": "S47BX"
},
{
"SchoolName": "St Chad's Church of England Primary School",
"Postcode": "OL36EE"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "S252QD"
},
{
"SchoolName": "East Bridgford St Peters Church of England Academy",
"Postcode": "NG138PG"
},
{
"SchoolName": "The Brent Primary School",
"Postcode": "DA26BA"
},
{
"SchoolName": "The Gateway Primary Academy",
"Postcode": "DA26DW"
},
{
"SchoolName": "The Hermitage School",
"Postcode": "GU218UU"
},
{
"SchoolName": "The Skinners' School",
"Postcode": "TN49PG"
},
{
"SchoolName": "Totley Primary School",
"Postcode": "S174FB"
},
{
"SchoolName": "Werneth Primary School",
"Postcode": "OL84BL"
},
{
"SchoolName": "Whirley Primary School",
"Postcode": "SK103JL"
},
{
"SchoolName": "Yarm Primary School",
"Postcode": "TS159HF"
},
{
"SchoolName": "Energy Coast UTC",
"Postcode": "CA144JW"
},
{
"SchoolName": "Millbrook Park Primary School",
"Postcode": "NW71JF"
},
{
"SchoolName": "Darton Primary School",
"Postcode": "S755AD"
},
{
"SchoolName": "Westminster Tutors",
"Postcode": "SW73LQ"
},
{
"SchoolName": "Miltoncross Academy",
"Postcode": "PO36RB"
},
{
"SchoolName": "Gordons Children's Academy, Junior",
"Postcode": "ME23HQ"
},
{
"SchoolName": "Gordons Children's Academy, Infant",
"Postcode": "ME23HQ"
},
{
"SchoolName": "Glenfield Primary School",
"Postcode": "LE38DL"
},
{
"SchoolName": "Concord Junior School",
"Postcode": "S91NR"
},
{
"SchoolName": "Wincobank Nursery and Infant School",
"Postcode": "S91LU"
},
{
"SchoolName": "Wilshere-Dacre Junior Academy",
"Postcode": "SG51NS"
},
{
"SchoolName": "Bridgewater Park Primary School",
"Postcode": "WA72LW"
},
{
"SchoolName": "Sunnyside Spencer Academy",
"Postcode": "NG94HQ"
},
{
"SchoolName": "Manor Cottage",
"Postcode": "W69RU"
},
{
"SchoolName": "Holgate Primary and Nursery School",
"Postcode": "NG156EZ"
},
{
"SchoolName": "Spencer House School",
"Postcode": "L351QE"
},
{
"SchoolName": "Holme Farm School",
"Postcode": "TS89DF"
},
{
"SchoolName": "The Future Tech Studio",
"Postcode": "WA28QA"
},
{
"SchoolName": "Salisbury Sixth Form College",
"Postcode": "SP12JJ"
},
{
"SchoolName": "Meadow Primary School",
"Postcode": "CB214DJ"
},
{
"SchoolName": "Trinity Church of England Voluntary Aided Primary School",
"Postcode": "IP142BZ"
},
{
"SchoolName": "Madani Primary School",
"Postcode": "PO14JZ"
},
{
"SchoolName": "Willoughby Road Primary Academy",
"Postcode": "DN172NF"
},
{
"SchoolName": "The Grange Primary School",
"Postcode": "DN163AW"
},
{
"SchoolName": "Three Towers Alternative Provision Academy",
"Postcode": "WN23RX"
},
{
"SchoolName": "Stimpson Avenue Academy",
"Postcode": "NN14LR"
},
{
"SchoolName": "All Saints Babbacombe CofE Primary School",
"Postcode": "TQ13RN"
},
{
"SchoolName": "Coverack Primary School",
"Postcode": "TR126SA"
},
{
"SchoolName": "Danesfield Church of England Voluntary Controlled Community Middle School",
"Postcode": "TA44SW"
},
{
"SchoolName": "Grade-Ruan CofE School",
"Postcode": "TR127JN"
},
{
"SchoolName": "The Excel Academy",
"Postcode": "ST16LG"
},
{
"SchoolName": "Lena Gardens Primary School",
"Postcode": "W67PZ"
},
{
"SchoolName": "Manaccan Primary School",
"Postcode": "TR126HR"
},
{
"SchoolName": "Old Cleeve CofE School, Washford",
"Postcode": "TA230PB"
},
{
"SchoolName": "Peafield Lane Academy",
"Postcode": "NG199PB"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "NE166NU"
},
{
"SchoolName": "Shirley Manor Primary School",
"Postcode": "BD128SA"
},
{
"SchoolName": "St Gregory's Catholic School",
"Postcode": "TN49XL"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Broadstairs",
"Postcode": "CT102BA"
},
{
"SchoolName": "St Keverne Community Primary School",
"Postcode": "TR126NQ"
},
{
"SchoolName": "St Martin-in-Meneage Community Primary School",
"Postcode": "TR126BT"
},
{
"SchoolName": "St Marychurch Church of England Primary and Nursery School",
"Postcode": "TQ14QH"
},
{
"SchoolName": "St Peter's Church of England First School",
"Postcode": "TA44SF"
},
{
"SchoolName": "Wickersley School and Sports College",
"Postcode": "S661JL"
},
{
"SchoolName": "Wistaston Academy",
"Postcode": "CW28QS"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "SE208HU"
},
{
"SchoolName": "Southampton Children's Hospital School",
"Postcode": "SO166HU"
},
{
"SchoolName": "Esher Church of England High School",
"Postcode": "KT108AP"
},
{
"SchoolName": "Forge Wood Primary School",
"Postcode": "RH103NP"
},
{
"SchoolName": "Discovery Academy",
"Postcode": "CV115SS"
},
{
"SchoolName": "White Trees Independent School",
"Postcode": "CM233SP"
},
{
"SchoolName": "Alston Primary School",
"Postcode": "B95UN"
},
{
"SchoolName": "Aylward Primary School",
"Postcode": "HA74RE"
},
{
"SchoolName": "Berrybrook Primary School",
"Postcode": "WV108NZ"
},
{
"SchoolName": "Birklands Primary School",
"Postcode": "NG200QF"
},
{
"SchoolName": "Colne Valley High School",
"Postcode": "HD75SP"
},
{
"SchoolName": "Cravenwood Primary Academy",
"Postcode": "M85AE"
},
{
"SchoolName": "Easington CofE Primary Academy",
"Postcode": "HU120TS"
},
{
"SchoolName": "Eastgate Academy",
"Postcode": "PE301QA"
},
{
"SchoolName": "The Oak View Academy",
"Postcode": "CW72LZ"
},
{
"SchoolName": "Octagon AP Academy",
"Postcode": "N228DZ"
},
{
"SchoolName": "Howbridge Church of England Junior School",
"Postcode": "CM81BZ"
},
{
"SchoolName": "Knollmead Primary School",
"Postcode": "KT59QP"
},
{
"SchoolName": "Monkwick Junior School",
"Postcode": "CO28NN"
},
{
"SchoolName": "Newmarket Academy",
"Postcode": "CB80EB"
},
{
"SchoolName": "Pendeen School",
"Postcode": "TR197SE"
},
{
"SchoolName": "Pinkwell Primary School",
"Postcode": "UB31PG"
},
{
"SchoolName": "Prince Avenue Academy and Nursery",
"Postcode": "SS00LG"
},
{
"SchoolName": "Revoe Learning Academy",
"Postcode": "FY15HP"
},
{
"SchoolName": "Oasis Academy Ryelands",
"Postcode": "SE254XG"
},
{
"SchoolName": "St Ives School",
"Postcode": "TR262BB"
},
{
"SchoolName": "St Paul's Roman Catholic Primary School",
"Postcode": "PL51NE"
},
{
"SchoolName": "Aspire Academy",
"Postcode": "BA25RF"
},
{
"SchoolName": "Bourne End Academy",
"Postcode": "SL85BW"
},
{
"SchoolName": "Seahaven Academy",
"Postcode": "BN99JL"
},
{
"SchoolName": "Wayland Junior Academy Watton",
"Postcode": "IP256AL"
},
{
"SchoolName": "Weeting Church of England Primary School",
"Postcode": "IP270QQ"
},
{
"SchoolName": "Westbridge Primary School",
"Postcode": "SW113NE"
},
{
"SchoolName": "Winterbourne Boys' Academy",
"Postcode": "CR77QT"
},
{
"SchoolName": "Oxclose Primary Academy",
"Postcode": "NE380LA"
},
{
"SchoolName": "Zouch Academy",
"Postcode": "SP97JF"
},
{
"SchoolName": "Kings Cross Academy",
"Postcode": "N1C4BT"
},
{
"SchoolName": "Dorothy Barley Junior Academy",
"Postcode": "RM82NB"
},
{
"SchoolName": "Gems Didcot Primary Academy",
"Postcode": "OX116DP"
},
{
"SchoolName": "Milton Park Primary School",
"Postcode": "PO48ET"
},
{
"SchoolName": "The Island Free School",
"Postcode": "PO381PR"
},
{
"SchoolName": "Cringle Brook Primary School",
"Postcode": "M192HT"
},
{
"SchoolName": "St Boniface's RC College",
"Postcode": "PL53AG"
},
{
"SchoolName": "St James' CofE Academy",
"Postcode": "CV129PF"
},
{
"SchoolName": "Our Lady and St Patrick's Roman Catholic Primary School",
"Postcode": "TQ149DT"
},
{
"SchoolName": "Ab Kettleby Community Primary School",
"Postcode": "LE143JJ"
},
{
"SchoolName": "Admiral Lord Nelson School",
"Postcode": "PO35XT"
},
{
"SchoolName": "All Saints Catholic Voluntary Academy",
"Postcode": "NG196BW"
},
{
"SchoolName": "All Saints CofE Primary School",
"Postcode": "SP49PJ"
},
{
"SchoolName": "Barnwell Academy",
"Postcode": "DH47RT"
},
{
"SchoolName": "Bradfields Academy",
"Postcode": "ME50LB"
},
{
"SchoolName": "Brownlow Primary School",
"Postcode": "LE131QL"
},
{
"SchoolName": "Burnage Academy for Boys",
"Postcode": "M191ER"
},
{
"SchoolName": "Chipstead Valley Primary School",
"Postcode": "CR53BW"
},
{
"SchoolName": "Christ The King Catholic Primary School",
"Postcode": "BH119EH"
},
{
"SchoolName": "Cottesbrooke Infant and Nursery School",
"Postcode": "B276LG"
},
{
"SchoolName": "Crabtree Infants' School",
"Postcode": "AL55PU"
},
{
"SchoolName": "Crabtree Junior School",
"Postcode": "AL55PU"
},
{
"SchoolName": "Crossacres Primary Academy",
"Postcode": "M225AD"
},
{
"SchoolName": "Days Lane Primary School",
"Postcode": "DA158JU"
},
{
"SchoolName": "Delce Academy",
"Postcode": "ME12NJ"
},
{
"SchoolName": "Duchy of Lancaster Methwold CofE Primary School",
"Postcode": "IP264PP"
},
{
"SchoolName": "Durrington High School",
"Postcode": "BN131JX"
},
{
"SchoolName": "Easterside Academy",
"Postcode": "TS43RG"
},
{
"SchoolName": "Edale Rise Primary & Nursery School",
"Postcode": "NG24HT"
},
{
"SchoolName": "Estcourt Primary Academy",
"Postcode": "HU92RP"
},
{
"SchoolName": "Fairchildes Primary School",
"Postcode": "CR00AH"
},
{
"SchoolName": "Oak Hill Academy",
"Postcode": "TW134QP"
},
{
"SchoolName": "The Flying Bull Academy",
"Postcode": "PO27BJ"
},
{
"SchoolName": "Giffards Primary School",
"Postcode": "SS177TG"
},
{
"SchoolName": "Great Missenden CofE Combined School",
"Postcode": "HP160AZ"
},
{
"SchoolName": "Green Lane Primary Academy",
"Postcode": "TS57RU"
},
{
"SchoolName": "Harlands Primary School",
"Postcode": "RH161PJ"
},
{
"SchoolName": "Hermitage Primary School",
"Postcode": "CW47NP"
},
{
"SchoolName": "Highcliffe Primary School and Community Centre",
"Postcode": "LE43DL"
},
{
"SchoolName": "Holy Cross Catholic Primary School",
"Postcode": "PL49BE"
},
{
"SchoolName": "Holy Trinity Catholic Voluntary Academy",
"Postcode": "NG244AU"
},
{
"SchoolName": "Hotwells Primary School",
"Postcode": "BS84ND"
},
{
"SchoolName": "Keston Church of England Primary School",
"Postcode": "BR26BN"
},
{
"SchoolName": "Keyham Barton Catholic Primary School",
"Postcode": "PL22DE"
},
{
"SchoolName": "Tudor Grange Academy Redditch",
"Postcode": "B987UH"
},
{
"SchoolName": "Lws Academy",
"Postcode": "SO317NL"
},
{
"SchoolName": "Marston Green Infant Academy",
"Postcode": "B377AA"
},
{
"SchoolName": "Middleton Primary School",
"Postcode": "MK109EN"
},
{
"SchoolName": "Monkwick Infant and Nursery School",
"Postcode": "CO28NN"
},
{
"SchoolName": "Naseby Church of England Primary Academy",
"Postcode": "NN66BZ"
},
{
"SchoolName": "Notre Dame RC School",
"Postcode": "PL65HN"
},
{
"SchoolName": "Old Trafford Community Academy",
"Postcode": "M154FL"
},
{
"SchoolName": "Our Lady's Catholic Primary School, Barnstaple",
"Postcode": "EX328DN"
},
{
"SchoolName": "Pear Tree Primary School",
"Postcode": "CW57GZ"
},
{
"SchoolName": "Penponds School",
"Postcode": "TR140QN"
},
{
"SchoolName": "Pewsey Primary School",
"Postcode": "SN95EJ"
},
{
"SchoolName": "Priory Roman Catholic Primary School, Torquay",
"Postcode": "TQ14NZ"
},
{
"SchoolName": "Purleigh Community Primary School",
"Postcode": "CM36PJ"
},
{
"SchoolName": "Queensway Catholic Primary School",
"Postcode": "TQ26DB"
},
{
"SchoolName": "Riverside Community Primary School Birstall",
"Postcode": "LE44JU"
},
{
"SchoolName": "Rochford Primary and Nursery School",
"Postcode": "SS41NJ"
},
{
"SchoolName": "Ruislip High School",
"Postcode": "HA40BY"
},
{
"SchoolName": "Sacred Heart Catholic School",
"Postcode": "TQ32SH"
},
{
"SchoolName": "Saint Gabriel's Catholic Voluntary Aided Primary School",
"Postcode": "TS79LF"
},
{
"SchoolName": "Saint Peter's Catholic Voluntary Academy",
"Postcode": "TS66SP"
},
{
"SchoolName": "Scotts Park Primary School",
"Postcode": "BR12PR"
},
{
"SchoolName": "Short Stay School for Norfolk",
"Postcode": "NR46LG"
},
{
"SchoolName": "Somerby Primary School",
"Postcode": "LE142PZ"
},
{
"SchoolName": "St Augustine's Catholic Primary School, Weymouth",
"Postcode": "DT40RH"
},
{
"SchoolName": "St Catherine's Catholic Primary School, Wimborne",
"Postcode": "BH212HN"
},
{
"SchoolName": "St Catherine's Roman Catholic School",
"Postcode": "DT63TR"
},
{
"SchoolName": "St Elizabeth's Catholic Primary School",
"Postcode": "M225EU"
},
{
"SchoolName": "St George's School A Church of England Academy",
"Postcode": "FY44PH"
},
{
"SchoolName": "St James' Church of England Primary Academy",
"Postcode": "BH76DW"
},
{
"SchoolName": "St John the Baptist Roman Catholic Primary School, Dartmouth",
"Postcode": "TQ69HW"
},
{
"SchoolName": "St John's Catholic Primary School",
"Postcode": "EX165LB"
},
{
"SchoolName": "St John's Catholic Primary School, Camborne",
"Postcode": "TR147AE"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "PL14DJ"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "TQ121PT"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Exmouth",
"Postcode": "EX81TA"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Poole",
"Postcode": "BH124DZ"
},
{
"SchoolName": "St Margaret Clitherow Catholic Primary School",
"Postcode": "TQ50EE"
},
{
"SchoolName": "St Margaret Clitherows RC Primary School",
"Postcode": "TS66TA"
},
{
"SchoolName": "St Mary & St Joseph's Catholic Primary School",
"Postcode": "BH206DS"
},
{
"SchoolName": "St Mary's Catholic First School, Dorchester",
"Postcode": "DT12DD"
},
{
"SchoolName": "St Mary's Catholic Primary School, Axminster",
"Postcode": "EX135BE"
},
{
"SchoolName": "St Mary's Catholic Primary School, Bodmin",
"Postcode": "PL311LW"
},
{
"SchoolName": "St Mary's Catholic Primary School, Buckfast",
"Postcode": "TQ110EA"
},
{
"SchoolName": "St Mary's Catholic Primary School, Falmouth",
"Postcode": "TR114PW"
},
{
"SchoolName": "St Mary's Catholic Primary School, Marnhull",
"Postcode": "DT101JX"
},
{
"SchoolName": "St Mary's Catholic Primary School, Poole",
"Postcode": "BH153QQ"
},
{
"SchoolName": "St Mary's Catholic School, Penzance",
"Postcode": "TR182AT"
},
{
"SchoolName": "St Mary's Catholic Voluntary Primary Academy",
"Postcode": "TS67AD"
},
{
"SchoolName": "St Mary's Catholic Primary School, Swanage",
"Postcode": "BH191QE"
},
{
"SchoolName": "St Meriadoc CofE Junior Academy",
"Postcode": "TR147PN"
},
{
"SchoolName": "St Meriadoc CofE Infant Academy",
"Postcode": "TR147DW"
},
{
"SchoolName": "St Patrick's Catholic Primary School, A Voluntary Academy",
"Postcode": "NG183NJ"
},
{
"SchoolName": "St Peter's RC Primary School",
"Postcode": "PL54HD"
},
{
"SchoolName": "The Cathedral School of St Mary",
"Postcode": "PL15HW"
},
{
"SchoolName": "The Hertfordshire & Essex High School and Science College",
"Postcode": "CM235NJ"
},
{
"SchoolName": "The Cedars Academy",
"Postcode": "LE44GH"
},
{
"SchoolName": "Thomas Walling Primary Academy",
"Postcode": "NE53PL"
},
{
"SchoolName": "Tredworth Infant School",
"Postcode": "GL14QF"
},
{
"SchoolName": "Troon Community Primary School",
"Postcode": "TR149ED"
},
{
"SchoolName": "Tytherington School",
"Postcode": "SK102EE"
},
{
"SchoolName": "Silvertrees Academy Trust",
"Postcode": "DY48NH"
},
{
"SchoolName": "Wednesbury Oak Academy",
"Postcode": "DY40AR"
},
{
"SchoolName": "White Meadows Primary Academy",
"Postcode": "BN177JL"
},
{
"SchoolName": "Whitefield Schools",
"Postcode": "E174AZ"
},
{
"SchoolName": "Woodfield School",
"Postcode": "NW97LY"
},
{
"SchoolName": "Winchcombe Abbey Church of England Primary School",
"Postcode": "GL545PZ"
},
{
"SchoolName": "Wolverhampton Girls' High School",
"Postcode": "WV60BY"
},
{
"SchoolName": "Rawmarsh Ashwood Primary School",
"Postcode": "S626HT"
},
{
"SchoolName": "Whitehill Primary School",
"Postcode": "DA125HN"
},
{
"SchoolName": "Humberston Cloverfields Academy",
"Postcode": "DN364HS"
},
{
"SchoolName": "St John Fisher Catholic College",
"Postcode": "ST52SJ"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "ST52SU"
},
{
"SchoolName": "St Teresa's Catholic (A) Primary School",
"Postcode": "ST46SP"
},
{
"SchoolName": "St Thomas Aquinas Catholic Primary School",
"Postcode": "ST47DG"
},
{
"SchoolName": "Beachcroft AP Academy",
"Postcode": "NW80NW"
},
{
"SchoolName": "Latimer AP Academy",
"Postcode": "W106TT"
},
{
"SchoolName": "Banstead Infant School",
"Postcode": "SM72BQ"
},
{
"SchoolName": "Ecclesfield School",
"Postcode": "S359WD"
},
{
"SchoolName": "Warren Mead Junior School",
"Postcode": "SM71EJ"
},
{
"SchoolName": "Earl's Court Free School Primary",
"Postcode": "W60LB"
},
{
"SchoolName": "Vision Studio School",
"Postcode": "NG197BB"
},
{
"SchoolName": "Knutsford Academy The Studio",
"Postcode": "WA160EA"
},
{
"SchoolName": "Brambles School",
"Postcode": "SK146NT"
},
{
"SchoolName": "Jane Austen College",
"Postcode": "NR31DD"
},
{
"SchoolName": "North Bridge Enterprise College",
"Postcode": "DN58AF"
},
{
"SchoolName": "Drapers' Brookside Junior School",
"Postcode": "RM39DJ"
},
{
"SchoolName": "Stalham Academy",
"Postcode": "NR129PS"
},
{
"SchoolName": "St Andrew's Church of England Primary School",
"Postcode": "NN169DF"
},
{
"SchoolName": "Newfield Secondary School",
"Postcode": "S89JP"
},
{
"SchoolName": "Sidegate Primary School",
"Postcode": "IP44JD"
},
{
"SchoolName": "Grove Primary School",
"Postcode": "NR338RQ"
},
{
"SchoolName": "Ryecroft Academy",
"Postcode": "LS125AW"
},
{
"SchoolName": "Montagu Academy",
"Postcode": "S649PH"
},
{
"SchoolName": "Emmaus Catholic and CofE Primary School",
"Postcode": "S25FT"
},
{
"SchoolName": "Eynsham Community Primary School",
"Postcode": "OX294LJ"
},
{
"SchoolName": "Larchwood Primary School",
"Postcode": "CM159NG"
},
{
"SchoolName": "Falconer's Hill Academy",
"Postcode": "NN110QF"
},
{
"SchoolName": "Westcott Primary School",
"Postcode": "HU88NB"
},
{
"SchoolName": "Tilbury Pioneer Academy",
"Postcode": "RM188HJ"
},
{
"SchoolName": "Gladstone Park Primary School",
"Postcode": "NW101LB"
},
{
"SchoolName": "Langford Village Academy",
"Postcode": "SG189QA"
},
{
"SchoolName": "Fowey River Academy",
"Postcode": "PL231HE"
},
{
"SchoolName": "Gulval School",
"Postcode": "TR183BJ"
},
{
"SchoolName": "Liskeard Hillfort Primary School",
"Postcode": "PL146HZ"
},
{
"SchoolName": "Altarnun Community Primary School",
"Postcode": "PL157RZ"
},
{
"SchoolName": "Broadmead Primary Academy",
"Postcode": "CR02EA"
},
{
"SchoolName": "Rowdown Primary School",
"Postcode": "CR00EG"
},
{
"SchoolName": "Bishop Lonsdale Church of England Primary School and Nursery",
"Postcode": "DE223HH"
},
{
"SchoolName": "Newbold CofE Primary School",
"Postcode": "S418PF"
},
{
"SchoolName": "St Cedd's Church of England Primary School, Bradwell",
"Postcode": "CM07PY"
},
{
"SchoolName": "Cowes Enterprise College",
"Postcode": "PO318HB"
},
{
"SchoolName": "Buckingham Primary Academy",
"Postcode": "HU88UG"
},
{
"SchoolName": "St Vincent's Voluntary Catholic Academy",
"Postcode": "HU52QR"
},
{
"SchoolName": "Southcoates Primary Academy",
"Postcode": "HU93TW"
},
{
"SchoolName": "Barlestone Church of England Primary School",
"Postcode": "CV130EP"
},
{
"SchoolName": "Woolden Hill Primary School",
"Postcode": "LE77ES"
},
{
"SchoolName": "Snettisham Primary School",
"Postcode": "PE317LT"
},
{
"SchoolName": "Oakway Academy",
"Postcode": "NN84SD"
},
{
"SchoolName": "The Beech Academy",
"Postcode": "NG196DX"
},
{
"SchoolName": "West Town Primary Academy",
"Postcode": "PE36DD"
},
{
"SchoolName": "St John's Church of England Primary Academy",
"Postcode": "WS109AR"
},
{
"SchoolName": "Western House Academy",
"Postcode": "SL15TJ"
},
{
"SchoolName": "Havergal CofE (C) Primary School",
"Postcode": "WV107LE"
},
{
"SchoolName": "Norton-Le-Moors Primary Academy",
"Postcode": "ST68BZ"
},
{
"SchoolName": "Sayes Court School",
"Postcode": "KT151NB"
},
{
"SchoolName": "Olive Alternative Provision Academy",
"Postcode": "RM155RR"
},
{
"SchoolName": "Michaela Community School",
"Postcode": "HA90UU"
},
{
"SchoolName": "The University of Birmingham School",
"Postcode": "B296QU"
},
{
"SchoolName": "Ormiston Chadwick Academy",
"Postcode": "WA87HU"
},
{
"SchoolName": "The McAuley Catholic High School",
"Postcode": "DN33QF"
},
{
"SchoolName": "The Snaith School",
"Postcode": "DN149LB"
},
{
"SchoolName": "The English Martyrs School and Sixth Form College",
"Postcode": "TS254HA"
},
{
"SchoolName": "Fairfield High School",
"Postcode": "HR20SG"
},
{
"SchoolName": "Kader Academy",
"Postcode": "TS58NU"
},
{
"SchoolName": "St Martin At Shouldham Church of England Primary Academy",
"Postcode": "PE330BU"
},
{
"SchoolName": "Stanton Harcourt CofE Primary School",
"Postcode": "OX295RJ"
},
{
"SchoolName": "Sandon Primary Academy",
"Postcode": "ST37AW"
},
{
"SchoolName": "St Gregory's Catholic Primary School, Margate",
"Postcode": "CT94BU"
},
{
"SchoolName": "St Anselm's Catholic School, Canterbury",
"Postcode": "CT13EN"
},
{
"SchoolName": "Wheatley Park School",
"Postcode": "OX331QH"
},
{
"SchoolName": "New Haw Community Junior School",
"Postcode": "KT153RL"
},
{
"SchoolName": "Lime Tree Primary Academy",
"Postcode": "M332RP"
},
{
"SchoolName": "St Nicolas CofE Academy",
"Postcode": "CV116HJ"
},
{
"SchoolName": "Witton Park High School",
"Postcode": "BB26TD"
},
{
"SchoolName": "Hillcroft Primary School",
"Postcode": "CR35PG"
},
{
"SchoolName": "Marylebone Boys' School",
"Postcode": "NW67UJ"
},
{
"SchoolName": "Space Studio Banbury",
"Postcode": "OX169HY"
},
{
"SchoolName": "Hillside Primary School",
"Postcode": "IP28NU"
},
{
"SchoolName": "Kingsfield Primary School",
"Postcode": "PE166ET"
},
{
"SchoolName": "Albert Bradbeer Primary Academy",
"Postcode": "B314RD"
},
{
"SchoolName": "Heathlands Primary Academy",
"Postcode": "B346NB"
},
{
"SchoolName": "Darwen St James CofE Primary Academy",
"Postcode": "BB30EY"
},
{
"SchoolName": "Beaconsfield High School",
"Postcode": "HP91RR"
},
{
"SchoolName": "Smallwood CofE Primary School",
"Postcode": "CW112UR"
},
{
"SchoolName": "Marlfields Primary School",
"Postcode": "CW124BT"
},
{
"SchoolName": "St Bernard's Roman Catholic Primary School",
"Postcode": "CH655EW"
},
{
"SchoolName": "Mawgan-in-Pydar Community Primary School",
"Postcode": "TR84EP"
},
{
"SchoolName": "Shaftesbury School",
"Postcode": "SP78ER"
},
{
"SchoolName": "Bobbing Village School",
"Postcode": "ME98PL"
},
{
"SchoolName": "Iwade School",
"Postcode": "ME98RS"
},
{
"SchoolName": "Christopher Pickering Primary School",
"Postcode": "HU47EB"
},
{
"SchoolName": "St Mary Queen of Martyrs VC Academy",
"Postcode": "HU74BS"
},
{
"SchoolName": "Ganton School",
"Postcode": "HU47JB"
},
{
"SchoolName": "Endsleigh Holy Child VC Academy",
"Postcode": "HU67TE"
},
{
"SchoolName": "St Nicholas Primary School",
"Postcode": "HU67RH"
},
{
"SchoolName": "Park Campus Academy",
"Postcode": "SE279NP"
},
{
"SchoolName": "Kennington Park Academy",
"Postcode": "SE114AX"
},
{
"SchoolName": "St Peter's Church of England Primary School Wymondham",
"Postcode": "LE142AF"
},
{
"SchoolName": "Redmile Church of England Primary School",
"Postcode": "NG130GL"
},
{
"SchoolName": "Loughborough Church of England Primary School",
"Postcode": "LE113BY"
},
{
"SchoolName": "Tugby Church of England Primary School",
"Postcode": "LE79WD"
},
{
"SchoolName": "Waltham on the Wolds Church of England Primary School",
"Postcode": "LE144AJ"
},
{
"SchoolName": "The Norman Church of England Primary School, Northwold",
"Postcode": "IP265NB"
},
{
"SchoolName": "St Peter's Church of England Primary School, Cassington",
"Postcode": "OX294DN"
},
{
"SchoolName": "Freeland Church of England Primary School",
"Postcode": "OX298HX"
},
{
"SchoolName": "William Law CofE Primary School",
"Postcode": "PE45DT"
},
{
"SchoolName": "Normanby Primary School",
"Postcode": "TS60NP"
},
{
"SchoolName": "Nunthorpe Primary Academy",
"Postcode": "TS70LA"
},
{
"SchoolName": "St Pauls Church of England Academy",
"Postcode": "DY49BH"
},
{
"SchoolName": "Idsall School",
"Postcode": "TF118PD"
},
{
"SchoolName": "Smith's Wood Primary Academy",
"Postcode": "B360SZ"
},
{
"SchoolName": "Cleadon Church of England Academy",
"Postcode": "SR67RP"
},
{
"SchoolName": "Hursthead Junior School",
"Postcode": "SK87PZ"
},
{
"SchoolName": "Ryhope Infant School Academy",
"Postcode": "SR20RT"
},
{
"SchoolName": "Pyrford Church of England Aided Primary School",
"Postcode": "GU228SP"
},
{
"SchoolName": "Townfield Primary School",
"Postcode": "CH432LH"
},
{
"SchoolName": "Bengeworth CE Academy",
"Postcode": "WR113EU"
},
{
"SchoolName": "Hollymount School",
"Postcode": "WR49SG"
},
{
"SchoolName": "Harris Primary Academy Beckenham",
"Postcode": "BR33SJ"
},
{
"SchoolName": "Harris Academy Tottenham",
"Postcode": "N179LN"
},
{
"SchoolName": "Harris Primary Academy Shortlands",
"Postcode": "BR20HG"
},
{
"SchoolName": "Harris Primary Academy East Dulwich",
"Postcode": "SE228HA"
},
{
"SchoolName": "Harris Primary Academy Mayflower",
"Postcode": "RM166SA"
},
{
"SchoolName": "Harris Westminster Sixth Form",
"Postcode": "SW1H9LH"
},
{
"SchoolName": "Chapeltown Academy",
"Postcode": "S359ZX"
},
{
"SchoolName": "Heathrow Aviation Engineering UTC",
"Postcode": "HA61QG"
},
{
"SchoolName": "Oak Tree School",
"Postcode": "TR49NH"
},
{
"SchoolName": "The Bath Studio School",
"Postcode": "BA25RF"
},
{
"SchoolName": "Elutec",
"Postcode": "RM107FN"
},
{
"SchoolName": "<NAME> Preparatory School",
"Postcode": "NN26JW"
},
{
"SchoolName": "Isle of Wight Studio School",
"Postcode": "PO326EA"
},
{
"SchoolName": "Ingleby Manor Free School & Sixth Form",
"Postcode": "TS170FA"
},
{
"SchoolName": "<NAME>",
"Postcode": "LN21PF"
},
{
"SchoolName": "Harris Invictus Academy Croydon",
"Postcode": "CR02TB"
},
{
"SchoolName": "Evendons Primary School",
"Postcode": "RG403HD"
},
{
"SchoolName": "Lanchester Community Free School",
"Postcode": "WD173HD"
},
{
"SchoolName": "Jupiter Community Free School",
"Postcode": "HP25NT"
},
{
"SchoolName": "Ascot Road Community Free School",
"Postcode": "WD188AD"
},
{
"SchoolName": "Eden Girls' School Waltham Forest",
"Postcode": "E175SD"
},
{
"SchoolName": "Eden Girls' School Coventry",
"Postcode": "CV14FS"
},
{
"SchoolName": "Eden Boys' School Bolton",
"Postcode": "BL13QE"
},
{
"SchoolName": "Knole Development Centre",
"Postcode": "TN150JR"
},
{
"SchoolName": "WMG Academy for Young Engineers",
"Postcode": "CV48DY"
},
{
"SchoolName": "Goresbrook School",
"Postcode": "RM96XW"
},
{
"SchoolName": "St Mary's Church of England Primary Norwood Green",
"Postcode": "UB24LA"
},
{
"SchoolName": "XP School",
"Postcode": "DN45NG"
},
{
"SchoolName": "Studio West",
"Postcode": "NE52SZ"
},
{
"SchoolName": "Trinity Academy",
"Postcode": "SW21QS"
},
{
"SchoolName": "Paxton Academy Sports and Science",
"Postcode": "CR77JP"
},
{
"SchoolName": "Tottenham UTC",
"Postcode": "N170BX"
},
{
"SchoolName": "Sybil Andrews Academy",
"Postcode": "IP331YB"
},
{
"SchoolName": "Aspire Academy",
"Postcode": "CM187EZ"
},
{
"SchoolName": "Exeter Mathematics School",
"Postcode": "EX43PU"
},
{
"SchoolName": "UTC Swindon",
"Postcode": "SN15ET"
},
{
"SchoolName": "Essa Primary School",
"Postcode": "BL33HH"
},
{
"SchoolName": "Alexandra Primary School",
"Postcode": "TW34DU"
},
{
"SchoolName": "Anfield Road Primary School",
"Postcode": "L40TN"
},
{
"SchoolName": "Discovery School",
"Postcode": "NE13BT"
},
{
"SchoolName": "Dorset Studio School",
"Postcode": "DT28PX"
},
{
"SchoolName": "Kirk Balk Academy",
"Postcode": "S749HX"
},
{
"SchoolName": "The Holy Family Catholic Primary School",
"Postcode": "ME159PS"
},
{
"SchoolName": "Black Firs Primary School",
"Postcode": "CW124QJ"
},
{
"SchoolName": "Brentwood County High School",
"Postcode": "CM144JF"
},
{
"SchoolName": "Standlake Church of England Primary School",
"Postcode": "OX297SQ"
},
{
"SchoolName": "Nottingham University Academy of Science and Technology",
"Postcode": "NG72PL"
},
{
"SchoolName": "Harris Academy Battersea",
"Postcode": "SW115AP"
},
{
"SchoolName": "The Leigh UTC",
"Postcode": "DA15TF"
},
{
"SchoolName": "Weston St Mary Church of England Primary School",
"Postcode": "PE126HU"
},
{
"SchoolName": "Warren Wood Primary Academy",
"Postcode": "ME12UR"
},
{
"SchoolName": "Edith Cavell Academy and Nursery",
"Postcode": "NR12LR"
},
{
"SchoolName": "The Canon Peter Hall CofE Primary School",
"Postcode": "DN401JS"
},
{
"SchoolName": "Hall Park Academy",
"Postcode": "NG163EA"
},
{
"SchoolName": "Thrybergh Primary School",
"Postcode": "S654JG"
},
{
"SchoolName": "Parlaunt Park Primary Academy",
"Postcode": "SL38EQ"
},
{
"SchoolName": "Moorgate Primary Academy",
"Postcode": "B797EL"
},
{
"SchoolName": "Rowley Park Primary Academy",
"Postcode": "ST179RF"
},
{
"SchoolName": "Walton Hall Academy",
"Postcode": "ST216JR"
},
{
"SchoolName": "Tollgate Primary School",
"Postcode": "IP326DG"
},
{
"SchoolName": "La Fontaine Academy",
"Postcode": "BR28LD"
},
{
"SchoolName": "Studley St Mary's CofE Academy",
"Postcode": "B807ND"
},
{
"SchoolName": "Al Khair School",
"Postcode": "B688LA"
},
{
"SchoolName": "Dixons McMillan Academy",
"Postcode": "BD50JD"
},
{
"SchoolName": "<NAME> IV - The Free School",
"Postcode": "B13AA"
},
{
"SchoolName": "The Watford UTC",
"Postcode": "WD244PT"
},
{
"SchoolName": "INSPIRE Free Special School",
"Postcode": "ME50LB"
},
{
"SchoolName": "Beacon Business Innovation Hub",
"Postcode": "IG45LP"
},
{
"SchoolName": "Arc School Napton",
"Postcode": "UB70AE"
},
{
"SchoolName": "Arc School Ansley",
"Postcode": "CV109ND"
},
{
"SchoolName": "Ditton Park Academy",
"Postcode": "SL11YG"
},
{
"SchoolName": "Nottingham Free School",
"Postcode": "NG51EB"
},
{
"SchoolName": "Falcons Primary School",
"Postcode": "LE50TA"
},
{
"SchoolName": "Sir Frank Whittle Studio School",
"Postcode": "LE174EW"
},
{
"SchoolName": "Hillsview Academy",
"Postcode": "TS69AG"
},
{
"SchoolName": "Eden School",
"Postcode": "BB24NW"
},
{
"SchoolName": "Meridian Angel Primary School",
"Postcode": "N182DX"
},
{
"SchoolName": "Ark Elvin Academy",
"Postcode": "HA97DU"
},
{
"SchoolName": "Ark Dickens Primary Academy",
"Postcode": "PO14PN"
},
{
"SchoolName": "Ark Blacklands Primary Academy",
"Postcode": "TN342HU"
},
{
"SchoolName": "Ark Little Ridge Primary Academy",
"Postcode": "TN377LR"
},
{
"SchoolName": "The Norwegian Kindergarten In London",
"Postcode": "SW208AH"
},
{
"SchoolName": "Jubilee Primary School",
"Postcode": "ME168PF"
},
{
"SchoolName": "Park Community School",
"Postcode": "SW193EF"
},
{
"SchoolName": "Burnley High School",
"Postcode": "BB126TG"
},
{
"SchoolName": "Inspired Directions School",
"Postcode": "E82NG"
},
{
"SchoolName": "Big Creative Academy",
"Postcode": "E175SD"
},
{
"SchoolName": "Treasure House London Cic",
"Postcode": "SE151JF"
},
{
"SchoolName": "Rushden Primary Academy",
"Postcode": "NN100YX"
},
{
"SchoolName": "Finch Woods Academy",
"Postcode": "L260TY"
},
{
"SchoolName": "The Aspire Academy",
"Postcode": "WR49FQ"
},
{
"SchoolName": "De Salis Studio College",
"Postcode": "UB48JP"
},
{
"SchoolName": "Trinity Oaks Church of England Primary School",
"Postcode": "RH69NS"
},
{
"SchoolName": "Aspire Academy",
"Postcode": "HU95DE"
},
{
"SchoolName": "The Gatwick School",
"Postcode": "RH109TP"
},
{
"SchoolName": "Canary Wharf College 2",
"Postcode": "E143BA"
},
{
"SchoolName": "North Somerset Enterprise and Technology College",
"Postcode": "BS248EE"
},
{
"SchoolName": "Walney School",
"Postcode": "LA143JT"
},
{
"SchoolName": "Hanham Woods Academy",
"Postcode": "BS153LA"
},
{
"SchoolName": "Archbishop Wake Church of England Primary School",
"Postcode": "DT118SW"
},
{
"SchoolName": "Barby Church of England Primary School",
"Postcode": "CV238TR"
},
{
"SchoolName": "Barnes Infant Academy",
"Postcode": "SR47QF"
},
{
"SchoolName": "Blandford St Mary Church of England Primary School",
"Postcode": "DT119QD"
},
{
"SchoolName": "Brampton Primary Academy",
"Postcode": "DA74SL"
},
{
"SchoolName": "Braunston Church of England Primary School",
"Postcode": "NN117HF"
},
{
"SchoolName": "Flitcham Voluntary Aided Church of England Primary School",
"Postcode": "PE316BU"
},
{
"SchoolName": "Glory Farm Primary School",
"Postcode": "OX264YJ"
},
{
"SchoolName": "Grove Wood Primary School",
"Postcode": "SS68UA"
},
{
"SchoolName": "Hanborough Manor CofE School",
"Postcode": "OX298DJ"
},
{
"SchoolName": "Heathland School",
"Postcode": "HA29AG"
},
{
"SchoolName": "Hillingdon Primary School",
"Postcode": "UB100PH"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "DN75BL"
},
{
"SchoolName": "Lindley Church of England Infant School",
"Postcode": "HD33NE"
},
{
"SchoolName": "Our Lady of Mount Carmel Catholic First School",
"Postcode": "B975RR"
},
{
"SchoolName": "Our Lady of Victories Catholic School",
"Postcode": "BD226JP"
},
{
"SchoolName": "Sitwell Junior School",
"Postcode": "S603LA"
},
{
"SchoolName": "Spetisbury CofE VA Primary School",
"Postcode": "DT119DF"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "BD213AD"
},
{
"SchoolName": "St Augustine's Catholic High School",
"Postcode": "B975LX"
},
{
"SchoolName": "St Bede's Catholic Middle School",
"Postcode": "B987HA"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "CT149LF"
},
{
"SchoolName": "St Peter's Catholic First School",
"Postcode": "B617LH"
},
{
"SchoolName": "St Simon of England Roman Catholic Primary School, Ashford",
"Postcode": "TN234RB"
},
{
"SchoolName": "Staverton Church of England Voluntary Primary School",
"Postcode": "NN116JF"
},
{
"SchoolName": "The Cooper School",
"Postcode": "OX264RS"
},
{
"SchoolName": "Tudor Court Primary School",
"Postcode": "RM166PL"
},
{
"SchoolName": "Whitefriars School",
"Postcode": "HA35RQ"
},
{
"SchoolName": "Woodford Halse Church of England Primary Academy",
"Postcode": "NN113RQ"
},
{
"SchoolName": "Woodhouse Academy",
"Postcode": "ST87DR"
},
{
"SchoolName": "Loose Primary School",
"Postcode": "ME159UW"
},
{
"SchoolName": "Blessed Sacrament Catholic Primary School",
"Postcode": "L99AF"
},
{
"SchoolName": "Badby School",
"Postcode": "NN113AJ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "HU46LQ"
},
{
"SchoolName": "Kilsby Church of England Primary School",
"Postcode": "CV238XS"
},
{
"SchoolName": "Weedon Bec Primary School",
"Postcode": "NN74QU"
},
{
"SchoolName": "Bolton Wanderers Free School",
"Postcode": "BL66JW"
},
{
"SchoolName": "Oasis Academy Silvertown",
"Postcode": "E161TU"
},
{
"SchoolName": "Skinners' Kent Primary School",
"Postcode": "TN24PY"
},
{
"SchoolName": "University Technical College Norfolk",
"Postcode": "NR46FF"
},
{
"SchoolName": "Iqra High School",
"Postcode": "OL41ER"
},
{
"SchoolName": "Ocean Academy Poole",
"Postcode": "BH140PZ"
},
{
"SchoolName": "East London Arts & Music",
"Postcode": "E154RZ"
},
{
"SchoolName": "Copnor Primary School",
"Postcode": "PO35BZ"
},
{
"SchoolName": "The Mill Academy",
"Postcode": "S705EP"
},
{
"SchoolName": "St Philip's CofE Primary School",
"Postcode": "BD89JL"
},
{
"SchoolName": "Knockhall Academy",
"Postcode": "DA99RF"
},
{
"SchoolName": "The Isaac Newton Primary School",
"Postcode": "NG317DG"
},
{
"SchoolName": "Phoenix Park Academy",
"Postcode": "DN327NQ"
},
{
"SchoolName": "Lowedges Junior Academy",
"Postcode": "S87JG"
},
{
"SchoolName": "LIPA Primary School",
"Postcode": "L17BT"
},
{
"SchoolName": "Seva School",
"Postcode": "CV22TB"
},
{
"SchoolName": "Holy Trinity School",
"Postcode": "DY102BY"
},
{
"SchoolName": "Chetwynde School",
"Postcode": "LA130NY"
},
{
"SchoolName": "Manchester Creative Studio",
"Postcode": "M45AW"
},
{
"SchoolName": "Steiner Academy Bristol",
"Postcode": "BS162JP"
},
{
"SchoolName": "Apollo Studio Academy",
"Postcode": "SR82RN"
},
{
"SchoolName": "Easton Church of England Academy",
"Postcode": "BS50SQ"
},
{
"SchoolName": "UTC Oxfordshire",
"Postcode": "OX116BZ"
},
{
"SchoolName": "Perry Court Primary School",
"Postcode": "BS140AX"
},
{
"SchoolName": "Unity Primary Academy",
"Postcode": "CO43QJ"
},
{
"SchoolName": "Mayplace Primary School",
"Postcode": "DA76EQ"
},
{
"SchoolName": "St Cuthbert's Catholic Academy",
"Postcode": "FY42AU"
},
{
"SchoolName": "Bromley Trust Alternative Provision Academy",
"Postcode": "BR29EA"
},
{
"SchoolName": "St. Mary Cray Primary Academy",
"Postcode": "BR54AR"
},
{
"SchoolName": "New Valley Primary School",
"Postcode": "CR84AZ"
},
{
"SchoolName": "St Mark's Church of England Primary Academy",
"Postcode": "SE254JD"
},
{
"SchoolName": "Beulah Infants' School",
"Postcode": "CR78NJ"
},
{
"SchoolName": "Rosa Street Primary School",
"Postcode": "DL167NA"
},
{
"SchoolName": "White House Academy",
"Postcode": "BN272FB"
},
{
"SchoolName": "The Ashwood Academy",
"Postcode": "RG238AA"
},
{
"SchoolName": "Dogsthorpe Academy",
"Postcode": "PE14LH"
},
{
"SchoolName": "Morland Church of England VA Primary School",
"Postcode": "IP30LH"
},
{
"SchoolName": "CUL Academy Trust",
"Postcode": "B64EA"
},
{
"SchoolName": "Hardwick House School",
"Postcode": "LE113HU"
},
{
"SchoolName": "Sporting Stars Academy",
"Postcode": "ST27AS"
},
{
"SchoolName": "The Family School London",
"Postcode": "N19PN"
},
{
"SchoolName": "The Kingsway Academy",
"Postcode": "CH461RB"
},
{
"SchoolName": "Blackpool Aspire Academy",
"Postcode": "FY37LS"
},
{
"SchoolName": "London Enterprise Academy",
"Postcode": "E11RD"
},
{
"SchoolName": "Fulham Boys School",
"Postcode": "W149LY"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "LE42NG"
},
{
"SchoolName": "Harrow House International College",
"Postcode": "BH191PE"
},
{
"SchoolName": "Education Links",
"Postcode": "E151TT"
},
{
"SchoolName": "The Elland Academy",
"Postcode": "LS126DQ"
},
{
"SchoolName": "St Wilfrid's Academy, Doncaster",
"Postcode": "DN46AH"
},
{
"SchoolName": "St Bartholomew's Primary Academy",
"Postcode": "SN48AZ"
},
{
"SchoolName": "Harris Primary Academy Merton",
"Postcode": "CR41JW"
},
{
"SchoolName": "Castleford Oyster Park Primary School",
"Postcode": "WF103SN"
},
{
"SchoolName": "Heath View Academy",
"Postcode": "WF14QY"
},
{
"SchoolName": "<NAME>er Catholic School and Sports College",
"Postcode": "OX169DG"
},
{
"SchoolName": "Carwarden House Community School",
"Postcode": "GU151EJ"
},
{
"SchoolName": "Dilton Marsh CofE Primary School",
"Postcode": "BA134DY"
},
{
"SchoolName": "High Littleton CofE VC Primary School",
"Postcode": "BS396HF"
},
{
"SchoolName": "Holy Trinity Catholic School, Chipping Norton",
"Postcode": "OX75AX"
},
{
"SchoolName": "Market Harborough Church of England Academy",
"Postcode": "LE169QH"
},
{
"SchoolName": "Mossley CofE Primary School",
"Postcode": "CW123JA"
},
{
"SchoolName": "North View Academy",
"Postcode": "SR40HB"
},
{
"SchoolName": "North West London Jewish Day School",
"Postcode": "NW67PP"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Banbury",
"Postcode": "OX160ET"
},
{
"SchoolName": "St Margaret Clitherow Catholic Primary School",
"Postcode": "TN119NG"
},
{
"SchoolName": "St Thomas' Catholic Primary School, Sevenoaks",
"Postcode": "TN131EH"
},
{
"SchoolName": "St Peter and St Paul Catholic Primary School",
"Postcode": "BR52SR"
},
{
"SchoolName": "Staplegrove Church School",
"Postcode": "TA26UP"
},
{
"SchoolName": "Holy Trinity Church of England Academy (South Shields)",
"Postcode": "NE340TS"
},
{
"SchoolName": "Cherry Tree Academy Trust Marham Infant",
"Postcode": "PE339LT"
},
{
"SchoolName": "Norton Fitzwarren Church School",
"Postcode": "TA26TB"
},
{
"SchoolName": "Woolwich Polytechnic School",
"Postcode": "SE288AT"
},
{
"SchoolName": "Wac Arts College",
"Postcode": "NW34QP"
},
{
"SchoolName": "Queen Elizabeth's Grammar School",
"Postcode": "BB26DF"
},
{
"SchoolName": "The Barnes Wallis Academy",
"Postcode": "LN44PN"
},
{
"SchoolName": "Elton Community Primary School",
"Postcode": "BL81SB"
},
{
"SchoolName": "West Lynn Primary School",
"Postcode": "PE343JL"
},
{
"SchoolName": "Tenbury High Ormiston Academy",
"Postcode": "WR158XA"
},
{
"SchoolName": "Holt Farm Junior School",
"Postcode": "SS41RS"
},
{
"SchoolName": "Northern House School (Solihull)",
"Postcode": "B369LF"
},
{
"SchoolName": "Kessingland Church of England Primary Academy",
"Postcode": "NR337QA"
},
{
"SchoolName": "Rise Park Junior School",
"Postcode": "RM14UD"
},
{
"SchoolName": "Severn Beach Primary School",
"Postcode": "BS354PP"
},
{
"SchoolName": "Priory School",
"Postcode": "PO40DL"
},
{
"SchoolName": "S<NAME>'s Technology College",
"Postcode": "SY132BY"
},
{
"SchoolName": "King Edward VII Academy",
"Postcode": "PE302QB"
},
{
"SchoolName": "The Warren School",
"Postcode": "RM66SB"
},
{
"SchoolName": "The Skipton Academy",
"Postcode": "BD231UQ"
},
{
"SchoolName": "Morville CofE (Controlled) Primary School",
"Postcode": "WV164RJ"
},
{
"SchoolName": "Kingsham Primary School",
"Postcode": "PO198BN"
},
{
"SchoolName": "Montgomerie Primary School",
"Postcode": "SS74LW"
},
{
"SchoolName": "Broadstone Middle School",
"Postcode": "BH188AE"
},
{
"SchoolName": "Thorp Academy",
"Postcode": "NE403AH"
},
{
"SchoolName": "John Wheeldon Primary Academy",
"Postcode": "ST163LX"
},
{
"SchoolName": "The Coppice Spring School",
"Postcode": "RG225TH"
},
{
"SchoolName": "Kingfisher Academy",
"Postcode": "DE142PJ"
},
{
"SchoolName": "Southmere Primary School",
"Postcode": "BD73NR"
},
{
"SchoolName": "Phoenix Academy",
"Postcode": "BN272PH"
},
{
"SchoolName": "Barton Hill Academy",
"Postcode": "BS59TX"
},
{
"SchoolName": "<NAME> Church of England Primary Academy",
"Postcode": "IP257LF"
},
{
"SchoolName": "Broken Cross Primary Academy and Nursery",
"Postcode": "SK118UD"
},
{
"SchoolName": "Water Lane Primary Academy",
"Postcode": "CM195RD"
},
{
"SchoolName": "Willow Brook Primary School and Nursery",
"Postcode": "CO40DT"
},
{
"SchoolName": "Levenshulme High School",
"Postcode": "M191FS"
},
{
"SchoolName": "Sandfield Primary School",
"Postcode": "GU14DT"
},
{
"SchoolName": "St Dennis Primary Academy",
"Postcode": "PL268AY"
},
{
"SchoolName": "Napier Community Primary and Nursery Academy",
"Postcode": "ME74HG"
},
{
"SchoolName": "Kings College Guildford",
"Postcode": "GU28DU"
},
{
"SchoolName": "Five Spires Academy",
"Postcode": "WS149AN"
},
{
"SchoolName": "Knowsley Lane Primary School",
"Postcode": "L368DB"
},
{
"SchoolName": "Town Junior School",
"Postcode": "B721NX"
},
{
"SchoolName": "IncludEd",
"Postcode": "M168ER"
},
{
"SchoolName": "LVS Oxford",
"Postcode": "OX51RX"
},
{
"SchoolName": "Brook House Primary School",
"Postcode": "N178EY"
},
{
"SchoolName": "The Archbishop Lanfranc Academy",
"Postcode": "CR93AS"
},
{
"SchoolName": "W<NAME> Church of England Academy",
"Postcode": "PE73JL"
},
{
"SchoolName": "Mepal and Witcham Church of England Primary School",
"Postcode": "CB62AL"
},
{
"SchoolName": "St Peter's CofE Aided Junior School",
"Postcode": "PE132ES"
},
{
"SchoolName": "Woodlands School",
"Postcode": "SS165BA"
},
{
"SchoolName": "Reculver Church of England Primary School",
"Postcode": "CT66TA"
},
{
"SchoolName": "St Edmund's Catholic School",
"Postcode": "CT162QB"
},
{
"SchoolName": "Rosherville Church of England Academy",
"Postcode": "DA119JQ"
},
{
"SchoolName": "St Mary of Charity CofE (Aided) Primary School",
"Postcode": "ME138AP"
},
{
"SchoolName": "Northfield House Primary Academy",
"Postcode": "LE49DL"
},
{
"SchoolName": "Christ Church & Saint Peter's Cofe Primary School",
"Postcode": "LE127JU"
},
{
"SchoolName": "St Giles Academy",
"Postcode": "LN24LQ"
},
{
"SchoolName": "Cuxton Community Junior School",
"Postcode": "ME21EZ"
},
{
"SchoolName": "The Green Room",
"Postcode": "SL45BU"
},
{
"SchoolName": "Antingham and Southrepps Primary School",
"Postcode": "NR118UG"
},
{
"SchoolName": "Cherry Tree Academy Trust Marham Junior",
"Postcode": "PE339JJ"
},
{
"SchoolName": "Runcton Holme Church of England Primary School",
"Postcode": "PE330EL"
},
{
"SchoolName": "Wormegay Church of England Primary School",
"Postcode": "PE330RN"
},
{
"SchoolName": "St Barnabas Church of England School",
"Postcode": "NN83HB"
},
{
"SchoolName": "Bayards Hill School",
"Postcode": "OX39NU"
},
{
"SchoolName": "Austin Farm Academy",
"Postcode": "PL65XQ"
},
{
"SchoolName": "Monkwood Primary Academy",
"Postcode": "S627JD"
},
{
"SchoolName": "Ryhall CofE Academy",
"Postcode": "PE94HR"
},
{
"SchoolName": "Alde Valley School",
"Postcode": "IP164BG"
},
{
"SchoolName": "Preston Primary School",
"Postcode": "TQ26UY"
},
{
"SchoolName": "Kimichi School",
"Postcode": "B276LL"
},
{
"SchoolName": "Budbrooke Primary School",
"Postcode": "CV358TP"
},
{
"SchoolName": "Wednesfield High Specialist Engineering Academy",
"Postcode": "WV113ES"
},
{
"SchoolName": "Heronswood Primary School",
"Postcode": "DY104EX"
},
{
"SchoolName": "Focus 1st Academy",
"Postcode": "N111BA"
},
{
"SchoolName": "North Chadderton School",
"Postcode": "OL90BN"
},
{
"SchoolName": "Norman Court School",
"Postcode": "SP51NH"
},
{
"SchoolName": "North Bridge House Senior Canonbury",
"Postcode": "N12NQ"
},
{
"SchoolName": "Pinewood School",
"Postcode": "SG129PB"
},
{
"SchoolName": "Calthorpe Teaching Academy",
"Postcode": "B120TP"
},
{
"SchoolName": "Ambergate Sports College",
"Postcode": "NG317LP"
},
{
"SchoolName": "The Grantham Sandon School",
"Postcode": "NG319AX"
},
{
"SchoolName": "<NAME> Special School",
"Postcode": "E154RZ"
},
{
"SchoolName": "King Ina Academy (Infants)",
"Postcode": "TA116LY"
},
{
"SchoolName": "St Mary's Catholic Academy",
"Postcode": "FY37EQ"
},
{
"SchoolName": "Broadstone First School",
"Postcode": "BH188AA"
},
{
"SchoolName": "The Ripley Academy",
"Postcode": "DE53JQ"
},
{
"SchoolName": "Holbeach Primary School",
"Postcode": "PE127LZ"
},
{
"SchoolName": "Churchwood Primary Academy",
"Postcode": "TN389PB"
},
{
"SchoolName": "Hollington Primary Academy",
"Postcode": "TN389DS"
},
{
"SchoolName": "Robsack Wood Primary Academy",
"Postcode": "TN389TE"
},
{
"SchoolName": "Whalley Range 11-18 High School",
"Postcode": "M168GW"
},
{
"SchoolName": "Halsford Park Primary School",
"Postcode": "RH191LR"
},
{
"SchoolName": "Fernhurst Primary School",
"Postcode": "GU273EA"
},
{
"SchoolName": "Baldwins Hill Primary School, East Grinstead",
"Postcode": "RH192AP"
},
{
"SchoolName": "Northgate High School",
"Postcode": "NR192EU"
},
{
"SchoolName": "City of Norwich School",
"Postcode": "NR46PP"
},
{
"SchoolName": "Hillstone Primary School",
"Postcode": "B347PY"
},
{
"SchoolName": "Kents Hill School",
"Postcode": "MK76HD"
},
{
"SchoolName": "Queen's Crescent Primary School",
"Postcode": "SN140QT"
},
{
"SchoolName": "Haydon Wick Primary School",
"Postcode": "SN251HT"
},
{
"SchoolName": "St Peter's CofE Academy",
"Postcode": "SN140LL"
},
{
"SchoolName": "Gatley Primary School",
"Postcode": "SK84NB"
},
{
"SchoolName": "Cuxton Community Infant School",
"Postcode": "ME21EY"
},
{
"SchoolName": "Lawrence Sheriff School",
"Postcode": "CV213AG"
},
{
"SchoolName": "Featherstone Academy",
"Postcode": "WV107AS"
},
{
"SchoolName": "Bringhurst Primary School",
"Postcode": "LE168RH"
},
{
"SchoolName": "Acorns Primary School",
"Postcode": "CV365LA"
},
{
"SchoolName": "Shipston-on-Stour Primary School",
"Postcode": "CV364BT"
},
{
"SchoolName": "Walton Primary Academy",
"Postcode": "WF26LD"
},
{
"SchoolName": "St Minver School",
"Postcode": "PL276QD"
},
{
"SchoolName": "Blackawton Primary School",
"Postcode": "TQ97BE"
},
{
"SchoolName": "Moretonhampstead Primary School",
"Postcode": "TQ138NA"
},
{
"SchoolName": "Stoke Fleming Community Primary School",
"Postcode": "TQ60QA"
},
{
"SchoolName": "East Allington Primary School",
"Postcode": "TQ97RE"
},
{
"SchoolName": "Christ The King Catholic Academy",
"Postcode": "FY37FG"
},
{
"SchoolName": "Welholme Academy",
"Postcode": "DN329JD"
},
{
"SchoolName": "Castleford Three Lane Ends Academy",
"Postcode": "WF101PN"
},
{
"SchoolName": "Leesons Primary School",
"Postcode": "BR52GA"
},
{
"SchoolName": "Devonshire Junior School",
"Postcode": "B677AT"
},
{
"SchoolName": "Devonshire Infant Academy",
"Postcode": "B677AT"
},
{
"SchoolName": "Ashley CofE Aided Primary School",
"Postcode": "KT121HX"
},
{
"SchoolName": "Knowl Hill Church of England Primary Academy",
"Postcode": "RG109UX"
},
{
"SchoolName": "Sheringham Primary School",
"Postcode": "E125PB"
},
{
"SchoolName": "Cromwell Academy",
"Postcode": "PE296JA"
},
{
"SchoolName": "St John's Church of England Academy",
"Postcode": "CV59HZ"
},
{
"SchoolName": "Rise Park Infant School",
"Postcode": "RM14UD"
},
{
"SchoolName": "Hampton College",
"Postcode": "PE78BF"
},
{
"SchoolName": "Harrow Gate Academy",
"Postcode": "TS198DE"
},
{
"SchoolName": "Healing Primary Academy",
"Postcode": "DN417RS"
},
{
"SchoolName": "Griffin Primary School",
"Postcode": "SW84JB"
},
{
"SchoolName": "Pear Tree Mead Academy",
"Postcode": "CM187BY"
},
{
"SchoolName": "Lanesend Primary School",
"Postcode": "PO317ES"
},
{
"SchoolName": "Nether Alderley Primary School",
"Postcode": "SK104TR"
},
{
"SchoolName": "Ryburn Valley High School",
"Postcode": "HX61DF"
},
{
"SchoolName": "Adisham Church of England Primary School",
"Postcode": "CT33JW"
},
{
"SchoolName": "Stationers' Crown Woods Academy",
"Postcode": "SE92PT"
},
{
"SchoolName": "Whitefriars Church of England Primary Academy",
"Postcode": "PE305AH"
},
{
"SchoolName": "Pulse and Water College",
"Postcode": "SE186PF"
},
{
"SchoolName": "Al-Markaz Academy",
"Postcode": "BD72JX"
},
{
"SchoolName": "Bournville School",
"Postcode": "B301SH"
},
{
"SchoolName": "Wyndcliffe Primary School",
"Postcode": "B95BG"
},
{
"SchoolName": "Brownmead Primary Academy",
"Postcode": "B346SS"
},
{
"SchoolName": "Darwen Vale High School",
"Postcode": "BB30AL"
},
{
"SchoolName": "Delabole Community Primary School",
"Postcode": "PL339AL"
},
{
"SchoolName": "Robartes ACE Academy",
"Postcode": "PL311LU"
},
{
"SchoolName": "Allenton Primary School",
"Postcode": "DE249BB"
},
{
"SchoolName": "The Crestwood School",
"Postcode": "DY68QG"
},
{
"SchoolName": "Leigh Beck Infant School and Nursery Academy",
"Postcode": "SS87TD"
},
{
"SchoolName": "Forest Hall School",
"Postcode": "CM248TZ"
},
{
"SchoolName": "Kennington Church of England Academy",
"Postcode": "TN249AG"
},
{
"SchoolName": "Heygreen Primary School",
"Postcode": "L154ND"
},
{
"SchoolName": "Caister Academy",
"Postcode": "NR305LS"
},
{
"SchoolName": "Alt Academy",
"Postcode": "OL82EL"
},
{
"SchoolName": "Jubilee L.E.A.D. Academy",
"Postcode": "NG83AF"
},
{
"SchoolName": "Farnborough Academy",
"Postcode": "NG118JW"
},
{
"SchoolName": "Wickersley Northfield Primary School",
"Postcode": "S662HL"
},
{
"SchoolName": "St Michael's Church of England High School",
"Postcode": "L237UL"
},
{
"SchoolName": "Valley Park Community School",
"Postcode": "S141SL"
},
{
"SchoolName": "Stokesay Primary School",
"Postcode": "SY79NW"
},
{
"SchoolName": "Marlwood School",
"Postcode": "BS353LA"
},
{
"SchoolName": "Kinver High School and Sixth Form",
"Postcode": "DY76AA"
},
{
"SchoolName": "Ounsdale High School",
"Postcode": "WV58BJ"
},
{
"SchoolName": "Three Peaks Primary Academy",
"Postcode": "B774HN"
},
{
"SchoolName": "Ash Trees Academy",
"Postcode": "TS232BU"
},
{
"SchoolName": "Whitfield Valley Primary Academy",
"Postcode": "ST66TD"
},
{
"SchoolName": "St Lawrence Primary School",
"Postcode": "KT245JP"
},
{
"SchoolName": "The Globe Primary Academy",
"Postcode": "BN159NZ"
},
{
"SchoolName": "St Peter's Church of England Middle School",
"Postcode": "SL42QY"
},
{
"SchoolName": "St Aidan's Primary School - A Church of England Academy",
"Postcode": "BB24EW"
},
{
"SchoolName": "Wicklea Academy",
"Postcode": "BS44HR"
},
{
"SchoolName": "Trinity Church of England Primary School",
"Postcode": "BR28LD"
},
{
"SchoolName": "Gatehouse ACE Academy",
"Postcode": "EX70LW"
},
{
"SchoolName": "Mexborough Academy",
"Postcode": "S649SD"
},
{
"SchoolName": "Parkwood Academy",
"Postcode": "CM12DX"
},
{
"SchoolName": "Wensum Junior School",
"Postcode": "NR24HB"
},
{
"SchoolName": "Eaton Primary School",
"Postcode": "NR46HS"
},
{
"SchoolName": "Stradbroke Primary Academy",
"Postcode": "NR316LZ"
},
{
"SchoolName": "Cobholm Primary Academy",
"Postcode": "NR310BA"
},
{
"SchoolName": "St Michael's Church of England Academy",
"Postcode": "PE305BN"
},
{
"SchoolName": "Yeo Moor Primary School",
"Postcode": "BS216JL"
},
{
"SchoolName": "Tickenham Church of England Primary School",
"Postcode": "BS216RG"
},
{
"SchoolName": "The Oakwood Academy",
"Postcode": "NG59PJ"
},
{
"SchoolName": "Millbrook Primary School",
"Postcode": "OX127LB"
},
{
"SchoolName": "Deeplish Primary Academy",
"Postcode": "OL111LT"
},
{
"SchoolName": "Maltby Manor Academy",
"Postcode": "S668JN"
},
{
"SchoolName": "Longlands Primary School",
"Postcode": "TF91QU"
},
{
"SchoolName": "Ian Ramsey Church of England Academy",
"Postcode": "TS197AJ"
},
{
"SchoolName": "Our Lady & St. Bede Catholic Academy",
"Postcode": "TS190QH"
},
{
"SchoolName": "Coupals Primary Academy",
"Postcode": "CB90LB"
},
{
"SchoolName": "Castle Hill Infant School",
"Postcode": "IP16QD"
},
{
"SchoolName": "Castle Hill Junior School",
"Postcode": "IP16QD"
},
{
"SchoolName": "Dixons Manningham Academy",
"Postcode": "BD88HY"
},
{
"SchoolName": "Riverbank School",
"Postcode": "CV32QD"
},
{
"SchoolName": "Outwood Academy Newbold",
"Postcode": "S418BA"
},
{
"SchoolName": "The Grange School",
"Postcode": "BH233AU"
},
{
"SchoolName": "Longwood Primary Academy",
"Postcode": "CM187RQ"
},
{
"SchoolName": "Abbotsweld Primary School",
"Postcode": "CM186TE"
},
{
"SchoolName": "Latton Green Primary Academy",
"Postcode": "CM187HT"
},
{
"SchoolName": "The Young People's Academy",
"Postcode": "UB78AB"
},
{
"SchoolName": "Green Gates Academy",
"Postcode": "TS190JD"
},
{
"SchoolName": "Westlands Academy",
"Postcode": "TS179RA"
},
{
"SchoolName": "St Edward's Catholic Primary School",
"Postcode": "ME121BW"
},
{
"SchoolName": "St James' Church of England Academy",
"Postcode": "HU76BD"
},
{
"SchoolName": "Ingoldsby Academy",
"Postcode": "NG334HA"
},
{
"SchoolName": "Thomas Middlecott Academy",
"Postcode": "PE201JS"
},
{
"SchoolName": "Newall Green High School",
"Postcode": "M232SX"
},
{
"SchoolName": "Brotherton and Byram Community Primary Academy",
"Postcode": "WF119HQ"
},
{
"SchoolName": "UTC@harbourside",
"Postcode": "BN90DF"
},
{
"SchoolName": "Stalham High School",
"Postcode": "NR129DG"
},
{
"SchoolName": "Rosslyn Park Primary and Nursery School",
"Postcode": "NG86DD"
},
{
"SchoolName": "Brocklewood Primary and Nursery School",
"Postcode": "NG83AL"
},
{
"SchoolName": "The Bramble Academy",
"Postcode": "NG198DF"
},
{
"SchoolName": "Outwood Academy Bydales",
"Postcode": "TS116AR"
},
{
"SchoolName": "Kentmere Primary Academy",
"Postcode": "OL129EE"
},
{
"SchoolName": "Westwood Academy",
"Postcode": "OL96BH"
},
{
"SchoolName": "High Hazels Nursery Infant School",
"Postcode": "S94RP"
},
{
"SchoolName": "High Hazels Junior School",
"Postcode": "S94RP"
},
{
"SchoolName": "Glemsford Primary Academy",
"Postcode": "CO107RF"
},
{
"SchoolName": "Stone Lodge Academy",
"Postcode": "IP29HW"
},
{
"SchoolName": "Linden Road Academy and Hearing Impaired Base",
"Postcode": "M346EF"
},
{
"SchoolName": "Airedale Junior School",
"Postcode": "WF103EP"
},
{
"SchoolName": "All Saints National Academy",
"Postcode": "WS33LP"
},
{
"SchoolName": "Big Creative Independent School",
"Postcode": "E175SD"
},
{
"SchoolName": "Cutnall Green CofE First",
"Postcode": "WR90PH"
},
{
"SchoolName": "St Ambrose Catholic Primary",
"Postcode": "DY101RP"
},
{
"SchoolName": "Hagley Catholic High School",
"Postcode": "DY82XL"
},
{
"SchoolName": "St Clement's CofE Primary",
"Postcode": "WR25NS"
},
{
"SchoolName": "St Wulstan's Catholic Primary School",
"Postcode": "DY138TX"
},
{
"SchoolName": "Manchester Road Primary Academy",
"Postcode": "M436GD"
},
{
"SchoolName": "Queen Eleanor's Church of England School",
"Postcode": "GU27SD"
},
{
"SchoolName": "Cuddington Croft Primary School",
"Postcode": "SM27NA"
},
{
"SchoolName": "Blackfriars School",
"Postcode": "ST52TF"
},
{
"SchoolName": "Coppice Academy",
"Postcode": "ST52EY"
},
{
"SchoolName": "Glascote Academy",
"Postcode": "B772EA"
},
{
"SchoolName": "The Lacon Childe School",
"Postcode": "DY148PE"
},
{
"SchoolName": "St Nicholas Church of England Primary School",
"Postcode": "LE157DL"
},
{
"SchoolName": "Ketton Church of England Primary School",
"Postcode": "PE93TE"
},
{
"SchoolName": "Whissendine Church of England Primary School",
"Postcode": "LE157ET"
},
{
"SchoolName": "St Alban's CofE (Aided) Primary School",
"Postcode": "S661EU"
},
{
"SchoolName": "Saint Paulinus Primary Catholic Voluntary Academy",
"Postcode": "TS148DN"
},
{
"SchoolName": "Saint Joseph's Primary Catholic Voluntary Academy",
"Postcode": "TS134PZ"
},
{
"SchoolName": "Saint Bede's Catholic VA Primary School",
"Postcode": "TS116AE"
},
{
"SchoolName": "St Nicholas CofE Primary School",
"Postcode": "OX129RY"
},
{
"SchoolName": "St Philip Neri With St Bede Catholic Voluntary Academy",
"Postcode": "NG196AA"
},
{
"SchoolName": "Loddington CofE (VA) Primary School",
"Postcode": "NN141LA"
},
{
"SchoolName": "Great Addington CofE Primary School",
"Postcode": "NN144BS"
},
{
"SchoolName": "Roseberry Academy",
"Postcode": "TS96EP"
},
{
"SchoolName": "All Saints Academy",
"Postcode": "PE339QJ"
},
{
"SchoolName": "Clenchwarton Community Primary School",
"Postcode": "PE344DT"
},
{
"SchoolName": "The Howard School",
"Postcode": "ME80BX"
},
{
"SchoolName": "Brompton-Westbrook Primary School",
"Postcode": "ME75DQ"
},
{
"SchoolName": "Higham-on-the-Hill Church of England Primary School",
"Postcode": "CV136AJ"
},
{
"SchoolName": "The Grove Primary School",
"Postcode": "LE130HN"
},
{
"SchoolName": "St John Fisher Catholic Voluntary Academy",
"Postcode": "WF134LL"
},
{
"SchoolName": "St Peter's Catholic Primary School",
"Postcode": "ME101UJ"
},
{
"SchoolName": "More Park Catholic Primary School",
"Postcode": "ME196HN"
},
{
"SchoolName": "Fawley Infant School",
"Postcode": "SO451EA"
},
{
"SchoolName": "Blackfield Primary School",
"Postcode": "SO451XA"
},
{
"SchoolName": "Saxon Mount School",
"Postcode": "TN388HH"
},
{
"SchoolName": "Torfield School",
"Postcode": "TN343JT"
},
{
"SchoolName": "St Joseph's RC Primary School",
"Postcode": "DY82DT"
},
{
"SchoolName": "St Joseph's Catholic Primary School, A Voluntary Academy",
"Postcode": "NG209RP"
},
{
"SchoolName": "Sacred Heart Catholic Voluntary Academy",
"Postcode": "HX61BL"
},
{
"SchoolName": "St Malachy's Catholic Primary School, A Voluntary Academy",
"Postcode": "HX28JY"
},
{
"SchoolName": "St Vincent's Catholic Primary School",
"Postcode": "SE94JR"
},
{
"SchoolName": "St Philomena's Primary School",
"Postcode": "BR54DR"
},
{
"SchoolName": "Darwen, St Barnabas CofE Primary Academy",
"Postcode": "BB32JA"
},
{
"SchoolName": "Our Lady of Fatima Catholic Primary School",
"Postcode": "B178TR"
},
{
"SchoolName": "Coritani Academy",
"Postcode": "DN157RW"
},
{
"SchoolName": "St Giles' and St George's Church of England Academy",
"Postcode": "ST52NB"
},
{
"SchoolName": "The Brookfield School",
"Postcode": "HR49NG"
},
{
"SchoolName": "Bramley Grange Primary School",
"Postcode": "S662SY"
},
{
"SchoolName": "St Mary's RC Primary School",
"Postcode": "DY52TH"
},
{
"SchoolName": "Doulton House School",
"Postcode": "NG349SJ"
},
{
"SchoolName": "Landau Forte Academy Tamworth Sixth Form",
"Postcode": "B798AA"
},
{
"SchoolName": "Pye Green Academy",
"Postcode": "WS124RT"
},
{
"SchoolName": "Wordsworth Primary School",
"Postcode": "SO155LH"
},
{
"SchoolName": "Handsworth Grange Community Sports College",
"Postcode": "S139HJ"
},
{
"SchoolName": "Filby Primary School",
"Postcode": "NR293HJ"
},
{
"SchoolName": "St Richard's Catholic Primary School",
"Postcode": "CT161EZ"
},
{
"SchoolName": "Castle View School",
"Postcode": "SS87FH"
},
{
"SchoolName": "Workington Academy",
"Postcode": "CA144EB"
},
{
"SchoolName": "University of Cambridge Primary School",
"Postcode": "CB30QZ"
},
{
"SchoolName": "Homeschool",
"Postcode": "WS100GB"
},
{
"SchoolName": "High Peak School",
"Postcode": "UB70AE"
},
{
"SchoolName": "Maltese Road Primary School",
"Postcode": "CM12PA"
},
{
"SchoolName": "<NAME>",
"Postcode": "CO45PA"
},
{
"SchoolName": "Lyde Green Primary School",
"Postcode": "BS167AQ"
},
{
"SchoolName": "Cranbrook Education Campus",
"Postcode": "EX57EE"
},
{
"SchoolName": "School for Inspiring Talents",
"Postcode": "TQ126NQ"
},
{
"SchoolName": "St Richard's Church of England Primary School",
"Postcode": "TW136UN"
},
{
"SchoolName": "Focus School - Biggleswade Campus",
"Postcode": "SG180EP"
},
{
"SchoolName": "St Chad's Church of England Primary School",
"Postcode": "LS165QR"
},
{
"SchoolName": "Airedale Infant School",
"Postcode": "WF103QJ"
},
{
"SchoolName": "Axminster Community Primary Academy",
"Postcode": "EX135BU"
},
{
"SchoolName": "Marshwood CofE Primary Academy",
"Postcode": "DT65QA"
},
{
"SchoolName": "Mrs Ethelston's CofE Primary Academy",
"Postcode": "DT73TT"
},
{
"SchoolName": "Queen Elizabeth's School",
"Postcode": "BH214DT"
},
{
"SchoolName": "St Andrew's CofE Primary Academy",
"Postcode": "EX137BJ"
},
{
"SchoolName": "Tintagel Primary School",
"Postcode": "PL340DU"
},
{
"SchoolName": "Chislehurst Church of England Primary",
"Postcode": "BR75PQ"
},
{
"SchoolName": "Isambard Brunel Junior School",
"Postcode": "PO27HX"
},
{
"SchoolName": "Newbridge Junior School",
"Postcode": "PO27RW"
},
{
"SchoolName": "Our Lady of Hartley Catholic Primary School, Hartley, Longfield",
"Postcode": "DA38BL"
},
{
"SchoolName": "Pond Meadow School",
"Postcode": "GU11DR"
},
{
"SchoolName": "Dartford Primary Academy",
"Postcode": "DA11SQ"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "BR35DE"
},
{
"SchoolName": "Harworth CofE Academy",
"Postcode": "DN118JT"
},
{
"SchoolName": "Anston Greenlands Primary School",
"Postcode": "S254HD"
},
{
"SchoolName": "Widnes Academy",
"Postcode": "WA80EL"
},
{
"SchoolName": "Dalton Listerdale Academy",
"Postcode": "S653HN"
},
{
"SchoolName": "Dovedale Primary School",
"Postcode": "NG103HU"
},
{
"SchoolName": "Sparken Hill Academy",
"Postcode": "S801AW"
},
{
"SchoolName": "Sawley Infant and Nursery School",
"Postcode": "NG103DQ"
},
{
"SchoolName": "Sawley Junior School",
"Postcode": "NG103DQ"
},
{
"SchoolName": "Shardlow Primary School",
"Postcode": "DE722GR"
},
{
"SchoolName": "St Mary Magdalene CofE Primary School",
"Postcode": "NG172HR"
},
{
"SchoolName": "Burton End Primary Academy",
"Postcode": "CB99DE"
},
{
"SchoolName": "Minchinhampton Primary Academy",
"Postcode": "GL69BP"
},
{
"SchoolName": "Lansdowne Primary School",
"Postcode": "ME103BH"
},
{
"SchoolName": "Drapers' Maylands Primary School",
"Postcode": "RM39XR"
},
{
"SchoolName": "Easton Primary School",
"Postcode": "IP130ED"
},
{
"SchoolName": "Wickham Market Primary School",
"Postcode": "IP130RP"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "CB75AA"
},
{
"SchoolName": "Stoke Community School",
"Postcode": "ME39SL"
},
{
"SchoolName": "Leiston Primary School",
"Postcode": "IP164JQ"
},
{
"SchoolName": "Focus School, York Campus",
"Postcode": "YO232QA"
},
{
"SchoolName": "Manor Farm Academy",
"Postcode": "LN69ST"
},
{
"SchoolName": "NAS Church Lawton School",
"Postcode": "ST73EL"
},
{
"SchoolName": "Impact Independent School",
"Postcode": "WS100JS"
},
{
"SchoolName": "Rosedale Primary School",
"Postcode": "UB32SE"
},
{
"SchoolName": "Bosco Centre College",
"Postcode": "SE164RS"
},
{
"SchoolName": "Springwell Special Academy",
"Postcode": "S712AY"
},
{
"SchoolName": "Springwell Alternative Academy",
"Postcode": "S712AY"
},
{
"SchoolName": "Tauheedul Islam Girls' High School",
"Postcode": "BB27AD"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "BR13JQ"
},
{
"SchoolName": "St Mark's Church of England Primary School",
"Postcode": "BR20QR"
},
{
"SchoolName": "Wistaston Church Lane Academy",
"Postcode": "CW28EZ"
},
{
"SchoolName": "Immaculate Conception Catholic Primary",
"Postcode": "S213YB"
},
{
"SchoolName": "Ellowes Hall Sports College",
"Postcode": "DY32JH"
},
{
"SchoolName": "Northwick Park Primary School",
"Postcode": "SS89SU"
},
{
"SchoolName": "Katherine Semar Junior School",
"Postcode": "CB114DU"
},
{
"SchoolName": "Mildmay Junior School",
"Postcode": "CM28AU"
},
{
"SchoolName": "Katherine Semar Infant School",
"Postcode": "CB114DU"
},
{
"SchoolName": "Hardwicke Parochial Academy",
"Postcode": "GL24QG"
},
{
"SchoolName": "Northwold Primary School",
"Postcode": "E58RN"
},
{
"SchoolName": "Pyrgo Priory Primary School",
"Postcode": "RM39RT"
},
{
"SchoolName": "Shorne Church of England Voluntary Controlled Primary School",
"Postcode": "DA123DU"
},
{
"SchoolName": "St Botolph's Church of England Primary School",
"Postcode": "DA119PL"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Northfleet",
"Postcode": "DA119QZ"
},
{
"SchoolName": "The Banovallum School",
"Postcode": "LN96DA"
},
{
"SchoolName": "St Silas Church of England Primary School",
"Postcode": "L83TP"
},
{
"SchoolName": "Howard Junior School",
"Postcode": "PE304QJ"
},
{
"SchoolName": "Mundford Church of England Primary School",
"Postcode": "IP265ED"
},
{
"SchoolName": "Sevenhills Academy",
"Postcode": "DN331NU"
},
{
"SchoolName": "Radford Primary School Academy",
"Postcode": "NG73FL"
},
{
"SchoolName": "Trinity Croft CofE Junior and Infant School",
"Postcode": "S653QJ"
},
{
"SchoolName": "Thrybergh Fullerton Church of England Primary School",
"Postcode": "S654BL"
},
{
"SchoolName": "Flanderwell Primary School",
"Postcode": "S662JF"
},
{
"SchoolName": "Aston All Saints CofE (A) Primary School",
"Postcode": "S262BL"
},
{
"SchoolName": "Cliff Lane Primary School",
"Postcode": "IP30PJ"
},
{
"SchoolName": "Ravenscote Junior School",
"Postcode": "GU169RE"
},
{
"SchoolName": "Whyteleafe Primary School",
"Postcode": "CR30AA"
},
{
"SchoolName": "Holy Family and St Michael's Catholic Primary School, A Voluntary Academy",
"Postcode": "WF82HN"
},
{
"SchoolName": "English Martyrs Catholic Primary School, A Voluntary Academy",
"Postcode": "WF29DD"
},
{
"SchoolName": "Bridgewater High School",
"Postcode": "WA43AE"
},
{
"SchoolName": "Rose Green Junior School",
"Postcode": "PO213NA"
},
{
"SchoolName": "St Luke's CofE Primary School",
"Postcode": "SL67EG"
},
{
"SchoolName": "Burchetts Green CofE Infants' School",
"Postcode": "SL66QZ"
},
{
"SchoolName": "Training and Skills Centre",
"Postcode": "BD39BE"
},
{
"SchoolName": "One In A Million Alternative Education",
"Postcode": "BD87DX"
},
{
"SchoolName": "The Bridge Integrated Learning Space",
"Postcode": "N79LD"
},
{
"SchoolName": "Pentland Field School",
"Postcode": "UB108TS"
},
{
"SchoolName": "Applied Educational Solutions",
"Postcode": "EN37HG"
},
{
"SchoolName": "Riverbank Primary School",
"Postcode": "HX64DH"
},
{
"SchoolName": "Green Meadow Primary School",
"Postcode": "B294EE"
},
{
"SchoolName": "Baines' Endowed Primary School & Children's Centre, A Church of England Academy",
"Postcode": "FY44DJ"
},
{
"SchoolName": "Midfield Primary School",
"Postcode": "BR53EG"
},
{
"SchoolName": "Boughton Heath Academy",
"Postcode": "CH35RW"
},
{
"SchoolName": "Tywardreath School",
"Postcode": "PL242PT"
},
{
"SchoolName": "The Hurlingham Academy",
"Postcode": "SW63ED"
},
{
"SchoolName": "Meadowbrook Primary School",
"Postcode": "BS328TA"
},
{
"SchoolName": "The Avenue Primary School and Children's Centre",
"Postcode": "BA129AA"
},
{
"SchoolName": "Emslie Morgan Academy",
"Postcode": "CH458RE"
},
{
"SchoolName": "Mill View Primary School",
"Postcode": "CH21HB"
},
{
"SchoolName": "Antony Church of England School",
"Postcode": "PL113AD"
},
{
"SchoolName": "Stanwix School",
"Postcode": "CA39DW"
},
{
"SchoolName": "Kingswear Community Primary School",
"Postcode": "TQ60BJ"
},
{
"SchoolName": "Woodham Ley Primary School",
"Postcode": "SS74DN"
},
{
"SchoolName": "Thundersley Primary School",
"Postcode": "SS73PT"
},
{
"SchoolName": "West View Primary School",
"Postcode": "TS249BP"
},
{
"SchoolName": "Ursuline College",
"Postcode": "CT88LX"
},
{
"SchoolName": "Stella Maris Catholic Primary School",
"Postcode": "CT195BY"
},
{
"SchoolName": "Townlands Church of England Primary School",
"Postcode": "LE97FF"
},
{
"SchoolName": "Fairfield Primary School",
"Postcode": "DN333AE"
},
{
"SchoolName": "Brambleside Primary School",
"Postcode": "NN169JG"
},
{
"SchoolName": "Our Lady of Walsingham Catholic Primary School",
"Postcode": "NN171EE"
},
{
"SchoolName": "St Edward's Catholic Primary School",
"Postcode": "NN156PT"
},
{
"SchoolName": "St Thomas More Catholic Primary School",
"Postcode": "NN157JZ"
},
{
"SchoolName": "Cleobury Mortimer Primary School",
"Postcode": "DY148PE"
},
{
"SchoolName": "Clee Hill Community Academy",
"Postcode": "SY83NE"
},
{
"SchoolName": "Charborough Road Primary School",
"Postcode": "BS347RA"
},
{
"SchoolName": "Thomas Gainsborough School",
"Postcode": "CO100NH"
},
{
"SchoolName": "Pakefield Primary School",
"Postcode": "NR337AQ"
},
{
"SchoolName": "St John's Church of England Primary School, Abram",
"Postcode": "WN25QE"
},
{
"SchoolName": "Hindley Green Community Primary School",
"Postcode": "WN24SS"
},
{
"SchoolName": "St Peter's Church of England Primary School, Hindley",
"Postcode": "WN23HY"
},
{
"SchoolName": "St John's Church of England Primary School, Hindley Green",
"Postcode": "WN24SD"
},
{
"SchoolName": "St Mark's CofE Junior School, Salisbury",
"Postcode": "SP13BL"
},
{
"SchoolName": "Wyndham Park Infants' School",
"Postcode": "SP13BL"
},
{
"SchoolName": "Exeter House Special School",
"Postcode": "SP13BL"
},
{
"SchoolName": "Northwood Park Primary School",
"Postcode": "WV108DS"
},
{
"SchoolName": "St Richard's VC Academy",
"Postcode": "HU95TE"
},
{
"SchoolName": "South Borough Primary School",
"Postcode": "ME156TL"
},
{
"SchoolName": "Thames View Junior School",
"Postcode": "IG110LG"
},
{
"SchoolName": "Oasis Academy Brislington",
"Postcode": "BS45EY"
},
{
"SchoolName": "Peover Superior Endowed Primary School",
"Postcode": "WA168TU"
},
{
"SchoolName": "All Saints CE Junior School",
"Postcode": "TN355JU"
},
{
"SchoolName": "Stambridge Primary Academy",
"Postcode": "SS42AP"
},
{
"SchoolName": "St James Church of England Primary School",
"Postcode": "CM187RH"
},
{
"SchoolName": "M<NAME> Church of England Primary School",
"Postcode": "CO111LS"
},
{
"SchoolName": "Charlton Church of England Primary School",
"Postcode": "CT162LX"
},
{
"SchoolName": "Lydd Primary School",
"Postcode": "TN299HW"
},
{
"SchoolName": "Tuckswood Academy",
"Postcode": "NR46BP"
},
{
"SchoolName": "Middleton Church of England Primary Academy",
"Postcode": "PE321SA"
},
{
"SchoolName": "Swaffham CofE VC Junior Academy",
"Postcode": "PE377EA"
},
{
"SchoolName": "Victoria Primary School",
"Postcode": "NG21FX"
},
{
"SchoolName": "Sir Bernard Lovell Academy",
"Postcode": "BS308TS"
},
{
"SchoolName": "Angel Oak Academy",
"Postcode": "SE156FL"
},
{
"SchoolName": "Highfield South Farnham School",
"Postcode": "GU98QH"
},
{
"SchoolName": "Saltley Academy",
"Postcode": "B95RX"
},
{
"SchoolName": "St Columba's Catholic Primary School",
"Postcode": "B458TD"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "B301HN"
},
{
"SchoolName": "King's Park Academy",
"Postcode": "BH14NB"
},
{
"SchoolName": "St Andrew and St Francis CofE Primary School",
"Postcode": "NW25PE"
},
{
"SchoolName": "Gorsefield Primary School",
"Postcode": "M264DW"
},
{
"SchoolName": "St Giles Church of England Primary School",
"Postcode": "DE43DD"
},
{
"SchoolName": "SchoolsCompany North Devon Academy",
"Postcode": "EX313TD"
},
{
"SchoolName": "SchoolsCompany Central Devon Academy",
"Postcode": "EX27LB"
},
{
"SchoolName": "SchoolsCompany South and West Devon Academy",
"Postcode": "TQ96JD"
},
{
"SchoolName": "SHC School",
"Postcode": "IG118AL"
},
{
"SchoolName": "Harpurhey Alternative Provision School",
"Postcode": "M98AE"
},
{
"SchoolName": "Roseacres Primary School",
"Postcode": "CM226QY"
},
{
"SchoolName": "Hinckley Academy and John Cleveland Sixth Form Centre",
"Postcode": "LE101LE"
},
{
"SchoolName": "The Sydney Russell School",
"Postcode": "RM95QT"
},
{
"SchoolName": "Kirk Sandall Junior School",
"Postcode": "DN31JG"
},
{
"SchoolName": "Langford Primary School",
"Postcode": "SW62LG"
},
{
"SchoolName": "Manor Community Academy",
"Postcode": "TS253PS"
},
{
"SchoolName": "Marsden Junior School",
"Postcode": "HD76EP"
},
{
"SchoolName": "Millbridge Junior Infant and Nursery School",
"Postcode": "WF156HU"
},
{
"SchoolName": "St James' CofE Primary School Gorton",
"Postcode": "M188LW"
},
{
"SchoolName": "Godmanchester Bridge Academy",
"Postcode": "PE292AG"
},
{
"SchoolName": "Peterhouse CofE Primary Academy",
"Postcode": "NR317BY"
},
{
"SchoolName": "Stamshaw Junior School",
"Postcode": "PO28QH"
},
{
"SchoolName": "Hillside High School",
"Postcode": "L209NU"
},
{
"SchoolName": "Litherland High School",
"Postcode": "L210DB"
},
{
"SchoolName": "Castle Primary School",
"Postcode": "TA146RE"
},
{
"SchoolName": "Hunts Grove Primary Academy",
"Postcode": "GL22FX"
},
{
"SchoolName": "Kent House Hospital School",
"Postcode": "BR54EP"
},
{
"SchoolName": "Q3 Academy Langley",
"Postcode": "B688ED"
},
{
"SchoolName": "Lawley Village Academy",
"Postcode": "TF42SG"
},
{
"SchoolName": "The King's CofE (VA) School",
"Postcode": "ST71DP"
},
{
"SchoolName": "Phoenixplace",
"Postcode": "SE50NA"
},
{
"SchoolName": "Reydon Primary School",
"Postcode": "IP186QB"
},
{
"SchoolName": "Greenacre School",
"Postcode": "S706RG"
},
{
"SchoolName": "Fairfield High School",
"Postcode": "BS79NL"
},
{
"SchoolName": "Four Acres Academy",
"Postcode": "BS138RB"
},
{
"SchoolName": "<NAME>'s CofE Junior School",
"Postcode": "CB74RB"
},
{
"SchoolName": "Hungerford Primary Academy",
"Postcode": "CW15HA"
},
{
"SchoolName": "Mevagissey Community Primary School",
"Postcode": "PL266TD"
},
{
"SchoolName": "Carclaze Community Primary School",
"Postcode": "PL253TF"
},
{
"SchoolName": "Lazonby C of E Primary School",
"Postcode": "CA101BL"
},
{
"SchoolName": "Ridgewood High School",
"Postcode": "DY83NQ"
},
{
"SchoolName": "Silverdale Primary Academy",
"Postcode": "TN377EA"
},
{
"SchoolName": "Hatfield Heath Primary School",
"Postcode": "CM227EA"
},
{
"SchoolName": "Waterman Primary Academy",
"Postcode": "SS41QF"
},
{
"SchoolName": "St Thomas More Catholic Comprehensive School",
"Postcode": "SE92SU"
},
{
"SchoolName": "West Park Primary School",
"Postcode": "TS260BU"
},
{
"SchoolName": "Ryefield Primary School",
"Postcode": "UB109DE"
},
{
"SchoolName": "Newland St John's Church of England Academy",
"Postcode": "HU67LS"
},
{
"SchoolName": "Stockwell Academy",
"Postcode": "HU95HY"
},
{
"SchoolName": "St Peter and St Paul Church of England Voluntary Controlled Primary School",
"Postcode": "IP256SW"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "HG13DT"
},
{
"SchoolName": "Ringstead Church of England Primary School",
"Postcode": "NN144DH"
},
{
"SchoolName": "St James Church of England Primary School",
"Postcode": "NN57AG"
},
{
"SchoolName": "Milton Parochial Primary School",
"Postcode": "NN73AT"
},
{
"SchoolName": "Greenfields Specialist School for Communication",
"Postcode": "NN38XS"
},
{
"SchoolName": "Meadowbrook College",
"Postcode": "OX30PG"
},
{
"SchoolName": "Gatcombe Park Primary School",
"Postcode": "PO20UR"
},
{
"SchoolName": "Maltby Lilly Hall Academy",
"Postcode": "S668AU"
},
{
"SchoolName": "Dinnington High School",
"Postcode": "S252NZ"
},
{
"SchoolName": "Ravenfield Primary Academy",
"Postcode": "S654LZ"
},
{
"SchoolName": "Castle Primary School",
"Postcode": "ST74NE"
},
{
"SchoolName": "Esher Church School",
"Postcode": "KT109DU"
},
{
"SchoolName": "Larkswood Primary School",
"Postcode": "E48ET"
},
{
"SchoolName": "The Sir John Colfox Academy",
"Postcode": "DT63DT"
},
{
"SchoolName": "Dell Primary School",
"Postcode": "NR339NU"
},
{
"SchoolName": "Hackney City Farm",
"Postcode": "E28QA"
},
{
"SchoolName": "EBN Academy Phase 2",
"Postcode": "B357PR"
},
{
"SchoolName": "Buckland St Mary Church of England Primary School",
"Postcode": "TA203SJ"
},
{
"SchoolName": "Chase High School",
"Postcode": "SS00RT"
},
{
"SchoolName": "Keresley Newland Primary Academy",
"Postcode": "CV78JZ"
},
{
"SchoolName": "Kingsbury School - A Specialist Science and Mathematics Academy",
"Postcode": "B782LF"
},
{
"SchoolName": "Manorside Academy",
"Postcode": "BH124JG"
},
{
"SchoolName": "Rose Bridge Academy",
"Postcode": "WN13HD"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "CV100JX"
},
{
"SchoolName": "Walthamstow Primary Academy",
"Postcode": "E175DP"
},
{
"SchoolName": "South Devon UTC",
"Postcode": "TQ122QA"
},
{
"SchoolName": "Halley House School",
"Postcode": "E82DJ"
},
{
"SchoolName": "Kilburn Grange School",
"Postcode": "NW67UJ"
},
{
"SchoolName": "<NAME> V - The All Through Family School",
"Postcode": "B100HJ"
},
{
"SchoolName": "The Kensington School",
"Postcode": "W85HN"
},
{
"SchoolName": "Godinton Primary School",
"Postcode": "TN233JR"
},
{
"SchoolName": "Ad Astra Infant School",
"Postcode": "BH178AP"
},
{
"SchoolName": "Allenbourn Middle School",
"Postcode": "BH211PL"
},
{
"SchoolName": "<NAME> CofE Primary School",
"Postcode": "PE147NG"
},
{
"SchoolName": "Ashton West End Primary Academy",
"Postcode": "OL70BJ"
},
{
"SchoolName": "The Sir Donald Bailey Academy",
"Postcode": "NG244EP"
},
{
"SchoolName": "Brayford Academy",
"Postcode": "EX327QJ"
},
{
"SchoolName": "Canford Heath Infant School",
"Postcode": "BH178PJ"
},
{
"SchoolName": "Canford Heath Junior School",
"Postcode": "BH178PJ"
},
{
"SchoolName": "Castle Hill Primary School",
"Postcode": "KT91JE"
},
{
"SchoolName": "Castledon School",
"Postcode": "SS120PW"
},
{
"SchoolName": "Chilton Academy Primary School",
"Postcode": "CT110LQ"
},
{
"SchoolName": "Clutton Primary School",
"Postcode": "BS395RA"
},
{
"SchoolName": "Colehill First School",
"Postcode": "BH212LZ"
},
{
"SchoolName": "Corpus Christi Catholic Primary Academy",
"Postcode": "WV112LT"
},
{
"SchoolName": "Dilhorne Endowed CE (A) Primary School",
"Postcode": "ST102PF"
},
{
"SchoolName": "Dinnington Community Primary School",
"Postcode": "S252RE"
},
{
"SchoolName": "Elliston Primary Academy",
"Postcode": "DN357HT"
},
{
"SchoolName": "Ernehale Junior School",
"Postcode": "NG56TA"
},
{
"SchoolName": "Field View Primary School",
"Postcode": "WV147AE"
},
{
"SchoolName": "Frome Valley CofE VA First School",
"Postcode": "DT28WR"
},
{
"SchoolName": "Gillingham St Michael's Church of England Primary School",
"Postcode": "NR340HT"
},
{
"SchoolName": "Gnosall St Lawrence Coe Primary Academy",
"Postcode": "ST200ET"
},
{
"SchoolName": "Gooderstone Church of England Primary Academy",
"Postcode": "PE339BP"
},
{
"SchoolName": "Hambridge Community Primary School",
"Postcode": "TA100AZ"
},
{
"SchoolName": "Haughton St Giles CofE Primary Academy",
"Postcode": "ST189ET"
},
{
"SchoolName": "Hawes Down Infant School",
"Postcode": "BR40BA"
},
{
"SchoolName": "Hawes Down Junior School",
"Postcode": "BR40BA"
},
{
"SchoolName": "Hayeswood First School",
"Postcode": "BH212HN"
},
{
"SchoolName": "Haymoor Junior School",
"Postcode": "BH178WG"
},
{
"SchoolName": "Herringthorpe Junior School",
"Postcode": "S652JW"
},
{
"SchoolName": "Holy Rosary Catholic Primary School",
"Postcode": "WV12BS"
},
{
"SchoolName": "Huish Episcopi Primary School",
"Postcode": "TA109RW"
},
{
"SchoolName": "Isebrook SEN Cognition & Learning College",
"Postcode": "NN156PT"
},
{
"SchoolName": "Ivy Bank Primary School",
"Postcode": "SK118PB"
},
{
"SchoolName": "Keelby Primary Academy",
"Postcode": "DN418EF"
},
{
"SchoolName": "Merley First School",
"Postcode": "BH211SD"
},
{
"SchoolName": "Middlezoy Primary School",
"Postcode": "TA70NZ"
},
{
"SchoolName": "Milborne St Andrew First School",
"Postcode": "DT110JE"
},
{
"SchoolName": "Morley Newlands Academy",
"Postcode": "LS278PG"
},
{
"SchoolName": "Motcombe CofE VA Primary School",
"Postcode": "SP79NT"
},
{
"SchoolName": "Normanton Common Primary Academy",
"Postcode": "WF61QU"
},
{
"SchoolName": "Oakhill Church School",
"Postcode": "BA35AQ"
},
{
"SchoolName": "Othery Village School",
"Postcode": "TA70PX"
},
{
"SchoolName": "Our Lady and St Chad Catholic Academy",
"Postcode": "WV108BL"
},
{
"SchoolName": "Piddle Valley Church of England First School",
"Postcode": "DT27QL"
},
{
"SchoolName": "Piper Hill High School",
"Postcode": "M232YS"
},
{
"SchoolName": "Puddletown Church of England First School",
"Postcode": "DT28FZ"
},
{
"SchoolName": "Rye Community Primary School",
"Postcode": "TN317ND"
},
{
"SchoolName": "Saint Cecilia's Church of England School",
"Postcode": "SW185JR"
},
{
"SchoolName": "Sandbach Primary Academy",
"Postcode": "CW114NS"
},
{
"SchoolName": "Shaftesbury Church of England Primary School",
"Postcode": "SP78PZ"
},
{
"SchoolName": "St Alban's Catholic Primary School, A Voluntary Academy",
"Postcode": "SK103HJ"
},
{
"SchoolName": "St Benedict's Catholic Primary School",
"Postcode": "CV91PS"
},
{
"SchoolName": "Health Futures UTC",
"Postcode": "B708DJ"
},
{
"SchoolName": "St Benet Biscop Catholic Academy",
"Postcode": "NE226ED"
},
{
"SchoolName": "St Brigid's Catholic Primary School",
"Postcode": "B315AB"
},
{
"SchoolName": "St Christopher's Church of England School",
"Postcode": "GL73LA"
},
{
"SchoolName": "St Francis Catholic Primary School",
"Postcode": "CV128JN"
},
{
"SchoolName": "St Francis Catholic Primary School, South Ascot",
"Postcode": "SL59HG"
},
{
"SchoolName": "St Helen's Primary School",
"Postcode": "IP42LT"
},
{
"SchoolName": "St James Catholic Primary School",
"Postcode": "B459BN"
},
{
"SchoolName": "St John's Church of England First School, Wimborne",
"Postcode": "BH211BX"
},
{
"SchoolName": "St John's Primary Academy",
"Postcode": "WV112RF"
},
{
"SchoolName": "St Laurence CofE VA Primary School",
"Postcode": "NG101DR"
},
{
"SchoolName": "St Martin's Church of England Primary School",
"Postcode": "WV148BS"
},
{
"SchoolName": "Saint Mary's Catholic Primary School",
"Postcode": "CW121HT"
},
{
"SchoolName": "St Mary's Catholic Primary School, Wolverhampton",
"Postcode": "WV108PG"
},
{
"SchoolName": "St Matthew's Catholic Primary School",
"Postcode": "NE426EY"
},
{
"SchoolName": "St Michael's Church of England Middle School, Colehill",
"Postcode": "BH217AB"
},
{
"SchoolName": "St Paul's Catholic Primary School",
"Postcode": "B389JB"
},
{
"SchoolName": "St Paul's Catholic Primary School, A Voluntary Academy",
"Postcode": "SK121LY"
},
{
"SchoolName": "St Paul's Catholic Academy",
"Postcode": "NE236DB"
},
{
"SchoolName": "St Peter's Church of England Infant School, Alvescot",
"Postcode": "OX182PU"
},
{
"SchoolName": "St Peter's Catholic Academy",
"Postcode": "NE236DB"
},
{
"SchoolName": "St Thomas Aquinas Catholic School",
"Postcode": "B388AP"
},
{
"SchoolName": "St Thomas More Catholic School and Sixth Form College",
"Postcode": "CV107EX"
},
{
"SchoolName": "St Werburgh's CE (A) Primary School",
"Postcode": "ST102BA"
},
{
"SchoolName": "Sudell Primary School",
"Postcode": "BB33EB"
},
{
"SchoolName": "Tebay Primary School",
"Postcode": "CA103XB"
},
{
"SchoolName": "The Blake Church of England Primary School",
"Postcode": "OX283FR"
},
{
"SchoolName": "The FitzWimarc School",
"Postcode": "SS68EB"
},
{
"SchoolName": "The Oaks Primary School",
"Postcode": "IP20NR"
},
{
"SchoolName": "The Windsor Boys' School",
"Postcode": "SL45EH"
},
{
"SchoolName": "Tilney All Saints CofE Primary School",
"Postcode": "PE344RP"
},
{
"SchoolName": "Turnditch Church of England Primary School",
"Postcode": "DE562LH"
},
{
"SchoolName": "Umberleigh Primary Academy",
"Postcode": "EX379AD"
},
{
"SchoolName": "The Valley Primary School",
"Postcode": "ST103DQ"
},
{
"SchoolName": "Whitton Community Primary School",
"Postcode": "IP16ET"
},
{
"SchoolName": "W<NAME> Endowed Church of England Primary School",
"Postcode": "DE564EB"
},
{
"SchoolName": "Windhill21",
"Postcode": "CM232NE"
},
{
"SchoolName": "Windsor Girls' School",
"Postcode": "SL43RT"
},
{
"SchoolName": "Winterhill School",
"Postcode": "S612BD"
},
{
"SchoolName": "Witchampton Church of England First School",
"Postcode": "BH215AP"
},
{
"SchoolName": "Woodloes Primary School",
"Postcode": "CV345DF"
},
{
"SchoolName": "Woodseaves CE Primary Academy",
"Postcode": "ST200LB"
},
{
"SchoolName": "Yanwath Primary School",
"Postcode": "CA102LA"
},
{
"SchoolName": "Manor Primary School",
"Postcode": "WV149UQ"
},
{
"SchoolName": "Footsteps Trust",
"Postcode": "N170SL"
},
{
"SchoolName": "Hall Cliffe School",
"Postcode": "WF46BB"
},
{
"SchoolName": "Ellingham Hospital School",
"Postcode": "NR171AE"
},
{
"SchoolName": "The Kingston Academy",
"Postcode": "KT25PE"
},
{
"SchoolName": "Cambian Red Rose School",
"Postcode": "PR58LN"
},
{
"SchoolName": "Trinity Academy Newcastle",
"Postcode": "NE48XJ"
},
{
"SchoolName": "Lessness Heath Primary School",
"Postcode": "DA176HB"
},
{
"SchoolName": "Marton Primary Academy and Nursery",
"Postcode": "FY45LY"
},
{
"SchoolName": "St Leonard's Church of England Primary Academy",
"Postcode": "TN380NX"
},
{
"SchoolName": "Chigwell Primary Academy",
"Postcode": "IG76DW"
},
{
"SchoolName": "Holland Park Primary School",
"Postcode": "CO156NG"
},
{
"SchoolName": "Beaver Green Primary School",
"Postcode": "TN235DA"
},
{
"SchoolName": "The John Curwen Co-Operative Primary Academy",
"Postcode": "WF169BB"
},
{
"SchoolName": "Charnwood College",
"Postcode": "LE114SQ"
},
{
"SchoolName": "Trafalgar School",
"Postcode": "PO29RJ"
},
{
"SchoolName": "Green Wrythe Primary School",
"Postcode": "SM51JP"
},
{
"SchoolName": "Stifford Clays Primary School",
"Postcode": "RM162ST"
},
{
"SchoolName": "Normanton Junior Academy",
"Postcode": "WF61EY"
},
{
"SchoolName": "Cambian Home Tree School",
"Postcode": "PE140LP"
},
{
"SchoolName": "Staynor Hall Primary Academy",
"Postcode": "YO88GE"
},
{
"SchoolName": "Finberry Primary School",
"Postcode": "TN234QE"
},
{
"SchoolName": "Temple Learning Academy",
"Postcode": "LS150NW"
},
{
"SchoolName": "Dean Trust Ardwick",
"Postcode": "M130LF"
},
{
"SchoolName": "Maiden Erlegh School in Reading",
"Postcode": "RG15RQ"
},
{
"SchoolName": "Newlands Hey",
"Postcode": "L365SE"
},
{
"SchoolName": "Normandy Primary School",
"Postcode": "DA76QP"
},
{
"SchoolName": "Beddington Park Primary School",
"Postcode": "CR04UL"
},
{
"SchoolName": "Blackthorns Community Primary Academy",
"Postcode": "RH162UA"
},
{
"SchoolName": "Bowerhill Primary School",
"Postcode": "SN126YH"
},
{
"SchoolName": "Colkirk Church of England Primary Academy",
"Postcode": "NR217NW"
},
{
"SchoolName": "Cudham Church of England Primary School",
"Postcode": "TN163AX"
},
{
"SchoolName": "Deneholm Primary School",
"Postcode": "RM162SS"
},
{
"SchoolName": "Fair Field Junior School",
"Postcode": "WD78LU"
},
{
"SchoolName": "Finedon Infant School",
"Postcode": "NN95JG"
},
{
"SchoolName": "Finedon Mulso Church of England Junior School",
"Postcode": "NN95JT"
},
{
"SchoolName": "Greasbrough Primary School",
"Postcode": "S614RB"
},
{
"SchoolName": "Greenside Primary School",
"Postcode": "W129PT"
},
{
"SchoolName": "Greystoke Primary School",
"Postcode": "LE192GX"
},
{
"SchoolName": "Heaton Avenue Primary School",
"Postcode": "BD193AE"
},
{
"SchoolName": "Holmbush Primary Academy",
"Postcode": "BN436TN"
},
{
"SchoolName": "Holy Innocents Catholic Primary School",
"Postcode": "BR69JT"
},
{
"SchoolName": "Huntington Primary Academy",
"Postcode": "YO329QT"
},
{
"SchoolName": "Irthlingborough Infant School and Nursery",
"Postcode": "NN95TT"
},
{
"SchoolName": "Irthlingborough Junior School",
"Postcode": "NN95TX"
},
{
"SchoolName": "Melksham Oak Community School",
"Postcode": "SN126QZ"
},
{
"SchoolName": "Oare Church of England Primary School",
"Postcode": "SN84JL"
},
{
"SchoolName": "Ogbourne CofE Primary School",
"Postcode": "SN81SU"
},
{
"SchoolName": "Poppleton Ousebank Primary School",
"Postcode": "YO266JT"
},
{
"SchoolName": "Prestolee Primary School",
"Postcode": "M261HJ"
},
{
"SchoolName": "Rushey Mead Academy",
"Postcode": "LE47AN"
},
{
"SchoolName": "Sandhill Primary School",
"Postcode": "S720EQ"
},
{
"SchoolName": "Sculthorpe Church of England Primary Academy",
"Postcode": "NR219NQ"
},
{
"SchoolName": "Seend Church of England VA Primary School",
"Postcode": "SN126NJ"
},
{
"SchoolName": "Shaw Church of England Voluntary Controlled Primary School",
"Postcode": "SN128EQ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NN40PH"
},
{
"SchoolName": "St Francis Xavier Catholic Primary School",
"Postcode": "B694BA"
},
{
"SchoolName": "St George's Church of England Primary School, Semington",
"Postcode": "BA146LP"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "B675HX"
},
{
"SchoolName": "St Helen's Catholic Primary School",
"Postcode": "E138DW"
},
{
"SchoolName": "Our Lady and St Hubert's Catholic Primary School",
"Postcode": "B688ED"
},
{
"SchoolName": "St Joachim's RC Primary School",
"Postcode": "E163DT"
},
{
"SchoolName": "St Mary's Broughton Gifford Voluntary Controlled Church of England Primary School",
"Postcode": "SN128PR"
},
{
"SchoolName": "St Philip's Catholic Primary School",
"Postcode": "B663DU"
},
{
"SchoolName": "Stokesley School",
"Postcode": "TS95AL"
},
{
"SchoolName": "The Cardinal Vaughan Memorial RC School",
"Postcode": "W148BZ"
},
{
"SchoolName": "West Raynham Church of England Primary Academy",
"Postcode": "NR217HH"
},
{
"SchoolName": "Withernsea Primary School",
"Postcode": "HU192EG"
},
{
"SchoolName": "The Fermain Academy",
"Postcode": "SK118JG"
},
{
"SchoolName": "Rugby Free Primary School",
"Postcode": "CV230PD"
},
{
"SchoolName": "Rice Lane Primary School",
"Postcode": "L93BU"
},
{
"SchoolName": "Sidney Stringer Primary Academy",
"Postcode": "CV15LY"
},
{
"SchoolName": "Finham Park 2",
"Postcode": "CV49WT"
},
{
"SchoolName": "Elliott Hudson College",
"Postcode": "LS118PG"
},
{
"SchoolName": "Bolton UTC",
"Postcode": "BL35AG"
},
{
"SchoolName": "Channeling Positivity",
"Postcode": "NG21DP"
},
{
"SchoolName": "King Solomon International Business School",
"Postcode": "B74AA"
},
{
"SchoolName": "Grove House School",
"Postcode": "CM159DA"
},
{
"SchoolName": "Trumpington Community College",
"Postcode": "CB29FD"
},
{
"SchoolName": "The Ongar Academy",
"Postcode": "CM50GA"
},
{
"SchoolName": "Ermine Street Church Academy",
"Postcode": "PE284XG"
},
{
"SchoolName": "Camulos Academy",
"Postcode": "CO46AL"
},
{
"SchoolName": "Huntercombe Hospital School Norwich",
"Postcode": "NR105RH"
},
{
"SchoolName": "Oakwood Learning Centre",
"Postcode": "DL22UH"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "TW80GD"
},
{
"SchoolName": "Parkwood Hall Co-Operative Academy",
"Postcode": "BR88DR"
},
{
"SchoolName": "Kingston Community School",
"Postcode": "KT26EU"
},
{
"SchoolName": "Dovedale Community Primary School",
"Postcode": "L181JX"
},
{
"SchoolName": "Fairburn View Primary School, Castleford",
"Postcode": "WF103DB"
},
{
"SchoolName": "Turing House School",
"Postcode": "TW110LR"
},
{
"SchoolName": "South Wiltshire UTC",
"Postcode": "SP27HR"
},
{
"SchoolName": "Harington School",
"Postcode": "LE156RP"
},
{
"SchoolName": "Unity Community Primary",
"Postcode": "M74YE"
},
{
"SchoolName": "West Didsbury CE Primary School",
"Postcode": "M204ZA"
},
{
"SchoolName": "Manchester Senior Girls School",
"Postcode": "M74GB"
},
{
"SchoolName": "Eden Boys' School, Birmingham",
"Postcode": "B422SY"
},
{
"SchoolName": "Eden Girls' School, Slough",
"Postcode": "SL13DR"
},
{
"SchoolName": "Eden Boys' School, Preston",
"Postcode": "PR14BD"
},
{
"SchoolName": "Elsecar Holy Trinity CofE Primary Academy",
"Postcode": "S748HS"
},
{
"SchoolName": "Hoyland Springwood Primary School",
"Postcode": "S740ER"
},
{
"SchoolName": "Laithes Primary School",
"Postcode": "S713AF"
},
{
"SchoolName": "Burnt Oak Junior School",
"Postcode": "DA159DA"
},
{
"SchoolName": "Manor Park Primary Academy",
"Postcode": "B65UQ"
},
{
"SchoolName": "Ambleside CofE Primary School",
"Postcode": "LA229DH"
},
{
"SchoolName": "The Bromley-Pensnett Primary School",
"Postcode": "DY54PJ"
},
{
"SchoolName": "St Augustine's Catholic Primary School, A Voluntary Academy",
"Postcode": "WA72JJ"
},
{
"SchoolName": "Great Marsden St John's Primary School A Church of England Academy",
"Postcode": "BB90NX"
},
{
"SchoolName": "Hazel Leys Academy",
"Postcode": "NN180QF"
},
{
"SchoolName": "Phoenix St Peter Academy",
"Postcode": "NR330NE"
},
{
"SchoolName": "St Margaret's Primary Academy",
"Postcode": "NR324JF"
},
{
"SchoolName": "Sprites Primary Academy",
"Postcode": "IP20SA"
},
{
"SchoolName": "Sandhill View Academy",
"Postcode": "SR34EN"
},
{
"SchoolName": "The Trinity Church of England Primary Academy",
"Postcode": "SN102FH"
},
{
"SchoolName": "Marden Vale CofE Academy",
"Postcode": "SN119BD"
},
{
"SchoolName": "Bromley Beacon Academy",
"Postcode": "BR69BD"
},
{
"SchoolName": "Ivingswood Academy",
"Postcode": "HP52BY"
},
{
"SchoolName": "Horsford CofE VA Primary School",
"Postcode": "NR103ES"
},
{
"SchoolName": "Cardinal Wiseman Catholic School and Language College",
"Postcode": "CV22AJ"
},
{
"SchoolName": "George Hastwell School Special Academy",
"Postcode": "LA143LW"
},
{
"SchoolName": "Longdon Park School",
"Postcode": "DE656GU"
},
{
"SchoolName": "Yewdale School",
"Postcode": "CA27SD"
},
{
"SchoolName": "Shield Row Primary School",
"Postcode": "DH90HQ"
},
{
"SchoolName": "Dene House Primary School",
"Postcode": "SR85RL"
},
{
"SchoolName": "South Hetton Primary",
"Postcode": "DH62TJ"
},
{
"SchoolName": "Winter Gardens Academy",
"Postcode": "SS89QA"
},
{
"SchoolName": "Iceni Academy",
"Postcode": "CO29AZ"
},
{
"SchoolName": "Cherry Tree Primary School and Speech and Language Unit",
"Postcode": "CO20BG"
},
{
"SchoolName": "Orchard Primary Academy",
"Postcode": "WF128QT"
},
{
"SchoolName": "Holy Name Catholic Voluntary Academy",
"Postcode": "LS166NF"
},
{
"SchoolName": "Lingwood Primary Academy",
"Postcode": "NR134AZ"
},
{
"SchoolName": "Mangotsfield School",
"Postcode": "BS169LH"
},
{
"SchoolName": "Hoe Valley School",
"Postcode": "GU229AA"
},
{
"SchoolName": "UTC@MediacityUK",
"Postcode": "M502UW"
},
{
"SchoolName": "Huntercombe Hospital School Cotswold Spa",
"Postcode": "WR127DE"
},
{
"SchoolName": "Deer Park School",
"Postcode": "TW92RE"
},
{
"SchoolName": "Huntercombe Hospital School Stafford",
"Postcode": "ST199QT"
},
{
"SchoolName": "Silkmore Primary Academy",
"Postcode": "ST174EG"
},
{
"SchoolName": "Wolstanton High Academy",
"Postcode": "ST59JU"
},
{
"SchoolName": "Northfield St Nicholas Primary Academy",
"Postcode": "NR324HN"
},
{
"SchoolName": "Beccles Primary Academy",
"Postcode": "NR347AB"
},
{
"SchoolName": "Martlesham Primary Academy",
"Postcode": "IP124SS"
},
{
"SchoolName": "Salfords Primary School",
"Postcode": "RH15BQ"
},
{
"SchoolName": "St Michael's Church of England Academy",
"Postcode": "CV129DA"
},
{
"SchoolName": "St Oswald's CofE Academy",
"Postcode": "CV227DJ"
},
{
"SchoolName": "St Stephen's Catholic Primary School and Nursery, A Voluntary Academy",
"Postcode": "BD231PJ"
},
{
"SchoolName": "The Bicester School",
"Postcode": "OX262NS"
},
{
"SchoolName": "St Christopher's CEVCP School",
"Postcode": "IP288XQ"
},
{
"SchoolName": "Tudor Church of England Primary School, Sudbury",
"Postcode": "CO101NL"
},
{
"SchoolName": "Great Heath Academy",
"Postcode": "IP287PT"
},
{
"SchoolName": "Canon Sharples Church of England Primary School and Nursery",
"Postcode": "WN21BP"
},
{
"SchoolName": "Bowness Primary School",
"Postcode": "BL31BT"
},
{
"SchoolName": "Beckfoot Upper Heaton",
"Postcode": "BD96ND"
},
{
"SchoolName": "Woodlands Academy",
"Postcode": "BS148DQ"
},
{
"SchoolName": "Mead Road Infant School",
"Postcode": "BR76AD"
},
{
"SchoolName": "St Mary's Church of England Primary School St Neots",
"Postcode": "PE191NX"
},
{
"SchoolName": "The Netherhall School",
"Postcode": "CB18NN"
},
{
"SchoolName": "Lancot School",
"Postcode": "LU62AP"
},
{
"SchoolName": "Nantwich Primary Academy",
"Postcode": "CW55LX"
},
{
"SchoolName": "Delaware Primary Academy",
"Postcode": "PL189EN"
},
{
"SchoolName": "Whittle Academy",
"Postcode": "CV22LH"
},
{
"SchoolName": "Edenham High School",
"Postcode": "CR07NJ"
},
{
"SchoolName": "St Philip Howard Catholic Voluntary Academy",
"Postcode": "SK138DR"
},
{
"SchoolName": "Inkersall Primary Academy",
"Postcode": "S433SE"
},
{
"SchoolName": "Brixington Primary School",
"Postcode": "EX84JQ"
},
{
"SchoolName": "St Peter's Church of England (VA) Junior School",
"Postcode": "PL199HW"
},
{
"SchoolName": "Loders CofE Primary Academy",
"Postcode": "DT63SA"
},
{
"SchoolName": "Beechwood Church of England Primary School",
"Postcode": "DY27QA"
},
{
"SchoolName": "Takeley Primary School",
"Postcode": "CM61YE"
},
{
"SchoolName": "Dycorts School",
"Postcode": "RM39YA"
},
{
"SchoolName": "<NAME>",
"Postcode": "EN80JU"
},
{
"SchoolName": "Istead Rise Primary School",
"Postcode": "DA139HG"
},
{
"SchoolName": "Coal Clough Academy",
"Postcode": "BB114PF"
},
{
"SchoolName": "Castercliff Primary School",
"Postcode": "BB98JJ"
},
{
"SchoolName": "Bruntcliffe Academy",
"Postcode": "LS270LZ"
},
{
"SchoolName": "Marshland St James Primary and Nursery School",
"Postcode": "PE148EY"
},
{
"SchoolName": "Sewell Park Academy",
"Postcode": "NR34BX"
},
{
"SchoolName": "The Hewett Academy, Norwich",
"Postcode": "NR12PL"
},
{
"SchoolName": "Dundry Church of England Primary School",
"Postcode": "BS418JE"
},
{
"SchoolName": "EBOR Academy Filey",
"Postcode": "YO140HG"
},
{
"SchoolName": "Danesholme Junior Academy",
"Postcode": "NN189DT"
},
{
"SchoolName": "Prince William School",
"Postcode": "PE84BS"
},
{
"SchoolName": "St Brendan's Catholic Primary School",
"Postcode": "NN180AZ"
},
{
"SchoolName": "Forest Bridge School",
"Postcode": "SL61XA"
},
{
"SchoolName": "Fountain House Education Suite",
"Postcode": "LS116AW"
},
{
"SchoolName": "Newland College",
"Postcode": "HP84AD"
},
{
"SchoolName": "Beeston Fields Primary School and Nursery",
"Postcode": "NG92RG"
},
{
"SchoolName": "The Edge Academy",
"Postcode": "B312LQ"
},
{
"SchoolName": "Ranikhet Academy",
"Postcode": "RG304ED"
},
{
"SchoolName": "Wisewood Community Primary School",
"Postcode": "S64SD"
},
{
"SchoolName": "Lyndon School",
"Postcode": "B928EJ"
},
{
"SchoolName": "Tanners Brook Primary School",
"Postcode": "SO154PF"
},
{
"SchoolName": "Cecil Jones Academy",
"Postcode": "SS24BU"
},
{
"SchoolName": "Knutton St Marys CofE Academy",
"Postcode": "ST56EB"
},
{
"SchoolName": "Digitech Studio School",
"Postcode": "BS308XQ"
},
{
"SchoolName": "The British Sikh School",
"Postcode": "WV46AP"
},
{
"SchoolName": "Medway UTC",
"Postcode": "ME44FQ"
},
{
"SchoolName": "The Weald CofE Primary School",
"Postcode": "RH54QW"
},
{
"SchoolName": "Brookwood Primary School",
"Postcode": "GU240HF"
},
{
"SchoolName": "KICKSTART",
"Postcode": "TF12NP"
},
{
"SchoolName": "Northern House School (City of Wolverhampton)",
"Postcode": "WV60UB"
},
{
"SchoolName": "Pleckgate High School",
"Postcode": "BB18QA"
},
{
"SchoolName": "The Burgess Hill Academy",
"Postcode": "RH159EA"
},
{
"SchoolName": "The Belham Primary School",
"Postcode": "SE154BW"
},
{
"SchoolName": "Bilsthorpe Flying High Academy",
"Postcode": "NG228PS"
},
{
"SchoolName": "St Joseph's Catholic Primary and Nursery School",
"Postcode": "NG229JE"
},
{
"SchoolName": "Saxon Hill Academy",
"Postcode": "WS149DE"
},
{
"SchoolName": "The Howard Primary School",
"Postcode": "B799DB"
},
{
"SchoolName": "The Richard Crosse CofE Primary School",
"Postcode": "DE137JE"
},
{
"SchoolName": "The St. Mary's CofE Primary School",
"Postcode": "WS153LN"
},
{
"SchoolName": "Bethany Church of England Junior School",
"Postcode": "BH14DJ"
},
{
"SchoolName": "Heathlands Primary Academy",
"Postcode": "BH118HB"
},
{
"SchoolName": "St Clement's and St John's Church of England Infant School",
"Postcode": "BH14DZ"
},
{
"SchoolName": "St Luke's Church of England Primary School",
"Postcode": "BH91LG"
},
{
"SchoolName": "Matthew Arnold School",
"Postcode": "OX29JE"
},
{
"SchoolName": "Heversham St Peter's CofE Primary School",
"Postcode": "LA77FG"
},
{
"SchoolName": "Braithwaite CofE Primary School",
"Postcode": "CA125TD"
},
{
"SchoolName": "The Skills Hub",
"Postcode": "UB78HJ"
},
{
"SchoolName": "Wynyard Church of England Primary School",
"Postcode": "TS225SE"
},
{
"SchoolName": "Akaal Primary School",
"Postcode": "DE238PB"
},
{
"SchoolName": "Ark Byron Primary Academy",
"Postcode": "W38NR"
},
{
"SchoolName": "Hackney New Primary School",
"Postcode": "N15AA"
},
{
"SchoolName": "Hayfield Cross CofE School",
"Postcode": "NN155FJ"
},
{
"SchoolName": "Watling Park school",
"Postcode": "HA89YA"
},
{
"SchoolName": "Oscott Academy",
"Postcode": "B235AP"
},
{
"SchoolName": "Plymouth Studio School",
"Postcode": "PL68BH"
},
{
"SchoolName": "Ramsgate Free School",
"Postcode": "CT110LQ"
},
{
"SchoolName": "The Mendip School",
"Postcode": "BA44FZ"
},
{
"SchoolName": "Hunsley Primary School",
"Postcode": "HU143HS"
},
{
"SchoolName": "The WREN School",
"Postcode": "RG302BB"
},
{
"SchoolName": "Twickenham Primary Academy",
"Postcode": "TW26QF"
},
{
"SchoolName": "Wolverhampton Vocational Training Centre",
"Postcode": "WV24NP"
},
{
"SchoolName": "Atrium Studio School",
"Postcode": "TQ137EW"
},
{
"SchoolName": "Mendip Studio School",
"Postcode": "BA33NQ"
},
{
"SchoolName": "Space Studio West London",
"Postcode": "TW149PE"
},
{
"SchoolName": "Ikb Academy",
"Postcode": "BS311PH"
},
{
"SchoolName": "The Studio @ Deyes",
"Postcode": "L131FB"
},
{
"SchoolName": "Derby Manufacturing UTC",
"Postcode": "DE248PU"
},
{
"SchoolName": "Humber UTC",
"Postcode": "DN156TA"
},
{
"SchoolName": "Riverside Primary School",
"Postcode": "IG110HZ"
},
{
"SchoolName": "Riverside Bridge School",
"Postcode": "IG110HZ"
},
{
"SchoolName": "The Hub Alternative Provision Centre",
"Postcode": "HU181PB"
},
{
"SchoolName": "Aegir - A Specialist Academy",
"Postcode": "DN211PB"
},
{
"SchoolName": "All Saints Church of England Primary School",
"Postcode": "ME45JY"
},
{
"SchoolName": "Springwood Junior Academy",
"Postcode": "S262AL"
},
{
"SchoolName": "Bampton CofE Primary School",
"Postcode": "OX182NJ"
},
{
"SchoolName": "Barnham Primary School",
"Postcode": "PO220HW"
},
{
"SchoolName": "Bitterley CofE Primary School (Aided)",
"Postcode": "SY83HF"
},
{
"SchoolName": "College Central",
"Postcode": "BN229RB"
},
{
"SchoolName": "<NAME>s Primary School",
"Postcode": "TR275DH"
},
{
"SchoolName": "Corfe Castle Church of England Primary School",
"Postcode": "BH205EE"
},
{
"SchoolName": "Cuckmere House School",
"Postcode": "BN254BA"
},
{
"SchoolName": "Easton Garford Endowed CofE School",
"Postcode": "PE93NN"
},
{
"SchoolName": "St Peter's Church of England Primary School",
"Postcode": "HG11JA"
},
{
"SchoolName": "Leamington Hastings Church of England Academy",
"Postcode": "CV238EA"
},
{
"SchoolName": "<NAME>",
"Postcode": "HU80JD"
},
{
"SchoolName": "New Horizons School",
"Postcode": "TN389JU"
},
{
"SchoolName": "North Leigh Church of England (Controlled) School",
"Postcode": "OX296SS"
},
{
"SchoolName": "Oldbury Wells School",
"Postcode": "WV165JD"
},
{
"SchoolName": "St Ann's Church of England Primary School",
"Postcode": "L350LQ"
},
{
"SchoolName": "St Austin's Catholic Primary School",
"Postcode": "WF13PF"
},
{
"SchoolName": "St John's Catholic Primary School, Gravesend",
"Postcode": "DA122SY"
},
{
"SchoolName": "St John's Church of England Infant School",
"Postcode": "ME46RH"
},
{
"SchoolName": "St. Joseph's Catholic Primary School, a Voluntary Academy",
"Postcode": "DN227BP"
},
{
"SchoolName": "St Joseph's Catholic Primary School, Harrogate, A Voluntary Academy",
"Postcode": "HG12DP"
},
{
"SchoolName": "St Margaret's Church of England Junior School",
"Postcode": "ME89AE"
},
{
"SchoolName": "St Mary & St Thomas' CofE Primary School",
"Postcode": "WA102HS"
},
{
"SchoolName": "St Mary's Catholic Primary School, Whitstable",
"Postcode": "CT52EY"
},
{
"SchoolName": "St Mary's School",
"Postcode": "TN210BT"
},
{
"SchoolName": "St Rumon's Church of England (VC) Infants School",
"Postcode": "PL199EA"
},
{
"SchoolName": "Swanage St Mark's Church of England Primary School",
"Postcode": "BH192PH"
},
{
"SchoolName": "Waingels",
"Postcode": "RG54RF"
},
{
"SchoolName": "Wareham St Mary Church of England Voluntary Controlled Primary School",
"Postcode": "BH204PG"
},
{
"SchoolName": "Warren Wood - A Specialist Academy",
"Postcode": "DN211PU"
},
{
"SchoolName": "Cicely Haughton School",
"Postcode": "ST90BX"
},
{
"SchoolName": "Loxley Hall School",
"Postcode": "ST148RS"
},
{
"SchoolName": "The Langley Academy Primary",
"Postcode": "SL37EF"
},
{
"SchoolName": "Polam Hall School",
"Postcode": "DL15PA"
},
{
"SchoolName": "Blackpool Gateway Academy",
"Postcode": "FY16JH"
},
{
"SchoolName": "St Mary's Primary School Knaresborough, A Voluntary Catholic Academy",
"Postcode": "HG59BG"
},
{
"SchoolName": "Avenue Primary Academy",
"Postcode": "SM26JE"
},
{
"SchoolName": "The Charter School East Dulwich",
"Postcode": "SE57EW"
},
{
"SchoolName": "Bohunt School Wokingham",
"Postcode": "RG29GB"
},
{
"SchoolName": "Floreat Montague Park Primary School",
"Postcode": "RG401RE"
},
{
"SchoolName": "St Andrew's Primary School",
"Postcode": "EX151HU"
},
{
"SchoolName": "Danesholme Infant School",
"Postcode": "NN189DT"
},
{
"SchoolName": "Gunton Primary Academy",
"Postcode": "NR324LX"
},
{
"SchoolName": "Langley Park Primary Academy",
"Postcode": "ME173FX"
},
{
"SchoolName": "Askwith Community Primary School",
"Postcode": "LS212HX"
},
{
"SchoolName": "Bell Lane Academy",
"Postcode": "WF77JH"
},
{
"SchoolName": "Bishop Carpenter Church of England Aided Primary School",
"Postcode": "OX156AQ"
},
{
"SchoolName": "B<NAME>'s Catholic Primary School",
"Postcode": "ST179UZ"
},
{
"SchoolName": "B<NAME> Howard Catholic School",
"Postcode": "ST179AB"
},
{
"SchoolName": "Sun Academy Bradwell",
"Postcode": "ST58JN"
},
{
"SchoolName": "Corpus Christi Catholic School",
"Postcode": "CV32QP"
},
{
"SchoolName": "Fairfield Primary School",
"Postcode": "CA130DX"
},
{
"SchoolName": "Good Shepherd Catholic School",
"Postcode": "CV67FN"
},
{
"SchoolName": "Harrogate, Bilton Grange Community Primary School",
"Postcode": "HG13BA"
},
{
"SchoolName": "Hornton Primary School",
"Postcode": "OX156BZ"
},
{
"SchoolName": "Lothersdale Primary School",
"Postcode": "BD208HB"
},
{
"SchoolName": "North Leamington School",
"Postcode": "CV326RD"
},
{
"SchoolName": "Northfield Manor Primary Academy",
"Postcode": "B294JT"
},
{
"SchoolName": "Oatlands Community Junior School",
"Postcode": "HG28QP"
},
{
"SchoolName": "Sacred Heart Catholic Primary School",
"Postcode": "CV24DW"
},
{
"SchoolName": "Sibford Gower Endowed Primary School",
"Postcode": "OX155RW"
},
{
"SchoolName": "Smallthorne Primary Academy",
"Postcode": "ST61PR"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "ST170EA"
},
{
"SchoolName": "St Austin's Catholic (VA) Primary School",
"Postcode": "ST174BT"
},
{
"SchoolName": "St Dominic's Catholic Primary School",
"Postcode": "ST158YG"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "CV25AT"
},
{
"SchoolName": "St John Fisher Catholic Primary School",
"Postcode": "CV23NR"
},
{
"SchoolName": "St John's Catholic Primary School",
"Postcode": "ST180SL"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "ST199BG"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "CV21EQ"
},
{
"SchoolName": "St Patrick's Catholic Primary School",
"Postcode": "ST163BT"
},
{
"SchoolName": "SS Peter and Paul Catholic Primary School",
"Postcode": "CV22EF"
},
{
"SchoolName": "The Warriner School",
"Postcode": "OX154LJ"
},
{
"SchoolName": "Waverley School",
"Postcode": "B95QA"
},
{
"SchoolName": "Western Primary School",
"Postcode": "HG20NA"
},
{
"SchoolName": "Watford St John's Church of England Primary School",
"Postcode": "WD172PS"
},
{
"SchoolName": "Fernwood Primary School",
"Postcode": "NG82FZ"
},
{
"SchoolName": "Manchester Vocational and Learning Academy",
"Postcode": "M193AQ"
},
{
"SchoolName": "Sms Education",
"Postcode": "SK45HS"
},
{
"SchoolName": "St. Mary's Catholic Junior School",
"Postcode": "CR02EW"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "BS312NB"
},
{
"SchoolName": "Old Bexley Church of England School",
"Postcode": "DA53JR"
},
{
"SchoolName": "Holy Trinity Lamorbey Church of England School",
"Postcode": "DA159DB"
},
{
"SchoolName": "Prince Albert Junior and Infant School",
"Postcode": "B65NH"
},
{
"SchoolName": "Heathfield Primary School",
"Postcode": "B191HJ"
},
{
"SchoolName": "Sharples School",
"Postcode": "BL18SN"
},
{
"SchoolName": "Mottingham Primary School",
"Postcode": "SE94LW"
},
{
"SchoolName": "Oaklands Primary Academy",
"Postcode": "TN163DN"
},
{
"SchoolName": "The Berkeley Academy",
"Postcode": "CW26RU"
},
{
"SchoolName": "Willaston Primary Academy",
"Postcode": "CW56QQ"
},
{
"SchoolName": "Shavington Academy",
"Postcode": "CW25DH"
},
{
"SchoolName": "Pensans Primary School",
"Postcode": "TR208UH"
},
{
"SchoolName": "Fowey Primary School",
"Postcode": "PL231HH"
},
{
"SchoolName": "Alverton Primary School",
"Postcode": "TR184QD"
},
{
"SchoolName": "Lostwithiel School",
"Postcode": "PL220AJ"
},
{
"SchoolName": "St Agnes ACE Academy",
"Postcode": "TR50LZ"
},
{
"SchoolName": "Newlyn School",
"Postcode": "TR185QA"
},
{
"SchoolName": "Walsgrave Church of England Academy",
"Postcode": "CV22BA"
},
{
"SchoolName": "Clifford Bridge Academy",
"Postcode": "CV32PD"
},
{
"SchoolName": "St Mary's Catholic Infant School",
"Postcode": "CR02AQ"
},
{
"SchoolName": "Victoria Academy",
"Postcode": "LA145NE"
},
{
"SchoolName": "Yarlside Academy",
"Postcode": "LA130LH"
},
{
"SchoolName": "Parkside GGI Academy",
"Postcode": "LA139BY"
},
{
"SchoolName": "Membury Primary Academy",
"Postcode": "EX137AF"
},
{
"SchoolName": "All Saints CofE Primary School (Marsh)",
"Postcode": "TQ122DJ"
},
{
"SchoolName": "Latchingdon Church of England Voluntary Controlled Primary School",
"Postcode": "CM36JS"
},
{
"SchoolName": "Henry Moore Primary School",
"Postcode": "CM179LW"
},
{
"SchoolName": "Maylandsea Primary School",
"Postcode": "CM36AD"
},
{
"SchoolName": "Mossbourne Parkside Academy",
"Postcode": "E81AS"
},
{
"SchoolName": "Thomas's Academy",
"Postcode": "SW64LY"
},
{
"SchoolName": "Hailey Hall School",
"Postcode": "SG137PB"
},
{
"SchoolName": "The Sullivan Centre",
"Postcode": "HU47AD"
},
{
"SchoolName": "Whitehouse Pupil Referral Unit",
"Postcode": "HU47AD"
},
{
"SchoolName": "Bridgeview Special School",
"Postcode": "HU47AD"
},
{
"SchoolName": "Little Hill Primary",
"Postcode": "LE182GZ"
},
{
"SchoolName": "King Edward VI Grammar School",
"Postcode": "LN119LL"
},
{
"SchoolName": "St Margaret of Scotland Catholic Primary School",
"Postcode": "LU15PP"
},
{
"SchoolName": "St Martin De Porres Catholic Primary School",
"Postcode": "LU40PF"
},
{
"SchoolName": "Didsbury CofE Primary School",
"Postcode": "M206RL"
},
{
"SchoolName": "Danecourt School",
"Postcode": "ME86AA"
},
{
"SchoolName": "Upton Cross Primary School",
"Postcode": "E130RJ"
},
{
"SchoolName": "Springfield Primary Academy",
"Postcode": "DN333HG"
},
{
"SchoolName": "Enfield Academy of New Waltham",
"Postcode": "DN364RB"
},
{
"SchoolName": "Pytchley Endowed Church of England Primary School",
"Postcode": "NN141EN"
},
{
"SchoolName": "East Crompton St George's CofE School",
"Postcode": "OL28HG"
},
{
"SchoolName": "St Benedict's Primary Catholic Voluntary Academy",
"Postcode": "TS101LS"
},
{
"SchoolName": "Sacred Heart Secondary Catholic Voluntary Academy",
"Postcode": "TS101PJ"
},
{
"SchoolName": "Nether Edge Primary School",
"Postcode": "S71RB"
},
{
"SchoolName": "Manifold Church of England Primary School",
"Postcode": "SK170JP"
},
{
"SchoolName": "Hollinsclough Church of England Academy",
"Postcode": "SK170RH"
},
{
"SchoolName": "Newcastle Academy",
"Postcode": "ST52QY"
},
{
"SchoolName": "Clayton Hall Academy",
"Postcode": "ST53DN"
},
{
"SchoolName": "Christ The King Roman Catholic Primary School, A Voluntary Catholic Academy",
"Postcode": "TS179JP"
},
{
"SchoolName": "St Therese of Lisieux Catholic Primary School, A Voluntary Catholic Academy",
"Postcode": "TS170QP"
},
{
"SchoolName": "St Patrick's Catholic College, A Voluntary Catholic Academy",
"Postcode": "TS179DE"
},
{
"SchoolName": "St. Patrick's Roman Catholic Primary School, A Voluntary Catholic Academy",
"Postcode": "TS176NE"
},
{
"SchoolName": "Suffolk One",
"Postcode": "IP83SU"
},
{
"SchoolName": "The Bishop David Brown School",
"Postcode": "GU215RF"
},
{
"SchoolName": "The Telford Priory School",
"Postcode": "TF27AB"
},
{
"SchoolName": "Manor Green Primary Academy",
"Postcode": "M347NS"
},
{
"SchoolName": "Warberry CofE Academy",
"Postcode": "TQ11SB"
},
{
"SchoolName": "Manor Academy Sale",
"Postcode": "M335JX"
},
{
"SchoolName": "Pictor Academy",
"Postcode": "WA156PH"
},
{
"SchoolName": "Pound Hill Infant Academy",
"Postcode": "RH107EB"
},
{
"SchoolName": "Lindfield Primary Academy",
"Postcode": "RH162DX"
},
{
"SchoolName": "Somerfords' Walter Powell CofE Academy",
"Postcode": "SN155HS"
},
{
"SchoolName": "Lydiard Millicent CofE Primary School",
"Postcode": "SN53LR"
},
{
"SchoolName": "St Paulinus Church of England Primary School",
"Postcode": "DA14RW"
},
{
"SchoolName": "Hillsgrove Primary School",
"Postcode": "DA161DR"
},
{
"SchoolName": "Little Lever School",
"Postcode": "BL31BT"
},
{
"SchoolName": "Oak Lodge Primary School",
"Postcode": "BR40LJ"
},
{
"SchoolName": "Marian Vian Primary School",
"Postcode": "BR34AZ"
},
{
"SchoolName": "Unicorn Primary School",
"Postcode": "BR33AL"
},
{
"SchoolName": "Wickham Common Primary School",
"Postcode": "BR49DG"
},
{
"SchoolName": "The Russett School",
"Postcode": "CW83BW"
},
{
"SchoolName": "Shortlanesend Community Primary School",
"Postcode": "TR49DA"
},
{
"SchoolName": "Mithian School",
"Postcode": "TR50XW"
},
{
"SchoolName": "Blackwater Community Primary School",
"Postcode": "TR48ES"
},
{
"SchoolName": "Cockermouth School",
"Postcode": "CA139HF"
},
{
"SchoolName": "Thorpepark Academy",
"Postcode": "HU69EG"
},
{
"SchoolName": "The Horncastle St Lawrence School",
"Postcode": "LN95EJ"
},
{
"SchoolName": "St Bernard's School, Louth",
"Postcode": "LN118RS"
},
{
"SchoolName": "Cardinal Newman Catholic School A Specialist Science College",
"Postcode": "LU27AE"
},
{
"SchoolName": "Hallam Primary School",
"Postcode": "S104BD"
},
{
"SchoolName": "Stottesdon CofE Primary School",
"Postcode": "DY148UE"
},
{
"SchoolName": "Kingsmead School",
"Postcode": "WS121DH"
},
{
"SchoolName": "Heathside School",
"Postcode": "KT138UZ"
},
{
"SchoolName": "Oxted School",
"Postcode": "RH80AB"
},
{
"SchoolName": "Bradon Forest School",
"Postcode": "SN54AT"
},
{
"SchoolName": "Highfields School",
"Postcode": "WV44NT"
},
{
"SchoolName": "Seagry Church of England Primary School",
"Postcode": "SN155EX"
},
{
"SchoolName": "St Margaret Clitherow Catholic Primary School, Bracknell",
"Postcode": "RG127RD"
},
{
"SchoolName": "Park House School",
"Postcode": "S753DH"
},
{
"SchoolName": "Ridgeway Farm Primary School",
"Postcode": "SN54GT"
},
{
"SchoolName": "Cambian Bletchley Park School",
"Postcode": "MK37EB"
},
{
"SchoolName": "Dagnall VA Church of England School",
"Postcode": "HP41QX"
},
{
"SchoolName": "Stafford Hall School",
"Postcode": "HX30AW"
},
{
"SchoolName": "Huntercombe Hospital School Maidenhead",
"Postcode": "SL60PQ"
},
{
"SchoolName": "Kingfisher Primary School",
"Postcode": "BA201AY"
},
{
"SchoolName": "Primrose Lane Primary School",
"Postcode": "BA201AY"
},
{
"SchoolName": "My Choice School Osprey House",
"Postcode": "RH161XQ"
},
{
"SchoolName": "Lycee International De Londres",
"Postcode": "HA99LY"
},
{
"SchoolName": "Cambridge Street School",
"Postcode": "WF175JB"
},
{
"SchoolName": "The New Bridge Academy",
"Postcode": "SR53NF"
},
{
"SchoolName": "Jefferson House",
"Postcode": "CW71JT"
},
{
"SchoolName": "Austen House",
"Postcode": "BB45TS"
},
{
"SchoolName": "Youth Empowerment Education Programme",
"Postcode": "RM138EU"
},
{
"SchoolName": "Marlborough St Mary's CEVC Primary School",
"Postcode": "SN84BX"
},
{
"SchoolName": "Wetherby Senior School",
"Postcode": "W1U2QU"
},
{
"SchoolName": "Riverside Education",
"Postcode": "B339BF"
},
{
"SchoolName": "Barr's Hill School and Community College",
"Postcode": "CV14BU"
},
{
"SchoolName": "Bolton Muslim Girls School",
"Postcode": "BL36TQ"
},
{
"SchoolName": "Burford Primary School",
"Postcode": "OX184SG"
},
{
"SchoolName": "Callicroft Primary School",
"Postcode": "BS345EG"
},
{
"SchoolName": "Chorlton Park Primary",
"Postcode": "M217HH"
},
{
"SchoolName": "Corpus Christi RC Primary School",
"Postcode": "TS38NL"
},
{
"SchoolName": "Cross Farm Infant School",
"Postcode": "GU166LZ"
},
{
"SchoolName": "Culverstone Green Primary School",
"Postcode": "DA130RF"
},
{
"SchoolName": "Dymchurch Primary School",
"Postcode": "TN290LE"
},
{
"SchoolName": "Edwalton Primary School",
"Postcode": "NG124AS"
},
{
"SchoolName": "Elston Hall Primary School",
"Postcode": "WV106NN"
},
{
"SchoolName": "Finstock Church of England Primary School",
"Postcode": "OX73BN"
},
{
"SchoolName": "High View Primary Learning Centre",
"Postcode": "S738QS"
},
{
"SchoolName": "Hill View Primary School",
"Postcode": "BH105BD"
},
{
"SchoolName": "Jervoise School",
"Postcode": "B295QU"
},
{
"SchoolName": "Malmesbury Park Primary School",
"Postcode": "BH88LU"
},
{
"SchoolName": "Manor Way Primary Academy",
"Postcode": "B633HA"
},
{
"SchoolName": "Mytchett Primary School",
"Postcode": "GU166JB"
},
{
"SchoolName": "Newlands Girls' School",
"Postcode": "SL65JB"
},
{
"SchoolName": "Nonsuch Primary School",
"Postcode": "B323SE"
},
{
"SchoolName": "Lee Brigg Infant and Nursery School",
"Postcode": "WF62LN"
},
{
"SchoolName": "Old Moat Primary School",
"Postcode": "M203FN"
},
{
"SchoolName": "Oldway Primary School",
"Postcode": "TQ32SY"
},
{
"SchoolName": "Queen Emma's Primary School",
"Postcode": "OX285JW"
},
{
"SchoolName": "Riverview Infant School",
"Postcode": "DA124SD"
},
{
"SchoolName": "Roselands Primary School",
"Postcode": "TQ47RQ"
},
{
"SchoolName": "Sacred Heart Primary School",
"Postcode": "TS14NP"
},
{
"SchoolName": "Sandringham School",
"Postcode": "GU169YF"
},
{
"SchoolName": "St Alphonsus' RC Primary School",
"Postcode": "TS36PX"
},
{
"SchoolName": "St Augustine's RC Primary School",
"Postcode": "TS80TE"
},
{
"SchoolName": "St Bernadette's RC Primary School",
"Postcode": "TS70PZ"
},
{
"SchoolName": "St Clare's RC Primary School",
"Postcode": "TS58RZ"
},
{
"SchoolName": "St Edward's RC Primary School",
"Postcode": "TS56QS"
},
{
"SchoolName": "St Georges CofE (Aided) Primary School",
"Postcode": "ME123QU"
},
{
"SchoolName": "St Gerard's RC Primary School",
"Postcode": "TS89HU"
},
{
"SchoolName": "St Joseph's RC Primary School",
"Postcode": "TS42NT"
},
{
"SchoolName": "St Thomas CofE Academy",
"Postcode": "B152AT"
},
{
"SchoolName": "St Thomas More RC Primary School",
"Postcode": "TS43QH"
},
{
"SchoolName": "The Batt Church of England Voluntary Aided Primary School",
"Postcode": "OX286DY"
},
{
"SchoolName": "TBAP Cambridge AP Academy",
"Postcode": "CB42BD"
},
{
"SchoolName": "The Crescent Primary School",
"Postcode": "CR02HN"
},
{
"SchoolName": "The Grove Primary School",
"Postcode": "GU168PG"
},
{
"SchoolName": "Orchards Junior School",
"Postcode": "BN126EN"
},
{
"SchoolName": "Trinity Catholic College",
"Postcode": "TS43JW"
},
{
"SchoolName": "Westcroft School",
"Postcode": "WV108NZ"
},
{
"SchoolName": "Wolvercote Primary School",
"Postcode": "OX28AQ"
},
{
"SchoolName": "Wombwell Park Street Primary School",
"Postcode": "S730HS"
},
{
"SchoolName": "Wychall Primary School",
"Postcode": "B313EH"
},
{
"SchoolName": "Kempston Challenger Academy",
"Postcode": "MK427EB"
},
{
"SchoolName": "Cockshut Hill Technology College",
"Postcode": "B262HX"
},
{
"SchoolName": "St Stephen Churchtown Academy",
"Postcode": "PL267NZ"
},
{
"SchoolName": "Westcliff School",
"Postcode": "EX79RA"
},
{
"SchoolName": "The Marvell College",
"Postcode": "HU94EE"
},
{
"SchoolName": "Somercotes Academy",
"Postcode": "LN117PN"
},
{
"SchoolName": "Twydall Primary School and Nursery",
"Postcode": "ME86JS"
},
{
"SchoolName": "Temple Mill Primary School",
"Postcode": "ME23NL"
},
{
"SchoolName": "Dereham Church of England Junior Academy",
"Postcode": "NR191BJ"
},
{
"SchoolName": "Marshland High School",
"Postcode": "PE147HA"
},
{
"SchoolName": "Eyrescroft Primary School",
"Postcode": "PE38EZ"
},
{
"SchoolName": "Cheam Common Junior School",
"Postcode": "KT48UT"
},
{
"SchoolName": "Byron Primary School",
"Postcode": "ME75XX"
},
{
"SchoolName": "Ecton Village Primary School",
"Postcode": "NN60QF"
},
{
"SchoolName": "Cottesmore Millfield Academy",
"Postcode": "LE157BA"
},
{
"SchoolName": "Bishops Lydeard Church of England Primary School",
"Postcode": "TA43AN"
},
{
"SchoolName": "Worsley Bridge Primary School",
"Postcode": "BR31RF"
},
{
"SchoolName": "The South Norwood Academy",
"Postcode": "SE255QP"
},
{
"SchoolName": "David Nieper Academy",
"Postcode": "DE557JA"
},
{
"SchoolName": "Upper Batley High School",
"Postcode": "WF170BJ"
},
{
"SchoolName": "<NAME>",
"Postcode": "WC1B3DN"
},
{
"SchoolName": "William Morris Primary School",
"Postcode": "OX160UZ"
},
{
"SchoolName": "Fossebrook Primary School",
"Postcode": "LE33FF"
},
{
"SchoolName": "Manorway Academy",
"Postcode": "ME46BA"
},
{
"SchoolName": "Northmoor Academy",
"Postcode": "OL96AQ"
},
{
"SchoolName": "Garden City Montessori School",
"Postcode": "SG64UE"
},
{
"SchoolName": "Lakeside Primary School",
"Postcode": "GU168LL"
},
{
"SchoolName": "Wemms Education Centre",
"Postcode": "KT211AZ"
},
{
"SchoolName": "Oak CofE Primary School",
"Postcode": "HD45HX"
},
{
"SchoolName": "Castle Hill: A Specialist College for Communication and Interaction",
"Postcode": "HD46JL"
},
{
"SchoolName": "Christ Church CofE (C) First School",
"Postcode": "ST158EP"
},
{
"SchoolName": "Colwich CofE Primary School",
"Postcode": "ST170XD"
},
{
"SchoolName": "East Ardsley Primary Academy",
"Postcode": "WF32BA"
},
{
"SchoolName": "Elm Road Primary School",
"Postcode": "PE132TB"
},
{
"SchoolName": "Freehold Community Academy",
"Postcode": "OL97RG"
},
{
"SchoolName": "Hammond School",
"Postcode": "GU185TS"
},
{
"SchoolName": "Hill Top Primary Academy",
"Postcode": "WF31HD"
},
{
"SchoolName": "Kingsleigh Primary School",
"Postcode": "BH105HT"
},
{
"SchoolName": "Kingsnorth Church of England Primary School",
"Postcode": "TN233EF"
},
{
"SchoolName": "Kinsley Academy",
"Postcode": "WF95BP"
},
{
"SchoolName": "Kinson Primary School",
"Postcode": "BH119DG"
},
{
"SchoolName": "Lent Rise School",
"Postcode": "SL17NP"
},
{
"SchoolName": "Lightwater Village School",
"Postcode": "GU185RD"
},
{
"SchoolName": "Longney Church of England Primary Academy",
"Postcode": "GL23SL"
},
{
"SchoolName": "Moordown St John's Church of England Primary School",
"Postcode": "BH92SA"
},
{
"SchoolName": "Muscliff Primary School",
"Postcode": "BH80AB"
},
{
"SchoolName": "Newall Green Primary School",
"Postcode": "M232YH"
},
{
"SchoolName": "North Cerney Church of England Primary Academy",
"Postcode": "GL77BZ"
},
{
"SchoolName": "Oulton CofE (C) First School",
"Postcode": "ST158UH"
},
{
"SchoolName": "Pearson Primary School",
"Postcode": "HU31TB"
},
{
"SchoolName": "Shavington Primary School",
"Postcode": "CW25BP"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "ST180JN"
},
{
"SchoolName": "St Edward's CofE Primary School",
"Postcode": "PL65ST"
},
{
"SchoolName": "St Just Primary School",
"Postcode": "TR197JU"
},
{
"SchoolName": "St Mark's Church of England Primary School",
"Postcode": "BH104JA"
},
{
"SchoolName": "St Michael's Church of England Primary School",
"Postcode": "BH25LH"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "ST180PS"
},
{
"SchoolName": "Tenbury CofE Primary School",
"Postcode": "WR158BS"
},
{
"SchoolName": "Tower Hill Community Primary School",
"Postcode": "OX286NB"
},
{
"SchoolName": "Victoria Primary Academy",
"Postcode": "LS99ER"
},
{
"SchoolName": "Whiteshill Primary School",
"Postcode": "GL66AT"
},
{
"SchoolName": "Westerton Primary Academy",
"Postcode": "WF31AR"
},
{
"SchoolName": "Winton Primary School",
"Postcode": "BH92TG"
},
{
"SchoolName": "St Winifred's RC Primary School",
"Postcode": "SE120SJ"
},
{
"SchoolName": "St Andrew's Church of England Primary Academy",
"Postcode": "PE378DA"
},
{
"SchoolName": "Haddon Primary and Nursery School",
"Postcode": "NG44GT"
},
{
"SchoolName": "Longshaw Primary School",
"Postcode": "E46LH"
},
{
"SchoolName": "Northwood Primary School",
"Postcode": "DL12HF"
},
{
"SchoolName": "Morley Place Academy",
"Postcode": "DN123LZ"
},
{
"SchoolName": "Sporle Church of England Primary Academy",
"Postcode": "PE322DR"
},
{
"SchoolName": "Narborough Church of England Voluntary Controlled Primary School",
"Postcode": "PE321TA"
},
{
"SchoolName": "Castle Acre Church of England Primary Academy",
"Postcode": "PE322AR"
},
{
"SchoolName": "Southery Academy",
"Postcode": "PE380PA"
},
{
"SchoolName": "Highfield Leadership Academy",
"Postcode": "FY43JZ"
},
{
"SchoolName": "Lyndhurst Primary and Nursery School",
"Postcode": "OL84JD"
},
{
"SchoolName": "The Oaks Academy",
"Postcode": "CW27NQ"
},
{
"SchoolName": "Delta Independent School",
"Postcode": "DH85DH"
},
{
"SchoolName": "Northampton International Academy",
"Postcode": "NN11AA"
},
{
"SchoolName": "Sunny Bank Primary School",
"Postcode": "ME103QN"
},
{
"SchoolName": "River Tees High Academy",
"Postcode": "TS38RD"
},
{
"SchoolName": "Avanti Court Primary School",
"Postcode": "IG61LZ"
},
{
"SchoolName": "Christ's College, Guildford",
"Postcode": "GU11JY"
},
{
"SchoolName": "Court-de-Wyck Primary School",
"Postcode": "BS494NF"
},
{
"SchoolName": "Crofton Infant School",
"Postcode": "WF41NG"
},
{
"SchoolName": "Gunnislake Primary Academy",
"Postcode": "PL189NA"
},
{
"SchoolName": "New Park Primary Academy",
"Postcode": "HG13HF"
},
{
"SchoolName": "Millfield Primary School",
"Postcode": "CB61HW"
},
{
"SchoolName": "Moorside Primary School",
"Postcode": "M437DA"
},
{
"SchoolName": "Oakhurst Community First School",
"Postcode": "BH220DY"
},
{
"SchoolName": "Old Hall Drive Academy",
"Postcode": "M187FU"
},
{
"SchoolName": "River Tees Middle Academy",
"Postcode": "TS38RD"
},
{
"SchoolName": "Sixpenny Handley First School",
"Postcode": "SP55NJ"
},
{
"SchoolName": "St Ives Primary School",
"Postcode": "BH242LE"
},
{
"SchoolName": "St James' Church of England First School, Alderholt",
"Postcode": "SP63AJ"
},
{
"SchoolName": "St John's CofE Academy",
"Postcode": "S817LU"
},
{
"SchoolName": "St Mary's Church of England Controlled Infant School",
"Postcode": "OX284AZ"
},
{
"SchoolName": "The Kingsway School",
"Postcode": "SK84QX"
},
{
"SchoolName": "Woodlands Academy",
"Postcode": "PE235EJ"
},
{
"SchoolName": "River Tees Primary Academy",
"Postcode": "TS38RD"
},
{
"SchoolName": "Three Legged Cross First and Nursery School",
"Postcode": "BH216RF"
},
{
"SchoolName": "Upton Priory School",
"Postcode": "SK103ED"
},
{
"SchoolName": "West Moors, St Mary's Church of England Voluntary Controlled First School",
"Postcode": "BH220JF"
},
{
"SchoolName": "The Haven School",
"Postcode": "ST179DJ"
},
{
"SchoolName": "St Oswalds Catholic Primary School",
"Postcode": "L135TE"
},
{
"SchoolName": "Cheadle Hospital School",
"Postcode": "SK83DG"
},
{
"SchoolName": "Hilgay Riverside Academy",
"Postcode": "PE380JL"
},
{
"SchoolName": "Ten Mile Bank Riverside Academy",
"Postcode": "PE380EP"
},
{
"SchoolName": "Lower Pastures",
"Postcode": "BB33QP"
},
{
"SchoolName": "Include Northampton",
"Postcode": "NN36RW"
},
{
"SchoolName": "North London Hospital School",
"Postcode": "N146RA"
},
{
"SchoolName": "Tlg Bolton",
"Postcode": "BL49AL"
},
{
"SchoolName": "Reddish Hall School",
"Postcode": "SK56RN"
},
{
"SchoolName": "Chelmsford Hospital School",
"Postcode": "CM17SJ"
},
{
"SchoolName": "REAL Alternative Provision School",
"Postcode": "NG182AD"
},
{
"SchoolName": "Ruskin Junior School",
"Postcode": "SN27NG"
},
{
"SchoolName": "Bideford College",
"Postcode": "EX393AR"
},
{
"SchoolName": "Abbeywood First School",
"Postcode": "B989LR"
},
{
"SchoolName": "Beck Primary School",
"Postcode": "S50GG"
},
{
"SchoolName": "Church Hill Middle School",
"Postcode": "B989LR"
},
{
"SchoolName": "Edith Weston Academy",
"Postcode": "LE158HQ"
},
{
"SchoolName": "Ernesettle Community School",
"Postcode": "PL52RB"
},
{
"SchoolName": "Ferndale Primary School & Nursery",
"Postcode": "SN21NX"
},
{
"SchoolName": "Great Barton Church of England Primary Academy",
"Postcode": "IP312RJ"
},
{
"SchoolName": "Greythorn Primary School",
"Postcode": "NG27GH"
},
{
"SchoolName": "Kehelland Village School",
"Postcode": "TR140DA"
},
{
"SchoolName": "Mayfield Primary School",
"Postcode": "OL14LG"
},
{
"SchoolName": "North Petherwin School",
"Postcode": "PL158NE"
},
{
"SchoolName": "Park View Academy",
"Postcode": "L362LL"
},
{
"SchoolName": "Perranporth Community Primary School",
"Postcode": "TR60EU"
},
{
"SchoolName": "Rattlesden Church of England Primary Academy",
"Postcode": "IP300SE"
},
{
"SchoolName": "Rivermead School",
"Postcode": "ME71UG"
},
{
"SchoolName": "Royston St John Baptist CE Primary",
"Postcode": "S714QY"
},
{
"SchoolName": "Spring Common Academy",
"Postcode": "PE291TQ"
},
{
"SchoolName": "St Bernadette's Catholic Primary School",
"Postcode": "HA39NS"
},
{
"SchoolName": "St David's Church of England Primary School",
"Postcode": "EX44EE"
},
{
"SchoolName": "St Gregory's Catholic Science College",
"Postcode": "HA30NB"
},
{
"SchoolName": "Marlborough Primary School",
"Postcode": "SK102HJ"
},
{
"SchoolName": "Thurston Church of England Primary Academy",
"Postcode": "IP313RY"
},
{
"SchoolName": "Trinity Anglican-Methodist Primary School",
"Postcode": "BS207JF"
},
{
"SchoolName": "Werrington Community Primary School",
"Postcode": "PL158TN"
},
{
"SchoolName": "Woodlands Academy",
"Postcode": "DN331RJ"
},
{
"SchoolName": "Woolpit Primary Academy",
"Postcode": "IP309RU"
},
{
"SchoolName": "New Vision School",
"Postcode": "TN225PN"
},
{
"SchoolName": "Gillingham FC Community Trust School",
"Postcode": "ME74DD"
},
{
"SchoolName": "Bristol Futures Academy",
"Postcode": "BS59QR"
},
{
"SchoolName": "Highfield Junior and Infant School",
"Postcode": "B83QF"
},
{
"SchoolName": "Talm<NAME>",
"Postcode": "E59DH"
},
{
"SchoolName": "Cowlersley Primary School",
"Postcode": "HD45US"
},
{
"SchoolName": "Buildwas Academy",
"Postcode": "TF87DA"
},
{
"SchoolName": "<NAME>ofE First School",
"Postcode": "SL46AS"
},
{
"SchoolName": "The Brakenhale School",
"Postcode": "RG127BA"
},
{
"SchoolName": "Waverley Academy",
"Postcode": "DN40UB"
},
{
"SchoolName": "Nunney First School",
"Postcode": "BA114NE"
},
{
"SchoolName": "Elm Tree Primary School",
"Postcode": "NR339HN"
},
{
"SchoolName": "Stratford-Upon-Avon Primary School",
"Postcode": "CV376HN"
},
{
"SchoolName": "High Crags Primary School",
"Postcode": "BD182ES"
},
{
"SchoolName": "Burnt Ash Primary School",
"Postcode": "BR14QX"
},
{
"SchoolName": "Cockburn School",
"Postcode": "LS115TT"
},
{
"SchoolName": "Eastcote Primary School",
"Postcode": "DA162ST"
},
{
"SchoolName": "Good Shepherd Catholic Primary and Nursery School",
"Postcode": "CR00RG"
},
{
"SchoolName": "Great Witchingham Church of England Primary Academy",
"Postcode": "NR95SD"
},
{
"SchoolName": "Hockering Church of England Voluntary Aided Primary School",
"Postcode": "NR203HN"
},
{
"SchoolName": "Immanuel College",
"Postcode": "BD109AQ"
},
{
"SchoolName": "Manor Community Primary School",
"Postcode": "DA100BU"
},
{
"SchoolName": "Oatlands Infant School",
"Postcode": "HG28BT"
},
{
"SchoolName": "Pannal Primary School",
"Postcode": "HG31LH"
},
{
"SchoolName": "Pool Hayes Academy",
"Postcode": "WV124QZ"
},
{
"SchoolName": "Sproughton CofE Primary School",
"Postcode": "IP83BB"
},
{
"SchoolName": "St Leonard's (CofE) Primary School (VC)",
"Postcode": "EX24NQ"
},
{
"SchoolName": "St Mary's Church of England Primary School, Hadleigh",
"Postcode": "IP75BH"
},
{
"SchoolName": "St Mary's Church of England Primary School, Woodbridge",
"Postcode": "IP124JJ"
},
{
"SchoolName": "St Peter's CofE Primary Academy, Easton",
"Postcode": "NR95AD"
},
{
"SchoolName": "St Thomas More Catholic Primary, A Voluntary Academy",
"Postcode": "S358NN"
},
{
"SchoolName": "St Wilfrid's RC College",
"Postcode": "NE340QA"
},
{
"SchoolName": "Westover Primary School",
"Postcode": "PO36NS"
},
{
"SchoolName": "Bow Street School",
"Postcode": "WV147NB"
},
{
"SchoolName": "University Technical College Leeds",
"Postcode": "LS101LA"
},
{
"SchoolName": "UTC Sheffield Olympic Legacy Park",
"Postcode": "S93TU"
},
{
"SchoolName": "Haybrook College",
"Postcode": "SL16LZ"
},
{
"SchoolName": "International Academy of Greenwich",
"Postcode": "SE39DU"
},
{
"SchoolName": "Beechview School",
"Postcode": "HP137NT"
},
{
"SchoolName": "Davidson Primary Academy",
"Postcode": "CR06JA"
},
{
"SchoolName": "Sir Henry Fermor Church of England Primary School",
"Postcode": "TN62SD"
},
{
"SchoolName": "Ramsden Hall School",
"Postcode": "CM111HN"
},
{
"SchoolName": "Westgate Primary School",
"Postcode": "DA12LP"
},
{
"SchoolName": "The Write Time",
"Postcode": "CR02XX"
},
{
"SchoolName": "The Priory Woodbourne Hospital School",
"Postcode": "B178BY"
},
{
"SchoolName": "Glebe House",
"Postcode": "CB214QH"
},
{
"SchoolName": "Menorah High School for Girls",
"Postcode": "NW27BZ"
},
{
"SchoolName": "Ebor Gardens Primary Academy",
"Postcode": "LS97PY"
},
{
"SchoolName": "Springwell Academy Leeds",
"Postcode": "LS42LE"
},
{
"SchoolName": "Humberstone Infant Academy",
"Postcode": "LE51AE"
},
{
"SchoolName": "Portway Primary School",
"Postcode": "E130JW"
},
{
"SchoolName": "The Bishop's Church of England Primary Academy",
"Postcode": "IP241EB"
},
{
"SchoolName": "Henderson Green Primary School",
"Postcode": "NR58DX"
},
{
"SchoolName": "The Shires At Oakham",
"Postcode": "LE156JB"
},
{
"SchoolName": "Claremont Primary School",
"Postcode": "NW21AB"
},
{
"SchoolName": "Scarcroft Primary School",
"Postcode": "YO231BS"
},
{
"SchoolName": "Gamlingay First School",
"Postcode": "SG193LE"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "TQ96ST"
},
{
"SchoolName": "Landscove Church of England Primary School",
"Postcode": "TQ137LY"
},
{
"SchoolName": "New Ford Academy",
"Postcode": "ST61PY"
},
{
"SchoolName": "Packmoor Ormiston Academy",
"Postcode": "ST74SP"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "OX183PL"
},
{
"SchoolName": "Millthorpe School",
"Postcode": "YO231WF"
},
{
"SchoolName": "Bearnes Voluntary Primary School",
"Postcode": "TQ122AU"
},
{
"SchoolName": "Towcester Church of England Primary School",
"Postcode": "NN126AU"
},
{
"SchoolName": "Weldon Church of England Primary School",
"Postcode": "NN173HP"
},
{
"SchoolName": "Diptford Parochial Church of England Primary School",
"Postcode": "TQ97NY"
},
{
"SchoolName": "Ealing Fields High School",
"Postcode": "W72BB"
},
{
"SchoolName": "Evergreen School",
"Postcode": "ST102LP"
},
{
"SchoolName": "Wolfdale School",
"Postcode": "LE77BP"
},
{
"SchoolName": "The Jam Academy",
"Postcode": "SL72LS"
},
{
"SchoolName": "Cottingham CofE Primary School Academy Trust",
"Postcode": "LE168XB"
},
{
"SchoolName": "Gerrans School",
"Postcode": "TR25ED"
},
{
"SchoolName": "Hucklow Primary School",
"Postcode": "S56TB"
},
{
"SchoolName": "St James Church of England Primary School, Hanney",
"Postcode": "OX120JN"
},
{
"SchoolName": "The Garth School",
"Postcode": "PE111QF"
},
{
"SchoolName": "The John Fielding Special School",
"Postcode": "PE219PX"
},
{
"SchoolName": "The Priory School",
"Postcode": "PE112EH"
},
{
"SchoolName": "Tregony Community Primary School",
"Postcode": "TR25RP"
},
{
"SchoolName": "Upton St James CofE Primary School",
"Postcode": "TQ14AZ"
},
{
"SchoolName": "Kingsteignton School",
"Postcode": "TQ123BQ"
},
{
"SchoolName": "Twynham Primary School",
"Postcode": "BH231JF"
},
{
"SchoolName": "Trinity Solutions Academy",
"Postcode": "NE48XJ"
},
{
"SchoolName": "Hall Cliffe Primary School",
"Postcode": "WF20QB"
},
{
"SchoolName": "Excel and Exceed Centre",
"Postcode": "BL82BS"
},
{
"SchoolName": "Menphys Centre Nursery, Wigston",
"Postcode": "LE182FR"
},
{
"SchoolName": "Sketch<NAME> Menphys Nursery, Burbage",
"Postcode": "LE102DY"
},
{
"SchoolName": "Dunstall Hill Primary School",
"Postcode": "WV60NH"
},
{
"SchoolName": "Grove Primary Academy",
"Postcode": "WV21HZ"
},
{
"SchoolName": "Laisterdyke Leadership Academy",
"Postcode": "BD38HE"
},
{
"SchoolName": "New Town Primary School",
"Postcode": "RG13LS"
},
{
"SchoolName": "Porters Grange Primary School and Nursery",
"Postcode": "SS12NS"
},
{
"SchoolName": "Palmers Cross Primary School",
"Postcode": "WV69DF"
},
{
"SchoolName": "Alton Park Junior School",
"Postcode": "CO151DL"
},
{
"SchoolName": "Aston Tower Community Primary School",
"Postcode": "B65BE"
},
{
"SchoolName": "Bedelsford School",
"Postcode": "KT12QZ"
},
{
"SchoolName": "Boringdon Primary School",
"Postcode": "PL74HJ"
},
{
"SchoolName": "Brenchley and Matfield Church of England Primary School",
"Postcode": "TN127NY"
},
{
"SchoolName": "Bridport Primary School",
"Postcode": "DT63BJ"
},
{
"SchoolName": "Bridport, St Mary's Church of England Primary School",
"Postcode": "DT65LA"
},
{
"SchoolName": "Burton Bradstock Church of England Voluntary Controlled School",
"Postcode": "DT64QS"
},
{
"SchoolName": "Castle Park School",
"Postcode": "LA96BE"
},
{
"SchoolName": "Chelsfield Primary School",
"Postcode": "BR66EP"
},
{
"SchoolName": "Chiltern Way Academy",
"Postcode": "HP226NL"
},
{
"SchoolName": "Churnet View Middle School",
"Postcode": "ST136PU"
},
{
"SchoolName": "Darrick Wood Junior School",
"Postcode": "BR68ER"
},
{
"SchoolName": "Dysart School",
"Postcode": "KT66HL"
},
{
"SchoolName": "Eastbury Primary School",
"Postcode": "IG119QQ"
},
{
"SchoolName": "Finham Primary School",
"Postcode": "CV36EJ"
},
{
"SchoolName": "Flowery Field Primary School",
"Postcode": "SK144SQ"
},
{
"SchoolName": "Forwards Centre",
"Postcode": "BL25DX"
},
{
"SchoolName": "Furness Primary School",
"Postcode": "NW105YT"
},
{
"SchoolName": "Godley Community Primary Academy",
"Postcode": "SK142QB"
},
{
"SchoolName": "Grange Park Primary School",
"Postcode": "TF31YQ"
},
{
"SchoolName": "Great Witley CofE Primary School",
"Postcode": "WR66HR"
},
{
"SchoolName": "Harbertonford Church of England Primary School",
"Postcode": "TQ97TA"
},
{
"SchoolName": "Hartley Primary School",
"Postcode": "E61NT"
},
{
"SchoolName": "Hennock Community Primary School",
"Postcode": "TQ139QB"
},
{
"SchoolName": "John Flamsteed Community School",
"Postcode": "DE58NP"
},
{
"SchoolName": "Leek High School",
"Postcode": "ST136EU"
},
{
"SchoolName": "Luxulyan School",
"Postcode": "PL305EE"
},
{
"SchoolName": "Mayville Primary School",
"Postcode": "E114PZ"
},
{
"SchoolName": "Monks Coppenhall Academy",
"Postcode": "CW14LY"
},
{
"SchoolName": "Oakfield Primary and Moderate Learning Difficulties Resource Provision",
"Postcode": "SK144EZ"
},
{
"SchoolName": "Oakington Manor Primary School",
"Postcode": "HA96NF"
},
{
"SchoolName": "Park School Teaching Service",
"Postcode": "BL25DX"
},
{
"SchoolName": "Peasedown St John Primary School",
"Postcode": "BA28DH"
},
{
"SchoolName": "Pratts Bottom Primary School",
"Postcode": "BR67NX"
},
{
"SchoolName": "Ravensbourne School",
"Postcode": "RM38HN"
},
{
"SchoolName": "Royal Park Primary School",
"Postcode": "DA144PX"
},
{
"SchoolName": "Saint Peter's Catholic Primary School, A Voluntary Academy",
"Postcode": "LE101HJ"
},
{
"SchoolName": "Selston High School",
"Postcode": "NG166BW"
},
{
"SchoolName": "Selwyn Primary School",
"Postcode": "E130LX"
},
{
"SchoolName": "Southgate School",
"Postcode": "EN40BL"
},
{
"SchoolName": "Southwold County Primary School",
"Postcode": "OX263UU"
},
{
"SchoolName": "St Aidan's Catholic Primary School",
"Postcode": "CR53DE"
},
{
"SchoolName": "St Augustine's Catholic Primary School, Costessey",
"Postcode": "NR85AG"
},
{
"SchoolName": "St Chad's Catholic Primary School",
"Postcode": "SE256LR"
},
{
"SchoolName": "St Francis of Assisi Catholic Primary School",
"Postcode": "NR23QB"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "NN32AX"
},
{
"SchoolName": "St John the Evangelist Roman Catholic Voluntary Aided Primary School",
"Postcode": "TS231LJ"
},
{
"SchoolName": "St John's Church of England Primary School",
"Postcode": "RG13JN"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Billingham",
"Postcode": "TS233NN"
},
{
"SchoolName": "St Mary and St Peter Catholic Primary School",
"Postcode": "NR316QY"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "NN57HX"
},
{
"SchoolName": "St Paul's Roman Catholic Voluntary Aided Primary School",
"Postcode": "TS225LU"
},
{
"SchoolName": "St Philip's School",
"Postcode": "KT92HR"
},
{
"SchoolName": "Swanwick Hall School",
"Postcode": "DE551AE"
},
{
"SchoolName": "The Good Shepherd Catholic Primary School",
"Postcode": "NN27BH"
},
{
"SchoolName": "The Highway Primary School",
"Postcode": "BR69DJ"
},
{
"SchoolName": "The Lindfield School",
"Postcode": "BN220BQ"
},
{
"SchoolName": "The South Downs Community Special School",
"Postcode": "BN208NU"
},
{
"SchoolName": "The Young Mums Unit",
"Postcode": "BL36HU"
},
{
"SchoolName": "<NAME>cket Catholic School",
"Postcode": "NN36HT"
},
{
"SchoolName": "<NAME> Infants School",
"Postcode": "DE138DS"
},
{
"SchoolName": "Tinsley Meadows Primary School",
"Postcode": "S91SG"
},
{
"SchoolName": "<NAME> Infants' School",
"Postcode": "SM52JE"
},
{
"SchoolName": "Walpole Cross Keys Primary School",
"Postcode": "PE344HD"
},
{
"SchoolName": "Walter Evans Church of England Aided Primary School",
"Postcode": "DE221EF"
},
{
"SchoolName": "West Leigh Junior School",
"Postcode": "SS92JB"
},
{
"SchoolName": "Weston All Saints CofE Primary School",
"Postcode": "BA14JR"
},
{
"SchoolName": "Westwood College",
"Postcode": "ST138NP"
},
{
"SchoolName": "Wheelock Primary School",
"Postcode": "CW113RT"
},
{
"SchoolName": "Worksop Priory Church of England Primary Academy",
"Postcode": "S802LJ"
},
{
"SchoolName": "Youth Challenge Pru",
"Postcode": "BL16JT"
},
{
"SchoolName": "<NAME> Academy of Music and Mathematics",
"Postcode": "NR324PZ"
},
{
"SchoolName": "Knavesmire Primary School",
"Postcode": "YO231HY"
},
{
"SchoolName": "Tong Leadership Academy",
"Postcode": "BD46NR"
},
{
"SchoolName": "Manchester Creative and Media Academy",
"Postcode": "M97SS"
},
{
"SchoolName": "Highgate Hill House School",
"Postcode": "EX226TJ"
},
{
"SchoolName": "Spilsby Primary School",
"Postcode": "PE235EP"
},
{
"SchoolName": "Lodge Farm Primary School",
"Postcode": "WV124BU"
},
{
"SchoolName": "Lever Park School",
"Postcode": "BL66DE"
},
{
"SchoolName": "Abbey School",
"Postcode": "S612RA"
},
{
"SchoolName": "Horninglow Primary, A De Ferrers Trust Academy",
"Postcode": "DE130SW"
},
{
"SchoolName": "St Edmund's Catholic Primary School",
"Postcode": "NR351AY"
},
{
"SchoolName": "Magna Carta Primary Academy",
"Postcode": "CM248JP"
},
{
"SchoolName": "Ashmole Primary School",
"Postcode": "N147NP"
},
{
"SchoolName": "Blackstone Secondary School",
"Postcode": "OL96JN"
},
{
"SchoolName": "Beaumont Primary Academy",
"Postcode": "HD45JA"
},
{
"SchoolName": "St Osyth Church of England Primary School",
"Postcode": "CO168PN"
},
{
"SchoolName": "Landmark International School",
"Postcode": "CB215EP"
},
{
"SchoolName": "The Independent School",
"Postcode": "W69AR"
},
{
"SchoolName": "Venturers' Academy",
"Postcode": "BS139AX"
},
{
"SchoolName": "Logic Studio School",
"Postcode": "TW137EF"
},
{
"SchoolName": "The Orchards",
"Postcode": "M416NA"
},
{
"SchoolName": "Daventry Hill School",
"Postcode": "NN110QE"
},
{
"SchoolName": "Broadbeck Learning Centre",
"Postcode": "BD62LE"
},
{
"SchoolName": "Dawley Church of England Primary Academy",
"Postcode": "TF43AL"
},
{
"SchoolName": "St Benet's Catholic Primary School",
"Postcode": "NR349PQ"
},
{
"SchoolName": "Uplands Junior L.E.A.D Academy",
"Postcode": "LE20DR"
},
{
"SchoolName": "Woodford Primary School",
"Postcode": "PL74RR"
},
{
"SchoolName": "Chacewater Community Primary School",
"Postcode": "TR48PZ"
},
{
"SchoolName": "Dedworth Green First School",
"Postcode": "SL45PE"
},
{
"SchoolName": "Dedworth Middle School",
"Postcode": "SL45PE"
},
{
"SchoolName": "Eton Park Junior, A De Ferrers Trust Academy",
"Postcode": "DE142SG"
},
{
"SchoolName": "Octavia Ap Academy",
"Postcode": "PE132FP"
},
{
"SchoolName": "Gossey Lane Academy",
"Postcode": "B330DS"
},
{
"SchoolName": "Hilltop School",
"Postcode": "S668AZ"
},
{
"SchoolName": "Kelford School",
"Postcode": "S612NU"
},
{
"SchoolName": "The Prescot School",
"Postcode": "L343NB"
},
{
"SchoolName": "Lansdowne: A De Ferrers Trust Academy",
"Postcode": "DE142RE"
},
{
"SchoolName": "Minehead First School",
"Postcode": "TA245RG"
},
{
"SchoolName": "Parkside Pupil Referral Unit",
"Postcode": "IP45ND"
},
{
"SchoolName": "Redhills Community Primary School",
"Postcode": "EX42BY"
},
{
"SchoolName": "Shaldon Primary School",
"Postcode": "TQ140DD"
},
{
"SchoolName": "St Catherine's CofE Primary School",
"Postcode": "PL157HX"
},
{
"SchoolName": "St James School",
"Postcode": "EX48NN"
},
{
"SchoolName": "St Mary's Roman Catholic Primary School",
"Postcode": "NR330DG"
},
{
"SchoolName": "Threemilestone School",
"Postcode": "TR36DH"
},
{
"SchoolName": "Westbridge Academy",
"Postcode": "IP12HE"
},
{
"SchoolName": "Yoxall St Peter's CofE (VC) Primary School",
"Postcode": "DE138NF"
},
{
"SchoolName": "Wisbech St Mary CofE Aided Primary School",
"Postcode": "PE134RJ"
},
{
"SchoolName": "Guilden Morden CofE Primary Academy",
"Postcode": "SG80JZ"
},
{
"SchoolName": "Templars Academy",
"Postcode": "CM82NJ"
},
{
"SchoolName": "St Nicholas Church of England Primary Academy",
"Postcode": "TN288BP"
},
{
"SchoolName": "Cedar Children's Academy",
"Postcode": "ME22JP"
},
{
"SchoolName": "Valley Primary Academy",
"Postcode": "NR58XZ"
},
{
"SchoolName": "St Michael's Church of England First School",
"Postcode": "TA245NY"
},
{
"SchoolName": "John O'gaunt School",
"Postcode": "RG170AN"
},
{
"SchoolName": "Westminster Church of England Primary",
"Postcode": "BD30HW"
},
{
"SchoolName": "Buttershaw Business & Enterprise College Academy",
"Postcode": "BD63PX"
},
{
"SchoolName": "St Joseph's Catholic Voluntary Academy",
"Postcode": "DE43FT"
},
{
"SchoolName": "Best Futures",
"Postcode": "DN377AW"
},
{
"SchoolName": "Horton School Beverley",
"Postcode": "HU170BG"
},
{
"SchoolName": "Tokyngton Academy",
"Postcode": "NW108LW"
},
{
"SchoolName": "Bridge Training and Development",
"Postcode": "WR80DX"
},
{
"SchoolName": "Woodlands Primary School",
"Postcode": "TN104BB"
},
{
"SchoolName": "ACE Schools Plymouth",
"Postcode": "PL40AT"
},
{
"SchoolName": "Barkerend Academy",
"Postcode": "BD30QT"
},
{
"SchoolName": "Cawston Church of England Primary Academy",
"Postcode": "NR104AY"
},
{
"SchoolName": "Badger Hill Primary Academy",
"Postcode": "YO105JF"
},
{
"SchoolName": "Firside Junior School",
"Postcode": "NR65NF"
},
{
"SchoolName": "Great Coates Primary School",
"Postcode": "DN379EN"
},
{
"SchoolName": "Heacham Junior School",
"Postcode": "PE317EJ"
},
{
"SchoolName": "Hempstalls Primary School",
"Postcode": "ST59LH"
},
{
"SchoolName": "Hempland Primary Academy",
"Postcode": "YO311ET"
},
{
"SchoolName": "Heworth Church of England Primary Academy",
"Postcode": "YO310AA"
},
{
"SchoolName": "Holyport CofE Primary School",
"Postcode": "SL62LP"
},
{
"SchoolName": "Ickford School",
"Postcode": "HP189HY"
},
{
"SchoolName": "Knighton Fields Primary Academy",
"Postcode": "LE26LG"
},
{
"SchoolName": "Montpelier Primary School",
"Postcode": "PL23HN"
},
{
"SchoolName": "Mount Charles School",
"Postcode": "PL254PP"
},
{
"SchoolName": "Rudham CofE Primary Academy",
"Postcode": "PE318RF"
},
{
"SchoolName": "St Katherine's School",
"Postcode": "BS200HU"
},
{
"SchoolName": "Thornbury Academy",
"Postcode": "BD37AU"
},
{
"SchoolName": "Weasenham Church of England Primary Academy",
"Postcode": "PE322SP"
},
{
"SchoolName": "West Craven High School",
"Postcode": "BB185TB"
},
{
"SchoolName": "Willowbrook Primary Academy",
"Postcode": "LE52NA"
},
{
"SchoolName": "Yew Tree Community Junior and Infant School (NC)",
"Postcode": "B66RX"
},
{
"SchoolName": "The Llewellyn School and Nursery",
"Postcode": "CT95DU"
},
{
"SchoolName": "Meadows School",
"Postcode": "GU212QS"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "CR04BH"
},
{
"SchoolName": "Yavneh Primary School",
"Postcode": "WD61HL"
},
{
"SchoolName": "Bicester Technology Studio",
"Postcode": "OX262NS"
},
{
"SchoolName": "Pinner High School",
"Postcode": "HA51NB"
},
{
"SchoolName": "Olive School, Preston",
"Postcode": "PR14BX"
},
{
"SchoolName": "Wootton Park School",
"Postcode": "NN40JQ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NR11DJ"
},
{
"SchoolName": "TBAP 16-19 Academic AP Academy",
"Postcode": "SW66HB"
},
{
"SchoolName": "One Degree Academy",
"Postcode": "EN34SA"
},
{
"SchoolName": "Galleywall Primary",
"Postcode": "SE163PB"
},
{
"SchoolName": "Canary Wharf College 3",
"Postcode": "E143BA"
},
{
"SchoolName": "Rugby Free Secondary School",
"Postcode": "CV230PD"
},
{
"SchoolName": "Beacon of Light School",
"Postcode": "SR51SU"
},
{
"SchoolName": "Trafalgar College",
"Postcode": "NR310DN"
},
{
"SchoolName": "Scarborough University Technical College",
"Postcode": "YO112JL"
},
{
"SchoolName": "Concordia Academy",
"Postcode": "RM70GN"
},
{
"SchoolName": "Westclyst Community Primary School",
"Postcode": "EX53JG"
},
{
"SchoolName": "The Global Academy",
"Postcode": "UB31HA"
},
{
"SchoolName": "The Olive School, Birmingham",
"Postcode": "B114EA"
},
{
"SchoolName": "Edison Primary School",
"Postcode": "TW50AH"
},
{
"SchoolName": "Crewe Engineering and Design UTC",
"Postcode": "CW12PZ"
},
{
"SchoolName": "LIPA Sixth Form College",
"Postcode": "L19HF"
},
{
"SchoolName": "Pioneer House High School",
"Postcode": "M232YS"
},
{
"SchoolName": "UTC South Durham",
"Postcode": "DL56AP"
},
{
"SchoolName": "Atam Academy",
"Postcode": "RM64XT"
},
{
"SchoolName": "Langley Park Primary School",
"Postcode": "BR33BE"
},
{
"SchoolName": "The Olive School, Bolton",
"Postcode": "BL18HT"
},
{
"SchoolName": "UTC Warrington",
"Postcode": "WA27NG"
},
{
"SchoolName": "WMG Academy for Young Engineers (Solihull)",
"Postcode": "B375FD"
},
{
"SchoolName": "Greater Peterborough UTC",
"Postcode": "PE14DZ"
},
{
"SchoolName": "London Design and Engineering UTC",
"Postcode": "E162RD"
},
{
"SchoolName": "Saint Jerome Church of England Bilingual School",
"Postcode": "HA12QB"
},
{
"SchoolName": "South Bank Engineering UTC",
"Postcode": "SW21QS"
},
{
"SchoolName": "The Eaglewood School",
"Postcode": "BH256SY"
},
{
"SchoolName": "Whitehouse Primary School",
"Postcode": "MK81AG"
},
{
"SchoolName": "Greatfields School",
"Postcode": "IG117JA"
},
{
"SchoolName": "Cambian Spring Hill",
"Postcode": "HG43HN"
},
{
"SchoolName": "Phoenix School of Therapeutic Education",
"Postcode": "S23PX"
},
{
"SchoolName": "Bishop Bridgeman CofE Primary School",
"Postcode": "BL36PY"
},
{
"SchoolName": "Barming Primary School",
"Postcode": "ME169DY"
},
{
"SchoolName": "Ticehurst Hospital School",
"Postcode": "TN57HU"
},
{
"SchoolName": "Rise Learning Zone",
"Postcode": "NG17AR"
},
{
"SchoolName": "TBAP Unity Academy",
"Postcode": "PE191EA"
},
{
"SchoolName": "Edenthorpe Hall Primary Academy",
"Postcode": "DN32LS"
},
{
"SchoolName": "Hillside Academy",
"Postcode": "DN124DX"
},
{
"SchoolName": "Shalford Primary School",
"Postcode": "CM75EZ"
},
{
"SchoolName": "<NAME>'s CofE Aided Primary School Northenden",
"Postcode": "M224NR"
},
{
"SchoolName": "Lower Meadow Primary School",
"Postcode": "S88EE"
},
{
"SchoolName": "The Place Independent School",
"Postcode": "NG130EA"
},
{
"SchoolName": "Welton Primary School",
"Postcode": "BA32AG"
},
{
"SchoolName": "Longvernal Primary School",
"Postcode": "BA32LP"
},
{
"SchoolName": "Combe Down CofE Primary School",
"Postcode": "BA25JQ"
},
{
"SchoolName": "St James CofE Primary School, Farnworth",
"Postcode": "BL49QB"
},
{
"SchoolName": "St John the Evangelist Catholic Primary School",
"Postcode": "BD63DQ"
},
{
"SchoolName": "Oxenhope CofE Primary School",
"Postcode": "BD229LH"
},
{
"SchoolName": "St Walburga's Catholic Primary School, A Voluntary Academy",
"Postcode": "BD184RL"
},
{
"SchoolName": "Oakworth Primary School",
"Postcode": "BD227HX"
},
{
"SchoolName": "Haworth Primary School",
"Postcode": "BD228DW"
},
{
"SchoolName": "Lees Primary School",
"Postcode": "BD229DL"
},
{
"SchoolName": "St Winefride's Catholic Primary School, A Voluntary Academy",
"Postcode": "BD61SR"
},
{
"SchoolName": "Roche Community Primary School",
"Postcode": "PL268EP"
},
{
"SchoolName": "Polperro Primary Academy",
"Postcode": "PL132JJ"
},
{
"SchoolName": "Lanlivery Community Primary School",
"Postcode": "PL305BT"
},
{
"SchoolName": "Pelynt School",
"Postcode": "PL132LG"
},
{
"SchoolName": "Darite Primary School",
"Postcode": "PL145JH"
},
{
"SchoolName": "St Erth Community Primary School",
"Postcode": "TR276HN"
},
{
"SchoolName": "The Beacon Infant and Nursery School, Bodmin",
"Postcode": "PL311JQ"
},
{
"SchoolName": "Polruan Community Primary School",
"Postcode": "PL231PS"
},
{
"SchoolName": "Lyng Hall School",
"Postcode": "CV23JS"
},
{
"SchoolName": "High Coniscliffe CofE Primary School",
"Postcode": "DL22LL"
},
{
"SchoolName": "St Mary's Cockerton Church of England Primary School",
"Postcode": "DL39EX"
},
{
"SchoolName": "Trent Young's Endowed Church of England Voluntary Aided Primary School",
"Postcode": "DT94SW"
},
{
"SchoolName": "Brougham Primary School",
"Postcode": "TS248EY"
},
{
"SchoolName": "Brookside Infant School",
"Postcode": "RM39DJ"
},
{
"SchoolName": "Thurnby Lodge Primary Academy",
"Postcode": "LE52EG"
},
{
"SchoolName": "St Edmund's Academy",
"Postcode": "PE302HU"
},
{
"SchoolName": "Littlecoates Primary Academy",
"Postcode": "DN312QX"
},
{
"SchoolName": "Lilliput Church of England Infant School",
"Postcode": "BH148JX"
},
{
"SchoolName": "Old Town Infant School and Nursery",
"Postcode": "BH151QB"
},
{
"SchoolName": "Courthill Infant School",
"Postcode": "BH149HL"
},
{
"SchoolName": "Longfleet Church of England Primary School",
"Postcode": "BH152HF"
},
{
"SchoolName": "Baden-Powell and St Peter's Church of England Junior School",
"Postcode": "BH148UL"
},
{
"SchoolName": "Oakdale Junior School",
"Postcode": "BH153JR"
},
{
"SchoolName": "High Greave Junior School",
"Postcode": "S653LZ"
},
{
"SchoolName": "High Greave Infant School",
"Postcode": "S653LZ"
},
{
"SchoolName": "Catcliffe Primary School",
"Postcode": "S605SW"
},
{
"SchoolName": "Streetsbrook Infant and Early Years Academy",
"Postcode": "B903LB"
},
{
"SchoolName": "Codsall Middle School",
"Postcode": "WV81PB"
},
{
"SchoolName": "Barnfields Primary School",
"Postcode": "ST174RD"
},
{
"SchoolName": "St Peter's Church of England Primary Academy",
"Postcode": "WS99EE"
},
{
"SchoolName": "Sir Graham Balfour High School",
"Postcode": "ST161NR"
},
{
"SchoolName": "Ellison Primary Academy",
"Postcode": "ST50BL"
},
{
"SchoolName": "Leasowes Primary School",
"Postcode": "ST170HT"
},
{
"SchoolName": "St Nicholas Church of England First School",
"Postcode": "WV81AN"
},
{
"SchoolName": "Walton High School",
"Postcode": "ST170LJ"
},
{
"SchoolName": "Park Hall Academy",
"Postcode": "ST35QU"
},
{
"SchoolName": "Laureate Community Primary School and Nursery",
"Postcode": "CB80AN"
},
{
"SchoolName": "Nacton Church of England Primary School",
"Postcode": "IP100EU"
},
{
"SchoolName": "Wickhambrook Community Primary School",
"Postcode": "CB88XN"
},
{
"SchoolName": "Burnside Academy Inspires",
"Postcode": "DH45HB"
},
{
"SchoolName": "Fatfield Academy",
"Postcode": "NE388RB"
},
{
"SchoolName": "Eastwick Infant School",
"Postcode": "KT233PP"
},
{
"SchoolName": "Eastwick Junior School",
"Postcode": "KT233PP"
},
{
"SchoolName": "Cuddington Community Primary School",
"Postcode": "KT47DD"
},
{
"SchoolName": "Wallace Fields Infant School and Nursery",
"Postcode": "KT173AS"
},
{
"SchoolName": "Stanley Park High",
"Postcode": "SM54NS"
},
{
"SchoolName": "Sharlston Community School (3-11): With Visual Impairment Resource",
"Postcode": "WF41DH"
},
{
"SchoolName": "Durrington All Saints Church of England Voluntary Controlled Infants' School",
"Postcode": "SP48HJ"
},
{
"SchoolName": "Avon Valley College",
"Postcode": "SP48HH"
},
{
"SchoolName": "Figheldean St Michael's Church of England Primary School",
"Postcode": "SP48JT"
},
{
"SchoolName": "Bulford St Leonard's C of E (VA) Primary School",
"Postcode": "SP49HP"
},
{
"SchoolName": "Keevil CofE Primary School",
"Postcode": "BA146LU"
},
{
"SchoolName": "Widcombe Infant School",
"Postcode": "BA24JG"
},
{
"SchoolName": "Gorsey Bank Primary School",
"Postcode": "SK95NQ"
},
{
"SchoolName": "Greenways Primary Academy",
"Postcode": "ST99NY"
},
{
"SchoolName": "Bulwell St Mary's Primary and Nursery School",
"Postcode": "NG68GQ"
},
{
"SchoolName": "Nancledra School",
"Postcode": "TR208NB"
},
{
"SchoolName": "SW!TCH Borders",
"Postcode": "RM82UT"
},
{
"SchoolName": "St John the Evangelist Church School",
"Postcode": "BS215EL"
},
{
"SchoolName": "Compass Primary Academy",
"Postcode": "NN157EA"
},
{
"SchoolName": "Raise Education and Wellbeing School",
"Postcode": "BL33HS"
},
{
"SchoolName": "Red Lane Primary School",
"Postcode": "BL25HP"
},
{
"SchoolName": "Masefield Primary School",
"Postcode": "BL31NG"
},
{
"SchoolName": "St Joseph's Catholic Primary School",
"Postcode": "BD211AR"
},
{
"SchoolName": "Clare House Primary School",
"Postcode": "BR36PY"
},
{
"SchoolName": "St Paul's Church of England Academy",
"Postcode": "TN376RT"
},
{
"SchoolName": "St Catherine's College",
"Postcode": "BN237BL"
},
{
"SchoolName": "Alternative Centre of Education",
"Postcode": "N90TZ"
},
{
"SchoolName": "St Anthony's School for Girls",
"Postcode": "NW117SX"
},
{
"SchoolName": "Sandwell Valley School",
"Postcode": "B706QT"
},
{
"SchoolName": "Blackwater Academy",
"Postcode": "B13ND"
},
{
"SchoolName": "Hope House School",
"Postcode": "PR40HP"
},
{
"SchoolName": "Cherwell College",
"Postcode": "OX12AR"
},
{
"SchoolName": "Bramfield Church of England Primary School",
"Postcode": "IP199HZ"
},
{
"SchoolName": "Damson Wood Nursery and Infant School",
"Postcode": "B929LX"
},
{
"SchoolName": "Abbeyfield Primary Academy",
"Postcode": "S39AN"
},
{
"SchoolName": "Reepham Primary School",
"Postcode": "NR104JP"
},
{
"SchoolName": "Aston Hall Junior and Infant School",
"Postcode": "S262AX"
},
{
"SchoolName": "Aston Lodge Primary School",
"Postcode": "S262BL"
},
{
"SchoolName": "Bardwell Church of England Voluntary Controlled Primary School",
"Postcode": "IP311AD"
},
{
"SchoolName": "Brinsworth Whitehill Primary School",
"Postcode": "S605HT"
},
{
"SchoolName": "Bruche Community Primary School",
"Postcode": "WA13TT"
},
{
"SchoolName": "Buile Hill Visual Arts College",
"Postcode": "M68RD"
},
{
"SchoolName": "Burford Primary and Nursery School",
"Postcode": "NG56FX"
},
{
"SchoolName": "Byron Wood Primary Academy",
"Postcode": "S47EJ"
},
{
"SchoolName": "Chatsworth High School and Community College",
"Postcode": "M309DY"
},
{
"SchoolName": "Egglescliffe School",
"Postcode": "TS160LA"
},
{
"SchoolName": "Evelyn Street Community Primary School",
"Postcode": "WA51BD"
},
{
"SchoolName": "Gislingham Church of England Voluntary Controlled Primary School",
"Postcode": "IP238HX"
},
{
"SchoolName": "Glebeland Community Primary School",
"Postcode": "NR340EW"
},
{
"SchoolName": "Glen Park Primary School",
"Postcode": "PL72DE"
},
{
"SchoolName": "Junction Farm Primary School",
"Postcode": "TS160EU"
},
{
"SchoolName": "Mendham Primary School",
"Postcode": "IP200NJ"
},
{
"SchoolName": "Old Newton Church of England Voluntary Controlled Primary School",
"Postcode": "IP144PJ"
},
{
"SchoolName": "Palgrave Church of England Voluntary Controlled Primary School",
"Postcode": "IP221AG"
},
{
"SchoolName": "Penketh Community Primary School",
"Postcode": "WA52QY"
},
{
"SchoolName": "Priory Fields School",
"Postcode": "CT170FS"
},
{
"SchoolName": "St Edmund's Primary School",
"Postcode": "IP215AD"
},
{
"SchoolName": "St Martin's School",
"Postcode": "CT179LY"
},
{
"SchoolName": "Stanwick Academy",
"Postcode": "NN96PS"
},
{
"SchoolName": "The Links Primary School",
"Postcode": "TS169ES"
},
{
"SchoolName": "Towngate Primary Academy",
"Postcode": "WF50QA"
},
{
"SchoolName": "Windrush Primary School",
"Postcode": "SE288AR"
},
{
"SchoolName": "Horatio House Independent School",
"Postcode": "NR310JR"
},
{
"SchoolName": "Bishop Douglass School Finchley",
"Postcode": "N20SQ"
},
{
"SchoolName": "Saltford CofE Primary School",
"Postcode": "BS313DW"
},
{
"SchoolName": "Harrold Lower School",
"Postcode": "MK437DB"
},
{
"SchoolName": "Chatsworth Infant School",
"Postcode": "DA159DD"
},
{
"SchoolName": "Conway Primary School",
"Postcode": "B111NS"
},
{
"SchoolName": "The Oval School",
"Postcode": "B338JG"
},
{
"SchoolName": "Cedars Academy",
"Postcode": "B276JL"
},
{
"SchoolName": "Firs Primary School",
"Postcode": "B368LL"
},
{
"SchoolName": "Greet Primary School",
"Postcode": "B113ND"
},
{
"SchoolName": "Topcliffe Primary School",
"Postcode": "B356BS"
},
{
"SchoolName": "Allerton Primary School",
"Postcode": "BD157HB"
},
{
"SchoolName": "Horton Grange Primary School",
"Postcode": "BD72EU"
},
{
"SchoolName": "Beckfoot Heaton Primary",
"Postcode": "BD96LL"
},
{
"SchoolName": "Horton Park Primary School",
"Postcode": "BD59LQ"
},
{
"SchoolName": "Copthorne Primary School",
"Postcode": "BD73AY"
},
{
"SchoolName": "St George's, Bickley, Church of England Primary School",
"Postcode": "BR12RL"
},
{
"SchoolName": "Columbus House",
"Postcode": "HX20TX"
},
{
"SchoolName": "St Uny CofE School",
"Postcode": "TR262SQ"
},
{
"SchoolName": "St Mark's Voluntary Aided Ecumenical CofE/Methodist Primary School",
"Postcode": "BS227PU"
},
{
"SchoolName": "The Royal School, Wolverhampton",
"Postcode": "WV30EG"
},
{
"SchoolName": "North Cestrian School",
"Postcode": "WA144AJ"
},
{
"SchoolName": "The National Mathematics and Science College",
"Postcode": "CV48JB"
},
{
"SchoolName": "Gloverspiece",
"Postcode": "WR90RQ"
},
{
"SchoolName": "Oakwell Rise Primary",
"Postcode": "S701TS"
},
{
"SchoolName": "St Martin's Garden Primary School",
"Postcode": "BA22UN"
},
{
"SchoolName": "Dorset Road Infant School",
"Postcode": "SE94QX"
},
{
"SchoolName": "Red Hill Primary School",
"Postcode": "BR76DA"
},
{
"SchoolName": "Highfield Ely Academy",
"Postcode": "CB61BD"
},
{
"SchoolName": "Beckfoot Oakbank",
"Postcode": "BD227DU"
},
{
"SchoolName": "Queensbury School",
"Postcode": "BD132AS"
},
{
"SchoolName": "Beckfoot Thornton",
"Postcode": "BD133BH"
},
{
"SchoolName": "Longtown Primary School",
"Postcode": "CA65UG"
},
{
"SchoolName": "Whitecotes Primary Academy",
"Postcode": "S403HJ"
},
{
"SchoolName": "Woodlands Academy",
"Postcode": "W130DH"
},
{
"SchoolName": "Hawkes Farm Academy",
"Postcode": "BN271ND"
},
{
"SchoolName": "Breakwater Academy",
"Postcode": "BN99UT"
},
{
"SchoolName": "S<NAME> Frobisher Academy",
"Postcode": "CO152QH"
},
{
"SchoolName": "Lubbins Park Primary Academy",
"Postcode": "SS87HF"
},
{
"SchoolName": "Larkrise Primary School",
"Postcode": "CM29UB"
},
{
"SchoolName": "Northlands Primary School and Nursery",
"Postcode": "SS133JQ"
},
{
"SchoolName": "Whitmore Primary School and Nursery",
"Postcode": "SS142TP"
},
{
"SchoolName": "Ryedene Primary and Nursery School",
"Postcode": "SS164SY"
},
{
"SchoolName": "The Phoenix Primary School",
"Postcode": "SS155NQ"
},
{
"SchoolName": "Phoenix Academy",
"Postcode": "W120RQ"
},
{
"SchoolName": "Olive Ap Academy - Havering",
"Postcode": "RM113UR"
},
{
"SchoolName": "Robert Barclay Academy",
"Postcode": "EN118JY"
},
{
"SchoolName": "Theddlethorpe Primary School",
"Postcode": "LN121PB"
},
{
"SchoolName": "Beecholme Primary School",
"Postcode": "CR42HZ"
},
{
"SchoolName": "Stantonbury Campus",
"Postcode": "MK146BN"
},
{
"SchoolName": "Old Buckenham Primary School",
"Postcode": "NR171RH"
},
{
"SchoolName": "St Georges VA Church Primary School",
"Postcode": "BS227SA"
},
{
"SchoolName": "Brayton Academy",
"Postcode": "YO89QS"
},
{
"SchoolName": "Camblesforth Community Primary Academy",
"Postcode": "YO88HW"
},
{
"SchoolName": "The Parkgate Academy",
"Postcode": "NG229TH"
},
{
"SchoolName": "Swinton Academy",
"Postcode": "S648JW"
},
{
"SchoolName": "St Martins School (3-16 Learning Community)",
"Postcode": "SY107BD"
},
{
"SchoolName": "Minerva Primary School",
"Postcode": "TA12BU"
},
{
"SchoolName": "Rosebrook Academy",
"Postcode": "TS199LF"
},
{
"SchoolName": "Outwood Academy Bishopsgarth",
"Postcode": "TS198TF"
},
{
"SchoolName": "Long Melford Church of England Voluntary Controlled Primary School",
"Postcode": "CO109ED"
},
{
"SchoolName": "Paddington Green Primary School",
"Postcode": "W21SP"
},
{
"SchoolName": "Chadwell St Mary Primary School",
"Postcode": "RM164DH"
},
{
"SchoolName": "Northern House School (City of Wolverhampton) Primary PRU",
"Postcode": "WV60UA"
},
{
"SchoolName": "Hill Avenue Academy",
"Postcode": "WV46PY"
},
{
"SchoolName": "East Park Academy",
"Postcode": "WV12DS"
},
{
"SchoolName": "Underwood West Academy",
"Postcode": "CW13LF"
},
{
"SchoolName": "Adlington Primary School",
"Postcode": "SK104JX"
},
{
"SchoolName": "The Wilmslow Academy",
"Postcode": "SK92LX"
},
{
"SchoolName": "Calveley Primary Academy",
"Postcode": "CW69LE"
},
{
"SchoolName": "Acton Church of England Primary Academy",
"Postcode": "CW58LG"
},
{
"SchoolName": "Highfields Academy",
"Postcode": "CW56HA"
},
{
"SchoolName": "Bugle School",
"Postcode": "PL268PD"
},
{
"SchoolName": "Curnow School",
"Postcode": "TR151LU"
},
{
"SchoolName": "Nancealverne School",
"Postcode": "TR208TP"
},
{
"SchoolName": "Constantine Primary School",
"Postcode": "TR115AG"
},
{
"SchoolName": "Trevisker Community Primary School",
"Postcode": "PL277UD"
},
{
"SchoolName": "Mabe Community Primary School",
"Postcode": "TR109HB"
},
{
"SchoolName": "Probus Community Primary School",
"Postcode": "TR24LE"
},
{
"SchoolName": "The Bishops CofE Primary School",
"Postcode": "TR72SR"
},
{
"SchoolName": "Doubletrees School",
"Postcode": "PL242DS"
},
{
"SchoolName": "Newbury School",
"Postcode": "B192SW"
},
{
"SchoolName": "Nightingale Community Academy",
"Postcode": "SW177DF"
},
{
"SchoolName": "Biscovey Nursery and Infant Community School",
"Postcode": "PL242DB"
},
{
"SchoolName": "Stanton Bridge Primary School",
"Postcode": "CV65TY"
},
{
"SchoolName": "The Woodside Academy",
"Postcode": "CR06NF"
},
{
"SchoolName": "Barrow Hill Primary Academy",
"Postcode": "S432PG"
},
{
"SchoolName": "Christ Church CofE Primary School",
"Postcode": "S417JU"
},
{
"SchoolName": "Poolsbrook Primary Academy",
"Postcode": "S433LF"
},
{
"SchoolName": "Musbury Primary School",
"Postcode": "EX138BB"
},
{
"SchoolName": "Sidmouth Church of England (VA) Primary School",
"Postcode": "EX109XB"
},
{
"SchoolName": "Tidcombe Primary School",
"Postcode": "EX164BP"
},
{
"SchoolName": "Lady Modiford's Church of England (Voluntary Aided) Primary School",
"Postcode": "PL206JR"
},
{
"SchoolName": "All Saints Church of England Primary School",
"Postcode": "EX137LX"
},
{
"SchoolName": "Hawkchurch Church of England School",
"Postcode": "EX135XD"
},
{
"SchoolName": "Alphington Primary School",
"Postcode": "EX28RQ"
},
{
"SchoolName": "Ide Primary School",
"Postcode": "EX29RN"
},
{
"SchoolName": "Beer Church of England Primary School",
"Postcode": "EX123NB"
},
{
"SchoolName": "St Thomas Primary School",
"Postcode": "EX29BB"
},
{
"SchoolName": "Meavy Church of England Primary School",
"Postcode": "PL206PJ"
},
{
"SchoolName": "Bowhill Primary School",
"Postcode": "EX41JT"
},
{
"SchoolName": "Hexthorpe Primary School",
"Postcode": "DN40HH"
},
{
"SchoolName": "Tenterfields Primary School",
"Postcode": "B633LH"
},
{
"SchoolName": "Hob Green Primary School",
"Postcode": "DY99EX"
},
{
"SchoolName": "Edmonton County School",
"Postcode": "EN11HQ"
},
{
"SchoolName": "Hazelbury Primary School",
"Postcode": "N99TT"
},
{
"SchoolName": "Chesterfield Primary School",
"Postcode": "EN36BG"
},
{
"SchoolName": "Bowes Primary School",
"Postcode": "N112HL"
},
{
"SchoolName": "Bardfield Academy",
"Postcode": "SS164NL"
},
{
"SchoolName": "Rich<NAME> Clare Community Primary School",
"Postcode": "CO92JT"
},
{
"SchoolName": "Merrylands Primary School",
"Postcode": "SS156QS"
},
{
"SchoolName": "The Willows Primary School",
"Postcode": "SS142EX"
},
{
"SchoolName": "Berkeley Primary School",
"Postcode": "GL139AZ"
},
{
"SchoolName": "Lakefield CofE Primary School",
"Postcode": "GL27HG"
},
{
"SchoolName": "Timbercroft Primary School",
"Postcode": "SE182SG"
},
{
"SchoolName": "Brooklands Primary School",
"Postcode": "SE39AB"
},
{
"SchoolName": "Millennium Primary School",
"Postcode": "SE100BG"
},
{
"SchoolName": "Queen's Manor School and Special Needs Unit",
"Postcode": "SW66ND"
},
{
"SchoolName": "Fulham Primary School",
"Postcode": "SW61JU"
},
{
"SchoolName": "Sulivan Primary School",
"Postcode": "SW63BN"
},
{
"SchoolName": "Jesmond Gardens Primary School",
"Postcode": "TS248PJ"
},
{
"SchoolName": "Benhurst Primary School",
"Postcode": "RM124QS"
},
{
"SchoolName": "Oakfield Primary Academy",
"Postcode": "DA12SW"
},
{
"SchoolName": "Temple Hill Primary Academy",
"Postcode": "DA15ND"
},
{
"SchoolName": "Upton Junior School",
"Postcode": "CT102AH"
},
{
"SchoolName": "Kelvin Hall School",
"Postcode": "HU54QH"
},
{
"SchoolName": "The Boulevard Centre",
"Postcode": "HU33EL"
},
{
"SchoolName": "Stepney Primary School",
"Postcode": "HU51JJ"
},
{
"SchoolName": "Ings Primary School",
"Postcode": "HU80SL"
},
{
"SchoolName": "Chiltern Primary School",
"Postcode": "HU33PL"
},
{
"SchoolName": "St George's Primary School",
"Postcode": "HU36ED"
},
{
"SchoolName": "Joseph Norton Academy",
"Postcode": "HD89JU"
},
{
"SchoolName": "Thornhill Junior and Infant School",
"Postcode": "WF120QT"
},
{
"SchoolName": "Brigshaw High School",
"Postcode": "WF102HR"
},
{
"SchoolName": "Swillington Primary School",
"Postcode": "LS268DX"
},
{
"SchoolName": "Kippax Greenfield Primary School",
"Postcode": "LS257PA"
},
{
"SchoolName": "Allerton Bywater Primary School",
"Postcode": "WF102DR"
},
{
"SchoolName": "Kippax North Primary School",
"Postcode": "LS257EJ"
},
{
"SchoolName": "Merrydale Junior School",
"Postcode": "LE50PL"
},
{
"SchoolName": "Braunstone Community Primary School",
"Postcode": "LE31QH"
},
{
"SchoolName": "Woodstock Primary Academy",
"Postcode": "LE42GZ"
},
{
"SchoolName": "Babington Community College",
"Postcode": "LE40SZ"
},
{
"SchoolName": "Fernvale Primary School",
"Postcode": "LE79PR"
},
{
"SchoolName": "Seagrave Village Primary School",
"Postcode": "LE127LU"
},
{
"SchoolName": "Newcroft Primary Academy",
"Postcode": "LE129DU"
},
{
"SchoolName": "Ashby Willesley Primary School",
"Postcode": "LE652QG"
},
{
"SchoolName": "Husbands Bosworth Church of England Primary School",
"Postcode": "LE176JU"
},
{
"SchoolName": "Newtown Linford Primary School",
"Postcode": "LE60AD"
},
{
"SchoolName": "St Andrew's Church of England Primary School, North Kilworth",
"Postcode": "LE176HD"
},
{
"SchoolName": "The Morton Church of England (Controlled) Primary School",
"Postcode": "PE100NN"
},
{
"SchoolName": "Gosberton House School",
"Postcode": "PE114EW"
},
{
"SchoolName": "Brown's Church of England Primary School, Horbling",
"Postcode": "NG340PL"
},
{
"SchoolName": "The Edenham Church of England School",
"Postcode": "PE100LP"
},
{
"SchoolName": "Parrs Wood High School",
"Postcode": "M205PG"
},
{
"SchoolName": "Walderslade Primary School",
"Postcode": "ME58BJ"
},
{
"SchoolName": "Hoo St Werburgh Primary School and Marlborough Centre",
"Postcode": "ME39BS"
},
{
"SchoolName": "Olney Middle School",
"Postcode": "MK465DZ"
},
{
"SchoolName": "Water Hall Primary School",
"Postcode": "MK23QF"
},
{
"SchoolName": "Chestnuts Primary School",
"Postcode": "MK35EN"
},
{
"SchoolName": "Stocksfield Avenue Primary School A Member of Smart Multi Academy Trust",
"Postcode": "NE52DQ"
},
{
"SchoolName": "Kenton Bar Primary School A Member of Smart Multi Academy Trust",
"Postcode": "NE33YF"
},
{
"SchoolName": "North Fawdon Primary School A Member of Smart Multi Academy Trust",
"Postcode": "NE32SL"
},
{
"SchoolName": "Mountfield Primary School A Member of Smart Multi Academy Trust",
"Postcode": "NE33AT"
},
{
"SchoolName": "Kingston Park Primary School A Member of Smart Multi Academy Trust",
"Postcode": "NE32EL"
},
{
"SchoolName": "Cheviot Primary School A Member of Smart Multi Academy Trust",
"Postcode": "NE54EB"
},
{
"SchoolName": "Farne Primary School A Member of Smart Multi Academy Trust",
"Postcode": "NE54AP"
},
{
"SchoolName": "Wyndham Primary School A Member of Smart Multi Academy Trust",
"Postcode": "NE34QP"
},
{
"SchoolName": "Forest Gate Community School",
"Postcode": "E79BB"
},
{
"SchoolName": "Eleanor Smith School",
"Postcode": "E139HN"
},
{
"SchoolName": "Gainsborough Primary School",
"Postcode": "E153AF"
},
{
"SchoolName": "Kaizen Primary School",
"Postcode": "E138LH"
},
{
"SchoolName": "Thorpe St Andrew School and Sixth Form",
"Postcode": "NR70XS"
},
{
"SchoolName": "Dussindale Primary School",
"Postcode": "NR70US"
},
{
"SchoolName": "Hillside Avenue Primary and Nursery School, Thorpe",
"Postcode": "NR70QW"
},
{
"SchoolName": "St Peter's CofE Primary School",
"Postcode": "DN358LW"
},
{
"SchoolName": "Portishead Primary School",
"Postcode": "BS207DB"
},
{
"SchoolName": "St Mary's Church of England Voluntary Aided Primary School, Portbury",
"Postcode": "BS207TR"
},
{
"SchoolName": "High Down Infant School",
"Postcode": "BS206DY"
},
{
"SchoolName": "St Peter's Church of England Primary School",
"Postcode": "BS206BT"
},
{
"SchoolName": "High Down Junior School",
"Postcode": "BS206DY"
},
{
"SchoolName": "Hookstone Chase Primary School",
"Postcode": "HG27DJ"
},
{
"SchoolName": "Scalby School",
"Postcode": "YO126TH"
},
{
"SchoolName": "Forest of Galtres Anglican/Methodist Primary School",
"Postcode": "YO301AG"
},
{
"SchoolName": "East Whitby Primary Academy",
"Postcode": "YO224HU"
},
{
"SchoolName": "Queen Elizabeth High School",
"Postcode": "NE463JB"
},
{
"SchoolName": "Hexham Middle School",
"Postcode": "NE461BU"
},
{
"SchoolName": "Robert Miles Junior School",
"Postcode": "NG138AP"
},
{
"SchoolName": "St Peter's Crosskeys CofE Academy",
"Postcode": "NG244TE"
},
{
"SchoolName": "Greenwood Primary and Nursery School",
"Postcode": "NG178FX"
},
{
"SchoolName": "Heymann Primary and Nursery School",
"Postcode": "NG27GX"
},
{
"SchoolName": "Burntstump Seely CofE Primary Academy",
"Postcode": "NG58PQ"
},
{
"SchoolName": "Keyworth Primary and Nursery School",
"Postcode": "NG125FB"
},
{
"SchoolName": "Burton Joyce Primary School",
"Postcode": "NG145EB"
},
{
"SchoolName": "Crossdale Drive Primary School",
"Postcode": "NG125HP"
},
{
"SchoolName": "Tollerton Primary School",
"Postcode": "NG124ET"
},
{
"SchoolName": "Cropwell Bishop Primary School",
"Postcode": "NG123BX"
},
{
"SchoolName": "Kingfisher Special School",
"Postcode": "OL99QR"
},
{
"SchoolName": "Oakwood Primary Academy",
"Postcode": "PL66QS"
},
{
"SchoolName": "Thornbury Primary School",
"Postcode": "PL68UL"
},
{
"SchoolName": "Manadon Vale Primary School",
"Postcode": "PL53DL"
},
{
"SchoolName": "Leigham Primary School",
"Postcode": "PL68RF"
},
{
"SchoolName": "Widey Court Primary School",
"Postcode": "PL65JS"
},
{
"SchoolName": "Weston Mill Community Primary Academy",
"Postcode": "PL22EL"
},
{
"SchoolName": "Beechwood Primary Academy",
"Postcode": "PL66DX"
},
{
"SchoolName": "Eggbuckland Vale Primary School",
"Postcode": "PL65PS"
},
{
"SchoolName": "Twin Sails Infant School",
"Postcode": "BH154AX"
},
{
"SchoolName": "Hamworthy Park Junior School",
"Postcode": "BH154DG"
},
{
"SchoolName": "Court Lane Infant Academy",
"Postcode": "PO62PP"
},
{
"SchoolName": "Court Lane Junior Academy",
"Postcode": "PO62PP"
},
{
"SchoolName": "Clarendon School",
"Postcode": "TW123DH"
},
{
"SchoolName": "Strathmore School",
"Postcode": "TW107ED"
},
{
"SchoolName": "Middleton Technology School",
"Postcode": "M242GT"
},
{
"SchoolName": "Swinton Queen Primary School",
"Postcode": "S648NE"
},
{
"SchoolName": "Prees CofE Primary School",
"Postcode": "SY132ER"
},
{
"SchoolName": "Whixall CofE Primary School",
"Postcode": "SY132SB"
},
{
"SchoolName": "Ellesmere Primary School",
"Postcode": "SY129EU"
},
{
"SchoolName": "Beechwood School",
"Postcode": "SL21QE"
},
{
"SchoolName": "Hugh Sexey Church of England Middle School",
"Postcode": "BS284ND"
},
{
"SchoolName": "Lympsham Church of England Academy",
"Postcode": "BS240EW"
},
{
"SchoolName": "East Brent Church of England First School",
"Postcode": "TA94HZ"
},
{
"SchoolName": "Mark First and Pre-School CE Academy",
"Postcode": "TA94QA"
},
{
"SchoolName": "Hinguar Community Primary School",
"Postcode": "SS39FE"
},
{
"SchoolName": "Friars Primary School and Nursery",
"Postcode": "SS39XX"
},
{
"SchoolName": "Hamstel Junior School",
"Postcode": "SS24PQ"
},
{
"SchoolName": "Thorpedene Primary School",
"Postcode": "SS39NP"
},
{
"SchoolName": "Blenheim Primary School",
"Postcode": "SS94HX"
},
{
"SchoolName": "Thorpe Greenways Junior School",
"Postcode": "SS13BS"
},
{
"SchoolName": "Bournes Green Infant School",
"Postcode": "SS13PS"
},
{
"SchoolName": "Hamstel Infant School and Nursery",
"Postcode": "SS24PQ"
},
{
"SchoolName": "Thorpe Greenways Infant School",
"Postcode": "SS13BS"
},
{
"SchoolName": "Chesterton Primary School",
"Postcode": "ST57NT"
},
{
"SchoolName": "The Meadows School",
"Postcode": "ST136EU"
},
{
"SchoolName": "St James Church of England Primary Academy",
"Postcode": "WS154PL"
},
{
"SchoolName": "St John's CofE (C) Primary School",
"Postcode": "ST163RL"
},
{
"SchoolName": "Crackley Bank Primary School",
"Postcode": "ST57BE"
},
{
"SchoolName": "Meir Heath Academy",
"Postcode": "ST37JQ"
},
{
"SchoolName": "Bishop Lonsdale Church of England Primary Academy",
"Postcode": "ST216AU"
},
{
"SchoolName": "Perton Primary Academy",
"Postcode": "WV67PS"
},
{
"SchoolName": "Springfield School",
"Postcode": "ST136LQ"
},
{
"SchoolName": "Parkside Primary School",
"Postcode": "ST161TH"
},
{
"SchoolName": "Bacton Primary School",
"Postcode": "IP144LL"
},
{
"SchoolName": "Cedars Park Community Primary School",
"Postcode": "IP145FP"
},
{
"SchoolName": "Mendlesham Primary School",
"Postcode": "IP145RT"
},
{
"SchoolName": "Stowupland High School",
"Postcode": "IP144BQ"
},
{
"SchoolName": "Cardinal Newman Catholic Primary School",
"Postcode": "KT124QT"
},
{
"SchoolName": "St Anne's Catholic Primary School",
"Postcode": "KT168ET"
},
{
"SchoolName": "St Alban's Catholic Primary School",
"Postcode": "KT82PG"
},
{
"SchoolName": "Salesian School, Chertsey",
"Postcode": "KT169LU"
},
{
"SchoolName": "Holy Family Catholic Primary School",
"Postcode": "KT151BP"
},
{
"SchoolName": "St John the Baptist Catholic Comprehensive School, Woking",
"Postcode": "GU229AL"
},
{
"SchoolName": "St Hugh of Lincoln Catholic Primary School",
"Postcode": "GU218TU"
},
{
"SchoolName": "Riverbridge Primary School",
"Postcode": "TW182EF"
},
{
"SchoolName": "St Charles Borromeo Catholic Primary School, Weybridge",
"Postcode": "KT138JD"
},
{
"SchoolName": "Guildford Grove Primary School",
"Postcode": "GU28YD"
},
{
"SchoolName": "St Augustine's Catholic Primary School",
"Postcode": "GU168PY"
},
{
"SchoolName": "Cheam Fields Primary Academy",
"Postcode": "SM38PQ"
},
{
"SchoolName": "Bradley Green Primary Academy",
"Postcode": "SK144NA"
},
{
"SchoolName": "Dowson Primary Academy",
"Postcode": "SK145HU"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "SS177BQ"
},
{
"SchoolName": "St Paul's Way Trust School",
"Postcode": "E34FT"
},
{
"SchoolName": "Partington Central Academy",
"Postcode": "M314FL"
},
{
"SchoolName": "South Kirby Academy",
"Postcode": "WF93DP"
},
{
"SchoolName": "Phoenix Academy",
"Postcode": "WS32ED"
},
{
"SchoolName": "Selwyn Primary School",
"Postcode": "E49NG"
},
{
"SchoolName": "Davies Lane Primary School",
"Postcode": "E113DR"
},
{
"SchoolName": "Norlington School and 6th Form",
"Postcode": "E106JZ"
},
{
"SchoolName": "The Laurels Primary School, Worthing",
"Postcode": "BN133QH"
},
{
"SchoolName": "Seaside Primary School",
"Postcode": "BN158DL"
},
{
"SchoolName": "Orrell Lamberhead Green Community Primary School",
"Postcode": "WN50AW"
},
{
"SchoolName": "Orrell Holgate Primary School",
"Postcode": "WN58SJ"
},
{
"SchoolName": "Trevelyan Middle School",
"Postcode": "SL43LL"
},
{
"SchoolName": "St Bartholomew's Church of England Primary School",
"Postcode": "WV45LG"
},
{
"SchoolName": "Cranham Primary School",
"Postcode": "WR49LS"
},
{
"SchoolName": "Bredon Hill Academy",
"Postcode": "WR117SW"
},
{
"SchoolName": "Northwick Manor Primary School",
"Postcode": "WR37EA"
},
{
"SchoolName": "St Peter's Droitwich CofE Academy",
"Postcode": "WR97AN"
},
{
"SchoolName": "Burton Green Primary School",
"Postcode": "YO306JE"
},
{
"SchoolName": "New Barn School",
"Postcode": "RH123PQ"
},
{
"SchoolName": "Shrewsbury Academy",
"Postcode": "SY12LL"
},
{
"SchoolName": "Hareclive E-ACT Academy",
"Postcode": "BS130HP"
},
{
"SchoolName": "Ely College",
"Postcode": "CB62SH"
},
{
"SchoolName": "Oak House School",
"Postcode": "IG39AB"
},
{
"SchoolName": "Filton Hill Primary School",
"Postcode": "BS347AX"
},
{
"SchoolName": "Roselands Primary School",
"Postcode": "EN119AR"
},
{
"SchoolName": "The Cranbourne Primary School",
"Postcode": "EN119PP"
},
{
"SchoolName": "Tweeddale Primary School",
"Postcode": "SM51SW"
},
{
"SchoolName": "Woodlands Park Primary School",
"Postcode": "PL219TF"
},
{
"SchoolName": "Erdington Academy",
"Postcode": "B248RE"
},
{
"SchoolName": "New Silksworth Academy Infant",
"Postcode": "SR31AS"
},
{
"SchoolName": "New Silksworth Academy Junior",
"Postcode": "SR31AS"
},
{
"SchoolName": "Fibbersley Park Primary School",
"Postcode": "WV133BB"
},
{
"SchoolName": "Birmingham Independent College",
"Postcode": "B65NU"
},
{
"SchoolName": "Hampton High",
"Postcode": "TW123HB"
},
{
"SchoolName": "Twickenham Academy",
"Postcode": "TW26JW"
},
{
"SchoolName": "Elizabeth Woodville School",
"Postcode": "MK196HN"
},
{
"SchoolName": "New Campus Basildon Studio School",
"Postcode": "SS141GJ"
},
{
"SchoolName": "Hassenbrook Academy",
"Postcode": "SS170NS"
},
{
"SchoolName": "London Tutorial College",
"Postcode": "KT67AB"
},
{
"SchoolName": "Harris Primary Academy Orpington",
"Postcode": "BR54LZ"
},
{
"SchoolName": "Harris Academy Orpington",
"Postcode": "BR54LG"
},
{
"SchoolName": "Harris Academy Rainham",
"Postcode": "RM139XD"
},
{
"SchoolName": "Old Farm School",
"Postcode": "TS122TZ"
},
{
"SchoolName": "Ward Green Primary School",
"Postcode": "S705HJ"
},
{
"SchoolName": "Upland Primary School",
"Postcode": "DA74DG"
},
{
"SchoolName": "St Francis Church of England Aided Primary School and Nursery",
"Postcode": "B301LZ"
},
{
"SchoolName": "Great Barr Academy",
"Postcode": "B448NU"
},
{
"SchoolName": "Princethorpe Infant School",
"Postcode": "B295QB"
},
{
"SchoolName": "Audley Primary School",
"Postcode": "B339HY"
},
{
"SchoolName": "Dame Elizabeth Cadbury Technology College",
"Postcode": "B301UL"
},
{
"SchoolName": "Quinton Church Primary School",
"Postcode": "B321AJ"
},
{
"SchoolName": "Portreath Community Primary School",
"Postcode": "TR164LU"
},
{
"SchoolName": "Treloweth Community Primary School",
"Postcode": "TR153JL"
},
{
"SchoolName": "Rosemellin Community Primary School",
"Postcode": "TR148PG"
},
{
"SchoolName": "Pencoys Primary School",
"Postcode": "TR166RB"
},
{
"SchoolName": "Roskear School",
"Postcode": "TR148DJ"
},
{
"SchoolName": "Illogan School",
"Postcode": "TR164SW"
},
{
"SchoolName": "Mount Pleasant Primary School",
"Postcode": "DL39HE"
},
{
"SchoolName": "Holbrook Church of England Primary School",
"Postcode": "DE560TW"
},
{
"SchoolName": "Woodfield Primary School",
"Postcode": "DN48LA"
},
{
"SchoolName": "St Margaret's Church of England Voluntary Aided Primary School, Bowers Gifford",
"Postcode": "SS132DU"
},
{
"SchoolName": "Burley Gate CofE Primary School",
"Postcode": "HR13QR"
},
{
"SchoolName": "St Michael's CofE Primary School",
"Postcode": "HR13JU"
},
{
"SchoolName": "Deanwood Primary School",
"Postcode": "ME89TX"
},
{
"SchoolName": "Bunwell Primary School",
"Postcode": "NR161SN"
},
{
"SchoolName": "Garrick Green Infant School",
"Postcode": "NR67AL"
},
{
"SchoolName": "Wroughton Infant Academy",
"Postcode": "NR318AH"
},
{
"SchoolName": "Heacham Infant and Nursery School",
"Postcode": "PE317DQ"
},
{
"SchoolName": "Banham Primary School",
"Postcode": "NR162EX"
},
{
"SchoolName": "Crockerne Church of England Primary School",
"Postcode": "BS200JP"
},
{
"SchoolName": "Hampsthwaite Church of England Primary School",
"Postcode": "HG32EZ"
},
{
"SchoolName": "St Luke's Church of England Primary School",
"Postcode": "NN54UL"
},
{
"SchoolName": "Killisick Junior School",
"Postcode": "NG58BY"
},
{
"SchoolName": "Horsendale Primary School",
"Postcode": "NG161AP"
},
{
"SchoolName": "Spring Brook School",
"Postcode": "M350DQ"
},
{
"SchoolName": "Chaddlewood Primary School",
"Postcode": "PL72EU"
},
{
"SchoolName": "Woodfield Primary School",
"Postcode": "PL54HW"
},
{
"SchoolName": "Prince Rock Primary School",
"Postcode": "PL49JF"
},
{
"SchoolName": "Bearwood Primary and Nursery School",
"Postcode": "BH119UN"
},
{
"SchoolName": "Zetland Primary School",
"Postcode": "TS103JL"
},
{
"SchoolName": "Ormesby Primary School",
"Postcode": "TS79AB"
},
{
"SchoolName": "Aughton Primary School",
"Postcode": "S263XQ"
},
{
"SchoolName": "Ankermoor Primary School",
"Postcode": "B773NW"
},
{
"SchoolName": "Ravensmere Infant School",
"Postcode": "NR349DE"
},
{
"SchoolName": "The Albert Pye Community Primary School",
"Postcode": "NR349UL"
},
{
"SchoolName": "Gillas Lane Primary Academy",
"Postcode": "DH58EH"
},
{
"SchoolName": "South Marston Church of England Primary School",
"Postcode": "SN34SH"
},
{
"SchoolName": "Marus Bridge Primary School",
"Postcode": "WN36SP"
},
{
"SchoolName": "Forest and Sandridge Church of England Primary School",
"Postcode": "SN127GN"
},
{
"SchoolName": "Broadmeadow Special School",
"Postcode": "WV14AL"
},
{
"SchoolName": "Stourport Primary Academy",
"Postcode": "DY138SH"
},
{
"SchoolName": "Worth Valley Primary School",
"Postcode": "BD227AX"
},
{
"SchoolName": "Reevy Hill Primary School",
"Postcode": "BD63ST"
},
{
"SchoolName": "Corporation Road Community Primary School",
"Postcode": "DL36AR"
},
{
"SchoolName": "St Edward's Catholic Academy",
"Postcode": "DE110BD"
},
{
"SchoolName": "Denaby Main Primary Academy",
"Postcode": "DN124HZ"
},
{
"SchoolName": "St James' Church of England Primary School",
"Postcode": "CO12RA"
},
{
"SchoolName": "Brenzett Church of England Primary School",
"Postcode": "TN299UA"
},
{
"SchoolName": "South Witham Community Primary School",
"Postcode": "NG335PH"
},
{
"SchoolName": "Hollis Academy",
"Postcode": "TS43JS"
},
{
"SchoolName": "Smithdon High School",
"Postcode": "PE365HY"
},
{
"SchoolName": "Wroughton Junior Academy",
"Postcode": "NR318BD"
},
{
"SchoolName": "Hawes Primary School",
"Postcode": "DL83RQ"
},
{
"SchoolName": "Dubmire Primary",
"Postcode": "DH46HL"
},
{
"SchoolName": "Yeshiva Lezeirim Preparatory Academy",
"Postcode": "NE84EF"
},
{
"SchoolName": "Dove CofE (VC) First School",
"Postcode": "ST145NW"
},
{
"SchoolName": "Southbank International School Westminster",
"Postcode": "W1B1QR"
},
{
"SchoolName": "Eden School",
"Postcode": "SK103LQ"
},
{
"SchoolName": "Ashbrooke School",
"Postcode": "SR27JA"
},
{
"SchoolName": "Princes Risborough Primary School",
"Postcode": "HP279HY"
},
{
"SchoolName": "Running Deer",
"Postcode": "TQ138PY"
},
{
"SchoolName": "Rectory Farm Primary School",
"Postcode": "NN35DD"
},
{
"SchoolName": "Adderlane Academy",
"Postcode": "NE425HX"
},
{
"SchoolName": "Acres Hill Community Primary School",
"Postcode": "S94GQ"
},
{
"SchoolName": "Thursfield Primary School",
"Postcode": "ST74JL"
},
{
"SchoolName": "Alveley Primary School",
"Postcode": "WV156JT"
},
{
"SchoolName": "Eyke Church of England Primary School",
"Postcode": "IP122QW"
},
{
"SchoolName": "Murrayfield Primary - A Paradigm Academy",
"Postcode": "IP39JL"
},
{
"SchoolName": "Central CofE Academy",
"Postcode": "PO191DQ"
},
{
"SchoolName": "St Mary's Catholic College, A Voluntary Academy",
"Postcode": "CH453LN"
},
{
"SchoolName": "Wellgate Primary School",
"Postcode": "S756HR"
},
{
"SchoolName": "Kexborough Primary School",
"Postcode": "S755EF"
},
{
"SchoolName": "Oldfield Park Infant School",
"Postcode": "BA23RF"
},
{
"SchoolName": "Oldfield Park Junior School",
"Postcode": "BA22JL"
},
{
"SchoolName": "Widcombe CofE Junior School",
"Postcode": "BA24JG"
},
{
"SchoolName": "St Philip's CofE Primary School",
"Postcode": "BA22BN"
},
{
"SchoolName": "Oakley Lower School",
"Postcode": "MK437RE"
},
{
"SchoolName": "Cromwell Junior and Infant School",
"Postcode": "B75BA"
},
{
"SchoolName": "Lapage Primary School and Nursery",
"Postcode": "BD38QX"
},
{
"SchoolName": "Atlas Community Primary School",
"Postcode": "BD88DL"
},
{
"SchoolName": "Westbourne Primary School",
"Postcode": "BD87PL"
},
{
"SchoolName": "Denholme Primary School",
"Postcode": "BD134AY"
},
{
"SchoolName": "Margaret McMillan Primary School",
"Postcode": "BD95DF"
},
{
"SchoolName": "Parkwood Primary School",
"Postcode": "BD214QH"
},
{
"SchoolName": "Victoria Primary School",
"Postcode": "BD212RD"
},
{
"SchoolName": "Lilycroft Primary School",
"Postcode": "BD95AD"
},
{
"SchoolName": "Green Lane Primary School",
"Postcode": "BD88HT"
},
{
"SchoolName": "Sawtry Junior Academy",
"Postcode": "PE285SH"
},
{
"SchoolName": "Linton Heights Junior School",
"Postcode": "CB214XB"
},
{
"SchoolName": "Brimington Manor Infant and Nursery School",
"Postcode": "S431NT"
},
{
"SchoolName": "Brimington Junior School",
"Postcode": "S431HF"
},
{
"SchoolName": "Mexborough St John the Baptist CofE Primary School",
"Postcode": "S640BE"
},
{
"SchoolName": "Leasowes High School",
"Postcode": "B628PJ"
},
{
"SchoolName": "St Leonard's Catholic School",
"Postcode": "DH14NG"
},
{
"SchoolName": "South Stanley Infant and Nursery School",
"Postcode": "DH96PZ"
},
{
"SchoolName": "Greenland Community Primary School",
"Postcode": "DH97EZ"
},
{
"SchoolName": "Stamford Bridge Primary School",
"Postcode": "YO411BP"
},
{
"SchoolName": "Pocklington Junior School",
"Postcode": "YO422BX"
},
{
"SchoolName": "Woldgate School and Sixth Form College",
"Postcode": "YO422LL"
},
{
"SchoolName": "Market Field School",
"Postcode": "CO77ET"
},
{
"SchoolName": "Daresbury Primary School",
"Postcode": "WA44AJ"
},
{
"SchoolName": "Laurance Haines School",
"Postcode": "WD180DD"
},
{
"SchoolName": "Larwood School",
"Postcode": "SG15QU"
},
{
"SchoolName": "Halfway Houses Primary School",
"Postcode": "ME123AP"
},
{
"SchoolName": "Minster in Sheppey Primary School",
"Postcode": "ME122HX"
},
{
"SchoolName": "Albert Village Primary School",
"Postcode": "DE118HA"
},
{
"SchoolName": "Hallbrook Primary School",
"Postcode": "LE96WX"
},
{
"SchoolName": "Viscount Beaumont's Church of England Primary School",
"Postcode": "LE678FD"
},
{
"SchoolName": "Oakthorpe Primary School",
"Postcode": "DE127RE"
},
{
"SchoolName": "Stokesley Primary Academy",
"Postcode": "TS95EW"
},
{
"SchoolName": "Rossett Acre Primary School",
"Postcode": "HG29PH"
},
{
"SchoolName": "Salisbury Road Primary School",
"Postcode": "PL48QZ"
},
{
"SchoolName": "Springdale First School",
"Postcode": "BH189BW"
},
{
"SchoolName": "Winston Way Primary School",
"Postcode": "IG12WS"
},
{
"SchoolName": "Badger Hill Academy",
"Postcode": "TS122XR"
},
{
"SchoolName": "Whitecliffe Academy",
"Postcode": "TS134AD"
},
{
"SchoolName": "Wybourn Community Primary School",
"Postcode": "S25ED"
},
{
"SchoolName": "Holy Trinity Church School",
"Postcode": "BA202PW"
},
{
"SchoolName": "St Felix Roman Catholic Primary School, Haverhill",
"Postcode": "CB99DE"
},
{
"SchoolName": "Loseley Fields Primary School",
"Postcode": "GU73TB"
},
{
"SchoolName": "Waverley Abbey CofE Junior School",
"Postcode": "GU102AE"
},
{
"SchoolName": "Brookfield Primary Academy",
"Postcode": "SM39LY"
},
{
"SchoolName": "Gossops Green Primary",
"Postcode": "RH118HW"
},
{
"SchoolName": "The Deanes",
"Postcode": "SS72TD"
},
{
"SchoolName": "East Claydon Church of England School",
"Postcode": "MK182LS"
},
{
"SchoolName": "Our Lady and St Joseph's Catholic Primary School",
"Postcode": "CV115TY"
},
{
"SchoolName": "Harpenden Free School",
"Postcode": "AL54EN"
},
{
"SchoolName": "Callington Community College",
"Postcode": "PL177DR"
},
{
"SchoolName": "Akroydon Primary Academy",
"Postcode": "HX36PU"
},
{
"SchoolName": "Sw<NAME> Primary School",
"Postcode": "S648HF"
},
{
"SchoolName": "Peak Education Stoke",
"Postcode": "ST14LY"
},
{
"SchoolName": "Priors Hall - A Learning Community",
"Postcode": "NN175EB"
},
{
"SchoolName": "Palace Fields Primary Academy",
"Postcode": "WA72QW"
},
{
"SchoolName": "Mereside Primary School",
"Postcode": "FY44RR"
},
{
"SchoolName": "James Dixon Primary School",
"Postcode": "SE208BW"
},
{
"SchoolName": "St Mawes School",
"Postcode": "TR25BP"
},
{
"SchoolName": "Parkgate Primary School",
"Postcode": "CV64GF"
},
{
"SchoolName": "Keresley Grange Primary School",
"Postcode": "CV62EH"
},
{
"SchoolName": "Lapal Primary School",
"Postcode": "B620BZ"
},
{
"SchoolName": "Lutley Primary School",
"Postcode": "B631BU"
},
{
"SchoolName": "Perryfields Junior School",
"Postcode": "CM17PP"
},
{
"SchoolName": "Tenterden Infant School",
"Postcode": "TN306RA"
},
{
"SchoolName": "St Michael's Church of England Primary School",
"Postcode": "TN306PU"
},
{
"SchoolName": "Tenterden Church of England Junior School",
"Postcode": "TN306RA"
},
{
"SchoolName": "Birdsedge First School",
"Postcode": "HD88XR"
},
{
"SchoolName": "Kirkburton Middle School",
"Postcode": "HD80TJ"
},
{
"SchoolName": "Scissett Middle School",
"Postcode": "HD89JX"
},
{
"SchoolName": "Shelley First School",
"Postcode": "HD88HU"
},
{
"SchoolName": "Richmond Primary School",
"Postcode": "LE103EA"
},
{
"SchoolName": "Scotholme Primary and Nursery School",
"Postcode": "NG76FJ"
},
{
"SchoolName": "Ranskill Primary School",
"Postcode": "DN228LH"
},
{
"SchoolName": "Phillimore Community Primary School",
"Postcode": "S95EF"
},
{
"SchoolName": "Manor Lodge Community Primary and Nursery School",
"Postcode": "S21UF"
},
{
"SchoolName": "Ludlow Infant and Nursey School Academy",
"Postcode": "SY81HG"
},
{
"SchoolName": "Ludlow Junior School",
"Postcode": "SY81HX"
},
{
"SchoolName": "St Ethelbert's Catholic Primary School",
"Postcode": "SL25QR"
},
{
"SchoolName": "St Joseph's Catholic High School",
"Postcode": "SL25HW"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "SL23AA"
},
{
"SchoolName": "St Edward's CofE Academy Cheddleton",
"Postcode": "ST137HP"
},
{
"SchoolName": "Middleton Community Primary School",
"Postcode": "IP173NW"
},
{
"SchoolName": "de Stafford School",
"Postcode": "CR35YX"
},
{
"SchoolName": "Holly Lodge Primary School",
"Postcode": "GU125PX"
},
{
"SchoolName": "Middlestown Primary Academy",
"Postcode": "WF44QE"
},
{
"SchoolName": "Horbury Primary Academy",
"Postcode": "WF45DW"
},
{
"SchoolName": "Edward the Elder Primary School",
"Postcode": "WV113DB"
},
{
"SchoolName": "Offenham CofE First School",
"Postcode": "WR118SD"
},
{
"SchoolName": "The Littletons CofE First School",
"Postcode": "WR118TL"
},
{
"SchoolName": "Sigglesthorne Church of England Primary Academy",
"Postcode": "HU115QA"
},
{
"SchoolName": "The William Gladstone Church of England Primary Academy",
"Postcode": "NG244HU"
},
{
"SchoolName": "Goosewell Primary Academy",
"Postcode": "PL99HD"
},
{
"SchoolName": "High Street Primary Academy",
"Postcode": "PL13SJ"
},
{
"SchoolName": "Redwood Park Academy",
"Postcode": "PO62RY"
},
{
"SchoolName": "St Benedict Biscop CofE Primary School",
"Postcode": "WV59DZ"
},
{
"SchoolName": "Yoxford Primary School",
"Postcode": "IP173EU"
},
{
"SchoolName": "The Pilgrim School (A Church of England Primary With Nursery)",
"Postcode": "ME13LF"
},
{
"SchoolName": "Queensgate College",
"Postcode": "E96QT"
},
{
"SchoolName": "Winstanley Community College",
"Postcode": "LE33BD"
},
{
"SchoolName": "Wyvern Academy",
"Postcode": "DL39SH"
},
{
"SchoolName": "Meridian High School",
"Postcode": "CR00AH"
},
{
"SchoolName": "St James' Church Primary School",
"Postcode": "BD157YD"
},
{
"SchoolName": "Castlebrook High School",
"Postcode": "BL98LP"
},
{
"SchoolName": "Hartford Junior School",
"Postcode": "PE291UL"
},
{
"SchoolName": "Kingsley Primary School",
"Postcode": "CR03JT"
},
{
"SchoolName": "Noel-Baker Academy",
"Postcode": "DE240BR"
},
{
"SchoolName": "Driffield School and Sixth Form",
"Postcode": "YO255HR"
},
{
"SchoolName": "Debden Church of England Voluntary Controlled Primary Academy",
"Postcode": "CB113LE"
},
{
"SchoolName": "Gladstone Primary School",
"Postcode": "PE12BZ"
},
{
"SchoolName": "Woodhall Primary School",
"Postcode": "CO101ST"
},
{
"SchoolName": "Houldsworth Valley Primary Academy",
"Postcode": "CB80PU"
},
{
"SchoolName": "Northern House School (Wokingham) Special Academy",
"Postcode": "RG402HR"
},
{
"SchoolName": "St Lawrence's Church of England Primary Academy",
"Postcode": "YO105BW"
},
{
"SchoolName": "Oak Lodge School",
"Postcode": "N20QY"
},
{
"SchoolName": "Bedonwell Infant and Nursery School",
"Postcode": "DA175PF"
},
{
"SchoolName": "Bedonwell Junior School",
"Postcode": "DA175PF"
},
{
"SchoolName": "Barrington Primary School",
"Postcode": "DA74UN"
},
{
"SchoolName": "Hodge Hill Primary School",
"Postcode": "B368LD"
},
{
"SchoolName": "Hartford Infant School",
"Postcode": "PE291UL"
},
{
"SchoolName": "Kennall Vale School",
"Postcode": "TR37HY"
},
{
"SchoolName": "Leedstown Community Primary School",
"Postcode": "TR276AA"
},
{
"SchoolName": "Kingfisher Primary Academy",
"Postcode": "DN24PY"
},
{
"SchoolName": "The Royal Liberty School",
"Postcode": "RM26HJ"
},
{
"SchoolName": "Sylvester Primary Academy",
"Postcode": "L360UX"
},
{
"SchoolName": "Tor View School",
"Postcode": "BB46LR"
},
{
"SchoolName": "Balfour Junior Academy",
"Postcode": "ME46QX"
},
{
"SchoolName": "Tollgate Primary School",
"Postcode": "E138SA"
},
{
"SchoolName": "Cleves Primary School",
"Postcode": "E61QP"
},
{
"SchoolName": "Drew Primary School",
"Postcode": "E162DP"
},
{
"SchoolName": "The Forest View Academy",
"Postcode": "NG229RJ"
},
{
"SchoolName": "Dr South's Church of England Primary School",
"Postcode": "OX52TQ"
},
{
"SchoolName": "Tackley Church of England Primary School",
"Postcode": "OX53AP"
},
{
"SchoolName": "Larkmead School",
"Postcode": "OX141RF"
},
{
"SchoolName": "Marlborough Primary Academy",
"Postcode": "PL14NJ"
},
{
"SchoolName": "Morice Town Primary Academy",
"Postcode": "PL21RJ"
},
{
"SchoolName": "Tynsel Parkes Primary Academy",
"Postcode": "ST147HE"
},
{
"SchoolName": "Merryfields School",
"Postcode": "ST59NY"
},
{
"SchoolName": "Littleton Green Community School",
"Postcode": "WS124UD"
},
{
"SchoolName": "Chase Terrace Technology College",
"Postcode": "WS72DB"
},
{
"SchoolName": "Boney Hay Primary Academy",
"Postcode": "WS72PF"
},
{
"SchoolName": "The Ashcombe School",
"Postcode": "RH41LY"
},
{
"SchoolName": "Therfield School",
"Postcode": "KT227NZ"
},
{
"SchoolName": "The Warwick School",
"Postcode": "RH14AD"
},
{
"SchoolName": "Caldmore Primary Academy",
"Postcode": "WS13RH"
},
{
"SchoolName": "Chandos Primary School",
"Postcode": "B120YN"
},
{
"SchoolName": "Wayfield Primary School",
"Postcode": "ME50HH"
},
{
"SchoolName": "The Ryes College and Community",
"Postcode": "CO105NA"
},
{
"SchoolName": "Progress Schools - Toxteth",
"Postcode": "L88HD"
},
{
"SchoolName": "Royal Greenwich Trust School",
"Postcode": "SE78LJ"
},
{
"SchoolName": "Nightingale",
"Postcode": "BR69BH"
},
{
"SchoolName": "Education My Life Matters",
"Postcode": "SE266AD"
},
{
"SchoolName": "Lees Brook Community School",
"Postcode": "DE214QX"
},
{
"SchoolName": "Outwood Academy Danum",
"Postcode": "DN25QD"
},
{
"SchoolName": "Outwood Primary Academy Littleworth Grange",
"Postcode": "S715RG"
},
{
"SchoolName": "Outwood Primary Academy Darfield",
"Postcode": "S739LT"
},
{
"SchoolName": "The Weatheralls Primary School",
"Postcode": "CB75BH"
},
{
"SchoolName": "Canterbury Cross Primary School",
"Postcode": "B203AA"
},
{
"SchoolName": "Westminster Primary School",
"Postcode": "B203PN"
},
{
"SchoolName": "Thornton Primary School",
"Postcode": "BD133NN"
},
{
"SchoolName": "Leamington Primary and Nursery Academy",
"Postcode": "NG175BB"
},
{
"SchoolName": "The Albany School",
"Postcode": "RM124AJ"
},
{
"SchoolName": "Totnes Progressive School",
"Postcode": "TQ95JT"
},
{
"SchoolName": "Barling Magna Primary Academy",
"Postcode": "SS30LN"
},
{
"SchoolName": "Bawdeswell Primary Community School Academy",
"Postcode": "NR204RR"
},
{
"SchoolName": "New Marston Primary School",
"Postcode": "OX30AY"
},
{
"SchoolName": "Thomas Eaton Community Primary School",
"Postcode": "PE150QS"
},
{
"SchoolName": "West Ashton Church of England Voluntary Aided Primary School",
"Postcode": "BA146AZ"
},
{
"SchoolName": "All Saints Church School",
"Postcode": "TA156XG"
},
{
"SchoolName": "Featherstone All Saints CofE Academy",
"Postcode": "WF76BQ"
},
{
"SchoolName": "Balby Central Primary School",
"Postcode": "DN40LL"
},
{
"SchoolName": "The Birley Academy",
"Postcode": "S123BP"
},
{
"SchoolName": "Birley Primary Academy",
"Postcode": "S123AB"
},
{
"SchoolName": "Birley Spa Primary Academy",
"Postcode": "S124QE"
},
{
"SchoolName": "Bournemouth Park Primary School",
"Postcode": "SS25JN"
},
{
"SchoolName": "Charnock Hall Primary Academy",
"Postcode": "S123HS"
},
{
"SchoolName": "Desmond Anderson Primary School",
"Postcode": "RH105EA"
},
{
"SchoolName": "Glebelands Primary Academy",
"Postcode": "PE166EZ"
},
{
"SchoolName": "Great Wakering Primary Academy",
"Postcode": "SS30EJ"
},
{
"SchoolName": "Icknield Community College",
"Postcode": "OX495RB"
},
{
"SchoolName": "Leafield Church of England (Controlled) Primary School",
"Postcode": "OX299NP"
},
{
"SchoolName": "Lodge Lane Infant School",
"Postcode": "NR67HL"
},
{
"SchoolName": "Lorraine School",
"Postcode": "GU154EX"
},
{
"SchoolName": "Pine Ridge Infant and Nursery School",
"Postcode": "GU154AW"
},
{
"SchoolName": "Rainbow Forge Primary Academy",
"Postcode": "S124LQ"
},
{
"SchoolName": "Speenhamland Primary School",
"Postcode": "RG141NU"
},
{
"SchoolName": "Westcourt Primary School",
"Postcode": "DA124JG"
},
{
"SchoolName": "Wilsden Primary School",
"Postcode": "BD150AE"
},
{
"SchoolName": "Wood Green School",
"Postcode": "OX281DX"
},
{
"SchoolName": "Courtlands School",
"Postcode": "PL65JS"
},
{
"SchoolName": "Hillcrest Long Barn",
"Postcode": "RG208HZ"
},
{
"SchoolName": "Lubavitch Senior Boys' School",
"Postcode": "E59AE"
},
{
"SchoolName": "The Orchard",
"Postcode": "DN379PH"
},
{
"SchoolName": "Baxter College",
"Postcode": "DY115PQ"
},
{
"SchoolName": "Huntercombe Hospital School Watcombe",
"Postcode": "TQ14SH"
},
{
"SchoolName": "Alderwood Primary School",
"Postcode": "SE92JH"
},
{
"SchoolName": "Halstow Primary School",
"Postcode": "SE100LD"
},
{
"SchoolName": "Horn Park Primary School",
"Postcode": "SE129BT"
},
{
"SchoolName": "Woodhill Primary School",
"Postcode": "SE185JE"
},
{
"SchoolName": "Rockliffe Manor Primary School",
"Postcode": "SE182NP"
},
{
"SchoolName": "Foxfield Primary School",
"Postcode": "SE187EX"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "SE91UF"
},
{
"SchoolName": "Kingswood Primary School",
"Postcode": "SE279RD"
},
{
"SchoolName": "Paxton Primary School",
"Postcode": "SE191PA"
},
{
"SchoolName": "Fenstanton Primary School",
"Postcode": "SW23PW"
},
{
"SchoolName": "Elm Wood School",
"Postcode": "SE279RR"
},
{
"SchoolName": "Glenbrook Primary School",
"Postcode": "SW48LD"
},
{
"SchoolName": "Crawford Primary School",
"Postcode": "SE59NF"
},
{
"SchoolName": "Ilderton Primary School",
"Postcode": "SE163LA"
},
{
"SchoolName": "Phoenix Primary School",
"Postcode": "SE15JT"
},
{
"SchoolName": "Stebon Primary School",
"Postcode": "E147AD"
},
{
"SchoolName": "Bygrove Primary School",
"Postcode": "E146DN"
},
{
"SchoolName": "Mulberry School for Girls",
"Postcode": "E12JP"
},
{
"SchoolName": "The James Cambell Primary School",
"Postcode": "RM96TD"
},
{
"SchoolName": "St Margarets CofE Primary School",
"Postcode": "IG118AS"
},
{
"SchoolName": "Shenstone School",
"Postcode": "DA14DZ"
},
{
"SchoolName": "Marlborough School",
"Postcode": "DA159DP"
},
{
"SchoolName": "Manor School",
"Postcode": "NW103NT"
},
{
"SchoolName": "Bromley Road Primary School",
"Postcode": "BR35JG"
},
{
"SchoolName": "St Peter's Primary School",
"Postcode": "CR27AR"
},
{
"SchoolName": "Lavender Primary School",
"Postcode": "EN20SX"
},
{
"SchoolName": "Winchmore School",
"Postcode": "N213HS"
},
{
"SchoolName": "Lea Valley High School",
"Postcode": "EN36TW"
},
{
"SchoolName": "Gaynes School",
"Postcode": "RM143UX"
},
{
"SchoolName": "Marshalls Park School",
"Postcode": "RM14EH"
},
{
"SchoolName": "Berkeley Primary School",
"Postcode": "TW59HQ"
},
{
"SchoolName": "Curwen Primary and Nursery School",
"Postcode": "E130AG"
},
{
"SchoolName": "Kensington Primary School",
"Postcode": "E126NN"
},
{
"SchoolName": "Ranelagh Primary School",
"Postcode": "E153DN"
},
{
"SchoolName": "Ravenscroft Primary School",
"Postcode": "E164BD"
},
{
"SchoolName": "Rokeby School",
"Postcode": "E164DD"
},
{
"SchoolName": "Lister Community School",
"Postcode": "E139AE"
},
{
"SchoolName": "Sarah Bonnell School",
"Postcode": "E154LP"
},
{
"SchoolName": "Bandon Hill Primary School",
"Postcode": "SM69QU"
},
{
"SchoolName": "St Saviour's Church of England Primary School",
"Postcode": "E178ER"
},
{
"SchoolName": "St Mary's Walthamstow CofE Voluntary Aided Primary School",
"Postcode": "E179HJ"
},
{
"SchoolName": "Bordesley Village Primary School",
"Postcode": "B94NG"
},
{
"SchoolName": "Lozells Junior and Infant School and Nursery",
"Postcode": "B192EJ"
},
{
"SchoolName": "Stirchley Primary School",
"Postcode": "B302JL"
},
{
"SchoolName": "The International School",
"Postcode": "B339UF"
},
{
"SchoolName": "Handsworth Grammar School",
"Postcode": "B219ET"
},
{
"SchoolName": "Hallmoor School",
"Postcode": "B330DL"
},
{
"SchoolName": "Brays School",
"Postcode": "B261NS"
},
{
"SchoolName": "The Bridge School",
"Postcode": "B736UE"
},
{
"SchoolName": "Courthouse Green Primary School",
"Postcode": "CV67JJ"
},
{
"SchoolName": "Hearsall Community Primary School",
"Postcode": "CV56LR"
},
{
"SchoolName": "Sledmere Primary School",
"Postcode": "DY28EH"
},
{
"SchoolName": "Dudley Wood Primary School",
"Postcode": "DY20DB"
},
{
"SchoolName": "Kates Hill Community Primary School",
"Postcode": "DY27HP"
},
{
"SchoolName": "Colley Lane Primary School",
"Postcode": "B632TN"
},
{
"SchoolName": "Olive Hill Primary School",
"Postcode": "B628JZ"
},
{
"SchoolName": "Ham Dingle Primary School",
"Postcode": "DY90UN"
},
{
"SchoolName": "Woodside Community School and Little Bears Nursery",
"Postcode": "DY20SN"
},
{
"SchoolName": "Netherbrook Primary School",
"Postcode": "DY29RZ"
},
{
"SchoolName": "Hurst Hill Primary School",
"Postcode": "WV149AJ"
},
{
"SchoolName": "Thorns Community College",
"Postcode": "DY52NU"
},
{
"SchoolName": "The Coseley School",
"Postcode": "WV149JW"
},
{
"SchoolName": "Smith's Wood Sports College",
"Postcode": "B360UE"
},
{
"SchoolName": "Oxley Primary School",
"Postcode": "WV109TR"
},
{
"SchoolName": "Parkfield Primary School",
"Postcode": "WV46HB"
},
{
"SchoolName": "Goldthorn Park Primary School",
"Postcode": "WV45ET"
},
{
"SchoolName": "St Stephen's Church of England Primary School",
"Postcode": "WV100BB"
},
{
"SchoolName": "Moreton Community School",
"Postcode": "WV108BY"
},
{
"SchoolName": "Halsnead Community Primary School",
"Postcode": "L353TX"
},
{
"SchoolName": "Blacklow Brow Primary School",
"Postcode": "L365XW"
},
{
"SchoolName": "Cronton CofE Primary School",
"Postcode": "WA85DF"
},
{
"SchoolName": "Halewood CofE Primary School",
"Postcode": "L266LB"
},
{
"SchoolName": "Rainford High Technology College",
"Postcode": "WA118NY"
},
{
"SchoolName": "Rainhill High School",
"Postcode": "L356NY"
},
{
"SchoolName": "Stanton Road Primary School",
"Postcode": "CH633HW"
},
{
"SchoolName": "Higher Bebington Junior School",
"Postcode": "CH638QE"
},
{
"SchoolName": "Town Lane Infant School",
"Postcode": "CH638LD"
},
{
"SchoolName": "Poulton Lancelyn Primary School",
"Postcode": "CH639LY"
},
{
"SchoolName": "Great Meols Primary School",
"Postcode": "CH477AP"
},
{
"SchoolName": "Egremont Primary School",
"Postcode": "CH448AF"
},
{
"SchoolName": "Church Drive Primary School",
"Postcode": "CH625EF"
},
{
"SchoolName": "Harper Green School",
"Postcode": "BL40DH"
},
{
"SchoolName": "Rivington and Blackrod High School",
"Postcode": "BL67RU"
},
{
"SchoolName": "St James's Church of England High School",
"Postcode": "BL49RU"
},
{
"SchoolName": "Canon Slade CofE School",
"Postcode": "BL23BP"
},
{
"SchoolName": "Brookburn Community School",
"Postcode": "M218EH"
},
{
"SchoolName": "Barlow Hall Primary School",
"Postcode": "M217JG"
},
{
"SchoolName": "Baguley Hall Primary School",
"Postcode": "M231LB"
},
{
"SchoolName": "Watersheddings Primary School",
"Postcode": "OL14HU"
},
{
"SchoolName": "St Anne's CofE Lydgate Primary School",
"Postcode": "OL44DS"
},
{
"SchoolName": "St Matthew's CofE Primary School",
"Postcode": "OL90BN"
},
{
"SchoolName": "Irlam and Cadishead College",
"Postcode": "M445ZR"
},
{
"SchoolName": "Moorside High School",
"Postcode": "M270BH"
},
{
"SchoolName": "Ellesmere Park High School",
"Postcode": "M309BP"
},
{
"SchoolName": "Leigh Primary School",
"Postcode": "SK145PL"
},
{
"SchoolName": "St Paul's CofE Primary School, Stalybridge",
"Postcode": "SK152PT"
},
{
"SchoolName": "St Mark's CofE Primary School",
"Postcode": "WN59DS"
},
{
"SchoolName": "Bedford High School",
"Postcode": "WN72LU"
},
{
"SchoolName": "Standish Community High School",
"Postcode": "WN60NX"
},
{
"SchoolName": "Worsbrough Bank End Primary School",
"Postcode": "S704AZ"
},
{
"SchoolName": "Hunningley Primary School",
"Postcode": "S703DT"
},
{
"SchoolName": "Scawsby Rosedale Primary School",
"Postcode": "DN58RL"
},
{
"SchoolName": "Bentley High Street Primary School",
"Postcode": "DN50AA"
},
{
"SchoolName": "Edlington Victoria Primary School",
"Postcode": "DN121BN"
},
{
"SchoolName": "Rossington St Michael's CofE Primary School",
"Postcode": "DN110EZ"
},
{
"SchoolName": "Roughwood Primary School",
"Postcode": "S613HL"
},
{
"SchoolName": "Brampton Cortonwood Infant School",
"Postcode": "S730XH"
},
{
"SchoolName": "Brinsworth Manor Junior School",
"Postcode": "S605BX"
},
{
"SchoolName": "Crags Community School",
"Postcode": "S667QJ"
},
{
"SchoolName": "Kilnhurst Primary School",
"Postcode": "S645TA"
},
{
"SchoolName": "Wath Victoria Primary School",
"Postcode": "S637AD"
},
{
"SchoolName": "Wath Central Primary",
"Postcode": "S637HG"
},
{
"SchoolName": "Woodsetts Primary",
"Postcode": "S818SB"
},
{
"SchoolName": "Wentworth CofE (Controlled) Junior and Infant School",
"Postcode": "S627TX"
},
{
"SchoolName": "Wath CofE (A) Primary School",
"Postcode": "S636PY"
},
{
"SchoolName": "Brampton Ellis CofE Primary School",
"Postcode": "S636AN"
},
{
"SchoolName": "Clifton Community School",
"Postcode": "S652SN"
},
{
"SchoolName": "Milton School",
"Postcode": "S648QG"
},
{
"SchoolName": "Byron Primary School",
"Postcode": "BD30AB"
},
{
"SchoolName": "Cavendish Primary School",
"Postcode": "BD22DU"
},
{
"SchoolName": "Holycroft Primary School",
"Postcode": "BD211JF"
},
{
"SchoolName": "Hothfield Junior School",
"Postcode": "BD200BB"
},
{
"SchoolName": "Hanson School",
"Postcode": "BD21JP"
},
{
"SchoolName": "Park Lane Learning Trust",
"Postcode": "HX39LG"
},
{
"SchoolName": "Skelmanthorpe First and Nursery School",
"Postcode": "HD89DZ"
},
{
"SchoolName": "Scissett Church of England Voluntary Aided First School",
"Postcode": "HD89HR"
},
{
"SchoolName": "St Aidan's Church of England Voluntary Aided First School",
"Postcode": "HD89DQ"
},
{
"SchoolName": "Royds School",
"Postcode": "LS268EX"
},
{
"SchoolName": "Wrenthorpe Primary School",
"Postcode": "WF20LW"
},
{
"SchoolName": "Castleford Half Acres Primary School",
"Postcode": "WF105RE"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "WF105NS"
},
{
"SchoolName": "Tyneview Primary School",
"Postcode": "NE63QP"
},
{
"SchoolName": "Walkergate Primary School",
"Postcode": "NE64SD"
},
{
"SchoolName": "West Walker Primary School",
"Postcode": "NE63XW"
},
{
"SchoolName": "Benfield School",
"Postcode": "NE64NU"
},
{
"SchoolName": "Waterville Primary School",
"Postcode": "NE296SL"
},
{
"SchoolName": "Percy Main Primary School",
"Postcode": "NE296JA"
},
{
"SchoolName": "Riverside Primary School",
"Postcode": "NE296DQ"
},
{
"SchoolName": "Collingwood Primary School",
"Postcode": "NE297JQ"
},
{
"SchoolName": "New York Primary School",
"Postcode": "NE298DP"
},
{
"SchoolName": "Seaton Burn College, A Specialist Business and Enterprise School",
"Postcode": "NE136EJ"
},
{
"SchoolName": "Harton Technology College",
"Postcode": "NE346DL"
},
{
"SchoolName": "Diamond Hall Junior School",
"Postcode": "SR46JF"
},
{
"SchoolName": "Hill View Junior School",
"Postcode": "SR29HE"
},
{
"SchoolName": "Hill View Infant School",
"Postcode": "SR29JJ"
},
{
"SchoolName": "Hetton Lyons Primary School",
"Postcode": "DH50AH"
},
{
"SchoolName": "Biddick Primary School",
"Postcode": "NE387HQ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "NE387AR"
},
{
"SchoolName": "Moorlands Junior School",
"Postcode": "BA22DE"
},
{
"SchoolName": "Moorlands Infant School",
"Postcode": "BA22DQ"
},
{
"SchoolName": "Chandag Junior School",
"Postcode": "BS311PQ"
},
{
"SchoolName": "Chandag Infant School",
"Postcode": "BS311PQ"
},
{
"SchoolName": "Mary Elton Primary School",
"Postcode": "BS217SX"
},
{
"SchoolName": "Farrington Gurney Church of England Primary School",
"Postcode": "BS396TY"
},
{
"SchoolName": "Marksbury CofE Primary School",
"Postcode": "BA29HS"
},
{
"SchoolName": "Worle Community School",
"Postcode": "BS228XX"
},
{
"SchoolName": "Notton House School",
"Postcode": "SN152NF"
},
{
"SchoolName": "Elstow School",
"Postcode": "MK429GP"
},
{
"SchoolName": "Great Barford Lower School",
"Postcode": "MK443JU"
},
{
"SchoolName": "Caldecote VC Lower School",
"Postcode": "SG189DA"
},
{
"SchoolName": "Challney High School for Girls",
"Postcode": "LU49FJ"
},
{
"SchoolName": "Putteridge High School",
"Postcode": "LU28HJ"
},
{
"SchoolName": "Thomas Whitehead CofE School",
"Postcode": "LU55HH"
},
{
"SchoolName": "Manshead School",
"Postcode": "LU14BB"
},
{
"SchoolName": "Whiteknights Primary School",
"Postcode": "RG28EP"
},
{
"SchoolName": "Crown Wood Primary School",
"Postcode": "RG120PE"
},
{
"SchoolName": "Wildridings Primary School",
"Postcode": "RG127DX"
},
{
"SchoolName": "Bisham CofE Primary School",
"Postcode": "SL71RW"
},
{
"SchoolName": "The Queen Anne Royal Free CofE Controlled First School",
"Postcode": "SL43EH"
},
{
"SchoolName": "Clewer Green CofE First School",
"Postcode": "SL43RL"
},
{
"SchoolName": "Trinity St Stephen CofE Aided First School",
"Postcode": "SL45DF"
},
{
"SchoolName": "St Edmund Campion Catholic Primary School, Maidenhead",
"Postcode": "SL64PX"
},
{
"SchoolName": "Aspire",
"Postcode": "HP136PQ"
},
{
"SchoolName": "Dorney School",
"Postcode": "SL60DY"
},
{
"SchoolName": "West Wycombe Combined School",
"Postcode": "HP143AH"
},
{
"SchoolName": "Waterside Combined School",
"Postcode": "HP51QU"
},
{
"SchoolName": "Greenleys Junior School",
"Postcode": "MK125DE"
},
{
"SchoolName": "The Mandeville School",
"Postcode": "HP218ES"
},
{
"SchoolName": "Ditton Lodge Community Primary School",
"Postcode": "CB88BL"
},
{
"SchoolName": "Cavalry Primary School",
"Postcode": "PE159EQ"
},
{
"SchoolName": "Ramsey Spinning Infant School",
"Postcode": "PE261AD"
},
{
"SchoolName": "Ramsey Community Junior School",
"Postcode": "PE261JA"
},
{
"SchoolName": "Babraham CofE (VC) Primary School",
"Postcode": "CB223AG"
},
{
"SchoolName": "Milton CofE VC Primary School",
"Postcode": "CB246DL"
},
{
"SchoolName": "Elm CofE Primary School",
"Postcode": "PE140AG"
},
{
"SchoolName": "Guyhirn CofE VC Primary School",
"Postcode": "PE134ED"
},
{
"SchoolName": "St John's CofE Primary School",
"Postcode": "PE297LA"
},
{
"SchoolName": "Meadowgate School",
"Postcode": "PE132JH"
},
{
"SchoolName": "Wimboldsley Community Primary School",
"Postcode": "CW100LN"
},
{
"SchoolName": "<NAME> Community Primary School",
"Postcode": "CH658DH"
},
{
"SchoolName": "Comberbach Primary School",
"Postcode": "CW96BG"
},
{
"SchoolName": "Victoria Road Primary School",
"Postcode": "CW95RE"
},
{
"SchoolName": "St Oswald's Worleston CofE Primary School",
"Postcode": "CW56DP"
},
{
"SchoolName": "Bunbury Aldersey CofE Primary School",
"Postcode": "CW69NR"
},
{
"SchoolName": "Warmingham CofE Primary School",
"Postcode": "CW113QN"
},
{
"SchoolName": "Queen's Park High School",
"Postcode": "CH47AE"
},
{
"SchoolName": "Ruskin Community High School",
"Postcode": "CW27JT"
},
{
"SchoolName": "Bader Primary School",
"Postcode": "TS170BY"
},
{
"SchoolName": "Pallister Park Primary School",
"Postcode": "TS38PW"
},
{
"SchoolName": "Rye Hills School",
"Postcode": "TS102HN"
},
{
"SchoolName": "Mousehole Community Primary School",
"Postcode": "TR196QQ"
},
{
"SchoolName": "Godolphin Primary School",
"Postcode": "TR139RB"
},
{
"SchoolName": "Crowan Primary School",
"Postcode": "TR140LG"
},
{
"SchoolName": "Landewednack Community Primary School",
"Postcode": "TR127PB"
},
{
"SchoolName": "Garras Community Primary School",
"Postcode": "TR126AY"
},
{
"SchoolName": "Mullion Community Primary School",
"Postcode": "TR127DF"
},
{
"SchoolName": "Sithney Community Primary School",
"Postcode": "TR130AE"
},
{
"SchoolName": "Trannack Primary School",
"Postcode": "TR130DQ"
},
{
"SchoolName": "Halwin School",
"Postcode": "TR130EG"
},
{
"SchoolName": "Parc Eglos School",
"Postcode": "TR138UP"
},
{
"SchoolName": "Weeth Community Primary School",
"Postcode": "TR147GA"
},
{
"SchoolName": "Warbstow Community Pre-School and Primary School",
"Postcode": "PL158UP"
},
{
"SchoolName": "Dobwalls Community Primary School",
"Postcode": "PL144LU"
},
{
"SchoolName": "Trewidland Primary School",
"Postcode": "PL144SJ"
},
{
"SchoolName": "Porthleven School",
"Postcode": "TR139BX"
},
{
"SchoolName": "Marhamchurch CofE VC Primary School",
"Postcode": "EX230HY"
},
{
"SchoolName": "King Charles Primary School",
"Postcode": "TR114EP"
},
{
"SchoolName": "Breage Church of England School",
"Postcode": "TR139PZ"
},
{
"SchoolName": "Cury CofE Primary School",
"Postcode": "TR127BW"
},
{
"SchoolName": "Wendron CofE Primary School",
"Postcode": "TR130PX"
},
{
"SchoolName": "St Francis CofE Primary School",
"Postcode": "TR114SU"
},
{
"SchoolName": "Helston Community College",
"Postcode": "TR138NR"
},
{
"SchoolName": "Mullion School",
"Postcode": "TR127EB"
},
{
"SchoolName": "Liskeard School and Community College",
"Postcode": "PL143EA"
},
{
"SchoolName": "Lorton School",
"Postcode": "CA139UL"
},
{
"SchoolName": "Northside Primary School",
"Postcode": "CA141BD"
},
{
"SchoolName": "Somercotes Infant School",
"Postcode": "DE554LY"
},
{
"SchoolName": "Eckington Junior School",
"Postcode": "S214FL"
},
{
"SchoolName": "Springfield Junior School",
"Postcode": "DE110BU"
},
{
"SchoolName": "Temple Normanton Primary School",
"Postcode": "S425DW"
},
{
"SchoolName": "<NAME> Community Primary School",
"Postcode": "S419QW"
},
{
"SchoolName": "New Whittington Community Primary School",
"Postcode": "S432AQ"
},
{
"SchoolName": "Osmaston Primary School",
"Postcode": "DE248FT"
},
{
"SchoolName": "Firs Estate Primary School",
"Postcode": "DE223WA"
},
{
"SchoolName": "Derwent Community School",
"Postcode": "DE216AL"
},
{
"SchoolName": "All Saints CofE Junior School",
"Postcode": "DE43LA"
},
{
"SchoolName": "Matlock All Saints Infants' School",
"Postcode": "DE43HX"
},
{
"SchoolName": "Darley Churchtown CofE Primary School",
"Postcode": "DE42GL"
},
{
"SchoolName": "The Pingle School",
"Postcode": "DE110QA"
},
{
"SchoolName": "Countess Wear Community School",
"Postcode": "EX27BS"
},
{
"SchoolName": "Montgomery Primary School",
"Postcode": "EX41BS"
},
{
"SchoolName": "Pilgrim Primary School",
"Postcode": "PL15BQ"
},
{
"SchoolName": "Plympton St Maurice Primary School",
"Postcode": "PL71UB"
},
{
"SchoolName": "Pomphlett Primary School",
"Postcode": "PL97ES"
},
{
"SchoolName": "Holsworthy Church of England Primary School",
"Postcode": "EX226HD"
},
{
"SchoolName": "Charleton Church of England Primary School",
"Postcode": "TQ72AL"
},
{
"SchoolName": "West Alvington Church of England Primary School",
"Postcode": "TQ73PP"
},
{
"SchoolName": "Thurlestone All Saints Church of England Primary School",
"Postcode": "TQ73NB"
},
{
"SchoolName": "The Spires College",
"Postcode": "TQ13PE"
},
{
"SchoolName": "Stourfield Junior School",
"Postcode": "BH65JG"
},
{
"SchoolName": "St Mary's Church of England Voluntary Controlled Primary School, Bradford Abbas",
"Postcode": "DT96RH"
},
{
"SchoolName": "Wimborne St Giles Church of England First School and Nursery",
"Postcode": "BH215LX"
},
{
"SchoolName": "St Joseph's Roman Catholic Voluntary Aided Primary School, Newton Aycliffe",
"Postcode": "DL57DE"
},
{
"SchoolName": "Fyndoune Community College",
"Postcode": "DH76LU"
},
{
"SchoolName": "Durham Community Business College for Technology and Enterprise",
"Postcode": "DH77NG"
},
{
"SchoolName": "<NAME>ok Primary School",
"Postcode": "TN63RG"
},
{
"SchoolName": "Castledown Primary School",
"Postcode": "TN343QT"
},
{
"SchoolName": "Pells Church of England Primary School",
"Postcode": "BN72SU"
},
{
"SchoolName": "Maldon Primary School",
"Postcode": "CM95DQ"
},
{
"SchoolName": "Maple Grove Primary School",
"Postcode": "SS133AB"
},
{
"SchoolName": "Rayne Primary and Nursery School",
"Postcode": "CM776BZ"
},
{
"SchoolName": "Noak Bridge Primary School",
"Postcode": "SS154JS"
},
{
"SchoolName": "Janet Duke Primary School",
"Postcode": "SS155LS"
},
{
"SchoolName": "John Ray Junior School",
"Postcode": "CM71HL"
},
{
"SchoolName": "Leigh Beck Junior School",
"Postcode": "SS87TD"
},
{
"SchoolName": "Seabrook College",
"Postcode": "SS26PE"
},
{
"SchoolName": "Treetops School",
"Postcode": "RM162WU"
},
{
"SchoolName": "Slimbridge Primary School",
"Postcode": "GL27DD"
},
{
"SchoolName": "St James' Church of England Primary School",
"Postcode": "GL502RS"
},
{
"SchoolName": "Rednock School",
"Postcode": "GL114BY"
},
{
"SchoolName": "Lakers School",
"Postcode": "GL167QW"
},
{
"SchoolName": "Weyford Infant School",
"Postcode": "GU350EP"
},
{
"SchoolName": "Gomer Junior School",
"Postcode": "PO122RP"
},
{
"SchoolName": "Solent Junior School",
"Postcode": "PO61HJ"
},
{
"SchoolName": "Highbury Primary School",
"Postcode": "PO62RZ"
},
{
"SchoolName": "Solent Infant School",
"Postcode": "PO61DH"
},
{
"SchoolName": "Newport Junior School",
"Postcode": "GU124PW"
},
{
"SchoolName": "St Swithun Wells Catholic Primary School, Chandlers Ford",
"Postcode": "SO532JP"
},
{
"SchoolName": "Springfield School",
"Postcode": "PO61QY"
},
{
"SchoolName": "The Connaught School",
"Postcode": "GU124AS"
},
{
"SchoolName": "Brune Park Community School",
"Postcode": "PO123BU"
},
{
"SchoolName": "Great Oaks School",
"Postcode": "SO167LT"
},
{
"SchoolName": "Kempsey Primary School",
"Postcode": "WR53NT"
},
{
"SchoolName": "Woodrow First School",
"Postcode": "B987UZ"
},
{
"SchoolName": "Cleeve Prior CofE (Controlled) First School",
"Postcode": "WR118LG"
},
{
"SchoolName": "Crowle CofE First School",
"Postcode": "WR74AT"
},
{
"SchoolName": "Eastnor Parochial Primary School",
"Postcode": "HR81RA"
},
{
"SchoolName": "Hanley Swan St Gabriel's with St Mary's CofE Primary School",
"Postcode": "WR80EQ"
},
{
"SchoolName": "Harvington CofE First School",
"Postcode": "WR118NQ"
},
{
"SchoolName": "Pinvin CofE First School",
"Postcode": "WR102ER"
},
{
"SchoolName": "Upton-upon-Severn CofE Primary School",
"Postcode": "WR80LD"
},
{
"SchoolName": "St Nicholas' CofE Middle School",
"Postcode": "WR102ER"
},
{
"SchoolName": "Drakes' Broughton St Barnabas CofE First and Middle School",
"Postcode": "WR102AW"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "WR127DZ"
},
{
"SchoolName": "St Mary's Catholic Primary School",
"Postcode": "WR114EJ"
},
{
"SchoolName": "Fladbury CofE First School",
"Postcode": "WR102QB"
},
{
"SchoolName": "Madresfield CofE Primary School",
"Postcode": "WR135AA"
},
{
"SchoolName": "Malvern Parish CofE Primary School",
"Postcode": "WR143BB"
},
{
"SchoolName": "Alvechurch CofE Middle School",
"Postcode": "B487TA"
},
{
"SchoolName": "Fairlands Primary School and Nursery",
"Postcode": "SG13JA"
},
{
"SchoolName": "Camps Hill Community Primary School",
"Postcode": "SG20LT"
},
{
"SchoolName": "William Barcroft Junior School",
"Postcode": "DN357SU"
},
{
"SchoolName": "Paisley Primary School",
"Postcode": "HU36NJ"
},
{
"SchoolName": "Sproatley Endowed Church of England Voluntary Controlled School",
"Postcode": "HU114PR"
},
{
"SchoolName": "St Anthony's Catholic Primary School",
"Postcode": "HU69AA"
},
{
"SchoolName": "St Charles' Roman Catholic Voluntary Aided Primary School",
"Postcode": "HU29AA"
},
{
"SchoolName": "St Thomas More RC Primary School",
"Postcode": "HU47NP"
},
{
"SchoolName": "Newland School for Girls",
"Postcode": "HU67RU"
},
{
"SchoolName": "St Mary's College",
"Postcode": "HU67TN"
},
{
"SchoolName": "St Margaret's Infant School",
"Postcode": "ME89AE"
},
{
"SchoolName": "Thames View Primary School",
"Postcode": "ME87DX"
},
{
"SchoolName": "Stone St Mary's CofE Primary School",
"Postcode": "DA99EF"
},
{
"SchoolName": "Leybourne, St Peter and St Paul Church of England Voluntary Aided Primary School",
"Postcode": "ME195HD"
},
{
"SchoolName": "Swadelands School",
"Postcode": "ME172LL"
},
{
"SchoolName": "The Community College Whitstable",
"Postcode": "CT51PX"
},
{
"SchoolName": "The North School",
"Postcode": "TN248AL"
},
{
"SchoolName": "St Francis' Catholic Primary School, Maidstone",
"Postcode": "ME160LB"
},
{
"SchoolName": "Horton Kirby Church of England Primary School",
"Postcode": "DA49BN"
},
{
"SchoolName": "Dartford Grammar School for Girls",
"Postcode": "DA12NT"
},
{
"SchoolName": "The Charles Dickens School",
"Postcode": "CT102RL"
},
{
"SchoolName": "Pent Valley Technology College",
"Postcode": "CT194ED"
},
{
"SchoolName": "Barrowford School",
"Postcode": "BB96EA"
},
{
"SchoolName": "Norden High School and Sports College",
"Postcode": "BB14ED"
},
{
"SchoolName": "Southlands High School",
"Postcode": "PR72NJ"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "LE175JL"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "LE60GT"
},
{
"SchoolName": "<NAME> Primary School",
"Postcode": "LE174QJ"
},
{
"SchoolName": "Rowlatts Hill Primary School",
"Postcode": "LE54ES"
},
{
"SchoolName": "Heatherbrook Primary School",
"Postcode": "LE41BE"
},
{
"SchoolName": "Claybrooke Primary School",
"Postcode": "LE175AF"
},
{
"SchoolName": "Sharnford Church of England Primary School",
"Postcode": "LE103PN"
},
{
"SchoolName": "South Kilworth Church of England Primary School",
"Postcode": "LE176EG"
},
{
"SchoolName": "Swannington Church of England Primary School",
"Postcode": "LE678QJ"
},
{
"SchoolName": "Thurnby, St Luke's Church of England Primary School",
"Postcode": "LE79PN"
},
{
"SchoolName": "Ullesthorpe Church of England Primary School",
"Postcode": "LE175DN"
},
{
"SchoolName": "St Barnabas CofE Primary School",
"Postcode": "LE54BD"
},
{
"SchoolName": "St Mary's Church of England Primary School Bitteswell",
"Postcode": "LE174SB"
},
{
"SchoolName": "All Saints Church of England Primary School, Sapcote",
"Postcode": "LE94FB"
},
{
"SchoolName": "St Margaret's Church of England Primary School",
"Postcode": "CV136HE"
},
{
"SchoolName": "Swinford Church of England Primary School",
"Postcode": "LE176BG"
},
{
"SchoolName": "Shepshed High School",
"Postcode": "LE129DA"
},
{
"SchoolName": "The Lancaster School",
"Postcode": "LE26FU"
},
{
"SchoolName": "The Branston Church of England Infant School",
"Postcode": "LN41PR"
},
{
"SchoolName": "Whaplode Church of England Primary School",
"Postcode": "PE126TS"
},
{
"SchoolName": "Swineshead St Mary's Church of England Primary School",
"Postcode": "PE203EN"
},
{
"SchoolName": "The Fourfields Church of England School, Sutterton",
"Postcode": "PE202JN"
},
{
"SchoolName": "The St Gilbert of Sempringham Church of England Primary School, Pointon",
"Postcode": "NG340NA"
},
{
"SchoolName": "The Pilgrim School",
"Postcode": "LN60DE"
},
{
"SchoolName": "The St Francis Special School, Lincoln",
"Postcode": "LN13TJ"
},
{
"SchoolName": "Aslacton Primary School",
"Postcode": "NR152JH"
},
{
"SchoolName": "Beeston Primary School",
"Postcode": "PE322NQ"
},
{
"SchoolName": "Grove House Nursery and Infant Community School",
"Postcode": "NR191BJ"
},
{
"SchoolName": "Garvestone Community Primary School",
"Postcode": "NR94AD"
},
{
"SchoolName": "Seething and Mundham Primary School",
"Postcode": "NR151DJ"
},
{
"SchoolName": "Thompson Primary School",
"Postcode": "IP241PY"
},
{
"SchoolName": "Emneth Primary School",
"Postcode": "PE148AY"
},
{
"SchoolName": "Upwell Community Primary School",
"Postcode": "PE149EW"
},
{
"SchoolName": "Blenheim Park Primary School",
"Postcode": "NR217PX"
},
{
"SchoolName": "Heather Avenue Infant School",
"Postcode": "NR66LT"
},
{
"SchoolName": "Manor Field Infant and Nursery School",
"Postcode": "NR152XR"
},
{
"SchoolName": "North Wootton Community School",
"Postcode": "PE303PT"
},
{
"SchoolName": "George White Junior School",
"Postcode": "NR34RG"
},
{
"SchoolName": "Lionwood Junior School",
"Postcode": "NR14HT"
},
{
"SchoolName": "Edward Worlledge Community Primary School",
"Postcode": "NR310ER"
},
{
"SchoolName": "King's Park Infant School, Dereham",
"Postcode": "NR192AG"
},
{
"SchoolName": "Watton Westfield Infant and Nursery School",
"Postcode": "IP256AU"
},
{
"SchoolName": "Long Stratton High School",
"Postcode": "NR152XR"
},
{
"SchoolName": "Sprowston Community High School",
"Postcode": "NR78NE"
},
{
"SchoolName": "<NAME> High School",
"Postcode": "NR203AX"
},
{
"SchoolName": "Great Yarmouth (VA) High School",
"Postcode": "NR304LS"
},
{
"SchoolName": "Acomb Primary School",
"Postcode": "YO244ES"
},
{
"SchoolName": "Park Grove Primary School",
"Postcode": "YO318LG"
},
{
"SchoolName": "Woodthorpe Primary School",
"Postcode": "YO242RU"
},
{
"SchoolName": "Leyburn Community Primary School",
"Postcode": "DL85SD"
},
{
"SchoolName": "Knaresborough, Aspin Park Community Primary School",
"Postcode": "HG58LQ"
},
{
"SchoolName": "Knaresborough, Meadowside Community Primary School",
"Postcode": "HG50SL"
},
{
"SchoolName": "Langton Primary School",
"Postcode": "YO179QP"
},
{
"SchoolName": "Tang Hall Primary School",
"Postcode": "YO310UT"
},
{
"SchoolName": "Ainderby Steeple Church of England Primary School",
"Postcode": "DL79QR"
},
{
"SchoolName": "Brompton-on-Swale Church of England Primary School",
"Postcode": "DL107JW"
},
{
"SchoolName": "Croft Church of England Primary School",
"Postcode": "DL22SP"
},
{
"SchoolName": "East Cowton Church of England Primary School",
"Postcode": "DL70BD"
},
{
"SchoolName": "Eppleby Forcett Church of England Primary School",
"Postcode": "DL117AY"
},
{
"SchoolName": "Hipswell Church of England Primary School",
"Postcode": "DL94BB"
},
{
"SchoolName": "<NAME> Church of England Primary School",
"Postcode": "DL70SA"
},
{
"SchoolName": "<NAME>as Cof E Primary School",
"Postcode": "DL106SF"
},
{
"SchoolName": "Ravensworth Church of England Primary School",
"Postcode": "DL117ET"
},
{
"SchoolName": "Barton Church of England Primary School",
"Postcode": "DL106LJ"
},
{
"SchoolName": "Filey Church of England Voluntary Controlled Nursery and Infant School",
"Postcode": "YO140BA"
},
{
"SchoolName": "North Rigton Church of England Primary School",
"Postcode": "LS170DW"
},
{
"SchoolName": "South Otterington Church of England Voluntary Controlled Primary School",
"Postcode": "DL79HD"
},
{
"SchoolName": "Bolton-on-Swale St Mary's CofE Primary School",
"Postcode": "DL106AQ"
},
{
"SchoolName": "<NAME> Church of England Aided Primary School",
"Postcode": "DL107LB"
},
{
"SchoolName": "All Saints, Church of England School",
"Postcode": "HG31HD"
},
{
"SchoolName": "Vale of York Academy",
"Postcode": "YO306ZS"
},
{
"SchoolName": "Byfield School",
"Postcode": "NN116US"
},
{
"SchoolName": "Kettering Park Infant School",
"Postcode": "NN169RU"
},
{
"SchoolName": "Wollaston Community Primary School",
"Postcode": "NN297SF"
},
{
"SchoolName": "St James Infant School",
"Postcode": "NN114AG"
},
{
"SchoolName": "Falconer's Hill Infant School",
"Postcode": "NN110QF"
},
{
"SchoolName": "The Grange School, Daventry",
"Postcode": "NN114HW"
},
{
"SchoolName": "Meadowside Primary School",
"Postcode": "NN155QY"
},
{
"SchoolName": "The Abbey Primary School",
"Postcode": "NN48AZ"
},
{
"SchoolName": "Standens Barn Primary School",
"Postcode": "NN39EH"
},
{
"SchoolName": "Greens Norton Church of England Primary School",
"Postcode": "NN128DD"
},
{
"SchoolName": "Silverstone Church of England Primary School",
"Postcode": "NN128ES"
},
{
"SchoolName": "Welford Sibbertoft and Sulby Endowed School",
"Postcode": "NN66HU"
},
{
"SchoolName": "Mears Ashby Church of England Endowed School",
"Postcode": "NN60DW"
},
{
"SchoolName": "Millbrook Infant School",
"Postcode": "NN155BZ"
},
{
"SchoolName": "Millbrook Junior School",
"Postcode": "NN155DP"
},
{
"SchoolName": "Prudhoe West First School",
"Postcode": "NE426HR"
},
{
"SchoolName": "Abbeyfields First School",
"Postcode": "NE612LZ"
},
{
"SchoolName": "Seahouses Middle School",
"Postcode": "NE687YF"
},
{
"SchoolName": "Haydon Bridge Community High School and Sports College",
"Postcode": "NE476LR"
},
{
"SchoolName": "Ponteland Middle School",
"Postcode": "NE209EY"
},
{
"SchoolName": "Alnw<NAME>farne Middle School",
"Postcode": "NE661AX"
},
{
"SchoolName": "Alnwick the Dukes Middle School",
"Postcode": "NE661UN"
},
{
"SchoolName": "St Benedict's Roman Catholic Voluntary Aided Middle School",
"Postcode": "NE639LR"
},
{
"SchoolName": "St Paul's RC Voluntary Aided Middle School",
"Postcode": "NE662NU"
},
{
"SchoolName": "Denewood Learning Centre",
"Postcode": "NG74ES"
},
{
"SchoolName": "Kirkby Woodhouse Primary School and Nursery",
"Postcode": "NG179EU"
},
{
"SchoolName": "Mapplewells Primary and Nursery School",
"Postcode": "NG171HU"
},
{
"SchoolName": "Porchester Junior School",
"Postcode": "NG41LF"
},
{
"SchoolName": "<NAME> Infant School",
"Postcode": "NG138FE"
},
{
"SchoolName": "<NAME> Junior School",
"Postcode": "NG146JZ"
},
{
"SchoolName": "<NAME> Seely Comprehensive School",
"Postcode": "NG146JZ"
},
{
"SchoolName": "Redgate School",
"Postcode": "NG196EL"
},
{
"SchoolName": "Woodlands School",
"Postcode": "NG83EZ"
},
{
"SchoolName": "Westbury School",
"Postcode": "NG83BT"
},
{
"SchoolName": "Edith Moorhouse Primary School",
"Postcode": "OX183HP"
},
{
"SchoolName": "Chalgrove Community Primary School",
"Postcode": "OX447ST"
},
{
"SchoolName": "Wroxton Church of England Primary School",
"Postcode": "OX156QJ"
},
{
"SchoolName": "Dr Radcliffe's Church of England School",
"Postcode": "OX254SF"
},
{
"SchoolName": "Greenfields Primary School",
"Postcode": "SY12AH"
},
{
"SchoolName": "Radbrook Primary School",
"Postcode": "SY36DZ"
},
{
"SchoolName": "Burford CofE Primary School",
"Postcode": "WR158AT"
},
{
"SchoolName": "Charlton School",
"Postcode": "TF13FA"
},
{
"SchoolName": "Goldenhill Primary School",
"Postcode": "ST64QE"
},
{
"SchoolName": "Summerbank Primary School",
"Postcode": "ST65HA"
},
{
"SchoolName": "Jackfield Infant School",
"Postcode": "ST61ET"
},
{
"SchoolName": "Moorpark Junior School",
"Postcode": "ST61EL"
},
{
"SchoolName": "Hamilton Infant School",
"Postcode": "ST16NW"
},
{
"SchoolName": "Northwood Broom Community School",
"Postcode": "ST16QA"
},
{
"SchoolName": "Blurton Primary School",
"Postcode": "ST33AZ"
},
{
"SchoolName": "Alexandra Infants' School",
"Postcode": "ST34PZ"
},
{
"SchoolName": "Mill Hill Primary School",
"Postcode": "ST66ED"
},
{
"SchoolName": "Holden Lane Primary School",
"Postcode": "ST16JS"
},
{
"SchoolName": "Weston Heights Infant School",
"Postcode": "ST36PT"
},
{
"SchoolName": "Weston Coyney Junior School",
"Postcode": "ST36NG"
},
{
"SchoolName": "Ash Green Primary School",
"Postcode": "ST48BX"
},
{
"SchoolName": "Gladstone Primary",
"Postcode": "ST35EW"
},
{
"SchoolName": "Alexandra Junior School",
"Postcode": "ST37JG"
},
{
"SchoolName": "Friarswood Primary School",
"Postcode": "ST52ES"
},
{
"SchoolName": "Picknalls First School",
"Postcode": "ST147QL"
},
{
"SchoolName": "All Saints CofE (C) First School",
"Postcode": "ST104PT"
},
{
"SchoolName": "Waterhouses CofE (VC) Primary School",
"Postcode": "ST103HY"
},
{
"SchoolName": "St Mary's CofE VA Primary School",
"Postcode": "ST65DE"
},
{
"SchoolName": "Hutchinson Memorial CofE (A) First School",
"Postcode": "ST104NB"
},
{
"SchoolName": "St Wulstan's Catholic Primary School",
"Postcode": "ST50EF"
},
{
"SchoolName": "Sandon Business and Enterprise College",
"Postcode": "ST37DF"
},
{
"SchoolName": "Birches Head Academy",
"Postcode": "ST28DD"
},
{
"SchoolName": "Penkridge Middle School",
"Postcode": "ST195BW"
},
{
"SchoolName": "<NAME>'s High School",
"Postcode": "ST148DU"
},
{
"SchoolName": "Windsor Park CofE (C) Middle School",
"Postcode": "ST147JX"
},
{
"SchoolName": "Cherry Trees School",
"Postcode": "WV50AX"
},
{
"SchoolName": "Wightwick Hall School",
"Postcode": "WV68DA"
},
{
"SchoolName": "Beck Row Primary School",
"Postcode": "IP288AE"
},
{
"SchoolName": "Clements Community Primary School",
"Postcode": "CB98NJ"
},
{
"SchoolName": "Wells Hall Community Primary School",
"Postcode": "CO100NH"
},
{
"SchoolName": "Aldeburgh Primary School",
"Postcode": "IP155EU"
},
{
"SchoolName": "Snape Community Primary School",
"Postcode": "IP171QG"
},
{
"SchoolName": "Handford Hall Primary School",
"Postcode": "IP12LQ"
},
{
"SchoolName": "Springfield Junior School",
"Postcode": "IP14DT"
},
{
"SchoolName": "Springfield Infant School and Nursery",
"Postcode": "IP14PP"
},
{
"SchoolName": "The Willows Primary School",
"Postcode": "IP29ER"
},
{
"SchoolName": "Halifax Primary School",
"Postcode": "IP28PY"
},
{
"SchoolName": "Hartest Church of England Voluntary Controlled Primary School",
"Postcode": "IP294DL"
},
{
"SchoolName": "Mellis Church of England Voluntary Controlled Primary School",
"Postcode": "IP238DP"
},
{
"SchoolName": "Claydon High School",
"Postcode": "IP60EG"
},
{
"SchoolName": "Bletchingley Village Primary School",
"Postcode": "RH14PP"
},
{
"SchoolName": "Hamsey Green Primary",
"Postcode": "CR69AN"
},
{
"SchoolName": "Woodlea Primary School",
"Postcode": "CR37EP"
},
{
"SchoolName": "Tatsfield Primary School",
"Postcode": "TN162AH"
},
{
"SchoolName": "St Andrew's CofE Controlled Infant School",
"Postcode": "GU97PW"
},
{
"SchoolName": "St Andrew's CofE Primary School",
"Postcode": "KT112AX"
},
{
"SchoolName": "Gosden House School",
"Postcode": "GU50AH"
},
{
"SchoolName": "West Hill School",
"Postcode": "KT227PW"
},
{
"SchoolName": "Woodlands School",
"Postcode": "KT228RY"
},
{
"SchoolName": "The Ridgeway Community School",
"Postcode": "GU98HB"
},
{
"SchoolName": "Linden Bridge School",
"Postcode": "KT47JW"
},
{
"SchoolName": "Freemantles School",
"Postcode": "GU220AN"
},
{
"SchoolName": "Bishops Itchington Primary School",
"Postcode": "CV472RN"
},
{
"SchoolName": "Stockton Primary School",
"Postcode": "CV478JE"
},
{
"SchoolName": "Newburgh Primary School",
"Postcode": "CV346LD"
},
{
"SchoolName": "Our Lady's Catholic Primary School, Alcester",
"Postcode": "B496AG"
},
{
"SchoolName": "St Gregory's Catholic Primary School",
"Postcode": "CV376UZ"
},
{
"SchoolName": "St Mary's Catholic Primary School, Henley-in-Arden",
"Postcode": "B955LT"
},
{
"SchoolName": "Southam College",
"Postcode": "CV470JW"
},
{
"SchoolName": "St Benedict's Catholic High School",
"Postcode": "B496PX"
},
{
"SchoolName": "East Preston Junior School",
"Postcode": "BN161EZ"
},
{
"SchoolName": "The St Philip Howard Catholic High School",
"Postcode": "PO220EN"
},
{
"SchoolName": "Southbroom Infants' School",
"Postcode": "SN105AA"
},
{
"SchoolName": "Shrewton CofE Primary School",
"Postcode": "SP34JT"
},
{
"SchoolName": "Heytesbury Church of England Primary School",
"Postcode": "BA120EA"
},
{
"SchoolName": "Uplands School",
"Postcode": "SN252NB"
},
{
"SchoolName": "Brimble Hill Special School",
"Postcode": "SN252NB"
},
{
"SchoolName": "The Elmgreen School",
"Postcode": "SE279BZ"
},
{
"SchoolName": "Penn Wood Primary and Nursery School",
"Postcode": "SL21PH"
},
{
"SchoolName": "Southam Primary School",
"Postcode": "CV470QB"
},
{
"SchoolName": "West Kingsdown CofE VC Primary School",
"Postcode": "TN156JP"
},
{
"SchoolName": "South Rise Primary School",
"Postcode": "SE187PX"
},
{
"SchoolName": "Amesbury Church of England Voluntary Controlled Primary School",
"Postcode": "SP47AX"
},
{
"SchoolName": "Lincoln The Sincil School",
"Postcode": "LN58EL"
},
{
"SchoolName": "Rosendale Primary School",
"Postcode": "SE218LR"
},
{
"SchoolName": "Oakwood Avenue Community Primary School",
"Postcode": "WA13SZ"
},
{
"SchoolName": "Kippax Ash Tree Primary School",
"Postcode": "LS257JL"
},
{
"SchoolName": "Behaviour Support",
"Postcode": "NE95PQ"
},
{
"SchoolName": "Allerton Primary School",
"Postcode": "DN402HP"
},
{
"SchoolName": "Ian Mikardo School",
"Postcode": "E33LF"
},
{
"SchoolName": "Barnton Community Nursery and Primary School",
"Postcode": "CW84QL"
},
{
"SchoolName": "Castle View Primary School",
"Postcode": "DE43DS"
},
{
"SchoolName": "Anston Brook Primary School",
"Postcode": "S254DN"
},
{
"SchoolName": "Linhope PRU",
"Postcode": "NE52LW"
},
{
"SchoolName": "The Rowans",
"Postcode": "ME50LB"
},
{
"SchoolName": "Kings Road Primary School",
"Postcode": "CM12BB"
},
{
"SchoolName": "Heybridge Alternative Provision School",
"Postcode": "CM94NB"
},
{
"SchoolName": "Mattishall Primary School",
"Postcode": "NR203AA"
},
{
"SchoolName": "Parkside School",
"Postcode": "BD135AD"
},
{
"SchoolName": "Benchill Primary School",
"Postcode": "M228EJ"
},
{
"SchoolName": "Futures Community College",
"Postcode": "SS24UY"
},
{
"SchoolName": "Hall Meadow Primary School",
"Postcode": "NN157RP"
},
{
"SchoolName": "St Catherine's CofE Primary School",
"Postcode": "BL65SJ"
},
{
"SchoolName": "Cherry Tree Primary School, Basildon",
"Postcode": "SS164AG"
},
{
"SchoolName": "Deansfield Primary School",
"Postcode": "SE91XP"
},
{
"SchoolName": "North East Essex Additional Provision School",
"Postcode": "CO45LB"
},
{
"SchoolName": "St Matthias Park Pupil Referral Service",
"Postcode": "BS162BG"
},
{
"SchoolName": "Monkston Primary School",
"Postcode": "MK109LA"
},
{
"SchoolName": "Hill Top Primary School",
"Postcode": "DN121PL"
},
{
"SchoolName": "Kingsfield Centre",
"Postcode": "IP141SZ"
},
{
"SchoolName": "Willow Dene School",
"Postcode": "SE182JD"
},
{
"SchoolName": "Pennoweth Primary School",
"Postcode": "TR151NA"
},
{
"SchoolName": "Offley Primary School",
"Postcode": "CW111GY"
},
{
"SchoolName": "George Washington Primary School",
"Postcode": "NE371NL"
},
{
"SchoolName": "Valley Road Community Primary School",
"Postcode": "SR28PL"
},
{
"SchoolName": "New Horizons School",
"Postcode": "WA20QQ"
},
{
"SchoolName": "Seabrook College",
"Postcode": "SS26PE"
},
{
"SchoolName": "Kingsland CofE(C) Primary School",
"Postcode": "ST29AS"
},
{
"SchoolName": "Orchards Church of England Primary School",
"Postcode": "PE133NP"
},
{
"SchoolName": "Riverside Primary School",
"Postcode": "ME88ET"
},
{
"SchoolName": "The Bridge School",
"Postcode": "N70EQ"
},
{
"SchoolName": "Lister Primary School",
"Postcode": "BD95AT"
},
{
"SchoolName": "Beechcroft St Pauls CofE VA Primary School",
"Postcode": "DT40LQ"
},
{
"SchoolName": "Torbay School",
"Postcode": "TQ32AL"
},
{
"SchoolName": "Wynstream School",
"Postcode": "EX26AY"
},
{
"SchoolName": "Exwick Heights Primary School",
"Postcode": "EX42FB"
},
{
"SchoolName": "Fortuna School",
"Postcode": "LN60FB"
},
{
"SchoolName": "Lansdown Park Secondary Specialist Provision",
"Postcode": "BS148SJ"
},
{
"SchoolName": "Hardwick Primary School",
"Postcode": "DE236QP"
},
{
"SchoolName": "Clyst Heath Nursery and Community Primary School",
"Postcode": "EX27QT"
},
{
"SchoolName": "Highfield Community Primary School",
"Postcode": "SR40DA"
},
{
"SchoolName": "The Fairfield Community Primary School",
"Postcode": "WR49HG"
},
{
"SchoolName": "Da Vinci Community School",
"Postcode": "DE214ET"
},
{
"SchoolName": "Stanwell Fields CofE Primary School",
"Postcode": "TW197DB"
},
{
"SchoolName": "St Herbert's CofE (VA) Primary and Nursery School",
"Postcode": "CA124HZ"
},
{
"SchoolName": "St Christopher's",
"Postcode": "IP43HG"
},
{
"SchoolName": "Lionwood Infant and Nursery School",
"Postcode": "NR14AN"
},
{
"SchoolName": "Shuttleworth College",
"Postcode": "BB128ST"
},
{
"SchoolName": "Summerhill Primary School",
"Postcode": "DY49PF"
},
{
"SchoolName": "St Bartholomew's CofE VC Primary School",
"Postcode": "DY130EL"
},
{
"SchoolName": "Hartlebury CofE Primary School",
"Postcode": "DY117TD"
},
{
"SchoolName": "Elmwood School",
"Postcode": "WS41EG"
},
{
"SchoolName": "Brimsdown Primary School",
"Postcode": "EN37NA"
},
{
"SchoolName": "Pennine View School",
"Postcode": "DN123LR"
},
{
"SchoolName": "New Heights High School",
"Postcode": "L271XY"
},
{
"SchoolName": "Unity Learning Centre",
"Postcode": "NG74ES"
},
{
"SchoolName": "High Park School",
"Postcode": "BD96RY"
},
{
"SchoolName": "St Francis Catholic and Church of England (Aided) Primary School",
"Postcode": "PO381BQ"
},
{
"SchoolName": "Churchfield CofE VA Primary",
"Postcode": "EN80LU"
},
{
"SchoolName": "Clifton With Rawcliffe Primary School",
"Postcode": "YO305TA"
},
{
"SchoolName": "Netherwood Advanced Learning Centre",
"Postcode": "S738FE"
},
{
"SchoolName": "Harper Bell Seventh-day Adventist School",
"Postcode": "B120EJ"
},
{
"SchoolName": "Oakfield Lodge School",
"Postcode": "CW14PP"
},
{
"SchoolName": "Knowles Primary School",
"Postcode": "MK22HB"
},
{
"SchoolName": "Central Walker Church of England Voluntary Aided Primary School",
"Postcode": "NE62NP"
},
{
"SchoolName": "The Lincolnshire Teaching and Learning Centre",
"Postcode": "LN58HY"
},
{
"SchoolName": "<NAME> Community College",
"Postcode": "DN121HH"
},
{
"SchoolName": "Arundel Court Primary School and Nursery",
"Postcode": "PO11JE"
},
{
"SchoolName": "Leominster Primary School",
"Postcode": "HR68JU"
},
{
"SchoolName": "Lawford Mead Primary & Nursery",
"Postcode": "CM12JH"
},
{
"SchoolName": "Holy Trinity School",
"Postcode": "TF29SQ"
},
{
"SchoolName": "The Boxing Academy",
"Postcode": "E83NR"
}
]
};
<file_sep>var pagesHistory = [];
var currentPage = {};
var path = "";
function init()
{
$("body").load(path + "pages/index.html", function()
{
$.getScript(path + "js/index.js", function()
{
if (currentPage.init)
{
currentPage.init();
}
});
});
}
<file_sep>currentPage = {};
currentPage.init = function() {
console.log("DetailPage :: init");
detailTask();
};
currentPage.back = function() {
console.log("back :: back");
$("body").load(path + "index.html", function() {
$.getScript(path + "js/index.js", function() {
if (currentPage.init) {
currentPage.init();
}
});
});
};
currentPage.edit = function() {
console.log("DetailPage :: edit");
var taskId = sessionStorage.taskId;
var name = $("#name").val();
var description = $("#description").val();
formData = {
taskId: sessionStorage.taskId,
name: $("#name").val(),
description: $("#description").val()
}
if (name == "") {
alert("Please enter name");
} else if (description == "") {
alert("Please enter description");
} else {
$.ajax({
type: "post",
url: "http://demo.revivalx.com/todolist-api/update_task.php",
data: formData,
dataType: "json",
success: function(data) {
alert("Edit task success");
$("body").load(path + "pages/ListPage.html", function() {
$.getScript(path + "js/ListPage.js", function() {
if (currentPage.init) {
currentPage.init();
}
});
});
},
error: function() {
alert("Edit task failure");
}
});
}
};
function detailTask() {
formData = {
taskId: sessionStorage.taskId
}
$.ajax({
type: "get",
url: "http://demo.revivalx.com/todolist-api/get_task_details.php",
data: formData,
dataType: "json",
success: function(data) {
$('#name').val(data.task[0].name);
$('#description').val(data.task[0].description);
},
error: function() {
alert("Detail task failure");
}
});
}
currentPage.remove = function() {
console.log("DetailPage :: delete");
deleteTask();
};
function deleteTask() {
formData = {
taskId: sessionStorage.taskId
}
$.ajax({
type: "post",
url: "http://demo.revivalx.com/todolist-api/delete_task.php",
data: formData,
dataType: "json",
success: function(data) {
alert("Delete task success");
$("body").load(path + "pages/ListPage.html", function() {
$.getScript(path + "js/ListPage.js", function() {
if (currentPage.init) {
currentPage.init();
}
});
});
},
error: function() {
alert("Delete task failure");
}
});
} | 8036adb5f079a573ff0eb5bb1c17e0108bfb3666 | [
"JavaScript",
"Java",
"Markdown"
] | 14 | Java | vjain143/hackathon-projects | 862315690ad4f0d4ae44bdab54e96ce8247992d9 | 95e883b1ac43dd95cf1e8fa13a5188ab48e31c0e |
refs/heads/master | <repo_name>andreycruz16/electricityComsumption<file_sep>/Electricity Consumption.cpp
/* March 05, 2015
SYSTEM BY: <NAME>
*/
#include<iostream>
#include<iomanip>
#include<string> //add this header to use strings
#include<fstream>
#include<cstdlib> // add this header to use system commands
using namespace std;
int main()
{
ofstream outFile;
float wattage, hours, wattHoursPerDay, kWhPerDay, kWhPerMonth, costPerKWH;
float dailyAmountDue, monthlyAmountDue, annualAmountDue;
string appliance1;
outFile.open("ElectricityConsumption.txt"); //Filename of the FINAL output
cout<<setfill('*')<<left<<setw(78)<<""<<endl;
cout<<"System by: <NAME>\tSubmitted to: <NAME>\n\t <NAME>\tProgramming 2"<<endl;
cout<<setfill('*')<<left<<setw(78)<<""<<endl;
cout<<"This System will calculate the Electricity Consumption of Household Appliances."<<endl<<endl;
cout<<"Enter the Name of Appliance"<<setfill(' ')<<right<<setw(13)<<": ";
cin>>appliance1;
cout<<"Enter the Wattage of Appliance"<<setfill(' ')<<right<<setw(10)<<": ";
cin>>wattage;
cout<<"Enter the number of hours used per day: "; //hours used per day
cin>>hours;
cout<<setfill('-')<<left<<setw(62)<<""<<endl;
cout<<"NOTE: Cost per kilowatt hour as of March 2015 is = PhP 4.7182|PhP 0.095"<<endl;
cout<<setfill('-')<<left<<setw(62)<<""<<endl;
cout<<"Enter this month's cost per kilowatt hour: "; //Ask the user cost per kilo watt hour
cin>>costPerKWH;
/* Formula for computing the electricity consumption*/
wattHoursPerDay=wattage*hours;
kWhPerDay=wattHoursPerDay/1000;
kWhPerMonth=kWhPerDay*30;
dailyAmountDue=kWhPerDay*costPerKWH;
monthlyAmountDue=kWhPerMonth*costPerKWH;
annualAmountDue=monthlyAmountDue*12;
system("cls");
cout<<endl;
cout<<setfill('-')<<left<<setw(22)<<""<<endl;
cout<<"Data Process Finished!"<<endl;
cout<<setfill('-')<<left<<setw(22)<<""<<endl<<endl;;
outFile<<fixed<<showpoint<<setprecision(2);
outFile<<setfill('*')<<left<<setw(36)<<""<<endl;
outFile<<"Electricity Consumption of a "<<appliance1<<":"<<endl;
outFile<<"Wattage = "<<static_cast<int>(wattage)<<" Watts"<<endl;
outFile<<"Hours used per day = "<<static_cast<int>(hours)<<" Hours"<<endl;
outFile<<"Cost per KwH = PhP "<<setprecision(2)<<costPerKWH<<endl<<endl;
outFile<<"Daily cost : PhP "<<dailyAmountDue<<endl;
outFile<<"Monthly cost: PhP "<<monthlyAmountDue<<endl;
outFile<<"Annual cost : PhP "<<annualAmountDue<<endl;
outFile<<setfill('*')<<left<<setw(36)<<""<<endl;
outFile<<"System by: <NAME>\n\t <NAME>"<<endl;
cout<<fixed<<showpoint<<setprecision(2);
cout<<"Electricity Consumption of a "<<appliance1<<":"<<endl;
cout<<"Wattage = "<<static_cast<int>(wattage)<<" Watts"<<endl;
cout<<"Hours used per day = "<<static_cast<int>(hours)<<" Hours"<<endl;
cout<<"Cost per KwH = PhP "<<setprecision(2)<<costPerKWH<<endl<<endl;
cout<<"Daily cost : PhP "<<dailyAmountDue<<endl;
cout<<"Monthly cost: PhP "<<monthlyAmountDue<<endl;
cout<<"Annual cost : PhP "<<annualAmountDue<<endl<<endl;
cout<<setfill('-')<<left<<setw(34)<<""<<endl;
cout<<"System by: <NAME>"<<endl;
outFile.close();
system("ElectricityConsumption.txt");
}
<file_sep>/README.md
# electricityComsumption
This program calculates the electricity consumption of household appliances
| 3fe0a8233ba93bc55d50353c1ec137d323db5161 | [
"Markdown",
"C++"
] | 2 | C++ | andreycruz16/electricityComsumption | 43d0ed76752a12dbc0c75634cb69e7ab0915d076 | 99a82a305ef401ce5019fe114a730e59f6b0f154 |
refs/heads/master | <file_sep>### Load libraries
library(mvnfast)
library(mvtnorm)
library(mclust)
library(EMMIXskew)
library(mixtools)
library(inline)
library(Rcpp)
library(RcppArmadillo)
### Load Iris Data
# Data <- iris
# Data <- Data[,-5]
Data <- as.matrix(Data)
### Gain function
Gain <- function(COUNT) {
1/COUNT^.6
}
### Initialization parameters
# Groups <- 3
Dim_vec <- dim(Data)
Batch_size <- NN/100
MAX_num <- (-attributes(MC)$info[1]*NN)/Batch_size
# Pol_start <- round(MAX_num/2)
### Initialize Pi
Pi_vec <- msEst$parameters$pro
### Initialize Mean
# hcTree <- hcVVV(data = Data)
# cl <- hclass(hcTree, Groups)
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
Mean_list <- list()
for (ii in 1:Groups) {
Mean_list[[ii]] <- msEst$parameters$mean[,ii]
}
### Initialize Covariance
Cov_list <- list()
for (ii in 1:Groups) {
Cov_list[[ii]] <- msEst$parameters$variance$sigma[,,ii]
}
Refit2 <- mvnormalmixEM(x = Data,
lambda = Pi_vec,
mu = Mean_list,
sigma = Cov_list,
k = Groups,
maxit = 1)
### Tau functions
Tau_fun <- function(X_vec,Pi_vec,Mean_list,Cov_list) {
Tau_vec <- c()
for (ii in 1:Groups) {
Tau_vec[ii] <- Pi_vec[ii]*dmvnorm(X_vec,
Mean_list[[ii]],
Cov_list[[ii]])
}
Tau_vec <- Tau_vec/sum(Tau_vec)
return(Tau_vec)
}
X_samp <- Data[sample(Dim_vec[1],Batch_size,replace=T),]
Multi_Tau_fun <- function(X_samp,Pi_vec,Mean_list,Cov_list) {
t(apply(X_samp,1,function(x){Tau_fun(x,Pi_vec,Mean_list,Cov_list)}))
}
T1 <- Pi_vec*Batch_size
T2 <- lapply(1:Groups,function(ii){Mean_list[[ii]]*Pi_vec[ii]})
T3 <- mapply(function(x,y,z){x*z+y%*%t(y)/x},T1,T2,Cov_list)
T3 <- lapply(seq_len(ncol(T3)), function(i) matrix(T3[,i],Dim_vec[2],Dim_vec[2]))
### Algorithm
COUNT <- 0
# Initialize some lists
# Run_Pi_list <- list()
# Run_Mean_list <- list()
# Run_Cov_list <- list()
# Initialize some Pi
Cont_Pi_vec <- Pi_vec
Cont_Mean_list <- Mean_list
Cont_Cov_list <- Cov_list
while(COUNT<MAX_num) {
### Iterate Count
COUNT <- COUNT + 1
### Averaging lists
# Run_Pi_list[[COUNT]] <- Pi_vec
# Run_Mean_list[[COUNT]] <- matrix(unlist(Mean_list),Dim_vec[2],Groups,byrow = F)
# Run_Cov_list[[COUNT]] <- array(unlist(Cov_list),dim=c(Dim_vec[2],Dim_vec[2],Groups))
X_samp <- Data[sample(Dim_vec[1],Batch_size,replace=T),]
Tau <- Multi_Tau_fun(X_samp,Pi_vec,Mean_list,Cov_list)
T1 <- (1-Gain(COUNT))*T1+Gain(COUNT)*colSums(Tau)
T2 <- lapply(seq_len(Groups),function(ii) {
(1-Gain(COUNT))*T2[[ii]]+Gain(COUNT)*colSums(Tau[,ii]*X_samp)
})
T3 <- lapply(seq_len(Groups),function(ii) {
(1-Gain(COUNT))*T3[[ii]]+Gain(COUNT)*
Reduce('+',lapply(1:Batch_size,function(jj){Tau[jj,ii]*X_samp[jj,]%*%t(X_samp[jj,])}))
})
Pi_vec <- T1/Batch_size
Mean_list <- lapply(1:Groups,function(ii){
T2[[ii]]/T1[[ii]]
})
Cov_list <- lapply(seq_len(Groups),function(ii){
(T3[[ii]]-T2[[ii]]%*%t(T2[[ii]])/T1[ii])/T1[ii]
})
### Continuous Update
Cont_Pi_vec <- Cont_Pi_vec*COUNT/(COUNT+1) + Pi_vec/(COUNT+1)
Cont_Mean_list <- lapply(1:Groups, function (ii) {
Cont_Mean_list[[ii]]*COUNT/(COUNT+1) + Mean_list[[ii]]/(COUNT+1)
})
Cont_Cov_list <- lapply(1:Groups, function (ii) {
Cont_Cov_list[[ii]]*COUNT/(COUNT+1) + Cov_list[[ii]]/(COUNT+1)
})
print(COUNT)
# print(Pi_vec)
# print(Mean_list)
# print(Cov_list)
}
#
# Cluster <- sapply(1:Dim_vec[1],function(ii) {
# Tau_fun(Data[ii,],Mean_list,)
# })
Refit <- mvnormalmixEM(x = Data,
lambda = Pi_vec,
mu = Mean_list,
sigma = Cov_list,
k = Groups,
maxit = 1)
print(Refit$all.loglik[1])
### Polyak Averaging
# Red_Pi_vec <- Reduce('+',Run_Pi_list[-(1:Pol_start)])/(COUNT-Pol_start+1)
# Red_Mean_list <- Reduce('+',Run_Mean_list[-(1:Pol_start)])/(COUNT-Pol_start+1)
# Red_Mean_list <- lapply(1:Groups,function(ii){Red_Mean_list[,ii]})
# Red_Cov_list <- Reduce('+',Run_Cov_list[-(1:Pol_start)])/(COUNT-Pol_start+1)
# Red_Cov_list <- lapply(1:Groups,function(ii){Red_Cov_list[,,ii]})
Refit_pol <- mvnormalmixEM(x = Data,
lambda = Cont_Pi_vec,
mu = Cont_Mean_list,
sigma = Cont_Cov_list,
k = Groups,
maxit = 1)
print(Refit_pol$all.loglik[1])
MC$loglik
print(Refit2$all.loglik[1])<file_sep># Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 1<PASSWORD>
rcpparma_hello_world <- function() {
.Call(`_StoEMMIX_rcpparma_hello_world`)
}
rcpparma_outerproduct <- function(x) {
.Call(`_StoEMMIX_rcpparma_outerproduct`, x)
}
rcpparma_innerproduct <- function(x) {
.Call(`_StoEMMIX_rcpparma_innerproduct`, x)
}
rcpparma_bothproducts <- function(x) {
.Call(`_StoEMMIX_rcpparma_bothproducts`, x)
}
<file_sep>library(Rcpp)
library(RcppArmadillo)
library(inline)
stoEMMIX_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
mat data_a = as<mat>(data_r);
rowvec pi_a = as<rowvec>(pi_r);
mat mean_a = as<mat>(mean_r);
cube cov_a = as<cube>(cov_r);
int maxit_a = as<int>(maxit_r);
double rate_a = as<double>(rate_r);
int batch_a = as<int>(batch_r);
int groups_a = as<int>(groups_r);
// Get necessary dimensional elements
int obs_a = data_a.n_cols;
int dim_a = data_a.n_rows;
// Initialize the Gaussian mixture model object
gmm_full model;
model.reset(dim_a,groups_a);
// Set the model parameters
model.set_params(mean_a, cov_a, pi_a);
// Initialize the sufficient statistics
rowvec T1 = batch_a*pi_a;
mat T2 = zeros<mat>(dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = mean_a.col(gg)*pi_a(gg);
}
cube T3 = zeros<cube>(dim_a,dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T3.slice(gg) = T1(gg)*cov_a.slice(gg) + T2.col(gg)*trans(T2.col(gg))/T1(gg);
}
// Initialize gain
double gain = 1;
// Initialize tau matrix
mat tau = zeros<mat>(groups_a,batch_a);
// Begin loop
for (int count = 0; count < maxit_a; count++) {
// Update gain function
gain = pow(count+1,-rate_a);
// Construct a sample from the data
IntegerVector seq_c = seq_len(obs_a);
IntegerVector seq_a = sample(seq_c,batch_a,0);
uvec seq_arma = as<uvec>(seq_a) - 1;
mat subdata_a = data_a.cols(seq_arma);
// Compute the tau scores for the subsample
for (int gg = 0; gg < groups_a; gg++) {
tau.row(gg) = pi_a(gg)*exp(model.log_p(subdata_a,gg));
}
for (int nn = 0; nn < batch_a; nn++) {
tau.col(nn) = tau.col(nn)/sum(tau.col(nn));
}
// Compute the new value of T1
T1 = (1-gain)*T1 + gain*trans(sum(tau,1));
// Compute the new value of T2
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = (1-gain)*T2.col(gg);
for (int nn = 0; nn < batch_a; nn++) {
T2.col(gg) = T2.col(gg) + gain*tau(gg,nn)*subdata_a.col(nn);
}
}
// Compute the new value of T3
for (int gg = 0; gg < groups_a; gg++) {
T3.slice(gg) = (1-gain)*T3.slice(gg);
for (int nn = 0; nn < batch_a; nn++) {
T3.slice(gg) = T3.slice(gg) + gain*tau(gg,nn)*subdata_a.col(nn)*trans(subdata_a.col(nn));
}
}
// Convert back to regular parameters
pi_a = T1/batch_a;
for (int gg = 0; gg < groups_a; gg++) {
mean_a.col(gg) = T2.col(gg)/T1(gg);
cov_a.slice(gg) = (T3.slice(gg)-T2.col(gg)*trans(T2.col(gg))/T1(gg))/T1(gg);
}
// Reset the model parameters
model.set_hefts(pi_a);
model.set_means(mean_a);
model.set_fcovs(cov_a);
}
return Rcpp::List::create(
Rcpp::Named("log-likelihood")=model.sum_log_p(data_a),
Rcpp::Named("proportions")=model.hefts,
Rcpp::Named("means")=model.means,
Rcpp::Named("covariances")=cov_a);
'
stoEMMIX <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
mean_r='numeric',
cov_r='numeric',
maxit_r='integer',
groups_r='integer',
rate_r='numeric',
batch_r='integer'),
stoEMMIX_src, plugin = 'RcppArmadillo')
# stoEMMIX(t(Data), msEst$parameters$pro, msEst$parameters$mean,
# msEst$parameters$variance$sigma,
# 10000,5,0.6,100)
<file_sep>##################################################################
## MNIST PC10 G10 ##
##################################################################
# Load libraries
library(mclust)
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Set a random seed
set.seed(20190202)
Results <- matrix(NA, 100, 7)
for (ii in 1:100) {
# Set number of PCs
dPC <- 10
# Set number of groups
Groups <- 10
# Declare number of epochs
Epoch <- 10
# Set Data to be PCA of dimensions dPC
Data <- PCA$scores[,1:dPC]
# Sample starting allocation
Samp <- sample(1:10,70000,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run Mclust
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=Epoch))
# Estimate the Mixture model using minibatch with truncation
Sto_trunc <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
Epoch*dim(Data)[1]/7000,Groups,0.6,1-10^-10,7000,
1000,1000,1000)
# Conduct a K-means for comparison
KM <- kmeans(Data,centers = Groups,iter.max = Epoch, nstart = 1)
# Obtain clustering outcomes
Cluster_reg <- GMM_arma_cluster(t(Data),Sto_trunc$reg_proportions,
Sto_trunc$reg_means,
Sto_trunc$reg_covariances)
Cluster_pol <- GMM_arma_cluster(t(Data),Sto_trunc$pol_proportions,
Sto_trunc$pol_means,
Sto_trunc$pol_covariances)
# Compute ARIs
Results[ii,1] <- adjustedRandIndex(apply(MC$z,1,which.max), c(train_label,test_label))
Results[ii,2] <- adjustedRandIndex(Cluster_reg$Cluster,c(train_label,test_label))
Results[ii,3] <- adjustedRandIndex(Cluster_pol$Cluster,c(train_label,test_label))
Results[ii,4] <- adjustedRandIndex(KM$cluster,c(train_label,test_label))
# Likelihoods
Results[ii,5] <- MC$loglik
Results[ii,6] <- Sto_trunc$`reg_log-likelihood`
Results[ii,7] <- Sto_trunc$`pol_log-likelihood`
# Save and print outputs
save(Results,file='./MNIST_PC10_G10.rdata')
print(c(ii,Results[ii,]))
# Also sink results to a text file
sink('./MNIST_PC10_G10.txt',append = TRUE)
cat(ii,Results[ii,],'\n')
sink()
}
##################################################################
## MNIST PC20 G10 ##
##################################################################
# Load libraries
library(mclust)
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Set a random seed
set.seed(20190202)
Results <- matrix(NA, 100, 7)
for (ii in 1:100) {
# Set number of PCs
dPC <- 20
# Set number of groups
Groups <- 10
# Declare number of epochs
Epoch <- 10
# Set Data to be PCA of dimensions dPC
Data <- PCA$scores[,1:dPC]
# Sample starting allocation
Samp <- sample(1:10,70000,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run Mclust
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=Epoch))
# Estimate the Mixture model using minibatch with truncation
Sto_trunc <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
Epoch*dim(Data)[1]/7000,Groups,0.6,1-10^-10,7000,
1000,1000,1000)
# Conduct a K-means for comparison
KM <- kmeans(Data,centers = Groups,iter.max = Epoch, nstart = 1)
# Obtain clustering outcomes
Cluster_reg <- GMM_arma_cluster(t(Data),Sto_trunc$reg_proportions,
Sto_trunc$reg_means,
Sto_trunc$reg_covariances)
Cluster_pol <- GMM_arma_cluster(t(Data),Sto_trunc$pol_proportions,
Sto_trunc$pol_means,
Sto_trunc$pol_covariances)
# Compute ARIs
Results[ii,1] <- adjustedRandIndex(apply(MC$z,1,which.max), c(train_label,test_label))
Results[ii,2] <- adjustedRandIndex(Cluster_reg$Cluster,c(train_label,test_label))
Results[ii,3] <- adjustedRandIndex(Cluster_pol$Cluster,c(train_label,test_label))
Results[ii,4] <- adjustedRandIndex(KM$cluster,c(train_label,test_label))
# Likelihoods
Results[ii,5] <- MC$loglik
Results[ii,6] <- Sto_trunc$`reg_log-likelihood`
Results[ii,7] <- Sto_trunc$`pol_log-likelihood`
# Save and print outputs
save(Results,file='./MNIST_PC20_G10.rdata')
print(c(ii,Results[ii,]))
# Also sink results to a text file
sink('./MNIST_PC20_G10.txt',append = TRUE)
cat(ii,Results[ii,],'\n')
sink()
}
##################################################################
## MNIST PC50 G10 ##
##################################################################
# Load libraries
library(mclust)
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Set a random seed
set.seed(20190202)
Results <- matrix(NA, 100, 7)
for (ii in 1:100) {
# Set number of PCs
dPC <- 50
# Set number of groups
Groups <- 10
# Declare number of epochs
Epoch <- 10
# Set Data to be PCA of dimensions dPC
Data <- PCA$scores[,1:dPC]
# Sample starting allocation
Samp <- sample(1:10,70000,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run Mclust
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=Epoch))
# Estimate the Mixture model using minibatch with truncation
Sto_trunc <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
Epoch*dim(Data)[1]/7000,Groups,0.6,1-10^-10,7000,
1000,1000,1000)
# Conduct a K-means for comparison
KM <- kmeans(Data,centers = Groups,iter.max = Epoch, nstart = 1)
# Obtain clustering outcomes
Cluster_reg <- GMM_arma_cluster(t(Data),Sto_trunc$reg_proportions,
Sto_trunc$reg_means,
Sto_trunc$reg_covariances)
Cluster_pol <- GMM_arma_cluster(t(Data),Sto_trunc$pol_proportions,
Sto_trunc$pol_means,
Sto_trunc$pol_covariances)
# Compute ARIs
Results[ii,1] <- adjustedRandIndex(apply(MC$z,1,which.max), c(train_label,test_label))
Results[ii,2] <- adjustedRandIndex(Cluster_reg$Cluster,c(train_label,test_label))
Results[ii,3] <- adjustedRandIndex(Cluster_pol$Cluster,c(train_label,test_label))
Results[ii,4] <- adjustedRandIndex(KM$cluster,c(train_label,test_label))
# Likelihoods
Results[ii,5] <- MC$loglik
Results[ii,6] <- Sto_trunc$`reg_log-likelihood`
Results[ii,7] <- Sto_trunc$`pol_log-likelihood`
# Save and print outputs
save(Results,file='./MNIST_PC50_G10.rdata')
print(c(ii,Results[ii,]))
# Also sink results to a text file
sink('./MNIST_PC50_G10.txt',append = TRUE)
cat(ii,Results[ii,],'\n')
sink()
}
##################################################################
## MNIST PC100 G10 ##
##################################################################
# Load libraries
library(mclust)
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Set a random seed
set.seed(20190202)
Results <- matrix(NA, 100, 7)
for (ii in 1:100) {
# Set number of PCs
dPC <- 100
# Set number of groups
Groups <- 10
# Declare number of epochs
Epoch <- 10
# Set Data to be PCA of dimensions dPC
Data <- PCA$scores[,1:dPC]
# Sample starting allocation
Samp <- sample(1:10,70000,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run Mclust
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=Epoch))
# Estimate the Mixture model using minibatch with truncation
Sto_trunc <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
Epoch*dim(Data)[1]/7000,Groups,0.6,1-10^-10,7000,
1000,1000,1000)
# Conduct a K-means for comparison
KM <- kmeans(Data,centers = Groups,iter.max = Epoch, nstart = 1)
# Obtain clustering outcomes
Cluster_reg <- GMM_arma_cluster(t(Data),Sto_trunc$reg_proportions,
Sto_trunc$reg_means,
Sto_trunc$reg_covariances)
Cluster_pol <- GMM_arma_cluster(t(Data),Sto_trunc$pol_proportions,
Sto_trunc$pol_means,
Sto_trunc$pol_covariances)
# Compute ARIs
Results[ii,1] <- adjustedRandIndex(apply(MC$z,1,which.max), c(train_label,test_label))
Results[ii,2] <- adjustedRandIndex(Cluster_reg$Cluster,c(train_label,test_label))
Results[ii,3] <- adjustedRandIndex(Cluster_pol$Cluster,c(train_label,test_label))
Results[ii,4] <- adjustedRandIndex(KM$cluster,c(train_label,test_label))
# Likelihoods
Results[ii,5] <- MC$loglik
Results[ii,6] <- Sto_trunc$`reg_log-likelihood`
Results[ii,7] <- Sto_trunc$`pol_log-likelihood`
# Save and print outputs
save(Results,file='./MNIST_PC100_G10.rdata')
print(c(ii,Results[ii,]))
# Also sink results to a text file
sink('./MNIST_PC100_G10.txt',append = TRUE)
cat(ii,Results[ii,],'\n')
sink()
}
<file_sep>library(Rcpp)
library(RcppArmadillo)
library(inline)
gmm_full_src <- '
using namespace arma;
// Convert necessary matrix objects to arma
mat data_a = as<mat>(data_r);
rowvec pi_a = as<rowvec>(pi_r);
mat mean_a = as<mat>(mean_r);
cube cov_a = as<cube>(cov_r);
int maxit_a = as<int>(maxit_r);
int groups_a = as<int>(groups_r);
// Initialize a gmm_full object
gmm_full model;
// Set the parameters
model.set_params(mean_a, cov_a, pi_a);
model.learn(data_a, groups_a, maha_dist, keep_existing, 0, maxit_a, 2.2e-16, false);
//
return Rcpp::List::create(
Rcpp::Named("log-likelihood")=model.sum_log_p(data_a),
Rcpp::Named("proportions")=model.hefts,
Rcpp::Named("means")=model.means,
Rcpp::Named("covariances")=model.fcovs);
'
GMM_arma <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
mean_r='numeric',
cov_r='numeric',
maxit_r='integer',
groups_r='integer'),
gmm_full_src, plugin = 'RcppArmadillo')
gmm_full_cluster_src <- '
using namespace arma;
// Convert necessary matrix objects to arma
mat data_a = as<mat>(data_r);
rowvec pi_a = as<rowvec>(pi_r);
mat mean_a = as<mat>(mean_r);
cube cov_a = as<cube>(cov_r);
// Initialize a gmm_full object
gmm_full model;
// Set the parameters
model.set_params(mean_a, cov_a, pi_a);
// Return
return Rcpp::List::create(
Rcpp::Named("Cluster")=model.assign(data_a, prob_dist));
'
GMM_arma_cluster <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
mean_r='numeric',
cov_r='numeric'),
gmm_full_cluster_src, plugin = 'RcppArmadillo')
GMM_arma(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
2,10)
<file_sep>#################################################################
## Wreath1 ##
#################################################################
# Load libraries
library('MixSim')
library('mclust')
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Load in Wreath data
data(wreath)
## Estimate mixture model parameters
MC_wreath <- Mclust(wreath, G = 14, modeNames = 'VVV')
# Set parameters
g <- 14
d <-2
# True matrix
True_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
True_matrix[ii,] <- c(Pi[ii],Mu[ii,],Sigma[,,ii][upper.tri(Sigma[,,ii],diag = T)])
}
## Setup parameters
# Number of observations to simulation
NN <- 10^6
# Set the number repetitions
Rep <- 100
# Number of components to fit
Groups <- 14
# Set a random seed
set.seed(20190130)
# Construct a matrix to store the results
Results <- matrix(NA,100,9)
# Conduct simulation study
for (ii in 1:Rep) {
# Simulate data
Data <- simVVV(MC_wreath$parameters,NN)
# Randomly generate labels for initialization
Samp <- sample(1:Groups,NN,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run batch EM algorithm
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=10))
# Get likelihood value for batch EM algorithm
Results[ii,1] <- MC$loglik
# Run minibatch algorithm with batch size 10000
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/10000,Groups,0.6,1-10^-10,10000)
Results[ii,2] <- Sto$`reg_log-likelihood`
Results[ii,3] <- Sto$`pol_log-likelihood`
# Run minibatch algorithm with batch size 20000
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/20000,Groups,0.6,1-10^-10,20000)
Results[ii,4] <- Sto$`reg_log-likelihood`
Results[ii,5] <- Sto$`pol_log-likelihood`
# Run truncated minibatch algorithm with batch size 10000
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/10000,Groups,0.6,1-10^-10,10000,
1000,1000,1000)
Results[ii,6] <- Sto$`reg_log-likelihood`
Results[ii,7] <- Sto$`pol_log-likelihood`
# Run truncated minibatch algorithm with batch size 20000
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/20000,Groups,0.6,1-10^-10,20000,
1000,1000,1000)
Results[ii,8] <- Sto$`reg_log-likelihood`
Results[ii,9] <- Sto$`pol_log-likelihood`
# Save and print outputs
save(Results,file='./Wreath1.rdata')
print(c(ii,Results[ii,]))
# Also sink results to a text file
sink('./Wreath1.txt',append = TRUE)
cat(ii,Results[ii,],'\n')
sink()
}
#################################################################
## Wreath2 ##
#################################################################
# Load libraries
library('MixSim')
library('mclust')
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Load in Wreath data
data(wreath)
## Estimate mixture model parameters
MC_wreath <- Mclust(wreath, G = 14, modeNames = 'VVV')
## Setup parameters
# Number of observations to simulation
NN <- 10^7
# Set the number repetitions
Rep <- 100
# Number of components to fit
Groups <- 14
# Set a random seed
set.seed(20190130)
# Construct a matrix to store the results
Results <- matrix(NA,100,9)
# Conduct simulation study
for (ii in 1:Rep) {
# Simulate data
Data <- simVVV(MC_wreath$parameters,NN)
# Randomly generate labels for initialization
Samp <- sample(1:Groups,NN,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run batch EM algorithm
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=10))
# Get likelihood value for batch EM algorithm
Results[ii,1] <- MC$loglik
# Run minibatch algorithm with batch size 10000
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/100000,Groups,0.6,1-10^-10,100000)
Results[ii,2] <- Sto$`reg_log-likelihood`
Results[ii,3] <- Sto$`pol_log-likelihood`
# Run minibatch algorithm with batch size 20000
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/200000,Groups,0.6,1-10^-10,200000)
Results[ii,4] <- Sto$`reg_log-likelihood`
Results[ii,5] <- Sto$`pol_log-likelihood`
# Run truncated minibatch algorithm with batch size 10000
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/100000,Groups,0.6,1-10^-10,100000,
1000,1000,1000)
Results[ii,6] <- Sto$`reg_log-likelihood`
Results[ii,7] <- Sto$`pol_log-likelihood`
# Run truncated minibatch algorithm with batch size 20000
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/200000,Groups,0.6,1-10^-10,200000,
1000,1000,1000)
Results[ii,8] <- Sto$`reg_log-likelihood`
Results[ii,9] <- Sto$`pol_log-likelihood`
# Save and print outputs
save(Results,file='./Wreath2.rdata')
print(c(ii,Results[ii,]))
# Also sink results to a text file
sink('./Wreath2.txt',append = TRUE)
cat(ii,Results[ii,],'\n')
sink()
}<file_sep>#################################################################
## Wreath1 ##
#################################################################
# Load libraries
library('MixSim')
library('mclust')
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Load in Wreath data
data(wreath)
## Estimate mixture model parameters
MC_wreath <- Mclust(wreath, G = 14, modeNames = 'VVV')
# Set parameters
g <- 14
d <-2
# True matrix
True_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
True_matrix[ii,] <- c(MC_wreath$parameters$pro[ii],
t(MC_wreath$parameters$mean)[ii,],
MC_wreath$parameters$variance$sigma[,,ii][upper.tri(MC_wreath$parameters$variance$sigma[,,ii],diag = T)])
}
## Setup parameters
# Number of observations to simulation
NN <- 10^6
# Set the number repetitions
Rep <- 100
# Number of components to fit
Groups <- 14
# Set a random seed
set.seed(20190130)
# Construct a matrix to store the results
Results <- matrix(NA,100,9)
Timing <- matrix(NA,100,5)
ARI_results <- matrix(NA,100,9)
SE_results <- matrix(NA,100,9)
# Conduct simulation study
for (rr in 1:Rep) {
# Simulate data
Pre_data <- simVVV(MC_wreath$parameters,NN)
Data <- Pre_data[,2:3]
IDs <- Pre_data[,1]
# Randomly generate labels for initialization
Samp <- sample(1:Groups,NN,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run batch EM algorithm
Tick <- proc.time()[3]
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=10))
Timing[rr,1] <- proc.time()[3]-Tick
# Get likelihood value for batch EM algorithm
Results[rr,1] <- MC$loglik
# Get parameter estimates
MC_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
MC_matrix[ii,] <- c(MC$parameters$pro[ii],
t(MC$parameters$mean)[ii,],
MC$parameters$variance$sigma[,,ii][upper.tri(MC$parameters$variance$sigma[,,ii],diag = T)])
}
SE_results[rr,1] <- sum(apply((as.matrix(dist(rbind(MC_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI
ARI_results[rr,1] <- adjustedRandIndex(IDs,apply(MC$z,1,which.max))
# Run minibatch algorithm with batch size 10000
Tick <- proc.time()[3]
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/10000,Groups,0.6,1-10^-10,10000)
Results[rr,2] <- Sto$`reg_log-likelihood`
Results[rr,3] <- Sto$`pol_log-likelihood`
Timing[rr,2] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,2] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,2] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,3] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,3] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run minibatch algorithm with batch size 20000
Tick <- proc.time()[3]
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/20000,Groups,0.6,1-10^-10,20000)
Results[rr,4] <- Sto$`reg_log-likelihood`
Results[rr,5] <- Sto$`pol_log-likelihood`
Timing[rr,3] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,4] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,4] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,5] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,5] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run truncated minibatch algorithm with batch size 10000
Tick <- proc.time()[3]
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/10000,Groups,0.6,1-10^-10,10000,
1000,1000,1000)
Results[rr,6] <- Sto$`reg_log-likelihood`
Results[rr,7] <- Sto$`pol_log-likelihood`
Timing[rr,4] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,6] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,6] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,7] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,7] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run truncated minibatch algorithm with batch size 20000
Tick <- proc.time()[3]
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/20000,Groups,0.6,1-10^-10,20000,
1000,1000,1000)
Results[rr,8] <- Sto$`reg_log-likelihood`
Results[rr,9] <- Sto$`pol_log-likelihood`
Timing[rr,5] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,8] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,8] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,9] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,9] <- adjustedRandIndex(IDs,unlist(Cluster))
# Save and print outputs
save(Results,file='./Wreath1R1.rdata')
print(c(rr,Results[rr,]))
save(Timing,file='./Wreath1timing.rdata')
save(ARI_results,file='./Wreath1ARI.rdata')
save(SE_results,file='./Wreath1SE.rdata')
print(c(rr,Timing[rr,]))
print(c(rr,ARI_results[rr,]))
print(c(rr,SE_results[rr,]))
# Also sink results to a text file
sink('./Wreath1R1.txt',append = TRUE)
cat(ii,Results[ii,],'\n')
sink()
sink('./Wreath1timing.txt',append = TRUE)
cat(rr,Timing[rr,],'\n')
sink()
sink('./Wreath1ARI.txt',append = TRUE)
cat(rr,ARI_results[rr,],'\n')
sink()
sink('./Wreath1SE.txt',append = TRUE)
cat(rr,SE_results[rr,],'\n')
sink()
}
#################################################################
## Wreath2 ##
#################################################################
# Load libraries
library('MixSim')
library('mclust')
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Load in Wreath data
data(wreath)
## Estimate mixture model parameters
MC_wreath <- Mclust(wreath, G = 14, modeNames = 'VVV')
# Set parameters
g <- 14
d <-2
# True matrix
True_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
True_matrix[ii,] <- c(MC_wreath$parameters$pro[ii],
t(MC_wreath$parameters$mean)[ii,],
MC_wreath$parameters$variance$sigma[,,ii][upper.tri(MC_wreath$parameters$variance$sigma[,,ii],diag = T)])
}
## Setup parameters
# Number of observations to simulation
NN <- 10^7
# Set the number repetitions
Rep <- 100
# Number of components to fit
Groups <- 14
# Set a random seed
set.seed(20190130)
# Construct a matrix to store the results
Results <- matrix(NA,100,9)
Timing <- matrix(NA,100,5)
ARI_results <- matrix(NA,100,9)
SE_results <- matrix(NA,100,9)
# Conduct simulation study
for (rr in 1:Rep) {
# Simulate data
Pre_data <- simVVV(MC_wreath$parameters,NN)
Data <- Pre_data[,2:3]
IDs <- Pre_data[,1]
# Randomly generate labels for initialization
Samp <- sample(1:Groups,NN,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run batch EM algorithm
Tick <- proc.time()[3]
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=10))
Timing[rr,1] <- proc.time()[3]-Tick
# Get likelihood value for batch EM algorithm
Results[rr,1] <- MC$loglik
# Get parameter estimates
MC_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
MC_matrix[ii,] <- c(MC$parameters$pro[ii],
t(MC$parameters$mean)[ii,],
MC$parameters$variance$sigma[,,ii][upper.tri(MC$parameters$variance$sigma[,,ii],diag = T)])
}
SE_results[rr,1] <- sum(apply((as.matrix(dist(rbind(MC_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI
ARI_results[rr,1] <- adjustedRandIndex(IDs,apply(MC$z,1,which.max))
# Run minibatch algorithm with batch size 10000
Tick <- proc.time()[3]
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/100000,Groups,0.6,1-10^-10,100000)
Results[rr,2] <- Sto$`reg_log-likelihood`
Results[rr,3] <- Sto$`pol_log-likelihood`
Timing[rr,2] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,2] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,2] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,3] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,3] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run minibatch algorithm with batch size 20000
Tick <- proc.time()[3]
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/200000,Groups,0.6,1-10^-10,200000)
Results[rr,4] <- Sto$`reg_log-likelihood`
Results[rr,5] <- Sto$`pol_log-likelihood`
Timing[rr,3] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,4] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,4] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,5] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,5] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run truncated minibatch algorithm with batch size 10000
Tick <- proc.time()[3]
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/100000,Groups,0.6,1-10^-10,100000,
1000,1000,1000)
Results[rr,6] <- Sto$`reg_log-likelihood`
Results[rr,7] <- Sto$`pol_log-likelihood`
Timing[rr,4] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,6] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,6] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,7] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,7] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run truncated minibatch algorithm with batch size 20000
Tick <- proc.time()[3]
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/200000,Groups,0.6,1-10^-10,200000,
1000,1000,1000)
Results[rr,8] <- Sto$`reg_log-likelihood`
Results[rr,9] <- Sto$`pol_log-likelihood`
Timing[rr,5] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,8] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,8] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,9] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,9] <- adjustedRandIndex(IDs,unlist(Cluster))
# Save and print outputs
save(Results,file='./Wreath2R1.rdata')
print(c(rr,Results[rr,]))
save(Timing,file='./Wreath2timing.rdata')
save(ARI_results,file='./Wreath2ARI.rdata')
save(SE_results,file='./Wreath2SE.rdata')
print(c(rr,Timing[rr,]))
print(c(rr,ARI_results[rr,]))
print(c(rr,SE_results[rr,]))
# Also sink results to a text file
sink('./Wreath2R1.txt',append = TRUE)
cat(ii,Results[ii,],'\n')
sink()
sink('./Wreath2timing.txt',append = TRUE)
cat(rr,Timing[rr,],'\n')
sink()
sink('./WreathARI.txt',append = TRUE)
cat(rr,ARI_results[rr,],'\n')
sink()
sink('./Wreath2SE.txt',append = TRUE)
cat(rr,SE_results[rr,],'\n')
sink()
}<file_sep>#################################################################
## Flea1 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Flea1.rdata')
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Flea1.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Flea1 Results timing ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Flea1timing.rdata')
# Rename the columns of the data
colnames(Timing) <- c('EM','N=n/10','N=n/5','N=n/10,T','N=n/5,T')
# Melt the data
DF <- melt(Timing)
# Open a plot device
pdf(file='./Flea1timing.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'time (s)',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Timing)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Flea1 Results SE ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Flea1SE.rdata')
# Rename the columns of the data
colnames(SE_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(SE_results)
# Open a plot device
pdf(file='./Flea1SE.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'SE',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(SE_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Flea1 Results ARI ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Flea1ARI.rdata')
# Rename the columns of the data
colnames(ARI_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(ARI_results)
# Open a plot device
pdf(file='./Flea1ARI.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'ARI',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(ARI_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Flea2 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Flea2.rdata')
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Flea2.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Flea2 Results timing ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Flea2timing.rdata')
# Rename the columns of the data
colnames(Timing) <- c('EM','N=n/10','N=n/5','N=n/10,T','N=n/5,T')
# Melt the data
DF <- melt(Timing)
# Open a plot device
pdf(file='./Flea2timing.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'time (s)',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Timing)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Flea2 Results SE ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Flea2SE.rdata')
# Rename the columns of the data
colnames(SE_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(SE_results)
# Open a plot device
pdf(file='./Flea2SE.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'SE',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(SE_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Flea2 Results ARI ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Flea2ARI.rdata')
# Rename the columns of the data
colnames(ARI_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(ARI_results)
# Open a plot device
pdf(file='./Flea2ARI.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'ARI',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(ARI_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
<file_sep>##################################################################
## Wreath Data Figure ##
##################################################################
# Load libraries
library(mclust)
library(colorspace)
# Load wreath data
data(wreath)
# Set a random seed (in case one is needed)
set.seed(20190129)
# Fit the Mclust model
MC <- Mclust(wreath, G = 14, modeNames = 'VVV')
# Open a plot device
pdf(file='./Wreath.pdf',width=6,height=6,paper='special')
# Plot the data colored by the subpopulations
plot(wreath,col=rainbow_hcl(14)[MC$classification],
xlab=expression(y[1]),ylab=expression(y[2]), lwd = 2)
grid()
# Plot subpopulation means
points(MC$parameters$mean[1,],MC$parameters$mean[2,],
pch=4,cex=2,lwd=3)
# Close plot device
dev.off()
#################################################################
## Iris1 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Iris1.rdata')
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Iris1.pdf',width=12,height=6,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 2, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Iris2 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Iris2.rdata')
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Iris2.pdf',width=12,height=6,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 2, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Wreath1 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Wreath1.rdata')
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Wreath1.pdf',width=12,height=6,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 2, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Wreath2 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Wreath2.rdata')
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Wreath2.pdf',width=12,height=6,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 2, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()<file_sep>library(MixSim)
library(mclust)
Groups <- 5
NN <- 10000
Q <- MixSim(MaxOmega = 0.5, K = Groups, p = 10,PiLow=1/(2*Groups))
A <- simdataset(n = NN, Pi = Q$Pi, Mu = Q$Mu, S = Q$S, n.noise = 0)
Data <- A$X
# hcTree <- hcVVV(data = Data)
# cl <- hclass(hcTree, Groups)
Samp <- sample(1:Groups,NN,replace = T)
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
Dim_vec <- dim(Data)
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=1))
MC$loglik
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=10))
MC$loglik
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
1000,5,0.6,1,100)
Sto$`reg_log-likelihood`
Sto$`pol_log-likelihood`
Stot <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
1000,5,0.6,1,100,1000,1000,1000)
Stot$`reg_log-likelihood`
Stot$`pol_log-likelihood`
#
# REFIT <- em('VVV',data=Data,parameters =list(
# pro = Pi_vec,
# mean = matrix(unlist(Mean_list),Dim_vec[2],Groups),
# variance = Cov_list
# ))
# <file_sep>#################################################################
## ELKI1 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('ELKI1.rdata')
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./ELKI1.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## ELKI1 Results timing ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('ELKI1timing.rdata')
# Rename the columns of the data
colnames(Timing) <- c('EM','N=n/10','N=n/5','N=n/10,T','N=n/5,T')
# Melt the data
DF <- melt(Timing)
# Open a plot device
pdf(file='./ELKI1timing.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'time (s)',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Timing)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## ELKI1 Results SE ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('ELKI1SE.rdata')
# Rename the columns of the data
colnames(SE_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(SE_results)
# Open a plot device
pdf(file='./ELKI1SE.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'SE',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(SE_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## ELKI1 Results ARI ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('ELKI1ARI.rdata')
# Rename the columns of the data
colnames(ARI_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(ARI_results)
# Open a plot device
pdf(file='./ELKI1ARI.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'ARI',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(ARI_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## ELKI2 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('ELKI2.rdata')
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./ELKI2.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## ELKI2 Results timing ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('ELKI2timing.rdata')
# Rename the columns of the data
colnames(Timing) <- c('EM','N=n/10','N=n/5','N=n/10,T','N=n/5,T')
# Melt the data
DF <- melt(Timing)
# Open a plot device
pdf(file='./ELKI2timing.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'time (s)',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Timing)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## ELKI2 Results SE ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('ELKI2SE.rdata')
# Rename the columns of the data
colnames(SE_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(SE_results)
# Open a plot device
pdf(file='./ELKI2SE.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'SE',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(SE_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## ELKI2 Results ARI ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('ELKI2ARI.rdata')
# Rename the columns of the data
colnames(ARI_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(ARI_results)
# Open a plot device
pdf(file='./ELKI2ARI.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'ARI',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(ARI_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
<file_sep>#################################################################
## Poi1 ##
#################################################################
# Load libraries
library('MixSim')
library('mclust')
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190708_ExpPois_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
## Extract various required variables
# Get the number of subpopulations
g <- 3
## Estimate mixture model parameters
# Proportions
Pi <- c(0.8,0.1,0.1)
# Lambda
Lambda <- c(1,5,12)
# True matrix
True_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
True_matrix[ii,] <- c(Pi[ii],Lambda[ii])
}
## Setup parameters
# Number of observations to simulation
NN <- 10^6
# Set the number repetitions
Rep <- 100
# Number of components to fit
Groups <- 3
# Set a random seed
set.seed(20190708)
# Construct a matrix to store the results
Results <- matrix(NA,100,9)
Timing <- matrix(NA,100,5)
ARI_results <- matrix(NA,100,9)
SE_results <- matrix(NA,100,9)
# Conduct simulation study
for (rr in 1:Rep) {
# Simulate data
IDs <- sample(1:3,NN,replace=TRUE,prob=Pi)
Data <- matrix(NA,nrow=NN,ncol=1)
Data[IDs==1] <- rpois(sum(IDs==1),Lambda[1])
Data[IDs==2] <- rpois(sum(IDs==2),Lambda[2])
Data[IDs==3] <- rpois(sum(IDs==3),Lambda[3])
# Randomly generate labels for initialization
Samp <- sample(1:Groups,NN,replace = T)
# Initialize parameters
Pi_int <- table(Samp)/NN
Lambda_int <- c(mean(Data[Samp==1]),mean(Data[Samp==2]),mean(Data[Samp==3]))
# Run batch EM algorithm
Tick <- proc.time()[3]
MC <- EMPoisson_pol(data=Data,pi_r=Pi_int,lambda_r = Lambda_int,maxit_r = 10,groups_r = g)
Timing[rr,1] <- proc.time()[3]-Tick
# Get likelihood value for batch EM algorithm
Results[rr,1] <-MC$`reg_log-likelihood`
# Get parameter estimates
MC_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
MC_matrix[ii,] <- c(MC$reg_proportions[ii],MC$reg_lambda[ii])
}
SE_results[rr,1] <- sum(apply((as.matrix(dist(rbind(MC_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI
ARI_results[rr,1] <- adjustedRandIndex(IDs,Pois_clust(Data,MC$reg_proportions,MC$reg_lambda))
# Run minibatch algorithm with batch size 10000
Tick <- proc.time()[3]
Sto <- stoPoisson_pol(Data, Pi_int, Lambda_int,
10*NN/10000,Groups,0.6,1-10^-10,10000)
Results[rr,2] <- Sto$`reg_log-likelihood`
Results[rr,3] <- Sto$`pol_log-likelihood`
Timing[rr,2] <- proc.time()[3]-Tick
# Get parameter estimates
Reg_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],Sto$reg_lambda[ii])
}
SE_results[rr,2] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
ARI_results[rr,2] <- adjustedRandIndex(IDs,Pois_clust(Data,Sto$reg_proportions,Sto$reg_lambda))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],Sto$pol_lambda[ii])
}
SE_results[rr,3] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
ARI_results[rr,3] <- adjustedRandIndex(IDs,Pois_clust(Data,Sto$pol_proportions,Sto$pol_lambda))
# Run minibatch algorithm with batch size 20000
Tick <- proc.time()[3]
Sto <- stoPoisson_pol(Data, Pi_int, Lambda_int,
10*NN/20000,Groups,0.6,1-10^-10,20000)
Results[rr,4] <- Sto$`reg_log-likelihood`
Results[rr,5] <- Sto$`pol_log-likelihood`
Timing[rr,3] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],Sto$reg_lambda[ii])
}
SE_results[rr,4] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
ARI_results[rr,4] <- adjustedRandIndex(IDs,Pois_clust(Data,Sto$reg_proportions,Sto$reg_lambda))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],Sto$pol_lambda[ii])
}
SE_results[rr,5] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
ARI_results[rr,5] <- adjustedRandIndex(IDs,Pois_clust(Data,Sto$pol_proportions,Sto$pol_lambda))
# Save and print outputs
save(Results,file='./Poi1.rdata')
print(c(rr,Results[rr,]))
save(Timing,file='./Poi1timing.rdata')
save(ARI_results,file='./Poi1ARI.rdata')
save(SE_results,file='./Poi1SE.rdata')
print(c(rr,Timing[rr,]))
print(c(rr,ARI_results[rr,]))
print(c(rr,SE_results[rr,]))
# Also sink results to a text file
sink('./Poi1.txt',append = TRUE)
cat(rr,Results[rr,],'\n')
sink()
sink('./Poi1timing.txt',append = TRUE)
cat(rr,Timing[rr,],'\n')
sink()
sink('./Poi1ARI.txt',append = TRUE)
cat(rr,ARI_results[rr,],'\n')
sink()
sink('./Poi1SE.txt',append = TRUE)
cat(rr,SE_results[rr,],'\n')
sink()
}
#################################################################
## Poi2 ##
#################################################################
# Load libraries
library('MixSim')
library('mclust')
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190708_ExpPois_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
## Extract various required variables
# Get the number of subpopulations
g <- 3
## Estimate mixture model parameters
# Proportions
Pi <- c(0.8,0.1,0.1)
# Lambda
Lambda <- c(1,5,12)
# True matrix
True_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
True_matrix[ii,] <- c(Pi[ii],Lambda[ii])
}
## Setup parameters
# Number of observations to simulation
NN <- 10^7
# Set the number repetitions
Rep <- 100
# Number of components to fit
Groups <- 3
# Set a random seed
set.seed(20190708)
# Construct a matrix to store the results
Results <- matrix(NA,100,9)
Timing <- matrix(NA,100,5)
ARI_results <- matrix(NA,100,9)
SE_results <- matrix(NA,100,9)
# Conduct simulation study
for (rr in 1:Rep) {
# Simulate data
IDs <- sample(1:3,NN,replace=TRUE,prob=Pi)
Data <- matrix(NA,nrow=NN,ncol=1)
Data[IDs==1] <- rpois(sum(IDs==1),Lambda[1])
Data[IDs==2] <- rpois(sum(IDs==2),Lambda[2])
Data[IDs==3] <- rpois(sum(IDs==3),Lambda[3])
# Randomly generate labels for initialization
Samp <- sample(1:Groups,NN,replace = T)
# Initialize parameters
Pi_int <- table(Samp)/NN
Lambda_int <- c(mean(Data[Samp==1]),mean(Data[Samp==2]),mean(Data[Samp==3]))
# Run batch EM algorithm
Tick <- proc.time()[3]
MC <- EMPoisson_pol(data=Data,pi_r=Pi_int,lambda_r = Lambda_int,maxit_r = 10,groups_r = g)
Timing[rr,1] <- proc.time()[3]-Tick
# Get likelihood value for batch EM algorithm
Results[rr,1] <-MC$`reg_log-likelihood`
# Get parameter estimates
MC_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
MC_matrix[ii,] <- c(MC$reg_proportions[ii],MC$reg_lambda[ii])
}
SE_results[rr,1] <- sum(apply((as.matrix(dist(rbind(MC_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI
ARI_results[rr,1] <- adjustedRandIndex(IDs,Pois_clust(Data,MC$reg_proportions,MC$reg_lambda))
# Run minibatch algorithm with batch size 10000
Tick <- proc.time()[3]
Sto <- stoPoisson_pol(Data, Pi_int, Lambda_int,
10*NN/100000,Groups,0.6,1-10^-10,100000)
Results[rr,2] <- Sto$`reg_log-likelihood`
Results[rr,3] <- Sto$`pol_log-likelihood`
Timing[rr,2] <- proc.time()[3]-Tick
# Get parameter estimates
Reg_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],Sto$reg_lambda[ii])
}
SE_results[rr,2] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
ARI_results[rr,2] <- adjustedRandIndex(IDs,Pois_clust(Data,Sto$reg_proportions,Sto$reg_lambda))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],Sto$pol_lambda[ii])
}
SE_results[rr,3] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
ARI_results[rr,3] <- adjustedRandIndex(IDs,Pois_clust(Data,Sto$pol_proportions,Sto$pol_lambda))
# Run minibatch algorithm with batch size 20000
Tick <- proc.time()[3]
Sto <- stoPoisson_pol(Data, Pi_int, Lambda_int,
10*NN/200000,Groups,0.6,1-10^-10,200000)
Results[rr,4] <- Sto$`reg_log-likelihood`
Results[rr,5] <- Sto$`pol_log-likelihood`
Timing[rr,3] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],Sto$reg_lambda[ii])
}
SE_results[rr,4] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
ARI_results[rr,4] <- adjustedRandIndex(IDs,Pois_clust(Data,Sto$reg_proportions,Sto$reg_lambda))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,2)
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],Sto$pol_lambda[ii])
}
SE_results[rr,5] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
ARI_results[rr,5] <- adjustedRandIndex(IDs,Pois_clust(Data,Sto$pol_proportions,Sto$pol_lambda))
# Save and print outputs
save(Results,file='./Poi2.rdata')
print(c(rr,Results[rr,]))
save(Timing,file='./Poi2timing.rdata')
save(ARI_results,file='./Poi2ARI.rdata')
save(SE_results,file='./Poi2SE.rdata')
print(c(rr,Timing[rr,]))
print(c(rr,ARI_results[rr,]))
print(c(rr,SE_results[rr,]))
# Also sink results to a text file
sink('./Poi2.txt',append = TRUE)
cat(rr,Results[rr,],'\n')
sink()
sink('./Poi2timing.txt',append = TRUE)
cat(rr,Timing[rr,],'\n')
sink()
sink('./Poi2ARI.txt',append = TRUE)
cat(rr,ARI_results[rr,],'\n')
sink()
sink('./Poi2SE.txt',append = TRUE)
cat(rr,SE_results[rr,],'\n')
sink()
}<file_sep>#################################################################
## Exp1 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Exp1.rdata')
Results <- Results[,-c(6:9)]
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Exp1.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Exp1 Results timing ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Exp1timing.rdata')
Timing <- Timing[,-c(4:5)]
# Rename the columns of the data
colnames(Timing) <- c('EM','N=n/10','N=n/5')
# Melt the data
DF <- melt(Timing)
# Open a plot device
pdf(file='./Exp1timing.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'time (s)',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Timing)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Exp1 Results SE ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Exp1SE.rdata')
SE_results <- SE_results[,-c(6:9)]
# Rename the columns of the data
colnames(SE_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(SE_results)
# Open a plot device
pdf(file='./Exp1SE.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'SE',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(SE_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Exp1 Results ARI ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Exp1ARI.rdata')
ARI_results <- ARI_results[,-c(6:9)]
# Rename the columns of the data
colnames(ARI_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(ARI_results)
# Open a plot device
pdf(file='./Exp1ARI.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'ARI',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(ARI_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Exp2 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Exp2.rdata')
Results <- Results[,-c(6:9)]
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Exp2.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Exp2 Results timing ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Exp2timing.rdata')
Timing <- Timing[,-c(4:5)]
# Rename the columns of the data
colnames(Timing) <- c('EM','N=n/10','N=n/5')
# Melt the data
DF <- melt(Timing)
# Open a plot device
pdf(file='./Exp2timing.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'time (s)',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Timing)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Exp2 Results SE ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Exp2SE.rdata')
SE_results <- SE_results[,-c(6:9)]
# Rename the columns of the data
colnames(SE_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(SE_results)
# Open a plot device
pdf(file='./Exp2SE.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'SE',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(SE_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Exp2 Results ARI ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Exp2ARI.rdata')
ARI_results <- ARI_results[,-c(6:9)]
# Rename the columns of the data
colnames(ARI_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(ARI_results)
# Open a plot device
pdf(file='./Exp2ARI.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'ARI',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(ARI_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
<file_sep>EMMIX_src <- '
// Convert all of the matrix objects to C objects
Rcpp::NumericMatrix data_c(data_r);
Rcpp::NumericVector pi_c(pi_r);
Rcpp::NumericMatrix mean_c(mean_r);
Rcpp::NumericVector cov_c(cov_r);
// Extract and convert the integer objects
int maxit_c(maxit_r);
int groups_c(groups_r);
int n_c = data_c.nrow();
int d_c = data_c.ncol();
// Convert necessary matrix objects to arma
arma::mat data_a(data_c.begin(),n_c,d_c,false);
arma::colvec pi_a(pi_c.begin(),groups_c,false);
arma::mat mean_a(mean_c.begin(),d_c,groups_c,false);
// Start the loop
for (int count = 0; count < maxit_c, count++){
// Compute Tau
tau_a = arma::mat(n_rows, n_cols, fill::zeros)
for (int obs = 0; obs < n_c, obs++) {
for (int comp = 0; comp < groups_c, comp++) {
// Extract the current covariance that I need
arma::mat arma
tau_a(obs,comp) = pi_c
}
}
}
'<file_sep># Load libaries
library(Rcpp)
library(RcppArmadillo)
library(inline)
# Inline C Source for Minibatch EM algorithm without truncation
stoEMMIXpol_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
mat data_a = as<mat>(data_r);
rowvec pi_hold = as<rowvec>(pi_r);
mat mean_hold = as<mat>(mean_r);
cube cov_hold = as<cube>(cov_r);
int maxit_a = as<int>(maxit_r);
double rate_a = as<double>(rate_r);
double base_a = as<double>(base_r);
int batch_a = as<int>(batch_r);
int groups_a = as<int>(groups_r);
// Memory control
rowvec pi_a = pi_hold;
mat mean_a = mean_hold;
cube cov_a = cov_hold;
// Get necessary dimensional elements
int obs_a = data_a.n_cols;
int dim_a = data_a.n_rows;
// Initialize the Gaussian mixture model object
gmm_full model;
model.reset(dim_a,groups_a);
// Set the model parameters
model.set_params(mean_a, cov_a, pi_a);
// Initialize the sufficient statistics
rowvec T1 = batch_a*pi_a;
mat T2 = zeros<mat>(dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = mean_a.col(gg)*pi_a(gg);
}
cube T3 = zeros<cube>(dim_a,dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T3.slice(gg) = T1(gg)*cov_a.slice(gg) + T2.col(gg)*trans(T2.col(gg))/T1(gg);
}
// Initialize gain
double gain = 1;
// Create polyak variables
rowvec pol_pi = pi_a;
mat pol_mean = mean_a;
cube pol_cov = cov_a;
// Initialize tau matrix
mat tau = zeros<mat>(groups_a,batch_a);
// Begin loop
for (int count = 0; count < maxit_a; count++) {
// Update gain function
gain = base_a*pow(count+1,-rate_a);
// Construct a sample from the data
IntegerVector seq_c = sample(obs_a,batch_a,0);
uvec seq_a = as<uvec>(seq_c) - 1;
mat subdata_a = data_a.cols(seq_a);
// Compute the tau scores for the subsample
for (int gg = 0; gg < groups_a; gg++) {
tau.row(gg) = model.log_p(subdata_a,gg);
}
for (int nn = 0; nn < batch_a; nn++) {
colvec tau_current = tau.col(nn);
double max_tau = tau_current.max();
tau.col(nn) = exp(log(pi_a.t()) + tau.col(nn)-max_tau)/sum(exp(log(pi_a.t()) + tau.col(nn)-max_tau));
}
// Compute the new value of T1
T1 = (1-gain)*T1 + gain*trans(sum(tau,1));
// Compute the new value of T2
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = (1-gain)*T2.col(gg);
for (int nn = 0; nn < batch_a; nn++) {
T2.col(gg) = T2.col(gg) + gain*tau(gg,nn)*subdata_a.col(nn);
}
}
// Compute the new value of T3
for (int gg = 0; gg < groups_a; gg++) {
T3.slice(gg) = (1-gain)*T3.slice(gg);
for (int nn = 0; nn < batch_a; nn++) {
T3.slice(gg) = T3.slice(gg) + gain*tau(gg,nn)*subdata_a.col(nn)*trans(subdata_a.col(nn));
}
}
// Convert back to regular parameters
pi_a = T1/batch_a;
for (int gg = 0; gg < groups_a; gg++) {
mean_a.col(gg) = T2.col(gg)/T1(gg);
cov_a.slice(gg) = (T3.slice(gg)-T2.col(gg)*trans(T2.col(gg))/T1(gg))/T1(gg);
}
// Compute polyak averages
pol_pi = pol_pi*count/(count+1) + pi_a/(count+1);
pol_mean = pol_mean*count/(count+1) + mean_a/(count+1);
pol_cov = pol_cov*count/(count+1) + cov_a/(count+1);
// Reset the model parameters
model.set_hefts(pi_a);
model.set_means(mean_a);
model.set_fcovs(cov_a);
}
// Initialize the Gaussian mixture model object with polyak components
gmm_full model_pol;
model_pol.reset(dim_a,groups_a);
// Set to polyak model parameters
model_pol.set_hefts(pol_pi);
model_pol.set_means(pol_mean);
model_pol.set_fcovs(pol_cov);
return Rcpp::List::create(
Rcpp::Named("reg_log-likelihood")=model.sum_log_p(data_a),
Rcpp::Named("reg_proportions")=model.hefts,
Rcpp::Named("reg_means")=model.means,
Rcpp::Named("reg_covariances")=model.fcovs,
Rcpp::Named("pol_log-likelihood")=model_pol.sum_log_p(data_a),
Rcpp::Named("pol_proportions")=model_pol.hefts,
Rcpp::Named("pol_means")=model_pol.means,
Rcpp::Named("pol_covariances")=model_pol.fcovs);
'
# Inline C source for Minibatch EM algorithm with truncation
stoEMMIXpoltrunc_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
mat data_a = as<mat>(data_r);
rowvec pi_hold = as<rowvec>(pi_r);
mat mean_hold = as<mat>(mean_r);
cube cov_hold = as<cube>(cov_r);
int maxit_a = as<int>(maxit_r);
double rate_a = as<double>(rate_r);
double base_a = as<double>(base_r);
int batch_a = as<int>(batch_r);
int groups_a = as<int>(groups_r);
double c1_a = as<double>(c1_r);
double c2_a = as<double>(c2_r);
double c3_a = as<double>(c3_r);
// Memory control
rowvec pi_a = pi_hold;
mat mean_a = mean_hold;
cube cov_a = cov_hold;
// Get necessary dimensional elements
int obs_a = data_a.n_cols;
int dim_a = data_a.n_rows;
// Initialize the Gaussian mixture model object
gmm_full model;
model.reset(dim_a,groups_a);
// Set the model parameters
model.set_params(mean_a, cov_a, pi_a);
// Initialize the sufficient statistics
rowvec T1 = batch_a*pi_a;
rowvec T1_old_a = batch_a*pi_a;
mat T2 = zeros<mat>(dim_a,groups_a);
mat T2_old_a = zeros<mat>(dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = mean_a.col(gg)*pi_a(gg);
T2_old_a.col(gg) = mean_a.col(gg)*pi_a(gg);
}
cube T3 = zeros<cube>(dim_a,dim_a,groups_a);
cube T3_old_a = zeros<cube>(dim_a,dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T3.slice(gg) = T1(gg)*cov_a.slice(gg) + T2.col(gg)*trans(T2.col(gg))/T1(gg);
T3_old_a.slice(gg) = T1(gg)*cov_a.slice(gg) + T2.col(gg)*trans(T2.col(gg))/T1(gg);
}
// Initialize gain
double gain = 1;
// Initialize m for truncation
double mm = 0;
// Create polyak variables
rowvec pol_pi = pi_a;
mat pol_mean = mean_a;
cube pol_cov = cov_a;
// Initialize tau matrix
mat tau = zeros<mat>(groups_a,batch_a);
// Begin loop
for (int count = 0; count < maxit_a; count++) {
// Update gain function
gain = base_a*pow(count+1,-rate_a);
// Construct a sample from the data
IntegerVector seq_c = sample(obs_a,batch_a,0);
uvec seq_a = as<uvec>(seq_c) - 1;
mat subdata_a = data_a.cols(seq_a);
// Compute the tau scores for the subsample
for (int gg = 0; gg < groups_a; gg++) {
tau.row(gg) = model.log_p(subdata_a,gg);
}
for (int nn = 0; nn < batch_a; nn++) {
colvec tau_current = tau.col(nn);
double max_tau = tau_current.max();
tau.col(nn) = exp(log(pi_a.t()) + tau.col(nn)-max_tau)/sum(exp(log(pi_a.t()) + tau.col(nn)-max_tau));
}
// Compute the new value of T1
T1 = (1-gain)*T1 + gain*trans(sum(tau,1));
// Compute the new value of T2
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = (1-gain)*T2.col(gg);
for (int nn = 0; nn < batch_a; nn++) {
T2.col(gg) = T2.col(gg) + gain*tau(gg,nn)*subdata_a.col(nn);
}
}
// Compute the new value of T3
for (int gg = 0; gg < groups_a; gg++) {
T3.slice(gg) = (1-gain)*T3.slice(gg);
for (int nn = 0; nn < batch_a; nn++) {
T3.slice(gg) = T3.slice(gg) + gain*tau(gg,nn)*subdata_a.col(nn)*trans(subdata_a.col(nn));
}
}
// Truncation
// Compute the minimum value of pi_a
double pi_min_a = pi_a.min();
// Compute the minimum/max value of mean_a
double mean_abs_a = abs(mean_a).max();
// Compute the minimum and maximum eigenvalues of cov_a
double eigen_max_a = c3_a + 1000;
double eigen_min_a = 0;
for (int gg = 0; gg < groups_a; gg++) {
vec eigen_val_a = eig_sym(cov_a.slice(gg));
double internal_min_a = eigen_val_a.min();
double internal_max_a = eigen_val_a.max();
if (internal_min_a<eigen_min_a) {
eigen_min_a = internal_min_a;
}
if (internal_max_a>eigen_max_a) {
eigen_max_a = internal_max_a;
}
}
// Perform truncation if necessary
int do_truncate_a = (pi_min_a<(1/(c1_a+mm)))*(mean_abs_a>(c2_a+mm))*(eigen_min_a<(1/(c3_a+mm)))*(eigen_min_a>(c3_a+mm));
if (do_truncate_a==1) {
T1 = T1_old_a;
T2 = T2_old_a;
T3 = T3_old_a;
mm = mm + 1;
}
// Convert back to regular parameters
pi_a = T1/batch_a;
for (int gg = 0; gg < groups_a; gg++) {
mean_a.col(gg) = T2.col(gg)/T1(gg);
cov_a.slice(gg) = (T3.slice(gg)-T2.col(gg)*trans(T2.col(gg))/T1(gg))/T1(gg);
}
// Compute polyak averages
pol_pi = pol_pi*count/(count+1) + pi_a/(count+1);
pol_mean = pol_mean*count/(count+1) + mean_a/(count+1);
pol_cov = pol_cov*count/(count+1) + cov_a/(count+1);
// Reset the model parameters
model.set_hefts(pi_a);
model.set_means(mean_a);
model.set_fcovs(cov_a);
}
// Initialize the Gaussian mixture model object with polyak components
gmm_full model_pol;
model_pol.reset(dim_a,groups_a);
// Set to polyak model parameters
model_pol.set_hefts(pol_pi);
model_pol.set_means(pol_mean);
model_pol.set_fcovs(pol_cov);
return Rcpp::List::create(
Rcpp::Named("reg_log-likelihood")=model.sum_log_p(data_a),
Rcpp::Named("reg_proportions")=model.hefts,
Rcpp::Named("reg_means")=model.means,
Rcpp::Named("reg_covariances")=model.fcovs,
Rcpp::Named("pol_log-likelihood")=model_pol.sum_log_p(data_a),
Rcpp::Named("pol_proportions")=model_pol.hefts,
Rcpp::Named("pol_means")=model_pol.means,
Rcpp::Named("pol_covariances")=model_pol.fcovs);
'
# Source to use the armadillo GMM functions to compute clusters minibatch outputs
gmm_full_cluster_src <- '
using namespace arma;
// Convert necessary matrix objects to arma
mat data_a = as<mat>(data_r);
rowvec pi_a = as<rowvec>(pi_r);
mat mean_a = as<mat>(mean_r);
cube cov_a = as<cube>(cov_r);
// Initialize a gmm_full object
gmm_full model;
// Set the parameters
model.set_params(mean_a, cov_a, pi_a);
// Return
return Rcpp::List::create(
Rcpp::Named("Cluster")=model.assign(data_a, prob_dist));
'
# Define R function for algorithm without truncation
stoEMMIX_pol <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
mean_r='numeric',
cov_r='numeric',
maxit_r='integer',
groups_r='integer',
rate_r='numeric',
base_r='numeric',
batch_r='integer'),
stoEMMIXpol_src, plugin = 'RcppArmadillo')
# Define R function for algorithm with truncation
stoEMMIX_poltrunc <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
mean_r='numeric',
cov_r='numeric',
maxit_r='integer',
groups_r='integer',
rate_r='numeric',
base_r='numeric',
batch_r='integer',
c1_r='numeric',
c2_r='numeric',
c3_r='numeric'),
stoEMMIXpoltrunc_src, plugin = 'RcppArmadillo')
# Define R function for clustering upon obtaining the output from a minibatch estimation
GMM_arma_cluster <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
mean_r='numeric',
cov_r='numeric'),
gmm_full_cluster_src, plugin = 'RcppArmadillo')<file_sep>#################################################################
## Iris1 ##
#################################################################
# Load libraries
library('MixSim')
library('mclust')
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Load in Iris data
data("iris", package = "datasets")
## Extract various required variables
# Get dimensions
d <- ncol(iris) - 1
# Get species label
id <- as.integer(iris[, 5])
# Get the number of subpopulations
g <- max(id)
## Estimate mixture model parameters
# Proportions
Pi <- prop.table(tabulate(id))
# Mean vectors
Mu <- t(sapply(1:g, function(k){ colMeans(iris[id == k, -5]) }))
# Covariance matrices
Sigma <- sapply(1:g, function(k){ var(iris[id == k, -5]) })
# Set the dimension of the covariance array
dim(Sigma) <- c(d, d, g)
## Setup parameters
# Number of observations to simulation
NN <- 10^6
# Set the number repetitions
Rep <- 100
# Number of components to fit
Groups <- 3
# Set a random seed
set.seed(20190129)
# Construct a matrix to store the results
Results <- matrix(NA,100,9)
# Conduct simulation study
for (ii in 1:Rep) {
# Simulate data
Data <- simdataset(NN,Pi,Mu,Sigma)$X
# Randomly generate labels for initialization
Samp <- sample(1:Groups,NN,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run batch EM algorithm
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=10))
# Get likelihood value for batch EM algorithm
Results[ii,1] <- MC$loglik
# Run minibatch algorithm with batch size 10000
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/10000,Groups,0.6,1-10^-10,10000)
Results[ii,2] <- Sto$`reg_log-likelihood`
Results[ii,3] <- Sto$`pol_log-likelihood`
# Run minibatch algorithm with batch size 20000
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/20000,Groups,0.6,1-10^-10,20000)
Results[ii,4] <- Sto$`reg_log-likelihood`
Results[ii,5] <- Sto$`pol_log-likelihood`
# Run truncated minibatch algorithm with batch size 10000
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/10000,Groups,0.6,1-10^-10,10000,
1000,1000,1000)
Results[ii,6] <- Sto$`reg_log-likelihood`
Results[ii,7] <- Sto$`pol_log-likelihood`
# Run truncated minibatch algorithm with batch size 20000
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/20000,Groups,0.6,1-10^-10,20000,
1000,1000,1000)
Results[ii,8] <- Sto$`reg_log-likelihood`
Results[ii,9] <- Sto$`pol_log-likelihood`
# Save and print outputs
save(Results,file='./Iris1.rdata')
print(c(ii,Results[ii,]))
# Also sink results to a text file
sink('./Iris1.txt',append = TRUE)
cat(ii,Results[ii,],'\n')
sink()
}
#################################################################
## Iris2 ##
#################################################################
# Load libraries
library('MixSim')
library('mclust')
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Load in Iris data
data("iris", package = "datasets")
## Extract various required variables
# Get dimensions
d <- ncol(iris) - 1
# Get species label
id <- as.integer(iris[, 5])
# Get the number of subpopulations
g <- max(id)
## Estimate mixture model parameters
# Proportions
Pi <- prop.table(tabulate(id))
# Mean vectors
Mu <- t(sapply(1:g, function(k){ colMeans(iris[id == k, -5]) }))
# Covariance matrices
Sigma <- sapply(1:g, function(k){ var(iris[id == k, -5]) })
# Set the dimension of the covariance array
dim(Sigma) <- c(d, d, g)
## Setup parameters
# Number of observations to simulation
NN <- 10^7
# Set the number repetitions
Rep <- 100
# Number of components to fit
Groups <- 3
# Set a random seed
set.seed(20190129)
# Construct a matrix to store the results
Results <- matrix(NA,100,9)
# Conduct simulation study
for (ii in 1:Rep) {
# Simulate data
Data <- simdataset(NN,Pi,Mu,Sigma)$X
# Randomly generate labels for initialization
Samp <- sample(1:Groups,NN,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run batch EM algorithm
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=10))
# Get likelihood value for batch EM algorithm
Results[ii,1] <- MC$loglik
# Run minibatch algorithm with batch size 10000
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/100000,Groups,0.6,1-10^-10,100000)
Results[ii,2] <- Sto$`reg_log-likelihood`
Results[ii,3] <- Sto$`pol_log-likelihood`
# Run minibatch algorithm with batch size 20000
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/200000,Groups,0.6,1-10^-10,200000)
Results[ii,4] <- Sto$`reg_log-likelihood`
Results[ii,5] <- Sto$`pol_log-likelihood`
# Run truncated minibatch algorithm with batch size 10000
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/100000,Groups,0.6,1-10^-10,100000,
1000,1000,1000)
Results[ii,6] <- Sto$`reg_log-likelihood`
Results[ii,7] <- Sto$`pol_log-likelihood`
# Run truncated minibatch algorithm with batch size 20000
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/200000,Groups,0.6,1-10^-10,200000,
1000,1000,1000)
Results[ii,8] <- Sto$`reg_log-likelihood`
Results[ii,9] <- Sto$`pol_log-likelihood`
# Save and print outputs
save(Results,file='./Iris2.rdata')
print(c(ii,Results[ii,]))
# Also sink results to a text file
sink('./Iris2.txt',append = TRUE)
cat(ii,Results[ii,],'\n')
sink()
}<file_sep>library(Rcpp)
library(RcppArmadillo)
library(inline)
gmm_full_cluster_src <- '
using namespace arma;
// Convert necessary matrix objects to arma
mat data_a = as<mat>(data_r);
rowvec pi_a = as<rowvec>(pi_r);
mat mean_a = as<mat>(mean_r);
cube cov_a = as<cube>(cov_r);
// Initialize a gmm_full object
gmm_full model;
// Set the parameters
model.set_params(mean_a, cov_a, pi_a);
// Return
return Rcpp::List::create(
Rcpp::Named("Cluster")=model.assign(data_a, prob_dist));
'
GMM_arma_cluster <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
mean_r='numeric',
cov_r='numeric'),
gmm_full_cluster_src, plugin = 'RcppArmadillo')
stoEMMIXpolsafe_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
mat data_a = as<mat>(data_r);
rowvec pi_hold = as<rowvec>(pi_r);
mat mean_hold = as<mat>(mean_r);
cube cov_hold = as<cube>(cov_r);
int maxit_a = as<int>(maxit_r);
double rate_a = as<double>(rate_r);
double base_a = as<double>(base_r);
double safe_a = as<double>(safe_r);
int batch_a = as<int>(batch_r);
int groups_a = as<int>(groups_r);
// Memory control
rowvec pi_a = pi_hold;
mat mean_a = mean_hold;
cube cov_a = cov_hold;
// Get necessary dimensional elements
int obs_a = data_a.n_cols;
int dim_a = data_a.n_rows;
// Safe variances
for (int gg = 0; gg < groups_a; gg++) {
if (prod(cov_a.slice(gg).diag())==0) {
cov_a.slice(gg) = safe_a*eye<mat>(dim_a,dim_a);
}
}
// Initialize the Gaussian mixture model object
gmm_full model;
model.reset(dim_a,groups_a);
// Set the model parameters
model.set_params(mean_a, cov_a, pi_a);
// Initialize the sufficient statistics
rowvec T1 = batch_a*pi_a;
mat T2 = zeros<mat>(dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = mean_a.col(gg)*pi_a(gg);
}
cube T3 = zeros<cube>(dim_a,dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T3.slice(gg) = T1(gg)*cov_a.slice(gg) + T2.col(gg)*trans(T2.col(gg))/T1(gg);
}
// Initialize gain
double gain = 1;
// Create polyak variables
rowvec pol_pi = pi_a;
mat pol_mean = mean_a;
cube pol_cov = cov_a;
// Initialize tau matrix
mat tau = zeros<mat>(groups_a,batch_a);
rowvec tau_max = zeros<rowvec>(batch_a);
// Begin loop
for (int count = 0; count < maxit_a; count++) {
// Update gain function
gain = base_a*pow(count+1,-rate_a);
// Construct a sample from the data
IntegerVector seq_c = sample(obs_a,batch_a,0);
uvec seq_a = as<uvec>(seq_c) - 1;
mat subdata_a = data_a.cols(seq_a);
// Compute the tau scores for the subsample
for (int gg = 0; gg < groups_a; gg++) {
tau.row(gg) = log(pi_a(gg)) + model.log_p(subdata_a,gg);
}
tau_max = max(tau,0);
for (int nn = 0; nn < batch_a; nn++) {
tau.col(nn) = tau.col(nn) - tau_max(nn) - log(sum(exp(tau.col(nn)-tau_max(nn))));
}
tau = exp(tau);
// Compute the new value of T1
T1 = (1-gain)*T1 + gain*trans(sum(tau,1));
// Compute the new value of T2
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = (1-gain)*T2.col(gg);
for (int nn = 0; nn < batch_a; nn++) {
T2.col(gg) = T2.col(gg) + gain*tau(gg,nn)*subdata_a.col(nn);
}
}
// Compute the new value of T3
for (int gg = 0; gg < groups_a; gg++) {
T3.slice(gg) = (1-gain)*T3.slice(gg);
for (int nn = 0; nn < batch_a; nn++) {
T3.slice(gg) = T3.slice(gg) + gain*tau(gg,nn)*subdata_a.col(nn)*trans(subdata_a.col(nn));
}
}
// Convert back to regular parameters
pi_a = T1/batch_a;
for (int gg = 0; gg < groups_a; gg++) {
mean_a.col(gg) = T2.col(gg)/T1(gg);
cov_a.slice(gg) = (T3.slice(gg)-T2.col(gg)*trans(T2.col(gg))/T1(gg))/T1(gg);
if (prod(cov_a.slice(gg).diag())==0) {
cov_a.slice(gg) = safe_a*eye<mat>(dim_a,dim_a);
}
}
// Compute polyak averages
pol_pi = pol_pi*count/(count+1) + pi_a/(count+1);
pol_mean = pol_mean*count/(count+1) + mean_a/(count+1);
pol_cov = pol_cov*count/(count+1) + cov_a/(count+1);
// Reset the model parameters
model.set_hefts(pi_a);
model.set_means(mean_a);
model.set_fcovs(cov_a);
}
// Initialize the Gaussian mixture model object with polyak components
gmm_full model_pol;
model_pol.reset(dim_a,groups_a);
// Set to polyak model parameters
model_pol.set_hefts(pol_pi);
model_pol.set_means(pol_mean);
model_pol.set_fcovs(pol_cov);
return Rcpp::List::create(
Rcpp::Named("reg_log-likelihood")=model.sum_log_p(data_a),
Rcpp::Named("reg_proportions")=model.hefts,
Rcpp::Named("reg_means")=model.means,
Rcpp::Named("reg_covariances")=model.fcovs,
Rcpp::Named("pol_log-likelihood")=model_pol.sum_log_p(data_a),
Rcpp::Named("pol_proportions")=model_pol.hefts,
Rcpp::Named("pol_means")=model_pol.means,
Rcpp::Named("pol_covariances")=model_pol.fcovs);
'
stoEMMIX_polsafe <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
mean_r='numeric',
cov_r='numeric',
maxit_r='integer',
groups_r='integer',
rate_r='numeric',
base_r='numeric',
batch_r='integer',
safe_r='numeric'),
stoEMMIXpolsafe_src, plugin = 'RcppArmadillo')
Data_hold <- train[,-785]
PCA <- prcomp(Data_hold)
Data_hold <- predict(PCA,Data_hold)
Data <- Data_hold[,1:50]
KM <- kmeans(Data,centers = 10,iter.max = 100, nstart = 10)
id <- KM$cluster
K <- max(id)
# estimate mixture parameters
Pi <- prop.table(tabulate(id))
Mu <- t(sapply(1:K, function(k){ colMeans(Data[id == k,]) }))
S <- sapply(1:K, function(k){ var(Data[id == k,]) })
dim(S) <- c(dim(Data)[2], dim(Data)[2], K)
Sto <- stoEMMIX_polsafe(t(Data), Pi, t(Mu),
S,
100,K,0.6,1,6000,1)
Cluster1 <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
Cluster2 <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
adjustedRandIndex(Cluster1$Cluster,train$y)
adjustedRandIndex(Cluster2$Cluster,train$y)
adjustedRandIndex(KM$cluster,train$y)<file_sep>#################################################################
## Poi1 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Poi1.rdata')
Results <- Results[,-c(6:9)]
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Poi1.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Poi1 Results timing ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Poi1timing.rdata')
Timing <- Timing[,-c(4:5)]
# Rename the columns of the data
colnames(Timing) <- c('EM','N=n/10','N=n/5')
# Melt the data
DF <- melt(Timing)
# Open a plot device
pdf(file='./Poi1timing.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'time (s)',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Timing)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Poi1 Results SE ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Poi1SE.rdata')
SE_results <- SE_results[,-c(6:9)]
# Rename the columns of the data
colnames(SE_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(SE_results)
# Open a plot device
pdf(file='./Poi1SE.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'SE',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(SE_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Poi1 Results ARI ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Poi1ARI.rdata')
ARI_results <- ARI_results[,-c(6:9)]
# Rename the columns of the data
colnames(ARI_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(ARI_results)
# Open a plot device
pdf(file='./Poi1ARI.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'ARI',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(ARI_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Poi2 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Poi2.rdata')
Results <- Results[,-c(6:9)]
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Poi2.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Poi2 Results timing ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Poi2timing.rdata')
Timing <- Timing[,-c(4:5)]
# Rename the columns of the data
colnames(Timing) <- c('EM','N=n/10','N=n/5')
# Melt the data
DF <- melt(Timing)
# Open a plot device
pdf(file='./Poi2timing.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'time (s)',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Timing)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Poi2 Results SE ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Poi2SE.rdata')
SE_results <- SE_results[,-c(6:9)]
# Rename the columns of the data
colnames(SE_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(SE_results)
# Open a plot device
pdf(file='./Poi2SE.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'SE',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(SE_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Poi2 Results ARI ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Poi2ARI.rdata')
ARI_results <- ARI_results[,-c(6:9)]
# Rename the columns of the data
colnames(ARI_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P')
# Melt the data
DF <- melt(ARI_results)
# Open a plot device
pdf(file='./Poi2ARI.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'ARI',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(ARI_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
<file_sep>library(mclust)
library(colorspace)
data(wreath)
MC2 <- Mclust(wreath, G = 14, modeNames = 'VVV')
SIM <- simVVV(MC$parameters,10000)
plot(SIM[,c(2,3)],
col=rainbow_hcl(14)[SIM[,1]],
xlab='',ylab='',axes = F)
plot(wreath,col=rainbow_hcl(14)[MC$classification])
par(mar=c(1,1,1,1))
plot(MC,what='density',xlab='',ylab='',axes = F,main='')
points(SIM[,c(2,3)],
col=rainbow_hcl(14)[SIM[,1]])
NN <- 1000000
Groups <- 14
Results <- matrix(NA,20,5)
for (ii in 1:20) {
Data <- simVVV(MC2$parameters,NN)
Samp <- sample(1:Groups,NN,replace = T)
msEst <- mstep(modelName = "VVV", data = Data[,-1], z = unmap(Samp))
MC <- em('VVV', data=Data[,-1], parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=c(10,10)))
Results[ii,1] <- MC$loglik
print(Results)
Sto <- stoEMMIX_pol(t(Data[,-1]), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/1000,Groups,0.6,1,1000)
Results[ii,2] <- Sto$`reg_log-likelihood`
Results[ii,3] <- Sto$`pol_log-likelihood`
print(Results)
Sto <- stoEMMIX_pol(t(Data[,-1]), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/2000,Groups,0.6,1,2000)
Results[ii,4] <- Sto$`reg_log-likelihood`
Results[ii,5] <- Sto$`pol_log-likelihood`
print(Results)
}
NN <- 1000000
Groups <- 14
Results <- matrix(NA,20,7)
for (ii in 1:20) {
rm(.Random.seed)
Data <- simVVV(MC2$parameters,NN)
Rand <- round(100000*runif(1))
set.seed(Rand)
# Samp <- Data[sample.int(NN,Groups),-1]
KK <- kmeans(Data[,-1],centers=Groups,iter.max=1,nstart=1)
Samp <- KK$centers
set.seed(Rand)
KK <- kmeans(Data[,-1],centers=Groups,iter.max=10,nstart=1)
Results[ii,1] <- KK$tot.withinss
print(Results)
Sto <- softkmeans_pol(t(Data[,-1]),t(Samp),
10*NN/1000,Groups,0.6,1,1000)
Results[ii,2] <- sum(softkmeans_ss(t(Data[,-1]),Sto$reg_means,softkmeans_clust(t(Data[,-1]),Sto$reg_means)$allocations)$Within_SS)
Results[ii,3] <- sum(softkmeans_ss(t(Data[,-1]),Sto$pol_means,softkmeans_clust(t(Data[,-1]),Sto$pol_means)$allocations)$Within_SS)
print(Results)
Sto <- softkmeans_pol(t(Data[,-1]),t(Samp),
10*NN/2000,Groups,0.6,1,2000)
Results[ii,4] <- sum(softkmeans_ss(t(Data[,-1]),Sto$reg_means,softkmeans_clust(t(Data[,-1]),Sto$reg_means)$allocations)$Within_SS)
Results[ii,5] <- sum(softkmeans_ss(t(Data[,-1]),Sto$pol_means,softkmeans_clust(t(Data[,-1]),Sto$pol_means)$allocations)$Within_SS)
print(Results)
# set.seed(Rand)
# MB <- MiniBatchKmeans(Data[,-1],clusters=Groups,batch_size = 1000,num_init = 1,max_iters = 10*NN/1000, early_stop_iter = 10*NN/1000,tol=1e-16,
# CENTROIDS = KK$centers)
# Results[ii,6] <- sum(softkmeans_ss(t(Data[,-1]),t(MB$centroids),predict_KMeans(Data[,-1],MB$centroids)-1)$Within_SS)
# set.seed(Rand)
# MB <- MiniBatchKmeans(Data[,-1],clusters=Groups,batch_size = 2000,num_init = 1,max_iters = 10*NN/2000, early_stop_iter = 10*NN/2000,tol=1e-16,
# CENTROIDS = KK$centers)
# Results[ii,7] <- sum(softkmeans_ss(t(Data[,-1]),t(MB$centroids),predict_KMeans(Data[,-1],MB$centroids)-1)$Within_SS)
# print(Results)
}
library(reshape2)
colnames(Results) <- c('k-means','soft1r','soft1p','soft2r','soft2p','mini1','mini2')
DF <- melt(Results)
boxplot(value ~ Var2, data = DF, lwd = 2, ylab = 'TSS')
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20, col = rainbow_hcl(20)[DF$Var1])
<file_sep>### Load libraries
library(mvnfast)
library(mvtnorm)
### Load Iris Data
Data <- iris
Data <- Data[,-5]
Data <- as.matrix(Data)
### Gain function
Gain <- function(COUNT) {
0.2*COUNT^-0.6
}
### Initialization parameters
Groups <- 3
Dim_vec <- dim(Data)
MAX_num <- 3000
Pol_start <- round(MAX_num-MAX_num/4)
### Initialize Pi
Pi_vec <- msEst$parameters$pro
### Initialize Mean
hcTree <- hcVVV(data = Data)
cl <- hclass(hcTree, Groups)
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(cl))
Mean_list <- list()
for (ii in 1:Groups) {
Mean_list[[ii]] <- msEst$parameters$mean[,ii]
}
### Initialize Covariance
Cov_list <- list()
for (ii in 1:Groups) {
Cov_list[[ii]] <- msEst$parameters$variance$sigma[,,ii]
}
Tau_fun <- function(X_vec,Pi_vec,Mean_list,Cov_list) {
Tau_vec <- c()
for (ii in 1:Groups) {
Tau_vec[ii] <- Pi_vec[ii]*dmvnorm(X_vec,
Mean_list[[ii]],
Cov_list[[ii]])
}
Tau_vec <- Tau_vec/sum(Tau_vec)
return(Tau_vec)
}
T1 <- Pi_vec
T2 <- lapply(1:Groups,function(ii){Mean_list[[ii]]*Pi_vec[ii]})
T3 <- mapply(function(x,y,z){x*z+y%*%t(y)/x},T1,T2,Cov_list)
T3 <- lapply(seq_len(ncol(T3)), function(i) matrix(T3[,i],Dim_vec[2],Dim_vec[2]))
### Algorithm
COUNT <- 0
# Initialize some lists
Run_Pi_list <- list()
Run_Mean_list <- list()
Run_Cov_list <- list()
while(COUNT<MAX_num) {
COUNT <- COUNT + 1
### Averaging lists
Run_Pi_list[[COUNT]] <- Pi_vec
Run_Mean_list[[COUNT]] <- matrix(unlist(Mean_list),Dim_vec[2],Groups,byrow = F)
Run_Cov_list[[COUNT]] <- array(unlist(Cov_list),dim=c(Dim_vec[2],Dim_vec[2],Groups))
X_vec <- Data[sample(Dim_vec[1],1),]
Tau <- Tau_fun(X_vec,Pi_vec,Mean_list,Cov_list)
T1 <- (1-Gain(COUNT))*T1+Gain(COUNT)*Tau
T2 <- lapply(seq_len(Groups),function(ii) {
(1-Gain(COUNT))*T2[[ii]]+Gain(COUNT)*Tau[ii]*X_vec
})
T3 <- lapply(seq_len(Groups),function(ii) {
(1-Gain(COUNT))*T3[[ii]]+Gain(COUNT)*Tau[ii]*X_vec%*%t(X_vec)
})
Pi_vec <- T1
Mean_list <- lapply(1:Groups,function(ii){
T2[[ii]]/T1[[ii]]
})
Cov_list <- lapply(seq_len(Groups),function(ii){
(T3[[ii]]-T2[[ii]]%*%t(T2[[ii]])/T1[ii])/T1[ii]
})
print(COUNT)
print(Pi_vec)
print(Mean_list)
print(Cov_list)
}
#
# Cluster <- sapply(1:Dim_vec[1],function(ii) {
# Tau_fun(Data[ii,],Mean_list,)
# })
Refit <- mvnormalmixEM(x = Data,
lambda = Pi_vec,
mu = Mean_list,
sigma = Cov_list,
k = Groups,
maxit = 1)
print(Refit$all.loglik[1])
### Polyak Averaging
Red_Pi_vec <- Reduce('+',Run_Pi_list[-(1:Pol_start)])/(COUNT-Pol_start+1)
Red_Mean_list <- Reduce('+',Run_Mean_list[-(1:Pol_start)])/(COUNT-Pol_start+1)
Red_Mean_list <- lapply(1:Groups,function(ii){Red_Mean_list[,ii]})
Red_Cov_list <- Reduce('+',Run_Cov_list[-(1:Pol_start)])/(COUNT-Pol_start+1)
Red_Cov_list <- lapply(1:Groups,function(ii){Red_Cov_list[,,ii]})
Refit_pol <- mvnormalmixEM(x = Data,
lambda = Red_Pi_vec,
mu = Red_Mean_list,
sigma = Red_Cov_list,
k = Groups,
maxit = 1)
print(Refit_pol$all.loglik[1])
MC$loglik<file_sep>hcTree <- hcVVV(data = Data)
cl <- hclass(hcTree, Groups)
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(cl))
MC <- em('VVV', data=Data, parameters = msEst$parameters)
MC$parameters
REFIT <- em('VVV',data=Data,parameters =list(
pro = Pi_vec,
mean = matrix(unlist(Mean_list),Dim_vec[2],Groups),
variance = Cov_list
))
<file_sep># Load libaries
library(Rcpp)
library(RcppArmadillo)
library(inline)
stoExponential_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
NumericVector data_hold(data_r);
NumericVector pi_hold(pi_r);
NumericVector lambda_hold(lambda_r);
int maxit_a = as<int>(maxit_r);
double rate_a = as<double>(rate_r);
double base_a = as<double>(base_r);
int batch_a = as<int>(batch_r);
int groups_a = as<int>(groups_r);
// Get necessary dimensional elements
int obs_a = data_hold.length();
// Memory control
vec data_a = zeros<vec>(obs_a);
vec pi_a = zeros<vec>(groups_a);
vec lambda_a = zeros<vec>(groups_a);
data_a = data_hold;
pi_a = pi_hold;
lambda_a = lambda_hold;
// Initialize the sufficient statistics
vec T1 = batch_a*pi_a;
vec T2 = zeros<vec>(groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T2(gg) = T1(gg)/lambda_a(gg);
}
// Initialize gain
double gain = 1;
// Create polyak variables
vec pol_pi = pi_a;
vec pol_lambda = lambda_a;
// Initialize tau matrix
mat tau = zeros<mat>(groups_a,batch_a);
// Begin loop
for (int count = 0; count < maxit_a; count++) {
// Update gain function
gain = base_a*pow(count+1,-rate_a);
// Construct a sample from the data
IntegerVector seq_c = sample(obs_a,batch_a,0);
uvec seq_a = as<uvec>(seq_c) - 1;
vec subdata_a = data_a(seq_a);
// Compute the tau scores for the subsample
for (int gg = 0; gg < groups_a; gg++) {
for (int nn = 0; nn < batch_a; nn++) {
tau(gg,nn) = log(lambda_a(gg)*exp(-lambda_a(gg)*subdata_a(nn)));
}
}
for (int nn = 0; nn < batch_a; nn++) {
vec tau_current = tau.col(nn);
double max_tau = tau_current.max();
for (int gg = 0; gg < groups_a; gg++) {
tau(gg,nn) = exp(log(pi_a(gg)) + tau(gg,nn)-max_tau);
}
tau.col(nn) = tau.col(nn)/sum(tau.col(nn));
}
// Compute the new value of T1
for (int gg = 0; gg < groups_a; gg++) {
T1(gg) = (1-gain)*T1(gg) + gain*sum(tau.row(gg));
}
// Compute the new value of T2
for (int gg = 0; gg < groups_a; gg++) {
T2(gg) = (1-gain)*T2(gg);
for (int nn = 0; nn < batch_a; nn++) {
T2(gg) = T2(gg) + gain*tau(gg,nn)*subdata_a(nn);
}
}
// Convert back to regular parameters
for (int gg = 0; gg < groups_a; gg++) {
pi_a(gg) = T1(gg)/batch_a;
lambda_a(gg) = T1(gg)/T2(gg);
}
// Compute polyak averages
pol_pi = pol_pi*count/(count+1) + pi_a/(count+1);
pol_lambda = pol_lambda*count/(count+1) + lambda_a/(count+1);
}
// Initialize the likelihoods
double log_likelihood = 0;
double log_likelihood_pol = 0;
// Initialize tau matrix
mat tau_like = zeros<mat>(groups_a,obs_a);
// Compute taus under regular parameters
for (int gg = 0; gg < groups_a; gg++) {
for (int nn = 0; nn < obs_a; nn++) {
tau_like(gg,nn) = log(pi_a(gg)*lambda_a(gg)*exp(-lambda_a(gg)*data_a(nn)));
}
}
mat exp_tau = exp(tau_like);
rowvec log_sum_exp = log(sum(exp_tau,0));
log_likelihood = sum(log_sum_exp);
// Initialize tau matrix
tau_like = zeros<mat>(groups_a,obs_a);
// Compute taus under polyak parameters
for (int gg = 0; gg < groups_a; gg++) {
for (int nn = 0; nn < obs_a; nn++) {
tau_like(gg,nn) = log(pol_pi(gg)*pol_lambda(gg)*exp(-pol_lambda(gg)*data_a(nn)));
}
}
exp_tau = exp(tau_like);
log_sum_exp = log(sum(exp_tau,0));
log_likelihood_pol = sum(log_sum_exp);
return Rcpp::List::create(
Rcpp::Named("reg_log-likelihood")=log_likelihood,
Rcpp::Named("reg_proportions")=pi_a,
Rcpp::Named("reg_lambda")=lambda_a,
Rcpp::Named("pol_log-likelihood")=log_likelihood_pol,
Rcpp::Named("pol_proportions")=pol_pi,
Rcpp::Named("pol_lambda")=pol_lambda);
'
EMExponential_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
NumericVector data_hold(data_r);
NumericVector pi_hold(pi_r);
NumericVector lambda_hold(lambda_r);
int maxit_a = as<int>(maxit_r);
int groups_a = as<int>(groups_r);
// Get necessary dimensional elements
int obs_a = data_hold.length();
// Memory control
vec data_a = zeros<vec>(obs_a);
vec pi_a = zeros<vec>(groups_a);
vec lambda_a = zeros<vec>(groups_a);
data_a = data_hold;
pi_a = pi_hold;
lambda_a = lambda_hold;
// Initialize the sufficient statistics
vec T1 = obs_a*pi_a;
vec T2 = zeros<vec>(groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T2(gg) = T1(gg)/lambda_a(gg);
}
// Initialize tau matrix
mat tau = zeros<mat>(groups_a,obs_a);
// Begin loop
for (int count = 0; count < maxit_a; count++) {
// Compute the tau scores for the subsample
for (int gg = 0; gg < groups_a; gg++) {
for (int nn = 0; nn < obs_a; nn++) {
tau(gg,nn) = log(lambda_a(gg)*exp(-lambda_a(gg)*data_a(nn)));
}
}
for (int nn = 0; nn < obs_a; nn++) {
vec tau_current = tau.col(nn);
double max_tau = tau_current.max();
for (int gg = 0; gg < groups_a; gg++) {
tau(gg,nn) = exp(log(pi_a(gg)) + tau(gg,nn)-max_tau);
}
tau.col(nn) = tau.col(nn)/sum(tau.col(nn));
}
// Compute the new value of T1
for (int gg = 0; gg < groups_a; gg++) {
T1(gg) = sum(tau.row(gg));
}
// Compute the new value of T2
for (int gg = 0; gg < groups_a; gg++) {
T2(gg) = 0;
for (int nn = 0; nn < obs_a; nn++) {
T2(gg) = T2(gg) + tau(gg,nn)*data_a(nn);
}
}
// Convert back to regular parameters
for (int gg = 0; gg < groups_a; gg++) {
pi_a(gg) = T1(gg)/obs_a;
lambda_a(gg) = T1(gg)/T2(gg);
}
}
// Initialize the likelihoods
double log_likelihood = 0;
// Initialize tau matrix
mat tau_like = zeros<mat>(groups_a,obs_a);
// Compute taus under regular parameters
for (int gg = 0; gg < groups_a; gg++) {
for (int nn = 0; nn < obs_a; nn++) {
tau_like(gg,nn) = log(pi_a(gg)*lambda_a(gg)*exp(-lambda_a(gg)*data_a(nn)));
}
}
mat exp_tau = exp(tau_like);
rowvec log_sum_exp = log(sum(exp_tau,0));
log_likelihood = sum(log_sum_exp);
return Rcpp::List::create(
Rcpp::Named("reg_log-likelihood")=log_likelihood,
Rcpp::Named("reg_proportions")=pi_a,
Rcpp::Named("reg_lambda")=lambda_a);
'
stoPoisson_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
NumericVector data_hold(data_r);
NumericVector pi_hold(pi_r);
NumericVector lambda_hold(lambda_r);
int maxit_a = as<int>(maxit_r);
double rate_a = as<double>(rate_r);
double base_a = as<double>(base_r);
int batch_a = as<int>(batch_r);
int groups_a = as<int>(groups_r);
// Get necessary dimensional elements
int obs_a = data_hold.length();
// Memory control
vec data_a = zeros<vec>(obs_a);
vec pi_a = zeros<vec>(groups_a);
vec lambda_a = zeros<vec>(groups_a);
data_a = data_hold;
pi_a = pi_hold;
lambda_a = lambda_hold;
// Initialize the sufficient statistics
vec T1 = batch_a*pi_a;
vec T2 = zeros<vec>(groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T2(gg) = lambda_a(gg)*T1(gg);
}
// Initialize gain
double gain = 1;
// Create polyak variables
vec pol_pi = pi_a;
vec pol_lambda = lambda_a;
// Initialize tau matrix
mat tau = zeros<mat>(groups_a,batch_a);
// Begin loop
for (int count = 0; count < maxit_a; count++) {
// Update gain function
gain = base_a*pow(count+1,-rate_a);
// Construct a sample from the data
IntegerVector seq_c = sample(obs_a,batch_a,0);
uvec seq_a = as<uvec>(seq_c) - 1;
vec subdata_a = data_a(seq_a);
// Compute the tau scores for the subsample
for (int gg = 0; gg < groups_a; gg++) {
for (int nn = 0; nn < batch_a; nn++) {
tau(gg,nn) = log(pow(lambda_a(gg),subdata_a(nn))*exp(-lambda_a(gg)))-lgamma(subdata_a(nn)+1);
}
}
for (int nn = 0; nn < batch_a; nn++) {
vec tau_current = tau.col(nn);
double max_tau = tau_current.max();
for (int gg = 0; gg < groups_a; gg++) {
tau(gg,nn) = exp(log(pi_a(gg)) + tau(gg,nn)-max_tau);
}
tau.col(nn) = tau.col(nn)/sum(tau.col(nn));
}
// Compute the new value of T1
for (int gg = 0; gg < groups_a; gg++) {
T1(gg) = (1-gain)*T1(gg) + gain*sum(tau.row(gg));
}
// Compute the new value of T2
for (int gg = 0; gg < groups_a; gg++) {
T2(gg) = (1-gain)*T2(gg);
for (int nn = 0; nn < batch_a; nn++) {
T2(gg) = T2(gg) + gain*tau(gg,nn)*subdata_a(nn);
}
}
// Convert back to regular parameters
for (int gg = 0; gg < groups_a; gg++) {
pi_a(gg) = T1(gg)/batch_a;
lambda_a(gg) = T2(gg)/T1(gg);
}
// Compute polyak averages
pol_pi = pol_pi*count/(count+1) + pi_a/(count+1);
pol_lambda = pol_lambda*count/(count+1) + lambda_a/(count+1);
}
// Initialize the likelihoods
double log_likelihood = 0;
double log_likelihood_pol = 0;
// Initialize tau matrix
mat tau_like = zeros<mat>(groups_a,obs_a);
// Compute taus under regular parameters
for (int gg = 0; gg < groups_a; gg++) {
for (int nn = 0; nn < obs_a; nn++) {
tau_like(gg,nn) = log(pi_a(gg)*pow(lambda_a(gg),data_a(nn))*exp(-lambda_a(gg)))-lgamma(data_a(nn)+1);
}
}
mat exp_tau = exp(tau_like);
rowvec log_sum_exp = log(sum(exp_tau,0));
log_likelihood = sum(log_sum_exp);
// Initialize tau matrix
tau_like = zeros<mat>(groups_a,obs_a);
// Compute taus under polyak parameters
for (int gg = 0; gg < groups_a; gg++) {
for (int nn = 0; nn < obs_a; nn++) {
tau_like(gg,nn) = log(pol_pi(gg)*pow(pol_lambda(gg),data_a(nn))*exp(-pol_lambda(gg)))-lgamma(data_a(nn)+1);
}
}
exp_tau = exp(tau_like);
log_sum_exp = log(sum(exp_tau,0));
log_likelihood_pol = sum(log_sum_exp);
return Rcpp::List::create(
Rcpp::Named("reg_log-likelihood")=log_likelihood,
Rcpp::Named("reg_proportions")=pi_a,
Rcpp::Named("reg_lambda")=lambda_a,
Rcpp::Named("pol_log-likelihood")=log_likelihood_pol,
Rcpp::Named("pol_proportions")=pol_pi,
Rcpp::Named("pol_lambda")=pol_lambda);
'
EMPoisson_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
NumericVector data_hold(data_r);
NumericVector pi_hold(pi_r);
NumericVector lambda_hold(lambda_r);
int maxit_a = as<int>(maxit_r);
int groups_a = as<int>(groups_r);
// Get necessary dimensional elements
int obs_a = data_hold.length();
// Memory control
vec data_a = zeros<vec>(obs_a);
vec pi_a = zeros<vec>(groups_a);
vec lambda_a = zeros<vec>(groups_a);
data_a = data_hold;
pi_a = pi_hold;
lambda_a = lambda_hold;
// Initialize the sufficient statistics
vec T1 = obs_a*pi_a;
vec T2 = zeros<vec>(groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T2(gg) = T1(gg)*lambda_a(gg);
}
// Initialize tau matrix
mat tau = zeros<mat>(groups_a,obs_a);
// Begin loop
for (int count = 0; count < maxit_a; count++) {
// Compute the tau scores for the subsample
for (int gg = 0; gg < groups_a; gg++) {
for (int nn = 0; nn < obs_a; nn++) {
tau(gg,nn) = log(pow(lambda_a(gg),data_a(nn))*exp(-lambda_a(gg)))-lgamma(data_a(nn)+1);
}
}
for (int nn = 0; nn < obs_a; nn++) {
vec tau_current = tau.col(nn);
double max_tau = tau_current.max();
for (int gg = 0; gg < groups_a; gg++) {
tau(gg,nn) = exp(log(pi_a(gg)) + tau(gg,nn)-max_tau);
}
tau.col(nn) = tau.col(nn)/sum(tau.col(nn));
}
// Compute the new value of T1
for (int gg = 0; gg < groups_a; gg++) {
T1(gg) = sum(tau.row(gg));
}
// Compute the new value of T2
for (int gg = 0; gg < groups_a; gg++) {
T2(gg) = 0;
for (int nn = 0; nn < obs_a; nn++) {
T2(gg) = T2(gg) + tau(gg,nn)*data_a(nn);
}
}
// Convert back to regular parameters
for (int gg = 0; gg < groups_a; gg++) {
pi_a(gg) = T1(gg)/obs_a;
lambda_a(gg) = T2(gg)/T1(gg);
}
}
// Initialize the likelihoods
double log_likelihood = 0;
// Initialize tau matrix
mat tau_like = zeros<mat>(groups_a,obs_a);
// Compute taus under regular parameters
for (int gg = 0; gg < groups_a; gg++) {
for (int nn = 0; nn < obs_a; nn++) {
tau_like(gg,nn) = log(pi_a(gg)*pow(lambda_a(gg),data_a(nn))*exp(-lambda_a(gg)))-lgamma(data_a(nn)+1);
}
}
mat exp_tau = exp(tau_like);
rowvec log_sum_exp = log(sum(exp_tau,0));
log_likelihood = sum(log_sum_exp);
return Rcpp::List::create(
Rcpp::Named("reg_log-likelihood")=log_likelihood,
Rcpp::Named("reg_proportions")=pi_a,
Rcpp::Named("reg_lambda")=lambda_a);
'
# Define R Exponential function for algorithm without truncation
stoExponential_pol <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
lambda_r='numeric',
maxit_r='integer',
groups_r='integer',
rate_r='numeric',
base_r='numeric',
batch_r='integer'),
stoExponential_src, plugin = 'RcppArmadillo')
# Define R EM Algorithm Exponential function for algorithm without truncation
EMExponential_pol <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
lambda_r='numeric',
maxit_r='integer',
groups_r='integer'),
EMExponential_src, plugin = 'RcppArmadillo')
# Define R Poisson function for algorithm without truncation
stoPoisson_pol <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
lambda_r='numeric',
maxit_r='integer',
groups_r='integer',
rate_r='numeric',
base_r='numeric',
batch_r='integer'),
stoPoisson_src, plugin = 'RcppArmadillo')
# Define R EM Poisson function for algorithm without truncation
EMPoisson_pol <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
lambda_r='numeric',
maxit_r='integer',
groups_r='integer'),
EMPoisson_src, plugin = 'RcppArmadillo')
# Exponential clustering
Exp_clust <- function(data, pi_vec, lambda_vec) {
tau <- matrix(NA,length(data),length(pi_vec))
for (gg in 1:length(pi_vec)) {
tau[,gg] <- log(pi_vec[gg]) + dexp(data,lambda_vec[gg],log=TRUE)
}
return(apply(tau,1,which.max))
}
# Poisson clustering
Pois_clust <- function(data, pi_vec, lambda_vec) {
tau <- matrix(NA,length(data),length(pi_vec))
for (gg in 1:length(pi_vec)) {
tau[,gg] <- log(pi_vec[gg]) + dpois(data,lambda_vec[gg],log=TRUE)
}
return(apply(tau,1,which.max))
}<file_sep>## Load in C libraries
library(Rcpp)
library(RcppArmadillo)
library(inline)
stoEMMIX_src <- '
// Read data
Rcpp::NumericMatrix Xr(Xs);
Rcpp::NumericVector Cov(Covs);
// Get the number of rows and columns
int n = Xr.nrow();
int d = Xr.ncol();
// Create arma objects
arma::cube Cov_a(Cov)
// Return results
return Rcpp::List::create(Rcpp::Named("number of rows") = n,
Rcpp::Named("number of columns") = d,
Rcpp::Named("Covariance matricies") = Cov_a);
'
Simple_Code <- cxxfunction(signature(Xs='numeric',
Covs='numeric'),
stoEMMIX_src,
plugin = 'RcppArmadillo')<file_sep>#################################################################
## Flea1 ##
#################################################################
# Load libraries
library('MixSim')
library('mclust')
library('tourr')
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Load in Flea data
data("flea")
## Extract various required variables
# Get dimensions
d <- ncol(flea) - 1
# Get species label
id <- as.integer(flea[, 7])
# Get the number of subpopulations
g <- max(id)
## Estimate mixture model parameters
# Proportions
Pi <- prop.table(tabulate(id))
# Mean vectors
Mu <- t(sapply(1:g, function(k){ colMeans(flea[id == k, -7]) }))
# Covariance matrices
Sigma <- sapply(1:g, function(k){ var(flea[id == k, -7]) })
# Set the dimension of the covariance array
dim(Sigma) <- c(d, d, g)
# True matrix
True_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
True_matrix[ii,] <- c(Pi[ii],Mu[ii,],Sigma[,,ii][upper.tri(Sigma[,,ii],diag = T)])
}
## Setup parameters
# Number of observations to simulation
NN <- 10^6
# Set the number repetitions
Rep <- 100
# Number of components to fit
Groups <- 3
# Set a random seed
set.seed(20190129)
# Construct a matrix to store the results
Results <- matrix(NA,100,9)
Timing <- matrix(NA,100,5)
ARI_results <- matrix(NA,100,9)
SE_results <- matrix(NA,100,9)
# Conduct simulation study
for (rr in 1:Rep) {
# Simulate data
Pre_data <- simdataset(NN,Pi,Mu,Sigma)
IDs <- Pre_data$id
Data <- Pre_data$X
# Randomly generate labels for initialization
Samp <- sample(1:Groups,NN,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run batch EM algorithm
Tick <- proc.time()[3]
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=10))
Timing[rr,1] <- proc.time()[3]-Tick
# Get likelihood value for batch EM algorithm
Results[rr,1] <- MC$loglik
# Get parameter estimates
MC_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
MC_matrix[ii,] <- c(MC$parameters$pro[ii],
t(MC$parameters$mean)[ii,],
MC$parameters$variance$sigma[,,ii][upper.tri(MC$parameters$variance$sigma[,,ii],diag = T)])
}
SE_results[rr,1] <- sum(apply((as.matrix(dist(rbind(MC_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI
ARI_results[rr,1] <- adjustedRandIndex(IDs,apply(MC$z,1,which.max))
# Run minibatch algorithm with batch size 10000
Tick <- proc.time()[3]
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/10000,Groups,0.6,1-10^-10,10000)
Results[rr,2] <- Sto$`reg_log-likelihood`
Results[rr,3] <- Sto$`pol_log-likelihood`
Timing[rr,2] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,2] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,2] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,3] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,3] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run minibatch algorithm with batch size 20000
Tick <- proc.time()[3]
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/20000,Groups,0.6,1-10^-10,20000)
Results[rr,4] <- Sto$`reg_log-likelihood`
Results[rr,5] <- Sto$`pol_log-likelihood`
Timing[rr,3] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,4] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,4] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,5] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,5] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run truncated minibatch algorithm with batch size 10000
Tick <- proc.time()[3]
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/10000,Groups,0.6,1-10^-10,10000,
1000,1000,1000)
Results[rr,6] <- Sto$`reg_log-likelihood`
Results[rr,7] <- Sto$`pol_log-likelihood`
Timing[rr,4] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,6] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,6] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,7] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,7] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run truncated minibatch algorithm with batch size 20000
Tick <- proc.time()[3]
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/20000,Groups,0.6,1-10^-10,20000,
1000,1000,1000)
Results[rr,8] <- Sto$`reg_log-likelihood`
Results[rr,9] <- Sto$`pol_log-likelihood`
Timing[rr,5] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,8] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,8] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,9] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,9] <- adjustedRandIndex(IDs,unlist(Cluster))
# Save and print outputs
save(Results,file='./Flea1.rdata')
print(c(rr,Results[rr,]))
save(Timing,file='./Flea1timing.rdata')
save(ARI_results,file='./Flea1ARI.rdata')
save(SE_results,file='./Flea1SE.rdata')
print(c(rr,Timing[rr,]))
print(c(rr,ARI_results[rr,]))
print(c(rr,SE_results[rr,]))
# Also sink results to a text file
sink('./Flea1.txt',append = TRUE)
cat(rr,Results[rr,],'\n')
sink()
sink('./Flea1timing.txt',append = TRUE)
cat(rr,Timing[rr,],'\n')
sink()
sink('./Flea1ARI.txt',append = TRUE)
cat(rr,ARI_results[rr,],'\n')
sink()
sink('./Flea1SE.txt',append = TRUE)
cat(rr,SE_results[rr,],'\n')
sink()
}
#################################################################
## flea2 ##
#################################################################
# Load libraries
library('MixSim')
library('mclust')
library('tourr')
# Load source files for minibatch EM algorithms
source('https://raw.githubusercontent.com/hiendn/StoEMMIX/master/Manuscript_files/20190128_main_functions.R')
# Set memory limit
Sys.setenv('R_MAX_VSIZE'=10000000000000)
# Load in Flea data
data("flea")
## Extract various required variables
# Get dimensions
d <- ncol(flea) - 1
# Get species label
id <- as.integer(flea[, 7])
# Get the number of subpopulations
g <- max(id)
## Estimate mixture model parameters
# Proportions
Pi <- prop.table(tabulate(id))
# Mean vectors
Mu <- t(sapply(1:g, function(k){ colMeans(flea[id == k, -7]) }))
# Covariance matrices
Sigma <- sapply(1:g, function(k){ var(flea[id == k, -7]) })
# Set the dimension of the covariance array
dim(Sigma) <- c(d, d, g)
# True matrix
True_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
True_matrix[ii,] <- c(Pi[ii],Mu[ii,],Sigma[,,ii][upper.tri(Sigma[,,ii],diag = T)])
}
## Setup parameters
# Number of observations to simulation
NN <- 10^7
# Set the number repetitions
Rep <- 100
# Number of components to fit
Groups <- 3
# Set a random seed
set.seed(20190129)
# Construct a matrix to store the results
Results <- matrix(NA,100,9)
Timing <- matrix(NA,100,5)
ARI_results <- matrix(NA,100,9)
SE_results <- matrix(NA,100,9)
# Conduct simulation study
for (rr in 1:Rep) {
# Simulate data
Pre_data <- simdataset(NN,Pi,Mu,Sigma)
IDs <- Pre_data$id
Data <- Pre_data$X
# Randomly generate labels for initialization
Samp <- sample(1:Groups,NN,replace = T)
# Initialize parameters
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
# Run batch EM algorithm
Tick <- proc.time()[3]
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=10))
Timing[rr,1] <- proc.time()[3]-Tick
# Get likelihood value for batch EM algorithm
Results[rr,1] <- MC$loglik
# Get parameter estimates
MC_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
MC_matrix[ii,] <- c(MC$parameters$pro[ii],
t(MC$parameters$mean)[ii,],
MC$parameters$variance$sigma[,,ii][upper.tri(MC$parameters$variance$sigma[,,ii],diag = T)])
}
SE_results[rr,1] <- sum(apply((as.matrix(dist(rbind(MC_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI
ARI_results[rr,1] <- adjustedRandIndex(IDs,apply(MC$z,1,which.max))
# Run minibatch algorithm with batch size 10000
Tick <- proc.time()[3]
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/100000,Groups,0.6,1-10^-10,100000)
Results[rr,2] <- Sto$`reg_log-likelihood`
Results[rr,3] <- Sto$`pol_log-likelihood`
Timing[rr,2] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,2] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,2] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,3] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,3] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run minibatch algorithm with batch size 20000
Tick <- proc.time()[3]
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/200000,Groups,0.6,1-10^-10,200000)
Results[rr,4] <- Sto$`reg_log-likelihood`
Results[rr,5] <- Sto$`pol_log-likelihood`
Timing[rr,3] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,4] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,4] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,5] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,5] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run truncated minibatch algorithm with batch size 10000
Tick <- proc.time()[3]
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/100000,Groups,0.6,1-10^-10,100000,
1000,1000,1000)
Results[rr,6] <- Sto$`reg_log-likelihood`
Results[rr,7] <- Sto$`pol_log-likelihood`
Timing[rr,4] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,6] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,6] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,7] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,7] <- adjustedRandIndex(IDs,unlist(Cluster))
# Run truncated minibatch algorithm with batch size 20000
Tick <- proc.time()[3]
Sto <- stoEMMIX_poltrunc(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/200000,Groups,0.6,1-10^-10,200000,
1000,1000,1000)
Results[rr,8] <- Sto$`reg_log-likelihood`
Results[rr,9] <- Sto$`pol_log-likelihood`
Timing[rr,5] <- proc.time()[3]-Tick
# Get parameter estimates (regular)
Reg_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Reg_matrix[ii,] <- c(Sto$reg_proportions[ii],
t(Sto$reg_means)[ii,],
Sto$reg_covariances[,,ii][upper.tri(Sto$reg_covariances[,,ii],diag = T)])
}
SE_results[rr,8] <- sum(apply((as.matrix(dist(rbind(Reg_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (reg)
Cluster <- GMM_arma_cluster(t(Data),Sto$reg_proportions,Sto$reg_means,Sto$reg_covariances)
ARI_results[rr,8] <- adjustedRandIndex(IDs,unlist(Cluster))
# Get parameter estimates (polyak)
Pol_matrix <- matrix(NA,g,1+d+d+choose(d,2))
for (ii in 1:g) {
Pol_matrix[ii,] <- c(Sto$pol_proportions[ii],
t(Sto$pol_means)[ii,],
Sto$pol_covariances[,,ii][upper.tri(Sto$pol_covariances[,,ii],diag = T)])
}
SE_results[rr,9] <- sum(apply((as.matrix(dist(rbind(Pol_matrix,True_matrix),diag=T,upper=T))[1:g,(g+1):(2*g)])^2,1,min))
# Get ARI (pol)
Cluster <- GMM_arma_cluster(t(Data),Sto$pol_proportions,Sto$pol_means,Sto$pol_covariances)
ARI_results[rr,9] <- adjustedRandIndex(IDs,unlist(Cluster))
# Save and print outputs
save(Results,file='./Flea2.rdata')
print(c(rr,Results[rr,]))
save(Timing,file='./Flea2timing.rdata')
save(ARI_results,file='./Flea2ARI.rdata')
save(SE_results,file='./Flea2SE.rdata')
print(c(rr,Timing[rr,]))
print(c(rr,ARI_results[rr,]))
print(c(rr,SE_results[rr,]))
# Also sink results to a text file
sink('./Flea2.txt',append = TRUE)
cat(rr,Results[rr,],'\n')
sink()
sink('./Flea2timing.txt',append = TRUE)
cat(rr,Timing[rr,],'\n')
sink()
sink('./Flea2ARI.txt',append = TRUE)
cat(rr,ARI_results[rr,],'\n')
sink()
sink('./Flea2SE.txt',append = TRUE)
cat(rr,SE_results[rr,],'\n')
sink()
}<file_sep>##################################################################
## Flea ##
##################################################################
library(tourr)
library(colorspace)
data(flea)
plot(flea[,1:6],col=rainbow_hcl(3)[flea[,7]],pch=as.numeric(flea[,7]))
##################################################################
## ELKI ##
##################################################################
library(colorspace)
library('MixSim')
library('mclust')
## Extract various required variables
# Get dimensions
d <- 2
# Get the number of subpopulations
g <- 3
## Estimate mixture model parameters
# Proportions
Pi <- c(5/10,3/10,2/10)
# Mean vectors
Mu <- matrix(NA,3,2)
Mu[1,] <- c(0.3,0.3)
Mu[2,] <- c(0.85,0.35)
Mu[3,] <- c(0.45,0.85)
# Covariance matrices
Sigma <- array(NA,c(2,2,3))
Sigma[,,1] <- diag(c(0.09,0.09)^2)
Sigma[,,2] <- diag(c(0.05,0.1)^2)
Sigma[,,3] <- diag(c(0.035,0.035)^2)
NN <- 1000
set.seed(20190129)
# Simulate data
Pre_data <- simdataset(NN,Pi,Mu,Sigma)
IDs <- Pre_data$id
Data <- Pre_data$X
plot(Data,col=rainbow_hcl(3)[IDs],xlab=expression(y[1]),ylab=expression(y[2]),lwd=2)
grid()
##################################################################
## Quincunx ##
##################################################################
# Load libraries
library('MixSim')
library('mclust')
library(colorspace)
## Extract various required variables
# Get dimensions
d <- 3
# Get the number of subpopulations
g <- 9
## Estimate mixture model parameters
# Proportions
Pi <- c(2,1,1,1,1,1,1,1,1)/10
# Mean vectors
Mu <- matrix(NA,9,3)
Mu[1,] <- c(0,0,0)
Mu[2,] <- c(-1,-1,-1)
Mu[3,] <- c(-1,-1,1)
Mu[4,] <- c(-1,1,-1)
Mu[5,] <- c(-1,1,1)
Mu[6,] <- c(1,-1,-1)
Mu[7,] <- c(1,-1,1)
Mu[8,] <- c(1,1,-1)
Mu[9,] <- c(1,1,1)
# Covariance matrices
Sigma <- array(NA,c(3,3,9))
for (ii in 1:9) {
Sigma[,,ii] <- diag(rep(1,3))/64
}
NN <- 1000
set.seed(20190129)
Pre_data <- simdataset(NN,Pi,Mu,Sigma)
IDs <- Pre_data$id
Data <- Pre_data$X
Data <- as.data.frame(Data)
names(Data) <- c('y1','y2','y3')
SAMPLE <- sample(1:nrow(Data))
plot(Data[SAMPLE,],col=rainbow_hcl(9)[IDs[SAMPLE]])
<file_sep>library(Rcpp)
library(RcppArmadillo)
library(inline)
stoEMMIXpol_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
mat data_a = as<mat>(data_r);
rowvec pi_hold = as<rowvec>(pi_r);
mat mean_hold = as<mat>(mean_r);
cube cov_hold = as<cube>(cov_r);
int maxit_a = as<int>(maxit_r);
double rate_a = as<double>(rate_r);
double base_a = as<double>(base_r);
int batch_a = as<int>(batch_r);
int groups_a = as<int>(groups_r);
// Memory control
rowvec pi_a = pi_hold;
mat mean_a = mean_hold;
cube cov_a = cov_hold;
// Get necessary dimensional elements
int obs_a = data_a.n_cols;
int dim_a = data_a.n_rows;
// Initialize the Gaussian mixture model object
gmm_full model;
model.reset(dim_a,groups_a);
// Set the model parameters
model.set_params(mean_a, cov_a, pi_a);
// Initialize the sufficient statistics
rowvec T1 = batch_a*pi_a;
mat T2 = zeros<mat>(dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = mean_a.col(gg)*pi_a(gg);
}
cube T3 = zeros<cube>(dim_a,dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T3.slice(gg) = T1(gg)*cov_a.slice(gg) + T2.col(gg)*trans(T2.col(gg))/T1(gg);
}
// Initialize gain
double gain = 1;
// Create polyak variables
rowvec pol_pi = pi_a;
mat pol_mean = mean_a;
cube pol_cov = cov_a;
// Initialize tau matrix
mat tau = zeros<mat>(groups_a,batch_a);
// Begin loop
for (int count = 0; count < maxit_a; count++) {
// Update gain function
gain = base_a*pow(count+1,-rate_a);
// Construct a sample from the data
IntegerVector seq_c = sample(obs_a,batch_a,0);
uvec seq_a = as<uvec>(seq_c) - 1;
mat subdata_a = data_a.cols(seq_a);
// Compute the tau scores for the subsample
for (int gg = 0; gg < groups_a; gg++) {
tau.row(gg) = pi_a(gg)*exp(model.log_p(subdata_a,gg));
}
for (int nn = 0; nn < batch_a; nn++) {
tau.col(nn) = tau.col(nn)/sum(tau.col(nn));
}
// Compute the new value of T1
T1 = (1-gain)*T1 + gain*trans(sum(tau,1));
// Compute the new value of T2
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = (1-gain)*T2.col(gg);
for (int nn = 0; nn < batch_a; nn++) {
T2.col(gg) = T2.col(gg) + gain*tau(gg,nn)*subdata_a.col(nn);
}
}
// Compute the new value of T3
for (int gg = 0; gg < groups_a; gg++) {
T3.slice(gg) = (1-gain)*T3.slice(gg);
for (int nn = 0; nn < batch_a; nn++) {
T3.slice(gg) = T3.slice(gg) + gain*tau(gg,nn)*subdata_a.col(nn)*trans(subdata_a.col(nn));
}
}
// Convert back to regular parameters
pi_a = T1/batch_a;
for (int gg = 0; gg < groups_a; gg++) {
mean_a.col(gg) = T2.col(gg)/T1(gg);
cov_a.slice(gg) = (T3.slice(gg)-T2.col(gg)*trans(T2.col(gg))/T1(gg))/T1(gg);
}
// Compute polyak averages
pol_pi = pol_pi*count/(count+1) + pi_a/(count+1);
pol_mean = pol_mean*count/(count+1) + mean_a/(count+1);
pol_cov = pol_cov*count/(count+1) + cov_a/(count+1);
// Reset the model parameters
model.set_hefts(pi_a);
model.set_means(mean_a);
model.set_fcovs(cov_a);
}
// Initialize the Gaussian mixture model object with polyak components
gmm_full model_pol;
model_pol.reset(dim_a,groups_a);
// Set to polyak model parameters
model_pol.set_hefts(pol_pi);
model_pol.set_means(pol_mean);
model_pol.set_fcovs(pol_cov);
return Rcpp::List::create(
Rcpp::Named("reg_log-likelihood")=model.sum_log_p(data_a),
Rcpp::Named("reg_proportions")=model.hefts,
Rcpp::Named("reg_means")=model.means,
Rcpp::Named("reg_covariances")=model.fcovs,
Rcpp::Named("pol_log-likelihood")=model_pol.sum_log_p(data_a),
Rcpp::Named("pol_proportions")=model_pol.hefts,
Rcpp::Named("pol_means")=model_pol.means,
Rcpp::Named("pol_covariances")=model_pol.fcovs);
'
stoEMMIX_pol <- cxxfunction(signature(data_r='numeric',
pi_r='numeric',
mean_r='numeric',
cov_r='numeric',
maxit_r='integer',
groups_r='integer',
rate_r='numeric',
base_r='numeric',
batch_r='integer'),
stoEMMIXpol_src, plugin = 'RcppArmadillo')
# Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
# msEst$parameters$variance$sigma,
# 1000,5,0.6,1,1000)
<file_sep>library(Rcpp)
library(RcppArmadillo)
library(inline)
shuffle_src <- '
using namespace arma;
using namespace Rcpp;
int num_a = as<int>(num_r);
IntegerVector seq_c = seq_len(num_a);
IntegerVector seq_a = sample(num_a,num_a,0);
return Rcpp::List::create(
Rcpp::Named("sequence") = seq_a);
'
Shuffler <- cxxfunction(signature(num_r='numeric'),
shuffle_src,
plugin = 'RcppArmadillo')
matrix_shuffle_src <- '
using namespace arma;
using namespace Rcpp;
int p_a = as<int>(p_r);
int up_a = as<int>(up_r);
mat mat_a = as<mat>(mat_r);
IntegerVector seq_c = seq_len(p_a);
IntegerVector seq_a = sample(seq_c,up_a,0);
uvec seq_arma = as<uvec>(seq_a) - 1;
mat submat = mat_a.cols(seq_arma);
return Rcpp::List::create(
Rcpp::Named("sequence") = seq_a,
Rcpp::Named("submat") = submat);
'
Matrix_Shuffler <- cxxfunction(signature(p_r='numeric',
up_r='numeric',
mat_r='numeric'),
matrix_shuffle_src,
plugin = 'RcppArmadillo')<file_sep>softkmeanspol_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
mat data_a = as<mat>(data_r);
mat mean_hold = as<mat>(mean_r);
int maxit_a = as<int>(maxit_r);
double rate_a = as<double>(rate_r);
double base_a = as<double>(base_r);
int batch_a = as<int>(batch_r);
int groups_a = as<int>(groups_r);
// Get necessary dimensional elements
int obs_a = data_a.n_cols;
int dim_a = data_a.n_rows;
// Memory control
rowvec pi_a = ones<rowvec>(groups_a);
pi_a = pi_a/groups_a;
mat mean_a = mean_hold;
cube cov_a = zeros<cube>(dim_a,dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
cov_a.slice(gg) = eye<mat>(dim_a,dim_a);
}
// Initialize the Gaussian mixture model object
gmm_full model;
model.reset(dim_a,groups_a);
// Set the model parameters
model.set_params(mean_a, cov_a, pi_a);
// Initialize the sufficient statistics
rowvec T1 = batch_a*pi_a;
mat T2 = zeros<mat>(dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = mean_a.col(gg)*pi_a(gg);
}
// Initialize gain
double gain = 1;
// Create polyak variables
rowvec pol_pi = pi_a;
mat pol_mean = mean_a;
cube pol_cov = cov_a;
// Initialize tau matrix
mat tau = zeros<mat>(groups_a,batch_a);
// Begin loop
for (int count = 0; count < maxit_a; count++) {
// Update gain function
gain = base_a*pow(count+1,-rate_a);
// Construct a sample from the data
IntegerVector seq_c = sample(obs_a,batch_a,0);
uvec seq_a = as<uvec>(seq_c) - 1;
mat subdata_a = data_a.cols(seq_a);
// Compute the tau scores for the subsample
for (int gg = 0; gg < groups_a; gg++) {
tau.row(gg) = pi_a(gg)*exp(model.log_p(subdata_a,gg));
}
for (int nn = 0; nn < batch_a; nn++) {
tau.col(nn) = tau.col(nn)/sum(tau.col(nn));
}
// Compute the new value of T1
T1 = (1-gain)*T1 + gain*trans(sum(tau,1));
// Compute the new value of T2
for (int gg = 0; gg < groups_a; gg++) {
T2.col(gg) = (1-gain)*T2.col(gg);
for (int nn = 0; nn < batch_a; nn++) {
T2.col(gg) = T2.col(gg) + gain*tau(gg,nn)*subdata_a.col(nn);
}
}
// Convert back to regular parameters
for (int gg = 0; gg < groups_a; gg++) {
mean_a.col(gg) = T2.col(gg)/T1(gg);
}
// Compute polyak averages
pol_mean = pol_mean*count/(count+1) + mean_a/(count+1);
// Reset the model parameters
model.set_means(mean_a);
}
// Initialize the Gaussian mixture model object with polyak components
gmm_full model_pol;
model_pol.reset(dim_a,groups_a);
// Set to polyak model parameters
model_pol.set_hefts(pol_pi);
model_pol.set_means(pol_mean);
model_pol.set_fcovs(pol_cov);
// Outputs
return Rcpp::List::create(
Rcpp::Named("reg_means")=model.means,
Rcpp::Named("pol_means")=model_pol.means);
'
softkmeans_pol <- cxxfunction(signature(data_r='numeric',
mean_r='numeric',
maxit_r='integer',
groups_r='integer',
rate_r='numeric',
base_r='numeric',
batch_r='integer'),
softkmeanspol_src, plugin = 'RcppArmadillo')
softkmean_clust_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
mat data_a = as<mat>(data_r);
mat mean_a = as<mat>(mean_r);
// Get necessary dimensional elements
int dim_a = data_a.n_rows;
int groups_a = mean_a.n_cols;
// Make pi and cov
rowvec pi_a = ones<rowvec>(groups_a);
pi_a = pi_a/groups_a;
cube cov_a = zeros<cube>(dim_a,dim_a,groups_a);
for (int gg = 0; gg < groups_a; gg++) {
cov_a.slice(gg) = eye<mat>(dim_a,dim_a);
}
// Initialize the Gaussian mixture model object
gmm_full model;
model.reset(dim_a,groups_a);
// Set the model parameters
model.set_params(mean_a, cov_a, pi_a);
// Outputs
return Rcpp::List::create(
Rcpp::Named("allocations")=model.assign(data_a, eucl_dist));
'
softkmeans_clust <- cxxfunction(signature(data_r='numeric',
mean_r='numeric'),
softkmean_clust_src, plugin = 'RcppArmadillo')
softkmean_ss_src <- '
using namespace arma;
using namespace Rcpp;
// Load all of the function inputs
mat data_a = as<mat>(data_r);
mat mean_a = as<mat>(mean_r);
uvec alloc_a = as<uvec>(alloc_r);
// Get necessary dimensional elements
int obs_a = data_a.n_cols;
int groups_a = mean_a.n_cols;
// Initialize an SS vector;
vec ss_a = zeros<vec>(groups_a);
// Do the computation loop
for (int nn = 0; nn < obs_a; nn++) {
for (int gg = 0; gg < groups_a; gg++) {
if (alloc_a(nn) == gg) {
ss_a(gg) = ss_a(gg) + pow(norm(data_a.col(nn)-mean_a.col(gg)),2);
}
}
}
// Outputs
return Rcpp::List::create(
Rcpp::Named("Within_SS")=ss_a);
'
softkmeans_ss <- cxxfunction(signature(data_r='numeric',
mean_r='numeric',
alloc_r='integer'),
softkmean_ss_src, plugin = 'RcppArmadillo')
Soft <- softkmeans_pol(t(Data), msEst$parameters$mean,
1000,5,0.6,1,1000)
Clust <- softkmeans_clust(t(Data),Soft$reg_means)
SS_calc <- softkmeans_ss(t(Data),Soft$reg_means,Clust$allocations)
<file_sep>#################################################################
## Wreath1 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Wreath1R1.rdata')
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Wreath1.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Wreath1 Results timing ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Wreath1timing.rdata')
# Rename the columns of the data
colnames(Timing) <- c('EM','N=n/10','N=n/5','N=n/10,T','N=n/5,T')
# Melt the data
DF <- melt(Timing)
# Open a plot device
pdf(file='./Wreath1timing.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'time (s)',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Timing)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Wreath1 Results SE ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Wreath1SE.rdata')
# Rename the columns of the data
colnames(SE_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(SE_results)
# Open a plot device
pdf(file='./Wreath1SE.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'SE',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(SE_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Wreath1 Results ARI ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Wreath1ARI.rdata')
# Rename the columns of the data
colnames(ARI_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(ARI_results)
# Open a plot device
pdf(file='./Wreath1ARI.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'ARI',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(ARI_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Wreath2 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Wreath2R1.rdata')
# Rename the columns of the data
colnames(Results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(Results)
# Open a plot device
pdf(file='./Wreath2.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'log-likelihood',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Wreath2 Results timing ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Wreath2timing.rdata')
# Rename the columns of the data
colnames(Timing) <- c('EM','N=n/10','N=n/5','N=n/10,T','N=n/5,T')
# Melt the data
DF <- melt(Timing)
# Open a plot device
pdf(file='./Wreath2timing.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'time (s)',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(Timing)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Wreath2 Results SE ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Wreath2SE.rdata')
# Rename the columns of the data
colnames(SE_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(SE_results)
# Open a plot device
pdf(file='./Wreath2SE.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'SE',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(SE_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
#################################################################
## Wreath2 Results ARI ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Wreath2ARI.rdata')
# Rename the columns of the data
colnames(ARI_results) <- c('EM','N=n/10','N=n/10,P','N=n/5','N=n/5,P','N=n/10,T','N=n/10,PT','N=n/5,T','N=n/5,PT')
# Melt the data
DF <- melt(ARI_results)
# Open a plot device
pdf(file='./Wreath2ARI.pdf',width=12,height=4,paper='special')
# Construct boxplot
boxplot(value ~ Var2, data = DF, lwd = 1, ylab = 'ARI',range=0)
# Insert a grid
grid()
# Plot points over boxplot
stripchart(value ~ Var2, vertical = TRUE, data = DF,
method = "jitter", add = TRUE, pch = 20,
col = rainbow_hcl(dim(ARI_results)[2]+1,alpha=0.5)[DF$Var1])
# Close plot device
dev.off()
<file_sep>### Load libraries
library(mvnfast)
### Load Iris Data
Data <- iris
Data <- Data[,-5]
Data <- as.matrix(Data)
### Gain function
Gain <- function(COUNT) {
0.1^COUNT
}
### Initialization parameters
Groups <- 3
Dim_vec <- dim(Data)
MAX_num <- 10000
### Initialize Pi
Pi_vec <- rep(1/Groups,Groups)
Pi_vec_new <- Pi_vec
### Initialize Mu
Kmeans <- kmeans(Data,Groups)
Mean_list <- list()
for (ii in 1:Groups) {
Mean_list[[ii]] <- Kmeans$centers[ii,]
}
Mean_list_new <- Mean_list
### Initialize Covariance
Cov_list <- list()
for (ii in 1:Groups) {
Cov_list[[ii]] <- cov(Data)
}
Cov_list_new <- Cov_list
### Algorithm
COUNT <- 0
while(COUNT<=MAX_num) {
COUNT <- COUNT + 1
X_vec <- Data[sample(1),]
Tau_vec <- c()
for (ii in 1:Groups) {
Tau_vec[ii] <- Pi_vec[ii]*dmvnorm(X_vec,
Mean_list[[ii]],
Cov_list[[ii]])
}
Tau_vec <- Tau_vec/sum(Tau_vec)
Pi_vec_new <- (1-Gain(COUNT))*Pi_vec+Gain(COUNT)*Tau_vec
for (ii in 1:Groups) {
Mean_list_new[[ii]] <- (1-Gain(COUNT))*Pi_vec[ii]*Mean_list[[ii]] +
Gain(COUNT)*Tau_vec[ii]*X_vec
Mean_list_new[[ii]] <- Mean_list_new[[ii]]/Pi_vec_new[ii]
}
for (ii in 1:Groups) {
Cov_list_new[[ii]] <- (1-Gain(COUNT))*Pi_vec[ii]*(Cov_list[[ii]]+t(t(Mean_list[[ii]]))%*%t(Mean_list[[ii]]))+
Gain(COUNT)*Tau_vec[ii]*t(t(X_vec))%*%t(X_vec)
Cov_list_new[[ii]] <- Cov_list_new[[ii]]/Pi_vec_new[ii] - t(t(Mean_list_new[[ii]]))%*%t(Mean_list_new[[ii]])
}
Pi_vec <- Pi_vec_new
Mean_list <- Mean_list_new
Cov_list <- Cov_list_new
print(Pi_vec)
print(Mean_list)
print(Cov_list)
}
<file_sep>library(MixSim)
data("iris", package = "datasets")
p <- ncol(iris) - 1
id <- as.integer(iris[, 5])
K <- max(id)
# estimate mixture parameters
Pi <- prop.table(tabulate(id))
Mu <- t(sapply(1:K, function(k){ colMeans(iris[id == k, -5]) }))
S <- sapply(1:K, function(k){ var(iris[id == k, -5]) })
dim(S) <- c(p, p, K)
NN <- 1000000
Groups <- 3
Results <- matrix(NA,20,5)
for (ii in 1:20) {
Data <- simdataset(NN,Pi,Mu,S)$X
Samp <- sample(1:Groups,NN,replace = T)
msEst <- mstep(modelName = "VVV", data = Data, z = unmap(Samp))
MC <- em('VVV', data=Data, parameters = msEst$parameters, control = emControl(eps=0,tol=0,itmax=c(10,10)))
Results[ii,1] <- MC$loglik
print(Results)
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/1000,Groups,0.6,1,1000)
Results[ii,2] <- Sto$`reg_log-likelihood`
Results[ii,3] <- Sto$`pol_log-likelihood`
print(Results)
Sto <- stoEMMIX_pol(t(Data), msEst$parameters$pro, msEst$parameters$mean,
msEst$parameters$variance$sigma,
10*NN/2000,Groups,0.6,1,2000)
Results[ii,4] <- Sto$`reg_log-likelihood`
Results[ii,5] <- Sto$`pol_log-likelihood`
print(Results)
}
NN <- 1000000
Groups <- 3
Results <- matrix(NA,20,7)
for (ii in 1:20) {
rm(.Random.seed)
Data <- simdataset(NN,Pi,Mu,S)$X
Rand <- round(100000*runif(1))
set.seed(Rand)
# Samp <- Data[sample.int(NN,Groups),-1]
KK <- kmeans(Data,centers=Groups,iter.max=1,nstart=1)
Samp <- KK$centers
set.seed(Rand)
KK <- kmeans(Data,centers=Groups,iter.max=10,nstart=1)
Results[ii,1] <- KK$tot.withinss
print(Results)
Sto <- softkmeans_pol(t(Data),t(Samp),
10*NN/1000,Groups,0.6,1,1000)
Results[ii,2] <- sum(softkmeans_ss(t(Data),Sto$reg_means,softkmeans_clust(t(Data),Sto$reg_means)$allocations)$Within_SS)
Results[ii,3] <- sum(softkmeans_ss(t(Data),Sto$pol_means,softkmeans_clust(t(Data),Sto$pol_means)$allocations)$Within_SS)
print(Results)
Sto <- softkmeans_pol(t(Data),t(Samp),
10*NN/2000,Groups,0.6,1,2000)
Results[ii,4] <- sum(softkmeans_ss(t(Data),Sto$reg_means,softkmeans_clust(t(Data),Sto$reg_means)$allocations)$Within_SS)
Results[ii,5] <- sum(softkmeans_ss(t(Data),Sto$pol_means,softkmeans_clust(t(Data),Sto$pol_means)$allocations)$Within_SS)
print(Results)
# set.seed(Rand)
# MB <- MiniBatchKmeans(Data,clusters=Groups,batch_size = 1000,num_init = 1,max_iters = 10*NN/1000, early_stop_iter = 10*NN/1000,tol=1e-16,
# CENTROIDS = KK$centers)
# Results[ii,6] <- sum(softkmeans_ss(t(Data),t(MB$centroids),predict_KMeans(Data,MB$centroids)-1)$Within_SS)
# set.seed(Rand)
# MB <- MiniBatchKmeans(Data,clusters=Groups,batch_size = 2000,num_init = 1,max_iters = 10*NN/2000, early_stop_iter = 10*NN/2000,tol=1e-16,
# CENTROIDS = KK$centers)
# Results[ii,7] <- sum(softkmeans_ss(t(Data),t(MB$centroids),predict_KMeans(Data,MB$centroids)-1)$Within_SS)
# print(Results)
}
| b980d125496638de73d080c592bd3d5f36aa6d9b | [
"R"
] | 31 | R | hiendn/StoEMMIX | 565485cce96016997fd13a845547ae55860a4754 | 6f91945fc4c88015432dfa154106d118ee5e7b4b |
refs/heads/main | <repo_name>19674/19674<file_sep>/51.py
print(742 + 648)
| 0a258111665e60c081391c9057c88d1625535061 | [
"Python"
] | 1 | Python | 19674/19674 | 1d7b7fcf095703f389d7f045585c9f8926141e64 | f9ede7b8671134cd14b7d9e58da57ca4621e9ef0 |
refs/heads/master | <repo_name>zerobalance/react-workshop-studentdemo<file_sep>/react-demo-app-router/src/routes.jsx
// routes.jsx
import React from 'react'
import App from './App'
import {
Route,
Link,
Switch,
Redirect
} from 'react-router-dom';
import Home from './screens/Home';
import About from './screens/About';
import Messages from './screens/Messages';
const Routes = () => (
<App>
<Switch>
<Route exact path="/" component={Home} />
<Route path="/messages" component={Messages} />
<Route path="/about" component={About} />
<Redirect to="/" />
</Switch>
</App>
);
export default Routes; | e25d6dde1d4de186e4458703c98a57e8ef6b5a54 | [
"JavaScript"
] | 1 | JavaScript | zerobalance/react-workshop-studentdemo | b6f34f85c7cab819fb24c8a91099f9bb9b281914 | 039b69f613183996ee91a76105da2ac24a653743 |
refs/heads/master | <repo_name>nshattuck20/NickShattuckInventoryManagementSystem<file_sep>/src/View_Controller/AddPartScreenController.java
package View_Controller;
public class AddPartScreenController {
}
<file_sep>/src/Model/Inventory.java
package Model;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
public class Inventory {
private static ObservableList<Product> productInventory = FXCollections.observableArrayList();
private static ObservableList<Part> partInventory = FXCollections.observableArrayList();
// private static int partIDCount = 0;
// private static int productIDCount = 0;
//Default constructor
public Inventory(){
}
public static ObservableList<Product> getProductInventory() {
return productInventory;
}
// public void setAssociatedParts(ObservableList<Part> P){
// productInventory.addAll((Product) P);
// }
public static void setProductInventory(ObservableList<Product> productInventory) {
Inventory.productInventory = productInventory;
}
public static ObservableList<Part> getPartInventory() {
return partInventory;
}
public static void setPartInventory(ObservableList<Part> partInventory) {
Inventory.partInventory = partInventory;
}
// public static int getPartIDCount() {
// return partIDCount;
// }
//
// public static void setPartIDCount(int partIDCount) {
// Inventory.partIDCount = partIDCount;
// }
// public static int getProductIDCount() {
// return productIDCount;
// }
//
// public static void setProductIDCount(int productIDCount) {
// Inventory.productIDCount = productIDCount;
// }
}
<file_sep>/src/View_Controller/MainScreenController.java
package View_Controller;
import Model.*;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.stage.Stage;
import javax.swing.*;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
public class MainScreenController implements Initializable {
@FXML
private Button partSearchButton;
@FXML
private TextField SearchPartText;
@FXML
private TableView<Part> partsTable;
@FXML
private TableColumn<Part, Integer> partIDColumn;
@FXML
private TableColumn<Part, String> partNameColumn;
@FXML
private TableColumn<Part, Integer> partInvColumn;
@FXML
private TableColumn<Part, Double> partPriceColumn;
@FXML
private Button modifyPartButton;
@FXML
private Button deletePartButton;
@FXML
private Button exitButton;
@FXML
private Button searchProductButton;
@FXML
private TextField productSearchText;
@FXML
private TableView<Product> productTable;
@FXML
private TableColumn<Product, Integer> productIDColumn;
@FXML
private TableColumn<Product, String> productNameColumn;
@FXML
private TableColumn<Product, Integer> productInvColumn;
@FXML
private TableColumn<Product, Double> productPriceColumn;
@FXML
private Button addProdButton;
@FXML
private Button modifyProdButton;
@FXML
private Button deleteProdButton;
@FXML
private MenuBar menuBar;
private Part modifyPart;
/*
This method will allow the user to click a cell and
update the name, id, price, and inventory level of the selected
part.
*/
public void changePartNameCellEvent(TableColumn.CellEditEvent editedCell){
modifyPart = partsTable.getSelectionModel().getSelectedItem();
modifyPart.setPartName(editedCell.getNewValue().toString());
}
// @FXML
// public void openModifyPartScreen(ActionEvent event) throws IOException {
//// modifyPart = partsTable.getSelectionModel().getSelectedItem();
//// modifyPart.setPartName(editedCell.getNewValue().toString());
// Parent modifyPartScreenParent = FXMLLoader.load(getClass().getResource("ModifyPart.fxml"));
// Scene modifyPartScreen = new Scene(modifyPartScreenParent);
// Stage modifyPartStage = (Stage) ((Node) event.getSource()).getScene().getWindow();
// modifyPartStage.setScene(modifyPartScreen);
// modifyPartStage.show();
//
// }
@FXML
void openAddPartScreen(ActionEvent event) throws IOException {
Parent addPartParent = FXMLLoader.load(getClass().getResource("AddPartScreen.fxml"));
Scene addPartScene = new Scene(addPartParent);
Stage addPartStage = (Stage) ((Node) event.getSource()).getScene().getWindow();
addPartStage.setScene(addPartScene);
addPartStage.show();
}
@FXML
void openAddProductScreen(ActionEvent event) throws IOException {
Parent addProductParent = FXMLLoader.load(getClass().getResource("AddProduct.fxml"));
Scene addProductScene = new Scene(addProductParent);
Stage addPartStage = (Stage) ((Node) event.getSource()).getScene().getWindow();
addPartStage.setScene(addProductScene);
addPartStage.show();
}
@FXML
void openModifyProductScreen(ActionEvent event) throws IOException {
Parent modifyProductParent = FXMLLoader.load(getClass().getResource("ModifyProduct.fxml"));
Scene modifyProductScene = new Scene(modifyProductParent);
Stage modifyProductStage = (Stage) ((Node) event.getSource()).getScene().getWindow();
modifyProductStage.setScene(modifyProductScene);
modifyProductStage.show();
}
//User clicks on modify buttons
@FXML
void openModifyPartScreen(ActionEvent event) throws IOException {
Parent modifyPartParent = FXMLLoader.load(getClass().getResource("ModifyPart.fxml"));
Scene modifyPartScene = new Scene(modifyPartParent);
Stage modifyPartStage = (Stage) ((Node) event.getSource()).getScene().getWindow();
modifyPartStage.setScene(modifyPartScene);
modifyPartStage.show();
}
@Override
public void initialize(URL url, ResourceBundle rb) {
//Set the columns for the parts table
partIDColumn.setCellValueFactory(cellData -> cellData.getValue().partIDProperty().asObject());
partNameColumn.setCellValueFactory(cellData -> cellData.getValue().partNameProperty());
partPriceColumn.setCellValueFactory(cellData -> cellData.getValue().priceProperty().asObject());
partInvColumn.setCellValueFactory(cellData -> cellData.getValue().partInvProperty().asObject());
//Set the columns for the products table
productIDColumn.setCellValueFactory(cellData -> cellData.getValue().productIDProperty().asObject());
productNameColumn.setCellValueFactory(cellData -> cellData.getValue().productNameProperty());
productPriceColumn.setCellValueFactory(cellData -> cellData.getValue().productPriceProperty().asObject());
productInvColumn.setCellValueFactory(cellData -> cellData.getValue().productInvProperty().asObject());
//load some dummy data
partsTable.setItems(updateTableData());
productTable.setItems(updateProductsTable());
// updateProductsTableView();
}
/*
This method loads some test data
to the products table.
*/
public ObservableList<Part> updateTableData() {
ObservableList<Part> parts = FXCollections.observableArrayList();
InHouse part1 = new InHouse(1, "Part 1", 1.99, 10, 1, 20, 0);
InHouse part2 = new InHouse(1, "Part 2", 4.99, 5, 1, 20, 0);
Outsourced os1 = new Outsourced(1, "Outsourced 3", 3.99, 8, 1, 20, 1);
Product computer = new Product();
computer.setAllVariables(1, "Computer", 299.99, 20, 1, 3);
//Inventory.setProductInventory(part1,part2);
//Add the inhouse and outsourced parts to our list.
parts.add(part1);
parts.add(part2);
parts.add(os1);
return parts;
}
/*
Load some dummy data to make sure the product table populates correctly.
*/
public ObservableList<Product> updateProductsTable() {
ObservableList<Product> products = FXCollections.observableArrayList();
Product gameConsole = new Product();
gameConsole.setAllVariables(1, "Nintendo Switch", 299.99, 20, 1, 3);
products.add(gameConsole);
return products;
}
}
<file_sep>/src/Model/Part.java
package Model;
import javafx.beans.property.*;
public abstract class Part {
private IntegerProperty partID;
private StringProperty partName;
private DoubleProperty price;
private IntegerProperty partInv;
private IntegerProperty min;
private IntegerProperty max;
public Part() {
partID = new SimpleIntegerProperty();
partName = new SimpleStringProperty();
price = new SimpleDoubleProperty();
partInv =new SimpleIntegerProperty();
min = new SimpleIntegerProperty();
max = new SimpleIntegerProperty();
// machineID = new SimpleIntegerProperty(0);
}
public int getPartID() {
return partID.get();
}
public IntegerProperty partIDProperty() {
return partID;
}
public void setPartID(int partID) {
this.partID.set(partID);
}
public String getPartName() {
return this.partName.get();
}
public StringProperty partNameProperty() {
return partName;
}
public void setPartName(String partName) {
this.partName.set(partName);
}
public double getPrice() {
return this.price.get();
}
public DoubleProperty priceProperty() {
return price;
}
//Added a simple Double wrapper so price can be edited
public void setPrice(double price) {
this.price.set(price);
}
public int getPartInv() {
return partInv.get();
}
public IntegerProperty partInvProperty() {
return partInv;
}
public void setPartInv(int partInv) {
this.partInv.set(partInv);
}
public int getMin() {
return min.get();
}
public IntegerProperty minProperty() {
return min;
}
/*Added simple integer wrapper to enable editing
when user clicks modify button.
*/
public void setMin(int min) {
this.min.set(min);
}
public int getMax() {
return max.get();
}
public IntegerProperty maxProperty() {
return max;
}
/*Added simple integer wrapper to enable editing
when user clicks modify button.
*/
public void setMax(int max) {
this.max.set(max);
}
//// Constructor
// public Part(int partId, String partName, double price, int inStock, int min, int max) {
// this.partID = new SimpleIntegerProperty(partId);
// this.partName = new SimpleStringProperty(partName);
// this.price = new SimpleDoubleProperty(price);
// this.partInv = new SimpleIntegerProperty(inStock);
// this.min = new SimpleIntegerProperty(min);
// this.max = new SimpleIntegerProperty(max);
// }
//// Validator to make sure that the part added is a valid entry
public static String isPartValid(String name, int min, int max, int inv, double price, String errorMessage){
if (name == null) {
errorMessage = errorMessage + "The name field is required. ";
}
if (inv < 1) {
errorMessage = errorMessage + "The inventory count cannot be less than 1. ";
}
if (price <= 0) {
errorMessage = errorMessage + "The price must be greater than $0. ";
}
if (max < min) {
errorMessage = errorMessage + "The Max must be greater than or equal to the Min. ";
}
if (inv < min || inv > max) {
errorMessage = errorMessage + "The inventory must be between the Min and Max values. ";
}
return errorMessage;
}
}
| c477217dcf3f448f047ebced561a9e490f28ccbe | [
"Java"
] | 4 | Java | nshattuck20/NickShattuckInventoryManagementSystem | d28fce88c4d57c7cbbfd6f1f5b943c8435bb6c55 | accb07f06e437d705bd44cd95443a7a9fd138b9a |
refs/heads/main | <file_sep><?php
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
if(isset($_POST["newTheme"])){
$theme = $_POST["newTheme"];
CreateTable($theme,$conn);
header("Location: ../ACCOUNT/createTheme.php?msg=ThemeAdded");
exit();
}else{
header("Location: ../ACCOUNT/createTheme.php?msg=ThemeError");
exit();
}
<file_sep><?php
session_start();
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
if(isset($_POST["delete-submit"])){
$id = $_SESSION["userId"];
DeleteUser($id,$conn);
}
mysqli_close($conn);<file_sep><?php
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
if(isset($_POST["adding-quest"])){
$theme = $_POST["theme"];
$theme = mysqli_escape_string($conn,$theme);
$question = $_POST["question"];
$question = mysqli_escape_string($conn,$question);
$answer = $_POST["reponse"];
$answer = mysqli_escape_string($conn,$answer);
$type = $_POST["type"];
$type = mysqli_escape_string($conn,$type);
$prop1 = $_POST["prop1"];
$prop1 = mysqli_escape_string($conn,$prop1);
$prop2 = $_POST["prop2"];
$prop2 = mysqli_escape_string($conn,$prop2);
$prop3 = $_POST["prop3"];
$prop3 = mysqli_escape_string($conn,$prop3);
$level = $_POST["level"];
$level = mysqli_escape_string($conn,$level);
$res = CountQuest($theme,$conn);
$tab = mysqli_fetch_assoc($res);
$numero = $tab["COUNT(*)"];
$numero++;
InsertQuest($theme,$numero,$question,$answer,$level,$type,$conn,$res);
InsertPropQcm($type,$numero,$prop1,$prop2,$prop3,$theme,$conn);
mysqli_close($conn);
header("Location: ../ACCOUNT/addQuest.php?update=SUCCESS");
exit();
}else {
header("Location: ../home.php");
exit();
}<file_sep><?php require "../VIEWS/fonctionAffichage.php"; ?>
<!DOCTYPE html>
<html>
<head>
<title>RESET PASSWORD</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="reset-password.css">
</head>
<body>
<div class="FORM">
<div class="FORM-text">
<header><a href="../home.php">Game Card</a></header>
<h1>Reset Your Password</h1>
<?php afficheFormResetPassword(); ?>
</div>
</div>
</body>
</html>
<file_sep><?php
require "../VIEWS/fonctionAffichage.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="addQuest.css">
<title>ADD QUESTIONS</title>
</head>
<body>
<div class="FORM">
<div class="form-text">
<header><a href="../home.php">Game Card</a></header>
<p style="color:orange;font-size:15px;">
</p>
<h1>ADD CUSTOM QUESTIONS</h1>
<?php
if(isset($_GET["update"])){
msgAddQuest($_GET["update"]);
}
afficheFormAddQuest();
?>
</div>
</div>
</body>
</html>
<file_sep><?php
function AuxExplode($ordreActuel){
$ordreActuelexp=explode("/",$ordreActuel);
return $ordreActuelexp;
}
function AuxScoreVote($nbrVisites,$nbrVotes) {
$score = ($nbrVotes/$nbrVisites)*100;
return $score;
}
function AuxClassement($res) {
while($ligne= mysqli_fetch_assoc($res)){
if($ligne["nbrVotes"]/$ligne["nbrVisites"]*100 > 80){
afficheClassementSup($ligne["theme"],floor($ligne["nbrVotes"]/$ligne["nbrVisites"]*100),$ligne["best"],$ligne["calcul"]);
}else{
afficheClassementInf($ligne["theme"],floor($ligne["nbrVotes"]/$ligne["nbrVisites"]*100),$ligne["best"],$ligne["calcul"]);
}
}
}
function DataCheck($email,$username,$password,$password2) {
if(!filter_var($email, FILTER_VALIDATE_EMAIL) && !preg_match("/^[a-zA-Z0-9]*$/",$username)){
header("Location: ../ACCOUNT/signup.php?error=invalidusername&email");
exit();
}else if(!filter_var($email, FILTER_VALIDATE_EMAIL)){
header("Location: ../ACCOUNT/signup.php?error=invalidemail");
exit();
}else if($password!==$<PASSWORD> && !preg_match("/^[a-zA-Z0-9]*$/",$username)){
header("Location: ../ACCOUNT/signup.php?error=PWDdontmatchAndUsername");
exit();
}else if(!preg_match("/^[a-zA-Z0-9]*$/",$username)){
header("Location: ../ACCOUNT/signup.php?error=invalidusername");
exit();
}else if(!pwdValide($password)){
header("Location: ../ACCOUNT/signup.php?error=PWDERROR");
exit();
}else if($password!==$password2){
header("Location: ../ACCOUNT/signup.php?error=PWDdontmatch");
exit();
}
return true;
}
function DataCheckAccount($name,$username,$id,$conn) {
if(empty($name) && empty($username)){
header("Location: ../ACCOUNT/account.php?error=emptyfields");
exit();
}else if(!preg_match("/^[a-zA-Z0-9]*$/",$username)){
header("Location: ../ACCOUNT/account.php?error=invalidusername");
exit();
}else{
if(empty($name)){
$res = SelectLogin($username,$conn);
UpdateUsername($username,$id,$conn,$res);
}else if(empty($username)){
UpdateName($name,$id,$conn,$res);
}else{
UpdateBoth($username,$name,$id,$conn,$res);
}
}
}
function CreateTable($theme,$conn){
CreateTableReq($conn,$theme);
UpdateVisibiliteCreate($conn,$theme);
}
<file_sep><?php
require "../VIEWS/fonctionAffichage.php";
?>
<!DOCTYPE html>
<head>
<title>LOGIN</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="login.css">
</head>
<body>
<div class="FORM">
<div class="form-text">
<header><a href="../home.php">Game Card</a></header>
<h1>Login</h1>
<?php
if(isset($_GET["error"])){
msgLogin($_GET["error"]);
}
formAfficheLogin();
?>
</div>
</div>
</body><file_sep><?php
require "../VIEWS/fonctionAffichage.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="removeTheme.css">
<title>REMOVE THEME</title>
</head>
<body>
<div class="FORM">
<div class="form-text">
<header><a href="../home.php">Game Card</a></header>
<h1>REMOVE THEME</h1>
<?php
if(isset($_GET["update"])){
msgRemoveTheme($_GET["update"]);
}
afficheFormRemoveTheme();
?>
</div>
</div>
</body>
</html>
<file_sep><?php
function checkLog($id){
if($id!=NULL){
echo '<form action="extern/logout.ext.php" method="post">
<button type="submit" name="logout-submit" id="btn">LOG OUT</button>
</form>';
echo '<p><a href="MESSAGES/login.msg.php" id="PLAY-btn">PLAY</a></p>';
echo ' <p><a href="ACCOUNT/account.php" id="account-btn" style="margin-top:30px">ACCOUNT</a></p>';
}else{
echo '<a href="ACCOUNT/signup.php"><li>SIGN UP</li></a>
<a href="ACCOUNT/login.php"><li>LOG IN</li></a>';
}
}
function msgLogin($error){
if($error!=NULL){
if($error=="wrongpassword"){
echo '<p class="msg-erreur">Mot de passe invalide!</p>';
}else if($error=="dontexist"){
echo '<p class="msg-erreur">Utilisateur inexistant!</p>';
}
}
}
function formAfficheLogin(){ ?>
<form action="../extern/login.ext.php" method="post">
<label class="un">username/mail</label> <br>
<input type="text" placeholder="Entrer le nom d'utilisateur/Email" name="username" required> <br>
<label class="un">password</label> <br>
<input type="<PASSWORD>" placeholder="<PASSWORD> de <PASSWORD>" name="password" required> <br>
<button type="submit" name="login-submit">Log In</button>
</form>
<div class="bottom-text">
<p>DON'T HAVE AN ACCOUNT ? <a href="signup.php" id="signup">SIGN UP</a></p>
</div>
<a href="../PASSWORD/reset-password.php" class="forgot-pwd">FORGOT YOUR PASSWORD ?</a>
<?php }
function msgSignup($msg){
if($msg=="invalidusername&email"){
echo '<p class="msg-erreur">Pseudo et email invalides!</p>';
}else if($msg=="invalidusername"){
echo '<p class="msg-erreur">Pseudo invalide!</p>';
}else if($msg=="invalidemail"){
echo '<p class="msg-erreur">Email invalide!</p>';
}else if($msg=="PWDdontmatch"){
echo '<p class="msg-erreur">Les mots de passe ne correspondent pas!</p>';
}else if($msg=="USERNAMETAKEN"){
echo '<p class="msg-erreur">Pseudo déja utilisé!</p>';
}else if($msg=="PWDdontmatchAndUsername"){
echo '<p class="msg-erreur">Pseudo et mot de passe invalides!</p>';
}else if($msg=="PWDERROR"){
echo '<p class="msg-erreur">Mot de passe invalide: la taille doit etre superieure à 6 et il doit contenir une MAJ et un chiffre!</p>';
}
}
function formAfficheFormSignUp() { ?>
<form action="../extern/signup.ext.php" method="post">
<label>name</label> <br>
<input type="text" name="prenom" placeholder="Entrez votre prenom" required autocomplete="off"> <br>
<label>username</label> <br>
<input type="text" name="username" placeholder="Tapez un nom d'utilisateur" required autocomplete="off">
<br>
<label>email</label> <br>
<input type="email" name="email" placeholder="Entrez votre email" required autocomplete="off"> <br>
<label>password</label> <br>
<input type="<PASSWORD>" name="password" placeholder="<PASSWORD>" required autocomplete="off"> <br>
<label>confirm your password </label> <br>
<input type="password" name="password2" placeholder="<PASSWORD>" required autocomplete="off"> <br>
<input type="checkbox" name="accepter" value="OK" checked required autocomplete="off"><span id="accept">J’accepte les
conditions d'utilisation</span>
<button type="submit" name="signup-submit">Sign Up</button>
</form>
<p>ALREADY HAVE AN ACCOUNT ?<a href="login.php"> LOG IN</a></p>
<?php }
function msgRemoveQuestions($msg) {
if($msg=="SUCCESS"){
echo '<p class="msg-erreur">Your question has been removed!</p>';
}
}
function afficheFormRemoveQuest() { ?>
<form action="../extern/removeQuest.ext.php" method="post">
<label for="theme">Theme</label><br>
<input name="theme" placeholder="theme"><br>
<label for="type">Type</label><br>
<input name="type" placeholder="texte/qcm"><br>
<label for="question">Question</label><br>
<input name="question" placeholder="add a question" autocomplete="off"><br>
<button type="submit" style="margin-top:-5px;margin-bottom:5px" name="update">UPDATE</button>
<br>
</form>
<?php }
function msgAddQuest($msg) {
if($msg=="SUCCESS"){
echo '<p class="msg-erreur">Your question has been added!</p>';
}
}
function afficheFormAddQuest() { ?>
<form action="../extern/addQuest.ext.php" method="post">
<label for="theme">Theme</label><br>
<input name="theme" placeholder="theme" autocomplete="off"><br>
<label for="question">Question</label><br>
<input name="question" placeholder="add a question" autocomplete="off"><br>
<label for="reponse">Answer</label><br>
<input name="reponse" placeholder="add an answer" autocomplete="off"><br>
<label for="type">Type</label><br>
<input name="type" placeholder="qcm/texte" autocomplete="off"><br>
<label for="type">Propositions(Qcm Only)</label><br>
<input name="prop1" placeholder="proposition 1" autocomplete="off"><br>
<input name="prop2" placeholder="proposition 2" autocomplete="off"><br>
<input name="prop3" placeholder="proposition 3" autocomplete="off"><br>
<label for="level">Level</label><br>
<input name="level" placeholder="1, 2, or 3" autocomplete="off">
<br>
<button type="submit" style="margin-top:-5px;margin-bottom:5px;margin-right:10px" name="adding-quest">ADD</button>
<a href="removeQuest.php">Want to Remove ?</a>
</form>
<?php }
function msgUpdateAccount($error) {
if($error=="USERNAMETAKEN"){
echo '<p class="msg-erreur">Pseudo déja utilisé!</p>';
}else if($error=="invalidusername"){
echo '<p class="msg-erreur">Pseudo invalide!</p>';
}else if($error=="emptyfields"){
echo '<p class="msg-erreur">Veuillez remplir un champ!</p>';
}else if($error=="SUCCESS"){
echo '<p class="msg-erreur">Merci tes informations ont été modifiées!</p>';
}
}
function afficheFormAccount($status) { ?>
<form action="../extern/account.ext.php" method="post">
<label>update name</label> <br>
<input type="text" name="prenom" placeholder="Modifier votre prenom"> <br>
<label>update username</label> <br>
<input type="text" name="username" placeholder="Modifier votre nom d'utilisateur">
<br>
<button type="submit" name="validate-submit">Valider</button>
<?php
if($status=="expert"){
echo '<a href="addQuest.php" class="lien">ADD QUESTIONS</a><br>';
echo '<a href="createTheme.php" class="lien">ADD THEME</a>';
}
?>
</form>
<?php }
function afficheFormAccountDelete() { ?>
<form action="../extern/delete.ext.php" method="post">
<button type="submit" name="delete-submit">Delete Account</button>
</form>
<?php }
function afficheFormResetPassword() { ?>
<form action="../extern/reset-request.inc.php" method="post">
<label>email</label> <br>
<input type="text" name="email" placeholder="Entrez votre email" required>
<br>
<button type="submit" name="reset-request-submit">Receive new password by email</button><br>
<img src="../img-site/original%20(1).gif">
<a href="../ACCOUNT/signup.php" id="back-signup">SIGN UP</a> <br> <br>
<a href="../ACCOUNT/login.php" id="back-login">LOG IN</a>
</form>
<?php }
function afficherCarteTexte($question,$theme,$a,$compteur){ ?>
<!DOCTYPE html>
<html>
<head>
<title><?php $u = strtoupper($theme);
echo $u;
?>
</title>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css">
</head>
<body
<?php
if($theme=="sport") {
echo 'style="background: linear-gradient(45deg,#3503ad,#f7308c);"';
}else if($theme=="culture"){
echo 'style="background: linear-gradient(45deg,#ccff00,#09afff);"';
}else if($theme=="histoire"){
echo 'style="background: linear-gradient(45deg,#e91e63,#ffeb3b);"';
}else{
echo 'style="background: linear-gradient(45deg,#ACD3E9,#ffeb3b);"';
}
?>
>
<div class="container">
<div class="card">
<div class="face face1">
<div class="content">
<h3 style="text-align:center;margin-top:20px;"><?php echo $question; ?></h3>
<div class="img" style="text-align:center;margin-bottom:60px;">
<img src="../images-quiz/<?php echo $theme; ?>/<?php echo $a; ?>.png" width="100px" style="border-radius:20px;">
</div>
<form action="cardRep.php?theme=<?php echo $theme;?>" method="post" style="margin-bottom:10px">
<div style="text-align:center;margin-top:15px;">
<input type="text" placeholder="Entrez votre réponse" name="reponse" style="margin-bottom:8px;" autocomplete="off"><br>
<button type="submit">Valider</button>
</div>
</form>
<div class="lien" style="text-align:center">
<a href="jeu-principal.php" style="color:black; text-decoration:none;font-size:13px">BACK HOME</a><br>
<a href="signal.php?theme=<?php echo $theme; ?>&id=<?php echo $a; ?>" style="color:orchid; text-decoration:none;font-size:13px">Signaler!</a>
</div>
</div>
</div>
<div class="face face2"
<?php
if($theme=="sport") {
echo 'style="background: linear-gradient(45deg,#3503ad,#f7308c);"';
}else if($theme=="culture"){
echo 'style="background: linear-gradient(45deg,#ccff00,#09afff);"';
}else if($theme=="histoire"){
echo 'style="background: linear-gradient(45deg,#e91e63,#ffeb3b);"';
}else{
echo 'style="background: linear-gradient(45deg,#ACD3E9,#ffeb3b);"';
}
?>
>
<h2><?php echo $compteur; ?></h2>
</div>
</div>
</div>
</body>
</html>
<?php }
function afficherCarteProp($question,$prop1,$prop2,$prop3,$theme,$a,$compteur){ ?>
<!DOCTYPE html>
<html>
<head>
<title><?php $u = strtoupper($theme);
echo $u;
?>
</title>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css">
</head>
<body
<?php
if($theme=="sport") {
echo 'style="background: linear-gradient(45deg,#3503ad,#f7308c);"';
}else if($theme=="culture"){
echo 'style="background: linear-gradient(45deg,#ccff00,#09afff);"';
}else if($theme=="histoire"){
echo 'style="background: linear-gradient(45deg,#e91e63,#ffeb3b);"';
}else{
echo 'style="background: linear-gradient(45deg,#ACD3E9,#ffeb3b);"';
}
?>
>
<div class="container">
<div class="card">
<div class="face face1">
<div class="content">
<h3 style="text-align:center;margin-top:20px;"><?php echo $question; ?></h3>
<div class="img" style="text-align:center;margin-bottom:20px;">
<img src="../images-quiz/<?php echo $theme; ?>/<?php echo $a; ?>.png" width="100px" style="border-radius:20px;">
</div>
<form action="cardRep.php?theme=<?php echo $theme;?>" method="post" style="text-align:center;margin-bottom:10px">
<input type="radio" value="<?php echo $prop1 ?>" name="prop"><br>
<label for="<?php echo $prop1 ?>"><?php echo $prop1 ?></label> <br>
<input type="radio" value="<?php echo $prop2 ?>" name="prop"> <br>
<label for="<?php echo $prop2 ?>"><?php echo $prop2 ?></label> <br>
<input type="radio" value="<?php echo $prop3 ?>" name="prop"> <br>
<label for="<?php echo $prop3 ?>"><?php echo $prop3 ?></label><br>
<div style="text-align:center;margin-top:15px;">
<button type="submit">Valider</button>
</div>
</form>
<div class="lien" style="text-align:center">
<a href="jeu-principal.php" style="color:black; text-decoration:none;font-size:13px">BACK HOME</a><br>
<a href="signal.php?theme=<?php echo $theme; ?>&id=<?php echo $a; ?>" style="color:orchid; text-decoration:none;font-size:13px">Signaler!</a>
</div>
</div>
</div>
<div class="face face2"
<?php
if($theme=="sport") {
echo 'style="background: linear-gradient(45deg,#3503ad,#f7308c);"';
}else if($theme=="culture"){
echo 'style="background: linear-gradient(45deg,#ccff00,#09afff);"';
}else if($theme=="histoire"){
echo 'style="background: linear-gradient(45deg,#e91e63,#ffeb3b);"';
}else{
echo 'style="background: linear-gradient(45deg,#ACD3E9,#ffeb3b);"';
}
?>
>
<h2><?php echo $compteur; ?></h2>
</div>
</div>
</div>
</body>
</html>
<?php }
function afficheMsgSignal($msg) {
if($msg=="DELETED"){
echo '<h3 style="color:orchid;font-family:elgoc;">Merci pour ton aide, la question a été supprimée!</h3>';
}else if($msg=="WAITING"){
echo '<h3 style="color:orchid;font-family:elgoc;">Merci pour ton aide, nos équipes essaieront de corriger cette erreur!</h3>';
}else if($msg=="SUCCESS"){
echo '<h3 style="color:orchid;font-family:elgoc;">Tous tes thèmes ont éte remis à zéro!</h3>';
}
else if($msg=="SUCCESSVOTE"){
echo '<h3 style="color:orchid;font-family:elgoc;">Merci pour ton aide, ton vote a été pris en compte!</h3>';
}
}
function afficheFormResetQuiz() { ?>
<form action="../extern/reset-quiz.ext.php" method="post">
<div class="input" style="text-align:center;color:black;">
<input type="submit" value="RESET" name="RESET">
</div>
</form>
<?php }
function afficheFormSignal($questionId,$theme) { ?>
<form action="../extern/signal.ext.php?questionId=<?php echo $questionId; ?>&theme=<?php echo $theme; ?>" method="post" style="text-align:center">
<label for="object-select" style="font-family:elgoc;">Objet du signalement ?</label><br>
<select name="objet" id="objet-select" style="margin-bottom:30px;margin-top:30px">
<option value="orthographe">Ortographe</option>
<option value="contenu">Contenu innaproprié</option>
<option value="anachronisme">Anachronisme</option>
<option value="prop">Aucune proposition valide</option>
<option value="syntaxe">Syntaxe</option>
</select>
<br>
<button type="submit" style="color:black;margin-bottom:10px;" name="submit-signal">Envoyer</button>
</form>
<?php }
function afficheFormVote($theme){ ?>
<form action="../extern/vote.ext.php?theme=<?php echo $theme; ?>" method="post">
<div style="text-align:center">
<label for="vote-select" style="font-family:elgoc;color:orchid">Avez vous apprécié le thème ?</label><br>
<select name="vote" id="vote-select" style="margin-bottom:30px;margin-top:30px">
<option value="oui">OUI</option>
<option value="non">NON</option>
</select>
<br>
<label for="voteDifficulte-select" style="font-family:elgoc;color:orchid">Difficulté du thème ?</label><br>
<select name="voteDifficulte" id="voteDifficulte-select" style="margin-bottom:30px;margin-top:30px">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<br>
<button type="submit" style="color:black;" name="submit-vote">Envoyer</button>
</div>
</form>
<?php }
function afficheMsgVote($msg) {
if($msg=="SUCCESS"){
echo '<h3 style="color:orchid;font-family:elgoc;">Merci pour ton aide, ton vote a été pris en compte!</h3>';
}
}
function afficheClassementSup($theme,$score,$best,$difficulte) { ?>
<div class="theme" style="text-align:center">
<div class="<?php echo $theme?>" style="color:orchid;font-size:200%">
<h2><?php echo $theme;?> <br><?php echo $score; ?> /100 </h2>
<p style="margin-top:-40px;color:#f1c40f;font-size:20px;">Best Score Ever : <?php echo $best; ?></p>
<?php if($difficulte>5){ ?>
<p style="margin-top:-20px;color:red;font-size:20px;">Level : <?php echo $difficulte; ?></p>
<?php } else { ?>
<p style="margin-top:-20px;color:lightgreen;font-size:20px;">Level : <?php echo $difficulte; ?></p>
<?php } ?>
</div>
</div>
<?php }
function afficheClassementInf($theme,$score,$best,$difficulte) { ?>
<div class="theme" style="text-align:center">
<div class="<?php echo $theme?>">
<h2><?php echo $theme; ?> <br><?php echo $score; ?> /100 </h2>
<p style="margin-top:-20px;color:#f1c40f;font-size:20px;">Best Score Ever : <?php echo $best; ?></p>
<?php if($difficulte>5){ ?>
<p style="margin-top:-20px;color:red;font-size:20px;">Level : <?php echo $difficulte; ?></p>
<?php } else { ?>
<p style="margin-top:-20px;color:lightgreen;font-size:20px;">Level : <?php echo $difficulte; ?></p>
<?php } ?>
</div>
</div>
<?php }
function afficheMsgLastGame($theme) { ?>
<h3 style="color:#54a0ff;font-family:elgoc;text-align:center">Ton dernier jeu sélectionné est le thème <?php echo strtoupper($theme); ?>!</h3>;
<?php }
function afficheFormCreate(){ ?>
<form action="../extern/createTheme.ext.php" method="post">
<label class="un">Theme du nouveau jeu</label> <br>
<input type="text" placeholder="Entrer le nom du theme que vous souhaitez créer" name="newTheme" required> <br>
<a href="removeTheme.php">Want to Remove ?</a>
<button type="submit" name="theme-submit">Envoyer</button>
</form>
<?php }
function msgAddTheme($msg) {
if($msg=="ThemeAdded"){
echo '<p class="msg-erreur">Nouveau Thème ajouté !</p>';
}else{
echo '<p class="msg-erreur">Erreur Veuillez Réessayer !</p>';
}
}
function AfficheTheme($res){ ?>
<div class="cards">
<?php
while($ligne = mysqli_fetch_assoc($res)){ ?>
<?php
afficherLigneTheme($ligne);
} ?>
</div>
<?php }
function afficherLigneTheme(&$ligne){ ?>
<div class="sport">
<a href="cardRep.php?theme=<?php echo htmlspecialchars($ligne["theme"])?>"><h5><?php echo htmlspecialchars($ligne["theme"])?></h5></a>
</div>
<?php }
function afficheFormThemeDelete() { ?>
<form action="../extern/deleteTheme.ext.php" method="post">
<button type="submit" name="delete-submit">Delete Theme</button>
</form>
<?php }
function afficheFormRemoveTheme() { ?>
<form action="../extern/removeTheme.ext.php" method="post">
<label for="theme">Theme</label><br>
<input name="theme" placeholder="theme"><br>
<button type="submit" style="margin-top:-5px;margin-bottom:5px" name="update">UPDATE</button>
<br>
</form>
<?php }
function msgRemoveTheme($msg) {
if($msg=="SUCCESS"){
echo '<p class="msg-erreur">Your theme has been removed!</p>';
}
}
<file_sep><?php
function preTraiterChamp($champ) {
if (!empty($champ)) {
$champ = trim($champ);
$champ = htmlspecialchars($champ);
}
return $champ;
}
function pwdValide($password){
if (strlen($password) >= 6 && preg_match('/(?=.*[0-9])[A-Z]|(?=.*[A-Z])[0-9]/', $password)){
return true;
}
else{
return false;
}
}
function preTraiter(&$donnees){
$donnees["nom"]=preTraiterChamp($donnees["name"]);
$donnees["username"]=preTraiterChamp($donnees["username"]);
$donnees["email"]=preTraiterChamp($donnees["email"]);
$donnees["password"]=preTraiterChamp($donnees["password"]);
}
<file_sep><?php
session_start();
require "VIEWS/fonctionAffichage.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="home.css">
<title>GAME GARD</title>
</head>
<body style="background-color: black;">
<header>
<div class="logo">Game Card</div>
<div class="inscription">
<?php if(isset($_SESSION["userId"])) {
checkLog($_SESSION["userId"]);
}else{
checkLog(NULL);
}
?>
</div>
</header>
<div class="textgame">
Come get a taste! <br>
The Best Game <br> To Check Your Knowledge. <br>
Impress Your Friends!
</div>
<a href="rules.html" style="text-decoration:none;font-size:15px;float:right;font-family:arial;margin-right:30px;">HOW TO PLAY</a>
<div class="image">
<img src="img-site/img.png">
</div>
</body>
</html>
<file_sep><?php
session_start();
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
if(isset($_POST["RESET"])){
$id = $_SESSION["userId"];
ResetQuiz($id,$conn);
mysqli_close($conn);
}else {
header("Location: ../home.php");
exit();
}<file_sep><?php
function BestScore($id,$conn) {
$sql = "SELECT bestScore FROM gamecard WHERE id=".$id.";";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
$tab = mysqli_fetch_assoc($res);
$bestScore = $tab["bestScore"];
return $bestScore;
}
function UpdateStatus($bestScore,$conn) {
if($bestScore>1200){
$sql = "UPDATE gamecard SET status='expert';";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
return "expert";
}else{
$sql = "UPDATE gamecard SET status='beginner';";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
return "beginner";
}
}
function InitFirstCard($id,$theme,$conn){
$sql = "SELECT * FROM jeuActive WHERE id=".$id." AND theme='".$theme."';";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: cardRep.php?error=sqlerror5");
exit();
}
if(mysqli_num_rows($res)==0){
$ordreSuivant = "";
$ordreActuel = "";
$sql = "SELECT COUNT(*) FROM ".$theme;
$res = mysqli_query($conn,$sql);
if(!$res){
echo $res;
exit();
}
$tab = mysqli_fetch_assoc($res);
$taille = $tab["COUNT(*)"];
for($i=1;$i<=$taille;$i++){
$ordreActuel.=$i."/";
}
$sql = "INSERT INTO jeuActive(id,ordreActuel,ordreSuivant,theme,nbrErreur,currentScore,compteur) VALUES(".$id.",'".$ordreActuel."','".$ordreSuivant."','".$theme."',0,0,1);";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: cardRep.php?error=sqlerror7");
exit();
}
}
}
function SelectJeuActive($id,$theme,$conn){
$sql = "SELECT * FROM jeuActive WHERE id=".$id." AND theme='".$theme."';";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $res;
exit();
}
$tab = mysqli_fetch_assoc($res);
return $tab;
}
function SelectTheme($theme,$a,$conn) {
$sql = "SELECT * FROM ".$theme." WHERE id=".$a;
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
$tab = mysqli_fetch_assoc($res);
return $tab;
}
function UpdateJeuActive($ordreActuel,$ordreSuivant,$nbrErreur,$currentScore,$compteur,$id,$theme,$conn){
$sql = "UPDATE jeuActive SET ordreActuel='".$ordreActuel."',ordreSuivant='".$ordreSuivant."',nbrErreur=".$nbrErreur.",currentScore=".$currentScore.",compteur=".$compteur." WHERE id=".$id." AND theme='".$theme."';";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $res;
exit();
}
}
function UpdateJeuActiveEnd($ordreSuivant,$id,$theme,$conn) {
$sql1 = "UPDATE jeuActive SET ordreActuel='".$ordreSuivant."',ordreSuivant=NULL, nbrErreur=0, currentScore=0, compteur=1 WHERE id=".$id." AND theme='".$theme."';";
$res1 = mysqli_query($conn,$sql1);
if(!$res1){
echo $sql1;
exit();
}
}
function SelectProp($a,$theme,$conn) {
$sql = "SELECT * FROM propositions WHERE questionId=".$a." AND theme='".$theme."';";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: cardRep.php?error=sqlerror10");
exit();
}
$tab = mysqli_fetch_assoc($res);
return $tab;
}
function UpdateGameCardBestScore($score,$bestScore,$id,$conn){
if($score>$bestScore){
$sql = "UPDATE gamecard SET bestScore=".$score." WHERE id=".$id;
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
}
}
function SelectVote($conn,$theme) {
$sql = "SELECT * FROM visibilite WHERE theme='".$theme."'";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
$tab = mysqli_fetch_assoc($res);
return $tab;
}
function SelectClassement($conn) {
$sql = "SELECT * FROM visibilite";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
return $res;
}
function BestEver($theme,$conn) {
$sql = "SELECT best FROM visibilite WHERE theme='".$theme."'";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
$tab = mysqli_fetch_assoc($res);
$bestEver = $tab["best"];
return $bestEver;
}
function UpdateBestEver($conn,$theme,$score,$bestEver) {
if($score>$bestEver){
$sql = "UPDATE visibilite SET best=".$score." WHERE theme='".$theme."'";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
}
}
function SelectLogin($username,$conn){
$sql = "SELECT * FROM gamecard WHERE username='".$username."' OR email='".$username."';";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/login.php?error=sqlerror");
exit();
}else{
return $res;
}
}
function PasswordCheck($password,$res){
if($row = mysqli_fetch_assoc($res)){
$hashedPassword = md5($password);
$pwdCheck = ($hashedPassword === $row["pwd"]);
if($pwdCheck==false){
header("Location: ../ACCOUNT/login.php?error=wrongpassword");
exit();
}else if($pwdCheck==true){
session_start();
$_SESSION["userId"]=$row["id"];
$_SESSION["username"]=$row["username"];
$_SESSION["status"]=$row["status"];
header("Location: ../MESSAGES/login.msg.php?login=SUCCESS");
exit();
}
}else{
header("Location: ../ACCOUNT/login.php?error=dontexist");
exit();
}
mysqli_close($conn);
}
function SelectUserSignUp ($username,$conn) {
$sql = "SELECT username FROM gamecard WHERE username='".$username."';";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/signup.php?error=sqlerror");
exit();
}else{
return $res;
}
}
function InsertUser($res,$conn,$name,$username,$password) {
$resultCheck = mysqli_num_rows($res);
if($resultCheck>0){
header("Location: ../ACCOUNT/signup.php?error=USERNAMETAKEN");
exit();
}else{
$hashedPwd = md5($password);
$sql = "INSERT INTO gamecard(name,username,email,pwd) VALUES('".$name."','".$username."','".$email."','".$hashedPwd."');";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/signup.php?error=sqlerror");
exit();
}else {
header("Location: ../MESSAGES/signup.msg.php?signup=SUCCESS");
exit();
}
}
mysqli_close($conn);
}
function DeleteUser($id,$conn) {
$sql = "DELETE FROM gamecard WHERE id=".$id.";";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/account.php?error=sqlerror");
exit();
}else{
header("Location: logout-delete.ext.php");
exit();
}
}
function UpdateUsername($username,$id,$conn,$res) {
$resultCheck = mysqli_num_rows($res);
if($resultCheck>0){
header("Location: ../ACCOUNT/account.php?error=USERNAMETAKEN");
exit();
}else{
$sql = "UPDATE gamecard SET username='".$username."' WHERE id=".$id;
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/account.php?error=sqlerror");
exit();
}else{
header("Location: ../ACCOUNT/account.php?update=SUCCESS");
exit();
}
}
}
function UpdateName($name,$id,$conn,$res){
$sql = "UPDATE gamecard SET name='".$name."' WHERE id=".$id.";";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/account.php?error=sqlerror");
exit();
}else{
header("Location: ../ACCOUNT/account.php?update=SUCCESS");
exit();
}
}
function UpdateBoth($username,$name,$id,$conn,$res) {
$sql = "UPDATE gamecard SET name='".$name."', username='".$username."' WHERE id=".$id;
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/account.php?error=sqlerror");
exit();
}else{
header("Location: ../ACCOUNT/account.php?update=SUCCESS");
exit();
}
}
function CountQuest($theme,$conn){
$sql = "SELECT COUNT(*) FROM ".$theme.";";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/addQuest.php?error=sqlerror");
exit();
}
return $res;
}
function InsertQuest($theme,$numero,$question,$answer,$level,$type,$conn,$res) {
$sql = "INSERT INTO ".$theme." (id,question,reponse,level,type) VALUES(".$numero.",'".$question."','".$answer."','".$level."','".$type."');";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/addQuest.php?error=sqlerror");
exit();
}
}
function InsertPropQcm($type,$numero,$prop1,$prop2,$prop3,$theme,$conn) {
if($type=="qcm"){
$sql = "INSERT INTO propositions (questionId,proposition1,proposition2,proposition3,theme) VALUES(".$numero.",'".$prop1."','".$prop2."','".$prop3."','".$theme."');";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/addQuest.php?error=sqlerror3é");
exit();
}
}
}
function RemoveQuest($theme,$question,$conn) {
$sql = "DELETE FROM ".$theme." WHERE question='".$question."';";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/removeQuest.php?error=sqlerror");
exit();
}else{
header("Location: ../ACCOUNT/removeQuest.php?update=SUCCESS");
exit();
}
}
function ResetQuiz($id,$conn) {
$sql = "DELETE FROM jeuActive WHERE id=".$id.";";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../jeu-principal/jeu-principal.php?error=sqlerror");
exit();
}else{
header("Location: ../jeu-principal/jeu-principal.php?msg=SUCCESS");
exit();
}
}
function InsertSignal($id,$objet,$theme,$questionId,$conn) {
$sql = "INSERT INTO signaler(utilisateurId,objet,theme,questionId) VALUES(".$id.",'".$objet."','".$theme."',".$questionId.");";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
}
function SelectSignal($theme,$questionId,$conn) {
$sql = "SELECT * FROM signaler WHERE theme='".$theme."' AND questionId=".$questionId;
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
return $res;
}
function DeleteQuestSignal($res,$theme,$questionId,$conn) {
if(mysqli_num_rows($res)>=10){
$sql = "DELETE FROM ".$theme." WHERE questionId=".$questionId;
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
header("Location: ../jeu-principal/jeu-principal.php?msg=DELETED");
exit();
}else{
header("Location: ../jeu-principal/jeu-principal.php?msg=WAITING");
exit();
}
}
function SelectVisibilite($theme,$conn) {
$sql = "SELECT * FROM visibilite WHERE theme='".$theme."'";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
return $res;
}
function UpdateVote($nbrVisites,$nbrVotes,$theme,$conn) {
$sql = "UPDATE visibilite SET nbrVisites=".$nbrVisites.", nbrVotes=".$nbrVotes." WHERE theme='".$theme."'";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
}
function UpdateVoteDifficulte($voteDifficulte,$compteur,$calcul,$theme,$conn) {
$sql = "UPDATE visibilite SET difficulte=".$voteDifficulte.", compteurDifficulte=".$compteur.",calcul=".$calcul." WHERE theme='".$theme."'";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
}
function UpdateLastGame($theme,$id,$conn) {
$sql = "UPDATE gamecard SET lastGame='".$theme."' WHERE id=".$id;
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
}
function SelectLastGame($id,$conn) {
$sql = "SELECT lastGame FROM gamecard WHERE id=".$id;
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
return $res;
}
function CreateTableReq($conn,$theme){
$sql="CREATE TABLE ".$theme."(id INT AUTO_INCREMENT, question TEXT, reponse TEXT, level INT, type VARCHAR(100));";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
}
function UpdateVisibiliteCreate($conn,$theme){
$sql="INSERT INTO visibilite VALUES('".$theme."',0,0,0,0,0,0)";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
}
function RecupTheme($conn){
$sql="SELECT * FROM visibilite";
$res = mysqli_query($conn,$sql);
if(!$res){
echo $sql;
exit();
}
return $res;
}
function RemoveTheme($theme,$conn) {
$sql = "DROP TABLE ".$theme;
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/removeTheme.php?error=sqlerror");
exit();
}
$sql = "DELETE FROM visibilite WHERE theme='".$theme."'";
$res = mysqli_query($conn,$sql);
if(!$res){
header("Location: ../ACCOUNT/removeTheme.php?error=sqlerror");
exit();
}
header("Location: ../ACCOUNT/removeTheme.php?update=SUCCESS");
exit();
}
<file_sep># GAME CARD
Demo:

1. CLONE THE REPOSITORY
```
git clone https://github.com/naelob/gamecard.git
```
2. INSTALL XAMPP TO RUN THE PROJECT
Locate the folder "htdocs" and put the project you just cloned inside this folder:

3. UPDATE THIS FILE BY CHANGING THE VALUE OF THE VARIABLE $dBName

The value you will put is the name of the database you need to create in phpmyadmin.
4. CREATION OF THE DATABASE
````
Go to this page : https://localhost:8080/phpmyadmin (replace 8080 with the port you are using)
````
Create then your database and remember the name you give to it.
Then you can set the new value of $dBName with this previous name used for the database in PHPMYADMIN.
You must import the database of the game. You can find it in the repo, it's called "dbgamecard.sql".
Import it just after the creation of your database in PHPMYADMIN.
It's MANDATORY, otherwise you won't be able to play the game.
5. RUN THE PROJECT
````
1. RUN XAMPP
2. WHEN XAMPP HAS RAN THE RIGHT PORT (let's say 8080)
3. GO TO THIS PAGE: http://localhost:8080/projet/home.php ("projet" is the folder located in "htdocs" => replace "projet" with the name of yours)
<file_sep>-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : sam. 09 mai 2020 à 14:42
-- Version du serveur : 10.4.11-MariaDB
-- Version de PHP : 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de données : `dbgamecard`
--
-- --------------------------------------------------------
--
-- Structure de la table `culture`
--
CREATE TABLE `culture` (
`id` int(11) NOT NULL,
`question` text DEFAULT NULL,
`reponse` text DEFAULT NULL,
`level` int(11) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `culture`
--
INSERT INTO `culture` (`id`, `question`, `reponse`, `level`, `type`) VALUES
(1, 'Qui a écrit les fameuses fables ?', 'Jen de la Fontaine', 1, 'texte'),
(2, 'Quelle est la capitale de pays?', 'Stockholm', 1, 'texte'),
(3, 'Quel est le nom de cette célebre rue?', 'Abbey Road', 1, 'texte'),
(4, 'Quel acteur a joué dans ces films?', '<NAME>', 1, 'qcm'),
(5, 'Comment appelle t\'on ce sapin de Briancon?', 'melèze', 2, 'qcm'),
(6, 'Qui a crée le journal Libération ?', '<NAME>', 2, 'qcm'),
(7, 'Quelle est la capitale de ce pays?', 'Téhéran', 2, 'texte'),
(8, 'Qui est à l\'origine de la comédie humaine?', 'Balzac', 2, 'qcm'),
(9, 'Qui a écrit ce célebre livre?', '<NAME>', 2, 'texte'),
(10, 'Quel concert a été organisé afind e venir en aide à l\'Afrique?', 'Live Aid', 3, 'qcm'),
(11, 'Quel artiste voit son morceau devenir le premier clip noir à passer sur MTV ?', '<NAME>', 3, 'qcm'),
(12, 'Qui fut la femme de <NAME>?', '<NAME>', 3, 'qcm'),
(13, 'Quelle ville a vu ces deux artistes enrigistrer des albums mythiques?', 'Berlin', 3, 'qcm'),
(14, 'Qui est cet artiste?', '<NAME>', 3, 'qcm');
-- --------------------------------------------------------
--
-- Structure de la table `gamecard`
--
CREATE TABLE `gamecard` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`username` varchar(100) NOT NULL,
`email` varchar(255) NOT NULL,
`pwd` varchar(100) NOT NULL,
`bestScore` int(11) DEFAULT NULL,
`status` varchar(100) DEFAULT NULL,
`lastGame` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `gamecard`
--
INSERT INTO `gamecard` (`id`, `name`, `username`, `email`, `pwd`, `bestScore`, `status`, `lastGame`) VALUES
(10, 'hfdg', 'robot', '<EMAIL>', <PASSWORD>SF<PASSWORD>DZ<PASSWORD>', NULL, 'expert', NULL),
(12, 'jjknc', 'fjfd', '<EMAIL>', <PASSWORD>$Su94myx<PASSWORD>6RuE8RLhTuw0UAAEiEKeGbLRX5vBvnBimKVjtDsN.', NULL, 'expert', NULL),
(13, 'knfdnj', 'kfc', '<EMAIL>', '<PASSWORD>', 1775, 'expert', 'sport'),
(14, 'fhg', 'sql', '<EMAIL>', '<PASSWORD>', NULL, 'expert', NULL);
-- --------------------------------------------------------
--
-- Structure de la table `histoire`
--
CREATE TABLE `histoire` (
`id` int(11) NOT NULL,
`question` text DEFAULT NULL,
`reponse` text DEFAULT NULL,
`level` int(11) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `histoire`
--
INSERT INTO `histoire` (`id`, `question`, `reponse`, `level`, `type`) VALUES
(1, 'Durant quelle guerre du napalm etait jeté sur la population locale ?', 'guerre du Vietnam', 1, 'qcm'),
(2, 'De quel logo s\'agit il?', 'ONU', 1, 'texte'),
(3, 'Quel scandale correspond à ces 2 images?', 'scandale du Watergate', 1, 'texte'),
(4, 'Quel évenement est representé par cette image?', 'assassinat de JFK', 1, 'qcm'),
(5, 'Qui est ce célebre roi francais?', 'Louis XIV', 1, 'qcm'),
(6, 'Quel était le surnom du roi que vous venez de voir ?', 'Roi Soleil', 2, 'texte'),
(7, 'Comment appelait on cette femme politique?', 'la Dame de Fer', 2, 'qcm'),
(8, 'Que s\'est il passé en 1905?', 'separation de l\'Eglise et de l\'Etat', 2, 'qcm'),
(9, 'Quel pays est symbolisé par ces figures politiques?', 'Cuba', 2, 'texte'),
(10, 'En quelle année l\'Algérie est-elle devenue indépendante?', '1962', 3, 'texte'),
(11, 'En quelle année les premieres ecritures sont apparues en Mésopotamie?', '-3500', 3, 'qcm'),
(12, 'En quelle année s\'est effondré l\'empire romain?', '476', 3, 'qcm'),
(13, 'Comment s\'appelle cette revolution russe de 1917?', 'revolution rouge', 3, 'texte'),
(14, 'Quel est le nom de ce président américain?', '<NAME>', 3, 'texte');
-- --------------------------------------------------------
--
-- Structure de la table `jeuActive`
--
CREATE TABLE `jeuActive` (
`id` int(11) NOT NULL,
`ordreActuel` varchar(200) DEFAULT NULL,
`ordreSuivant` varchar(200) DEFAULT NULL,
`theme` varchar(100) DEFAULT NULL,
`nbrErreur` int(11) DEFAULT NULL,
`currentScore` int(11) DEFAULT NULL,
`compteur` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `jeuActive`
--
INSERT INTO `jeuActive` (`id`, `ordreActuel`, `ordreSuivant`, `theme`, `nbrErreur`, `currentScore`, `compteur`) VALUES
(10, '1/2/3/4/5/6/7/8/9/10/11/12/13/14/', '', 'sport', 0, 0, 1),
(11, '1/2/3/4/5/6/7/8/9/10/11/12/13/14/', '', 'sport', 0, 0, 1),
(13, '1/2/3/4/5/6/7/8/9/10/11/12/13/14/', '', 'sport', 0, 0, 1);
-- --------------------------------------------------------
--
-- Structure de la table `propositions`
--
CREATE TABLE `propositions` (
`questionId` int(11) NOT NULL,
`proposition1` text DEFAULT NULL,
`proposition2` text DEFAULT NULL,
`proposition3` text DEFAULT NULL,
`theme` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `propositions`
--
INSERT INTO `propositions` (`questionId`, `proposition1`, `proposition2`, `proposition3`, `theme`) VALUES
(2, 'lance franc', 'faute', 'arbitre', 'sport'),
(4, 'freesbee', 'golf', 'bowling', 'sport'),
(5, 'metal', 'acier', 'bois', 'sport'),
(7, '7', '3', '14', 'sport'),
(8, '20', '3', '10', 'sport'),
(10, '10', '23', '7,3', 'sport'),
(11, '<NAME>', 'Nantes', 'PSG', 'sport'),
(12, '30', '80', '60', 'sport'),
(13, '<NAME>', '<NAME>', 'Djokovic', 'sport'),
(14, 'voile', 'golf', 'polo', 'sport'),
(2, 'espace', 'relativite generale', 'algebre', 'sciences'),
(3, '1/6', '2/3', '10', 'sciences'),
(4, '<NAME>', '<NAME>', '<NAME>', 'sciences'),
(5, 'paillasson', 'tableau', 'paillaisse', 'sciences'),
(6, '1000', '100', '18', 'sciences'),
(7, 'hematologie', 'cardiologie', 'immunologie', 'sciences'),
(9, 'artere carotidienne', 'globules blancs', 'cellules immunitaires', 'sciences'),
(13, 'genie des chiffres', 'dieu allemand', 'prince des mathematiciens', 'sciences'),
(14, 'alcool', 'enantiomere', 'acide hydroxyle', 'sciences'),
(1, '<NAME>', 'guerre du Vietnam', 'guerre du Golfe', 'histoire'),
(4, 'investiture de JFK', 'arrivée du president Bush', 'assassinat de JFK', 'histoire'),
(5, 'Louis XVI', '<NAME>', 'Louis XIV', 'histoire'),
(7, 'Thatchum', '<NAME>', 'la guerrière', 'histoire'),
(8, 'Separation du clergé', 'Separation de l\'Eglise et de l\'Etat', 'bataille de Nevers', 'histoire'),
(11, '-230', '-600', '-3500', 'histoire'),
(12, '543', '1200', '476', 'histoire'),
(4, '<NAME>', '<NAME>', '<NAME>', 'culture'),
(5, 'melèze', 'cèdre', 'pommier', 'culture'),
(6, 'G.D\'Estaing', '<NAME>', '<NAME>', 'culture'),
(8, 'Volraire', 'Racine', 'Balzac', 'culture'),
(10, 'Live Aid', 'Les Enfoirés', 'Sunday Service', 'culture'),
(11, 'Prince', '<NAME>', 'Ali', 'culture'),
(12, 'Madonna', '<NAME>', '<NAME>', 'culture'),
(13, 'Stockholm', 'Paris', 'Berlin', 'culture'),
(14, '<NAME>', '<NAME>', '<NAME>', 'culture'),
(17, 'ldi', 'nd', 'lionel', 'histoire'),
(1, 'un direct du bras avant', 'coup bas', 'saut sur l\'arbitre', 'sport'),
(15, 'vietnam', 'coree', 'indochine', 'histoire'),
(15, 'tyson', 'joshua', 'tyson fury', 'sport'),
(15, 'uno', 'djf', 'tres', 'sport');
-- --------------------------------------------------------
--
-- Structure de la table `sciences`
--
CREATE TABLE `sciences` (
`id` int(11) NOT NULL,
`question` text DEFAULT NULL,
`reponse` text DEFAULT NULL,
`level` int(11) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `sciences`
--
INSERT INTO `sciences` (`id`, `question`, `reponse`, `level`, `type`) VALUES
(1, 'ABC est un triangle rectangle en A, AB=4, AC=3, combien mesure l\'hypoténuse BC?', '5', 1, 'texte'),
(2, 'Dans quel domaine s\'est illustré cet homme?', 'relativite generale', 1, 'qcm'),
(3, 'Quelle est la probabilité d\'obtenir un 6 (dé non truqué)?', '1/6', 1, 'qcm'),
(4, 'Quelle femme a découvert la radioactivité ?', '<NAME>', 1, 'qcm'),
(5, 'Sur quel support travaille le chimiste?', 'paillaisse', 2, 'qcm'),
(6, 'A quelle température l\'eau se transforme en gaz ?', '100', 2, 'qcm'),
(7, 'Quelles cellules sont responsables de l\'immunité?', 'globules blancs', 2, 'texte'),
(8, 'Comment s\'appelle la medecine du sang?', 'hématologie', 2, 'texte'),
(9, 'Quelle vaisseau est relié au cerveau?', 'artere carotidienne', 3, 'qcm'),
(10, 'Quelle est la primitive de 1/x?', 'ln x', 3, 'texte'),
(11, 'Comment s\'appelle ce célebre scientifique?', '<NAME>', 3, 'texte'),
(12, 'Comment est mort ce personnage tristement célebre?', 'En mangeant une pomme', 3, 'texte'),
(13, 'Quel est le surnom de ce celebre mathématicien?', 'le prince des mathematiciens', 3, 'qcm'),
(14, 'Quelle est la nature de cette molécule?', 'enantiomere', 3, 'qcm');
-- --------------------------------------------------------
--
-- Structure de la table `signaler`
--
CREATE TABLE `signaler` (
`utilisateurId` int(11) DEFAULT NULL,
`objet` varchar(100) DEFAULT NULL,
`theme` varchar(100) DEFAULT NULL,
`questionId` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `signaler`
--
INSERT INTO `signaler` (`utilisateurId`, `objet`, `theme`, `questionId`) VALUES
(5, 'contenu', 'histoire', 2),
(5, 'anachronisme', 'histoire', 2),
(5, 'anachronisme', 'sport', 1),
(5, 'contenu', 'histoire', 2),
(5, 'prop', 'sport', 1),
(5, 'prop', 'sport', 1),
(7, 'anachronisme', 'sport', 3),
(8, 'anachronisme', 'sport', 11),
(13, 'anachronisme', 'sport', 7);
-- --------------------------------------------------------
--
-- Structure de la table `sport`
--
CREATE TABLE `sport` (
`id` int(11) NOT NULL,
`question` text DEFAULT NULL,
`reponse` text DEFAULT NULL,
`level` int(11) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `sport`
--
INSERT INTO `sport` (`id`, `question`, `reponse`, `level`, `type`) VALUES
(1, 'Qu\'est ce qu\'un jab en boxe?', 'un direct du bras avant', 1, 'qcm'),
(2, 'Quelle est cette pénalite?', 'lancé franc', 1, 'qcm'),
(3, 'Combien de joueurs forment une équipe de basket?', '5', 1, 'texte'),
(4, 'Quel sport correspond à ces termes?', 'bowling', 1, 'qcm'),
(5, 'Comment etaient faites les queues de billard?', 'bois', 2, 'qcm'),
(6, 'Dan quel sport retoruve t\'on ces termes?', 'football americain', 2, 'texte'),
(7, 'Combien de periodes y\'a t-il dans un match de hockey?', '3', 2, 'qcm'),
(8, 'Combien de haies un athlete doit-il eviter lors d\'un 400m haies?', '10', 2, 'qcm'),
(9, 'Quelle equipe possede le plus grand stade?', 'barcelone', 2, 'texte'),
(10, 'Quelle est la taille d\'une cage de football?', '7,3', 2, 'qcm'),
(11, 'Quel est le premier club francais crée en France?', 'le Havre', 3, 'qcm'),
(12, 'Quelle est la vitesse moyenne d\'un lévrier?', '60', 3, 'qcm'),
(13, 'Lequel de ces tennisman a remporté le plus de fois Roland-Garros?', '<NAME>', 3, 'qcm'),
(14, 'Dans quel sport utilse t-on un sand-wedge?', 'golf', 3, 'qcm');
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `culture`
--
ALTER TABLE `culture`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `gamecard`
--
ALTER TABLE `gamecard`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `histoire`
--
ALTER TABLE `histoire`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `sciences`
--
ALTER TABLE `sciences`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `sport`
--
ALTER TABLE `sport`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT pour les tables déchargées
--
--
-- AUTO_INCREMENT pour la table `culture`
--
ALTER TABLE `culture`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT pour la table `gamecard`
--
ALTER TABLE `gamecard`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT pour la table `histoire`
--
ALTER TABLE `histoire`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT pour la table `sciences`
--
ALTER TABLE `sciences`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<file_sep><?php
require '../extern/dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>RANKING</title>
<meta charset="utf-8">
<link rel="stylesheet" href="classement.css">
</head>
<body>
<div class="logo">
<a href="../home.php" style="text-decoration:none;">Game Card</a>
</div>
<?php
$res = SelectClassement($conn);
AuxClassement($res);
?>
</body>
</html><file_sep><?php
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
if(isset($_POST["update"])){
$theme = $_POST["theme"];
$theme = mysqli_escape_string($conn,$theme);
$question = $_POST["question"];
$question = mysqli_escape_string($conn,$question);
$type = $_POST["type"];
$type = mysqli_escape_string($conn,$type);
RemoveQuest($theme,$question,$conn);
mysqli_close($conn);
}else {
header("Location: ../home.php");
exit();
}<file_sep><?php
require "../VIEWS/fonctionAffichage.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="signup.css">
<title>SIGN UP</title>
</head>
<body>
<div class="FORM">
<div class="FORM-text">
<header><a href="../home.php">Game Card</a></header>
<h1>Sign Up</h1>
<?php
if(isset($_GET["error"])){
msgSignup($_GET["error"]);
}
formAfficheFormSignUp();
?>
</div>
</div>
</body>
</html>
<file_sep><?php
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
if(isset($_POST["login-submit"])){
$username = $_POST["username"];
$username = mysqli_escape_string($conn,$username);
$password = $_POST["password"];
$password = mysqli_escape_string($conn,$password);
$res = SelectLogin($username,$conn);
PasswordCheck($password,$res);
}else {
header("Location: ../ACCOUNT/login.php");
exit();
}<file_sep><?php
session_start();
require '../extern/dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
$theme = $_GET["theme"];
$id = $_SESSION["userId"];
$tab = SelectJeuActive($id,$theme,$conn);
$score = $tab["currentScore"];
$ordreSuivant = $tab["ordreSuivant"];
$nbrErreur = $tab["nbrErreur"];
$bestEver = BestEver($theme,$conn);
UpdateBestEver($conn,$theme,$score,$bestEver);
$bestScore = BestScore($id,$conn);
UpdateGameCardBestScore($score,$bestScore,$id,$conn);
UpdateJeuActiveEnd($ordreSuivant,$id,$theme,$conn);
?>
<!DOCTYPE html>
<html>
<head>
<title>END OF THE GAME</title>
<meta charset="utf-8">
<link rel="stylesheet" href="endofthegame.css">
</head>
<body>
<div class="logo">
<a href="../home.php" style="text-decoration:none;">Game Card</a></div>
<?php
afficheFormVote($theme);
?>
<div class="gif" style="text-align:center">
<img src="../img-site/original%20(1).gif">
</div>
<div class="p" style="text-align:center;font-family:elgoc;">
End of the game! <br>
SCORE: <br>
<?php
echo $score;
?>
<br>
Vous avez fait
<?php
echo $nbrErreur;
?>
erreurs! <br>
<a href="jeu-principal.php" style="text-decoration:none;color:orchid;">BACK HOME</a>
</div>
</body>
</html><file_sep><?php
session_start();
require '../extern/dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
$theme = $_GET["theme"];
$id = $_SESSION["userId"];
UpdateLastGame($theme,$id,$conn);
if($_SERVER['REQUEST_METHOD']=="POST"){
$tab = SelectJeuActive($id,$theme,$conn);
$ordreActuel = $tab["ordreActuel"];
$ordreSuivant = $tab["ordreSuivant"];
$nbrErreur = $tab["nbrErreur"];
$currentScore = $tab["currentScore"];
$compteur = $tab["compteur"];
$ordreActuelexp = AuxExplode($ordreActuel);
$a = $ordreActuelexp[0];
$tab = SelectTheme($theme,$a,$conn);
$reponse = $tab["reponse"];
$reponse = strtolower($reponse);
$type = $tab["type"];
$level = $tab["level"];
if(isset($_POST["prop"])){
$rep1 = $_POST["prop"];
$rep1 = strtolower($rep1);
}else{
if(isset($_POST["reponse"])){
$rep1 = $_POST["reponse"];
$rep1 = mysqli_escape_string($conn,$rep1);
$rep1 = strtolower($rep1);
}else{
$rep1 = " ";
}
}
if($rep1!==$reponse){
if($type=="qcm"){
$nbrErreur++;
$ordreSuivant=$a."/".$ordreSuivant;
$currentScore-=30;
}else{
$nbrErreur++;
$ordreSuivant=$a."/".$ordreSuivant;
$currentScore-=20;
}
}else{
if($type=="qcm"){
if($level==1){
$currentScore+=35;
$ordreSuivant=$ordreSuivant.$a."/";
}else if($level==2){
$currentScore+=85;
$ordreSuivant=$ordreSuivant.$a."/";
}else{
$currentScore+=250;
$ordreSuivant=$ordreSuivant.$a."/";
}
}else{
if($level==1){
$currentScore+=65;
$ordreSuivant=$ordreSuivant.$a."/";
}else if($level==2){
$currentScore+=165;
$ordreSuivant=$ordreSuivant.$a."/";
}else{
$currentScore+=550;
$ordreSuivant=$ordreSuivant.$a."/";
}
}
}
$newOrdreActuel = [];
for($i=1;$i<count($ordreActuelexp);$i++){
$newOrdreActuel[$i-1]=$ordreActuelexp[$i];
}
$ordreActuel = implode("/",$newOrdreActuel);
$compteur++;
UpdateJeuActive($ordreActuel,$ordreSuivant,$nbrErreur,$currentScore,$compteur,$id,$theme,$conn);
if(empty($ordreActuel)){
header("Location: endofthegame.php?theme=".$theme);
exit();
}
}
//INITIALISATION
InitFirstCard($id,$theme,$conn);
$tab = SelectJeuActive($id,$theme,$conn);
$ordreActuel = $tab["ordreActuel"];
$compteur = $tab["compteur"];
$ordreActuelexp = AuxExplode($ordreActuel);
$a = $ordreActuelexp[0];
$tab = SelectTheme($theme,$a,$conn);
$question = $tab["question"];
$type = $tab["type"];
if($type=="qcm"){
$tab = SelectProp($a,$theme,$conn);
$prop1 = $tab["proposition1"];
$prop2 = $tab["proposition2"];
$prop3 = $tab["proposition3"];
afficherCarteProp($question,$prop1,$prop2,$prop3,$theme,$a,$compteur);
}else{
afficherCarteTexte($question,$theme,$a,$compteur);
}
<file_sep><?php
session_start();
require '../extern/dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
$id = $_SESSION["userId"];
?>
<!DOCTYPE html>
<html>
<head>
<title>MAIN</title>
<meta charset="utf-8">
<link rel="stylesheet" href="jeu-principal.css">
</head>
<body>
<div class="logo">
<a href="../home.php">Game Card</a></div>
<div style="text-align:center" class="msg-success">
<?php
if(isset($_GET["msg"])){
afficheMsgSignal($_GET["msg"]);
}
?>
</div>
<?php afficheFormResetQuiz(); ?>
<div style="text-align:center;margin-top:10px;">
<a href="classement.php" style="font-family:elgoc">About The Game</a>
</div>
<?php
$res = SelectLastGame($id,$conn);
$ligne = mysqli_fetch_assoc($res);
$theme = $ligne["lastGame"];
if($theme!=NULL){
afficheMsgLastGame($theme);
}
?>
<div class="gif" style="text-align:center">
<img src="../img-site/original%20(1).gif">
</div>
<div class="cards">
<!--<div class="histoire">
<a href="cardRep.php?theme=histoire"><h5>HISTOIRE</h5></a>
</div>
<div class="sport">
<a href="cardRep.php?theme=sport"><h5>SPORT</h5></a>
</div>
<div class="culture">
<a href="cardRep.php?theme=culture"><h5>CULTURE</h5></a>
</div>
<div class="sciences">
<a href="cardRep.php?theme=sciences"><h5>SCIENCES</h5></a>
</div>-->
<?php
$res = RecupTheme($conn);
AfficheTheme($res);
?>
</div>
</body>
</html>
<file_sep><?php
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
if(isset($_POST["theme"])){
$theme = $_POST["theme"];
$theme = mysqli_escape_string($conn,$theme);
RemoveTheme($theme,$conn);
mysqli_close($conn);
}else {
header("Location: ../home.php");
exit();
}<file_sep><?php
session_start();
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
$id = $_SESSION["userId"];
$theme = $_GET["theme"];
$questionId = $_GET["questionId"];
if(isset($_POST["submit-signal"])){
$objet =$_POST["objet"];
InsertSignal($id,$objet,$theme,$questionId,$conn);
$res = SelectSignal($theme,$questionId,$conn);
DeleteQuestSignal($res,$theme,$questionId,$conn);
mysqli_close($conn);
}else{
header("Location: ../home.php");
exit();
}
<file_sep><?php
session_start();
require '../extern/dbh.ext.php';
require "../VIEWS/fonctionRequete.php";
require "../VIEWS/fonctionAffichage.php";
$id = $_SESSION["userId"];
$bestScore = BestScore($id,$conn);
$status = UpdateStatus($bestScore,$conn);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="account.css">
<title>SIGN UP</title>
</head>
<body>
<div class="FORM">
<div class="FORM-text">
<header><a href="../home.php">Game Card</a></header>
<?php
if(isset($_GET["update"])){
msgUpdateAccount($_GET["update"]);
}
?>
<img src="../img-site/bo.png" width="150px">
<p>Best Score</p>
<p style="font-size:13px;font-style:italic;color:mediumorchid"><?php echo $bestScore; ?></p>
<p>status</p>
<p style="font-size:13px;font-style:italic;color:mediumorchid"><?php echo $status; ?></p>
<h1>Account</h1>
<?php
afficheFormAccount($status);
afficheFormAccountDelete();
?>
</div>
</div>
</body>
</html>
<file_sep><?php
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
require 'security.ext.php';
if(isset($_POST["signup-submit"])){
$name = $_POST["prenom"];
$name = mysqli_escape_string($conn,$name);
$username = $_POST["username"];
$username = mysqli_escape_string($conn,$username);
$email = $_POST["email"];
$email = mysqli_escape_string($conn,$email);
$password = $_POST["password"];
$password = mysqli_escape_string($conn,$password);
$password2 = $_POST["password2"];
$password2 = mysqli_escape_string($conn,$password2);
if(DataCheck($email,$username,$password,$password2)){
$res = SelectUserSignUp($username,$conn);
InsertUser($res,$conn,$name,$username,$password);
}
}else {
header("Location: ../ACCOUNT/signup.php");
exit();
}<file_sep><?php
session_start();
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
$theme = $_GET["theme"];
if(isset($_POST["submit-vote"])){
$res = SelectVisibilite($theme,$conn);
$tab = mysqli_fetch_assoc($res);
$nbrVisites = $tab["nbrVisites"];
$nbrVisites++;
$nbrVotes = $tab["nbrVotes"];
$compteur = $tab["compteurDifficulte"];
$compteur++;
$difficulte = $tab["difficulte"];
$vote =$_POST["vote"];
$voteDifficulte =$_POST["voteDifficulte"] + $difficulte;
$calcul = floor(($voteDifficulte)/$compteur);
if($vote=="oui"){
$nbrVotes++;
}
UpdateVote($nbrVisites,$nbrVotes,$theme,$conn);
UpdateVoteDifficulte($voteDifficulte,$compteur,$calcul,$theme,$conn);
mysqli_close($conn);
header("Location: ../jeu-principal/jeu-principal.php?msg=SUCCESSVOTE&theme=".$theme);
exit();
}else{
header("Location: ../home.php");
exit();
}
<file_sep><?php
session_start();
require '../extern/dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
$id = $_SESSION["userId"];
$theme = $_GET["theme"];
$questionId = $_GET["id"];
?>
<!DOCTYPE html>
<html>
<head>
<title>REPORT</title>
<meta charset="utf-8">
<link rel="stylesheet" href="endofthegame.css">
</head>
<body>
<div class="logo" style="margin-bottom:100px;">
<a href="../home.php" style="text-decoration:none">Game Card</a>
</div>
<div class="gif" style="text-align:center">
<img src="../img-site/original%20(1).gif" width="300px">
</div>
<?php afficheFormSignal($questionId,$theme); ?>
<div class="p" style="text-align:center;">
<a href="jeu-principal.php" style="text-decoration:none;font-family:elgoc">BACK HOME</a>
</div>
</body>
</html>
<file_sep><?php
session_start();
require 'dbh.ext.php';
require '../VIEWS/fonctionAffichage.php';
require '../VIEWS/fonctionRequete.php';
require '../VIEWS/fonctionAux.php';
if(isset($_POST["validate-submit"])){
$id = $_SESSION["userId"];
$name = $_POST["prenom"];
$name = mysqli_escape_string($conn,$name);
$username = $_POST["username"];
$username = mysqli_escape_string($conn,$username);
DataCheckAccount($name,$username,$id,$conn);
mysqli_close($conn);
}else {
header("Location: ../ACCOUNT/account.php");
exit();
}
| 9739e266bab8d24cddaeb91fb689f893a546b4c9 | [
"Markdown",
"SQL",
"PHP"
] | 29 | PHP | naelob/gamecard | c69b0017d8fe02da9c639d4317d7c008cf814ed4 | 4e1570a293ec6efa683dd361411caaaf416e3d7b |
refs/heads/master | <repo_name>canada11/MessagingServiceThreaded<file_sep>/messageLoadTest.py
import optparse
import socket
import sys
import threading
class Reset:
def __init__(self,host,port):
self.host = host
self.port = port
self.server = None
self.cache = ''
self.messages = {}
self.size = 1024
self.run()
def open_socket(self):
""" Setup the socket for the server """
try:
self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,1)
self.server.connect((self.host,self.port))
except socket.error, (value,message):
print "Could not open socket: " + message
sys.exit(1)
def close_socket(self):
self.server.close()
def run(self):
self.open_socket()
self.send_reset()
self.close_socket()
def send_reset(self):
self.server.sendall("reset\n")
response = self.get_response()
if response != "OK\n":
print "Failed to reset, got response:"
print response
def get_response(self):
while True:
data = self.server.recv(self.size)
if not data:
response = self.cache
self.cache = ''
return response
self.cache += data
message = self.get_message()
if not message:
continue
return message
def get_message(self):
index = self.cache.find("\n")
if index == "-1":
return None
message = self.cache[0:index+1]
self.cache = self.cache[index+1:]
return message
class Tester(threading.Thread):
def __init__(self,host,port,repetitions,name):
threading.Thread.__init__(self)
# daemon threads will die if the main program exits
threading.Thread.daemon = True
# initialize local variables
self.host = host
self.port = port
self.repetitions = repetitions
self.name = name
self.server = None
self.cache = ''
self.messages = {}
self.size = 1024
def open_socket(self):
""" Setup the socket for the server """
try:
self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,1)
self.server.connect((self.host,self.port))
except socket.error, (value,message):
print "Could not open socket: " + message
sys.exit(1)
def close_socket(self):
self.server.close()
def run(self):
""" run this thread for a certain number of iterations """
self.open_socket()
for iteration in range(1,self.repetitions+1):
success = self.testProtocol(iteration)
sys.stdout.flush()
if not success:
return
self.close_socket()
def testProtocol(self,iteration):
data = 'This is a test message.'
success = self.send_put('user1','hello',data)
if not success:
return success
success = self.send_list('user1')
if not success:
return success
success = self.send_get('user1',iteration,'hello',data)
return success
### Generic message handling ###
def get_response(self):
while True:
data = self.server.recv(self.size)
if not data:
response = self.cache
self.cache = ''
return response
self.cache += data
message = self.get_message()
if not message:
continue
message = self.handle_message(message)
return message
def get_message(self):
index = self.cache.find("\n")
if index == "-1":
return None
message = self.cache[0:index+1]
self.cache = self.cache[index+1:]
return message
def handle_message(self,message):
message = self.parse_message(message)
return message
### Message parsing ###
def parse_message(self,message):
fields = message.split()
if not fields:
return message
if fields[0] == 'list':
try:
number = int(fields[1])
except:
return message
data = self.read_list(number)
return message + data
if fields[0] == 'message':
try:
subject = fields[1]
length = int(fields[2])
except:
return message
data = self.read_message(length)
return message + data
return message
def read_list(self,number):
data = self.cache
newlines = data.count('\n')
while newlines < number:
d = self.server.recv(self.size)
if not d:
return None
data += d
newlines = data.count('\n')
fields = data.split('\n')
data = "\n".join(fields[:number]) + '\n'
self.cache = "\n".join(fields[number:])
return data
def read_message(self,length):
data = self.cache
while len(data) < length:
d = self.server.recv(self.size)
if not d:
return None
data += d
if data > length:
self.cache = data[length:]
data = data[:length]
else:
self.cache = ''
return data
### Sending messages ###
def send_put(self,name,subject,data):
self.server.sendall("put %s %s %d\n%s" % (name,subject,len(data),data))
response = self.get_response()
if response != "OK\n":
print "Failed with put:", response
return False
else:
return True
def send_list(self,name):
self.server.sendall("list %s\n" % (name))
response = self.get_response()
try:
fields = response.split()
if fields[0] != 'list':
print "Failed with list:", response
return False
print "%s listed %d messages" % (self.name,int(fields[1]))
return True
except:
print "Failed with list:",response
return False
def send_get(self,name,index,subject,data):
self.server.sendall("get %s %d\n" % (name,index))
response = self.get_response()
if response != "message %s %d\n%s" % (subject,len(data),data):
print "Failed with get:", response
return False
else:
return True
class WorkloadGenerator:
""" Generate a set of threads to make requests to the server """
def __init__(self, hostname, port, num_threads, repetitions):
# reset
r = Reset(hostname,port)
self.threads = []
self.hostname = hostname
self.port = port
for i in range(num_threads):
name = "Thread %d" % (i+1)
self.threads.append(Tester(hostname, port, repetitions, name))
def run(self):
""" run the workload generator """
for thread in self.threads:
thread.start()
for thread in self.threads:
thread.join(60)
if thread.isAlive():
print "Waited too long ... aborting"
return
if __name__ == "__main__":
# parse arguments
parser = optparse.OptionParser(usage = "%prog -s [server] -p [port] -t [threads] -r [repetitions]",version = "%prog 0.1")
parser.add_option("-p","--port",type="int",dest="port",
default=5000,
help="port to connect to")
parser.add_option("-s","--server",type="string",dest="server",
default='localhost',
help="server to connect to")
parser.add_option("-t", "--threads", dest="threads", type="int",
default=10,
help= "number of busy threads to test")
parser.add_option("-r", "--repetitions", dest="repetitions", type="int",
default=10,
help= "number of repetitions for each thread")
(options,args) = parser.parse_args()
# print welcome message
print "Server: %s" % (options.server)
print "Port: %d" % (options.port)
print "Threads: %d" % (options.threads)
print "Repetitions: %d" % (options.repetitions)
print "--------------------------------------------------------"
# launch generators
generator = WorkloadGenerator(options.server, options.port, options.threads,
options.repetitions)
generator.run()<file_sep>/server.h
//#pragma once
#include <errno.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <string>
#include <sstream>
#include <map>
#include <vector>
#include <pthread.h>
#include <queue>
#include "Logger.h"
#define NUM_THREADS 10
using namespace std;
class Server {
public:
Server(int port, bool debug);
~Server();
void run();
private:
int port_;
int server_;
int nread;
int buflen_;
char* buf_;
string cache;
Logger log = Logger(false);
map<string, vector<string>> users_messages;
pthread_t threads[NUM_THREADS];
queue<int> clients_queue;
pthread_mutex_t clients_array_mutex;
pthread_mutex_t cache_mutex;
pthread_mutex_t messages_mutex;
pthread_cond_t has_client_condition;
void init();
void create();
void close_socket();
void serve();
void* go(void*);
static void* go_caller(void*);
void handle(int);
string get_request(int);
bool send_response(int, string);
int interpret_request(string);
//string get_request_put(int, int);
void add_message(string, string);
string list(string);
string get(string, int);
};<file_sep>/README.md
**Currently has a couple small bugs, unkown exactly what/where. I probably won't get to them any time soon**
Simple messaging server that stores and retrieves messages for users.
- C++, (written to c++11 standard)
- All in RAM
- Multithreaded using PThreads, number of threads can be changed in server.h file definition NUM_THREADS
- Incoming users are added to a queue which threads pull from
- Mutex protected structures are the client queue, message array, and the cache
CS 360 Internet Programming project September 2015
Make commands:
make: Makes a client and server, called msg and msgd respectively, using this command:
g++ -g -Wall -std=c++11 -pthread server.h Logger.h echo-server.cc server.cc Logger.cpp -o msgd
make server: Compiles just a server into msgd
make client: Compliles just a client into msg
make clean: Deletes the compiled client and server programs (rm msg msgd)
make run-client: Starts a client that will look for a server running on port 5000, with debug enabled
make run-server: Starts a server listening on port 5000
make run-server-debug: Starts a server on port 5000 with debug enabled
make run-test: Runs a python test script that will act as a client and connect to a server on port 5000 to test the server to check if it follows the designed protocol
make run-test10: Runs a python test script that starts 10 clients and they send and request 10 messages each
make run-test100: Same as test10 but runs with 100 clients sending and requesting 100 messages
Running the program w/ the make file:
The messaging server should be called msgd and take the following arguments:
Argument Definition
---------------------------------------------------------
-p [port] port number of the messaging server
-d print debugging information
The messaging client should be called msg and take the following arguments:
Argument Definition
---------------------------------------------------------
-s [server] machine name of the messaging server (e.g. hiking.cs.byu.edu)
-p [port] port number of the messaging server
-d print debugging information
Custom messaging interface:
- Storing Messages
Request
put [name] [subject] [length]\n[message]
Responses
OK\n
error [description]\n
The put request asks the server to store a message for a user identified by [name]. The request consists of a [subject] and [length] characters. The [message] comes after the newline. The [length] is the number of characters in the message and does not include the newline or any of the characters before it. The server returns the OK response if the message is stored successfully. Otherwise, the server returns the error response, including a descriptive message explaining the error.
Messages are stored in memory and are not written to disk. This means that multiple clients can connect over time and read all messages stored on the server, but once the server quits all messages are lost.
- Listing Messages
Request
list [name]\n
Responses
list [number]\n[index] [subject]\n...[index] [subject]\n
error [description]\n
The list request gets a list of messages for a user identified by [name]. The server returns the list response if the query is formatted properly. The [number] returned may be zero if no messages are stored for that user. The subsequent lines list a numeric [index] and the associated [subject] for each message stored for the user. Otherwise, the server returns the error response, including a descriptive message explaining the error. The [index] should count starting at 1 and should be unique for each user.
- Retrieving Messages
Request
get [name] [index]\n
Responses
message [subject] [length]\n[message]
error [description]\n
The get request gets a message given by [index] for a user identified by [name]. The server returns the message response if the query is formatted properly and a message with the given index exists for the listed user. The message consists of a [subject] and [length] characters. The entire message comes after the newline character. The [length] is the number of characters in the message and does not include the newline or any of the characters before it. Otherwise, the server returns the error response, including a descriptive message explaining the error.
- Reset
Request
reset\n
Responses
OK\n
The reset request removes all stored messages for all users. This is used for testing purpose
Client User Interface:
- Send Command
% send [user] [subject]
- Type your message. End with a blank line -
[message]
...
[message]
[blank line]
%
This allows the user to store a [message] for the identified [user] with the given [subject]. The user types the first line shown, and the client responds with the instructions to type a message. The user then types the rest of the message and ends with a blank line. Once the use finishes, the client formats a put request, sends it to the server, and waits for a response. The client should only print a response from the server if it returns an error. The client shows the prompt when it is done.
- List Command
% list [user]
[index] [subject]
...
[index] [subject]
%
This allows the user to list all the messages for [user]. The user types the first line shown. The client formats a list request, sends it to the server, and waits for a response. The client should print the list of indexes and subjects, or an error message. The [index] should start counting at 1 and should be unique for each user.
- Read Command
% read [user] [index]
[subject]
[message]
%
This reads the message at [index] for the identified [user]. The user types the first line shown. The client formats a get request, sends it to the server, and waits for a response. The client should print the subject and the message retrieved, or an error message.
- Quit Command
% quit
This quits the program.
<file_sep>/echo-client.cc
#include <stdlib.h>
#include <unistd.h>
#include <iostream>
#include <errno.h>
#include "client.h"
using namespace std;
int main(int argc, char **argv)
{
int option;
// setup default arguments
int port = 3000;
string host = "localhost";
Logger log = Logger(false);
string info = "";
string error = "";
string warn = "";
//Process command lind arguments, retuns -1 when no more arguments
while ((option = getopt(argc,argv,"s:p:d")) != -1) {
switch (option) {
case 'p':
{
info = "Client setting port: ";
log.info(info.append(optarg));
port = stoi(optarg, nullptr, 10);
//if the passed in value was not a number
if(port == 0) {
log.error("Port parameter was not in correct format or 0, may not be 0");
}
//if the passed in number was outside of the int(long? becuase it uses strtol()) range
if(errno == ERANGE) {
log.error("Port number was out of range");
}
break;
}
case 's':
{
info = "Client setting server: ";
log.info(info.append(optarg));
host = optarg;
break;
}
case 'd':
{
log.set_debug(true);
info = "Client set debug true";
log.info(info);
break;
}
default:
{
log.error("Usage: msg -options: [-s server] [-p port] [-d (debug)]");
exit(EXIT_FAILURE);
}
}
}
Client client = Client(host, port, log.get_debug());
client.run();
}<file_sep>/echo-server.cc
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <iostream>
#include "server.h"
using namespace std;
int main(int argc, char **argv)
{
int option, port;
// setup default arguments
port = 3000;
Logger log = Logger(false);
string info = "";
string error = "";
string warn = "";
//Process command lind arguments, retuns -1 when no more arguments
while ((option = getopt(argc,argv,"p:d")) != -1) {
switch (option) {
case 'p':
{
info = "Server setting port: ";
log.info(info.append(optarg));
port = stoi(optarg, nullptr, 10);
//if the passed in value was not a number
if(port == 0) {
log.error("Port parameter was not in correct format or 0, may not be 0");
}
//if the passed in number was outside of the int(long? becuase it uses strtol()) range
if(errno == ERANGE) {
log.error("Port number was out of range");
}
break;
}
case 'd':
{
log.set_debug(true);
info = "Client set debug true";
log.info(info);
break;
}
default:
{
log.error("Usage: msgd -options: [-p port] [-d (debug)]");
exit(EXIT_FAILURE);
}
}
}
Server server = Server(port, log.get_debug());
server.run();
}<file_sep>/Makefile
# Makefile for echo client and server
CC= g++ $(CCFLAGS)
SERVER= server.h Logger.h echo-server.cc server.cc Logger.cpp
CLIENT= client.h Logger.h echo-client.cc client.cc Logger.cpp
OBJS = $(SERVER) $(CLIENT)
STARGET = msgd
CTARGET = msg
CCFLAGS= -g -Wall -std=c++11 -pthread
LIBS =
#LIBS = -lpthread
all: client server
server:$(SERVER)
$(CC) $(SERVER) -o $(STARGET) $(LIBS)
client:$(CLIENT)
$(CC) $(CLIENT) -o $(CTARGET) $(LIBS)
#run: $(STARGET)
# ./$(STARGET)
run-client: $(CTARGET)
./$(CTARGET) -s localhost -p 5000 -d
run-server: $(STARGET)
./$(STARGET) -p 5000
run-server-debug: $(STARGET)
./$(STARGET) -p 5000 -d
run-server-valgrind: $(STARGET)
valgrind --leak-check=yes ./$(STARGET) -p 5000
run-test:
python ./messageTest.py -s localhost -p 5000
run-test10:
python ./messageLoadTest.py -s localhost -p 5000 -t 10 -r 10
run-test100:
python ./messageLoadTest.py -s localhost -p 5000 -t 100 -r 100
clean:
rm msg msgd
# rm -f $(OBJS) $(OBJS:.o=.d)
#realclean:
# rm -f $(OBJS) $(OBJS:.o=.d) server client
# These lines ensure that dependencies are handled automatically.
#%.d: %.cc
# $(SHELL) -ec '$(CC) -M $(CPPFLAGS) $< \
# | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
# [ -s $@ ] || rm -f $@'
#include $(OBJS:.o=.d)
<file_sep>/client.cc
#include "client.h"
Client::Client(string host, int port, bool debug) {
// setup variables
host_ = host;
port_ = port;
buflen_ = 1024;
buf_ = new char[buflen_+1];
log.set_debug(debug);
}
Client::~Client() {
delete[] buf_;
}
void Client::run() {
// connect to the server and run echo program
create();
string info = "";
string input;
cout << "% ";
//Loop for user interface
while (getline(cin, input)) {
//set up string to send over
string transmit_string = "";
//string stream for parsing the input, first check what they want to do
stringstream to_parse;
to_parse.str(input);
//temporary string with the first token in commnand line
string request = "";
getline(to_parse, request, ' ');
//Get what action user wants to do
int action = interpret_request(request);
info = "Action was: ";
log.info(info + to_string(action));
if (action == 0) {
//Quit client
break;
}
//FIXME: possibly there was just one thing on input, the behavior here will be undefined if so, figure out what to do
getline(to_parse, request, ' '); //get user out of input
switch (action)
{
case 1: //SEND request, parse out SUBJECT
{
transmit_string += "put " + request;//request should currently have the user in it
//parse out the subject
getline(to_parse, request, ' ');
//append the subject
transmit_string += " " + request;
//get the message from the user
cout << "- Type your message. End with a blank line -\n[message]\n...\n[message]\n[blank line]\n% ";
string user_message = "";
getline(cin, user_message);
//get the length of the message
transmit_string += " " + to_string(user_message.size()) + " " + '\n';
//append a newline and the message
transmit_string += user_message;
break;
}
case 2: //LIST request
{
transmit_string += "list " + request;
break;
}
case 3: //READ request, parse out INDEX
{
transmit_string += "get " + request + " ";
//parse index
getline(to_parse, request, ' ');
transmit_string += request;
break;
}
case 4: //RESET request
{
transmit_string += "reset";
break;
}
default:
//*Need to error check if the action was a -1 which means bad input
cout << "Sorry that was not a compatible input\n";
log.error("Bad input command on client\n");
break;
}
//FIXME: Could error check for if there's more params that shouldn't be
// send request
log.info("transmit_string string being sent: " + transmit_string);
bool success = send_request(transmit_string + "\n");
// break if an error occurred
if (not success)
{
log.error("Error in client.cpp: Could not send request to server");
break;
}
// get a response
success = get_response();
// break if an error occurred
if (not success)
{
log.error("Error in client.cpp: Could not get response");
break;
}
cout << "% ";
}
}
void Client::create() {
struct sockaddr_in server_addr;
// use DNS to get IP address
struct hostent *hostEntry;
hostEntry = gethostbyname(host_.c_str());
if (!hostEntry) {
cout << "No such host name: " << host_ << endl;
exit(-1);
}
// setup socket address structure
memset(&server_addr,0,sizeof(server_addr));
server_addr.sin_family = AF_INET;
server_addr.sin_port = htons(port_);
memcpy(&server_addr.sin_addr, hostEntry->h_addr_list[0], hostEntry->h_length);
// create socket
server_ = socket(PF_INET,SOCK_STREAM,0);
if (!server_) {
perror("socket");
exit(-1);
}
// connect to server
if (connect(server_,(const struct sockaddr *)&server_addr,sizeof(server_addr)) < 0) {
perror("connect");
exit(-1);
}
}
void Client::close_socket() {
close(server_);
}
void Client::echo() {
string line;
// loop to handle user interface
while (getline(cin,line)) {
// append a newline
line += "\n";
// send request
bool success = send_request(line);
// break if an error occurred
if (not success)
break;
// get a response
success = get_response();
// break if an error occurred
if (not success)
break;
}
close_socket();
}
bool Client::send_request(string request) {
// prepare to send request
const char* ptr = request.c_str();
int nleft = request.length();
int nwritten;
// loop to be sure it is all sent
while (nleft) {
if ((nwritten = send(server_, ptr, nleft, 0)) < 0) {
if (errno == EINTR) {
// the socket call was interrupted -- try again
continue;
} else {
// an error occurred, so break out
perror("write");
return false;
}
} else if (nwritten == 0) {
// the socket is closed
return false;
}
nleft -= nwritten;
ptr += nwritten;
}
return true;
}
bool Client::get_response() {
log.info("Getting response from server");
string response = "";
// read until we get a newline
while (response.find("\n") == string::npos) {
int nread = recv(server_,buf_,1024,0);
if (nread < 0) {
if (errno == EINTR)
// the socket call was interrupted -- try again
continue;
else
// an error occurred, so break out
return "";
} else if (nread == 0) {
// the socket is closed
return "";
}
// be sure to use append in case we have binary data
response.append(buf_,nread);
}
// a better client would cut off anything after the newline and
// save it in a cache
//cout << response;
log.info("Response Client got from server: " + response);
return true;
}
/**
* Interprets the request from the user
*
* @param the request from the user
* @return returns an int value to be interpreted
*/
int Client::interpret_request(string request)
{
//if the return value stays as -1 then there was a bad input
int return_value = -1;
if (request == "quit")
{
return_value = 0;
}
else if(request == "send")
{
return_value = 1;
}
else if(request == "list")
{
return_value = 2;
}
else if(request == "read")
{
return_value = 3;
}
else if(request == "reset")
{
return_value = 4;
}
return return_value;
}<file_sep>/messageTest.py
import optparse
import socket
import sys
class Tester:
def __init__(self,host,port):
self.host = host
self.port = port
self.server = None
self.cache = ''
self.messages = {}
self.size = 1024
self.parse_options()
self.run()
def parse_options(self):
parser = optparse.OptionParser(usage = "%prog [options]",
version = "%prog 0.1")
parser.add_option("-p","--port",type="int",dest="port",
default=5000,
help="port to connect to")
parser.add_option("-s","--server",type="string",dest="host",
default='localhost',
help="server to connect to")
(options,args) = parser.parse_args()
self.host = options.host
self.port = options.port
def open_socket(self):
""" Setup the socket for the server """
try:
self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,1)
self.server.connect((self.host,self.port))
except socket.error, (value,message):
print "Could not open socket: " + message
sys.exit(1)
def close_socket(self):
self.server.close()
def run(self):
self.testProtocol()
self.testUsers()
self.testErrors()
self.testLarge()
self.testPartial()
def testProtocol(self):
print "*** Message Protocol ***"
self.open_socket()
self.send_reset()
data = 'This is a test message.'
self.send_put('user1','hello',data)
self.send_list('user1',"list 1\n1 hello\n")
self.send_get('user1',1,'hello',data)
self.close_socket()
def testUsers(self):
print "*** Message Protocol (Multiple Users) ***"
self.open_socket()
data1 = 'This is a test message.'
self.send_put('user1','testing',data1)
data2 = 'Where are you?'
self.send_put('user2','hello',data2)
self.send_list('user1',"list 2\n1 hello\n2 testing\n")
self.send_list('user2',"list 1\n1 hello\n")
self.send_get('user1',2,'testing',data1)
self.send_get('user2',1,'hello',data2)
self.close_socket()
def testErrors(self):
print "*** Errors ***"
self.open_socket()
self.send_bad_msg("bad\n")
self.send_bad_msg("put bad\n")
self.send_bad_msg("put bad hello\n")
self.send_bad_msg("list\n")
self.send_bad_msg("get\n")
self.send_bad_msg("get bad\n")
self.send_bad_msg("get bad 10000\n")
self.close_socket()
def testLarge(self):
print "*** Test Large Message ***"
self.open_socket()
data = "This is a " + "really "*1000 + "long message."
self.send_put('user3','hello',data)
self.send_list('user3',"list 1\n1 hello\n")
self.send_get('user3',1,'hello',data)
self.close_socket()
def testPartial(self):
print "*** Test Partial Messages ***"
self.open_socket()
data = "This is a " + "really "*1000 + "long message."
self.send_put_slow('user4','hello',data)
self.send_list('user4',"list 1\n1 hello\n")
self.send_get('user4',1,'hello',data)
self.close_socket()
def get_response(self):
while True:
data = self.server.recv(self.size)
if not data:
response = self.cache
self.cache = ''
return response
self.cache += data
message = self.get_message()
if not message:
continue
message = self.handle_message(message)
return message
def get_message(self):
index = self.cache.find("\n")
if index == -1:
return None
message = self.cache[0:index+1]
self.cache = self.cache[index+1:]
return message
def handle_message(self,message):
message = self.parse_message(message)
return message
def parse_message(self,message):
fields = message.split()
if not fields:
return message
if fields[0] == 'list':
try:
number = int(fields[1])
except:
return message
data = self.read_list(number)
return message + data
if fields[0] == 'message':
try:
subject = fields[1]
length = int(fields[2])
except:
return message
data = self.read_message(length)
return message + data
return message
def read_list(self,number):
data = self.cache
newlines = data.count('\n')
while newlines < number:
d = self.server.recv(self.size)
if not d:
return None
data += d
newlines = data.count('\n')
fields = data.split('\n')
data = "\n".join(fields[:number]) + '\n'
self.cache = "\n".join(fields[number:])
return data
def read_message(self,length):
data = self.cache
while len(data) < length:
d = self.server.recv(self.size)
if not d:
return None
data += d
if data > length:
self.cache = data[length:]
data = data[:length]
else:
self.cache = ''
return data
def send_reset(self):
print "Test reset"
self.server.sendall("reset\n")
response = self.get_response()
if response != "OK\n":
print "Failed to reset, got response:"
print response
else:
print "OK"
def send_put(self,name,subject,data):
print "Test put"
self.server.sendall("put %s %s %d\n%s" % (name,subject,len(data),data))
response = self.get_response()
if response != "OK\n":
print "Failed to put a message, got response:"
print response
else:
print "OK"
def send_put_slow(self,name,subject,data):
print "Test put"
self.server.sendall("put %s %s %d\n" % (name,subject,len(data)))
for c in data:
self.server.send(c)
response = self.get_response()
if response != "OK\n":
print "Failed to put a message, got response:"
print response
else:
print "OK"
def send_list(self,name,expected_response):
print "Test list"
self.server.sendall("list %s\n" % (name))
response = self.get_response()
if response != expected_response:
print "Failed to list messages, got response:"
print response
else:
print "OK"
def send_get(self,name,index,subject,data):
print "Test get"
self.server.sendall("get %s %d\n" % (name,index))
response = self.get_response()
if response != "message %s %d\n%s" % (subject,len(data),data):
print "Failed to get a message, got response:"
print response
else:
print "OK"
def send_bad_msg(self,msg):
print "Test bad message",msg,
self.server.sendall(msg)
response = self.get_response()
try:
fields = response.split()
if fields[0] != "error":
print "Failed to get error message:"
print response
else:
print "OK"
except:
print "Failed to get error message:"
print response
if __name__ == '__main__':
s = Tester('',5000)<file_sep>/Logger.cpp
#include "Logger.h"
Logger::Logger(bool debug) {
debug_ = debug;
if(debug_){
cout.flush();
}
}
Logger::~Logger() {
}
void Logger::error(string error_message) {
error_message_ = error_message;
if(debug_) {
//t = time(0);
//cout.flush();
cout << /*ctime(&t) << */ERROR << error_message << endl;
}
}
void Logger::info(string info) {
if(debug_) {
//t = time(0);
//cout.flush();
cout << /*ctime(&t) << */INFO << info << endl;
}
}
void Logger::warn(string warning) {
if(debug_) {
//t = time(0);
//cout.flush();
cout << /*ctime(&t) << */WARN << warning << endl;
}
}
void Logger::set_debug(bool debug) {
debug_ = debug;
}
bool Logger::get_debug() {
return debug_;
}<file_sep>/Logger.h
//#pragma once
#include <stdlib.h>
#include <unistd.h>
#include <string>
#include <iostream>
//#include <time.h> // time_t, time, ctime
using namespace std;
class Logger
{
private:
//time_t t;
bool debug_ = false;
string error_message_;
const string ERROR = "ERROR: ";
const string INFO = "INFO: ";
const string WARN = "WARN: ";
public:
Logger(bool);
~Logger();
void info(string);
void error(string);
void warn(string);
void set_debug(bool);
bool get_debug();
};<file_sep>/server.cc
#include "server.h"
Server::Server(int port, bool debug) {
// setup variables
port_ = port;
buflen_ = 4096;
nread = buflen_;
buf_ = new char[buflen_+1];
cache = "";
log.set_debug(debug);
}
Server::~Server() {
// delete[] buf_;
}
void Server::run() {
// create and run the server
init();
create();
serve();
}
void Server::init(){
//set up mutexes & conditions
pthread_mutex_init(&clients_array_mutex, NULL/*attribute*/);
pthread_mutex_init(&cache_mutex, NULL);
pthread_mutex_init(&messages_mutex, NULL);
pthread_cond_init(&has_client_condition, NULL);
Server* s = this;
//Start threads waiting on clients
for(pthread_t t : threads){
int state = pthread_create(&t, NULL/*attribute*/, &Server::go_caller, (void*)s);
if(state != 0) {
log.warn("PThread creation error: " + state);
}
}
}
void Server::create() {
struct sockaddr_in server_addr;
// setup socket address structure
memset(&server_addr,0,sizeof(server_addr));
server_addr.sin_family = AF_INET;
server_addr.sin_port = htons(port_);
server_addr.sin_addr.s_addr = INADDR_ANY;
// create socket
server_ = socket(PF_INET,SOCK_STREAM,0);
if (!server_) {
perror("socket");
exit(-1);
}
// set socket to immediately reuse port when the application closes
int reuse = 1;
if (setsockopt(server_, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse)) < 0) {
perror("setsockopt");
exit(-1);
}
// call bind to associate the socket with our local address and
// port
if (bind(server_,(const struct sockaddr *) &server_addr, sizeof(server_addr)) < 0) {
perror("bind");
exit(-1);
}
// convert the socket to listen for incoming connections
if (listen(server_,SOMAXCONN) < 0) {
perror("listen");
exit(-1);
}
}
void Server::close_socket() {
close(server_);
//pthread_join(pthread_t ALL, void **thread_return);
}
void Server::serve() {
// setup client
int client;
struct sockaddr_in client_addr;
socklen_t clientlen = sizeof(client_addr);
// accept clients
while ((client = accept(server_,(struct sockaddr *)&client_addr,&clientlen)) > 0) {
//lock clients queue prior to adding one
pthread_mutex_lock(&clients_array_mutex);
//add client to queue (already called accept, bad?, do that after?)
clients_queue.push(client);
//tell threads there's a client
pthread_cond_signal(&has_client_condition);
//unlock clients array
pthread_mutex_unlock(&clients_array_mutex);
}
close_socket();
}
void* Server::go_caller(void* p){
Server* s = (Server*) p;
s->go(NULL);
return NULL;
}
void* Server::go(void* arg){
//Run forever handling clients
while(true){
pthread_mutex_lock(&clients_array_mutex);
//check queue and if empty wait on it to get more
while(clients_queue.empty()) {
pthread_cond_wait(&has_client_condition, &clients_array_mutex);
}
//get client and remove from queue
int client = clients_queue.front();
clients_queue.pop();
//unlock mutex, then handle client
pthread_mutex_unlock(&clients_array_mutex);
handle(client);
}
return NULL;
}
void Server::handle(int client) {
// loop to handle all requests
while (1)
{
//initialize variables for storage
string user = "";
string subject = "";
string message = "";
string response = "";
string length = "";
string client_s = to_string(client);
int index;
// get a request, returns string up to newline
pthread_mutex_lock(&cache_mutex);
string request = get_request(client);
//pthread_mutex_unlock(&cache_mutex);
// break if client is done or an error occurred
if (request.empty())
{
pthread_mutex_unlock(&cache_mutex);
log.error("In server.cpp: request was empty or other error, client: " + client_s);
break;
}
//determine what the request was
stringstream to_parse(request);
//string for storing request as it's parsed
string parsed_request = "";
//parse out the number determining the request
getline(to_parse, parsed_request, ' ');
//get a number for switch statment from the request
int request_num = interpret_request(parsed_request);
switch(request_num)
{
case 1: //PUT
{
log.info("PUT, client: " + client_s);
//parse out the parameters: user, subject, message length
getline (to_parse, user, ' ');
getline (to_parse, subject, ' ');
if(to_parse.good() == false){
pthread_mutex_unlock(&cache_mutex);
log.error("Request was malformed, client: " + client_s);
response = "error put request was missing parameters\n";
break;
}
getline (to_parse, length);
if(length == "") {
pthread_mutex_unlock(&cache_mutex);
log.error("Request was malformed, client: " + client_s);
response = "error put is missing length\n";
break;
}
//pthread_mutex_lock(&cache_mutex);
//grab cache in case we had a partial message
message = cache;
//clear cache
cache = "";
//pthread_mutex_unlock(&cache_mutex)
//make length an int instead of a string
int length_int = 0;
stringstream atoiconvert(length);
atoiconvert >> length_int;
//make a string that consists of subject + message string
subject += " " + to_string(length_int) + '\n' + message;
//if there's more then get rest of message
if(length_int > buflen_) {
int bytes_of_msg_received = message.size();
while(bytes_of_msg_received < length_int) {
string more_of_message = get_request(client);
if(more_of_message == "") {
log.error("Client: " + client_s + "Server problem while getting more of a message");
}
message += cache;
subject += cache;
bytes_of_msg_received += cache.size();
cache = "";
log.info("Client: " + client_s + " Message size = " + to_string(message.size()) + " and bytes_of_msg_received = " + to_string(bytes_of_msg_received));
}
}
pthread_mutex_unlock(&cache_mutex);
if(message.size() != length_int) {
log.error("Client: " + client_s + "Message was not same size as indicated length: Actual message length = " + to_string(message.size()) + " Client given length = " + length);
response = "error message length was not as specified\n";
break;
}
log.info("Client: " + client_s + "Storing: User: " + user + " Subject: " + subject);
//log.info("\nStoring this String: " + subject + "**");
//add message (which is in subject string)
add_message(user, subject);
//set response to OK\n, that everything worked
response = "OK\n";
break;
}
case 2: //LIST
{
pthread_mutex_unlock(&cache_mutex);
log.info("LIST, client: " + client_s);
//check if the input stream ended early, indicating bad input
if(to_parse.eof() == true) {
//log.error("error bad input: too few arguments\n");
response = "error bad input too few arguments\n";
break;
}
//parse out the things
getline (to_parse, user);
response = list(user);
break;
}
case 3: //GET
{
pthread_mutex_unlock(&cache_mutex);
log.info("GET, client: " + client_s);
//parse the username
getline(to_parse, user, ' ');
//check if the input stream ended early, indicating bad input
if(to_parse.eof() == true) {
//log.error("error bad input: too few arguments\n");
response = "error bad input too few arguments\n";
break;
}
//parse the index number for the vector of messages
string index_tmp = "";
getline(to_parse, index_tmp);
//convert index from string to int
stringstream atoiconv(index_tmp);
atoiconv >> index;
//get the message for the user at index indicated
response = get(user, index);
break;
}
case 4: //RESET
{
pthread_mutex_unlock(&cache_mutex);
log.info("RESET, client: " + client_s);
//erase all user information
pthread_mutex_lock(&messages_mutex);
users_messages.clear();
pthread_mutex_unlock(&messages_mutex);
//set response to OK\n, that everything worked
response = "OK\n";
break;
}
default:
{
pthread_mutex_unlock(&cache_mutex);
//log.info("error Invalid request, on server side in server.cpp\n");
response = "error didn't recognize command: " + parsed_request;
log.error("Client: " + client_s + "Didn't recognize command: " + parsed_request);
break;
}
}
// send response
bool success = send_response(client, response);
// break if an error occurred
if (not success) {
log.error("Problem with sending a response in Server.cpp, client: " + client_s);
perror("send");
break;
}
}
close(client);
}
string Server::get_request(int client) {
string data = "";
string incoming_data = "";
string client_s = to_string(client);
//init nread for the check later, then it will run through once
nread = buflen_;
//variable for determining the position in the string that the \n was found, after that position is stored in the cache
int end_of_request = 0;
//initialize it on an empty string where it will be set to string::npos
end_of_request = incoming_data.find_first_of("\n");
//read until a \n was found
while (end_of_request == string::npos) {
//sometimes get_request() was called for no apparent reason and cause the server to hang since the client didn't initalize the request,
//so if nread (global) will indicate if the last recv() got everything that the client had to send
//won't work in one case where client sent exactly buflen_ bytes
if(nread < buflen_){
//cache was already grabbed, clear it just in case
cache = "";
break;
}
log.info("Calling recv()");
//receive from client
nread = recv(client,buf_,buflen_,0);
//Report an error when nread is 0 or less
if (nread < 0) {
if (errno == EINTR) {
// the socket call was interrupted -- try again
log.error("Socket call was interrupted, trying again, client: " + client_s);
continue;
}
else {
// an error occurred, so break out
log.error("Client: " + client_s + " Error occured during recv() call, errno = " + to_string(errno));
return "";
}
} else if (nread == 0) {
// the socket is closed
log.error("Socket is closed, (more specifically nread was 0), client: " + client_s);
return "";
}
//append all recieved data to a growing string
//Using append() in case we have binary data
incoming_data.append(buf_, nread);
log.info("Nread = " + to_string(nread));
//look for the \n character
end_of_request = incoming_data.find_first_of("\n");
}
//send back everything up to \n character
data = cache + incoming_data.substr(0, end_of_request+1);
//cache everything after \n character
cache = incoming_data.substr(end_of_request+1);
//Logging information
log.info("RECV: get_request: " + data);
if(cache == "") {
log.info("No cache, client: " + client_s);
}
else {
log.info("Client: " + client_s + " Caching: " + cache);
}
//return information
return data;
}
bool Server::send_response(int client, string response) {
log.info("Sending repsponse: " + response);
// prepare to send response
const char* ptr = response.c_str();
int nleft = response.length();
int nwritten;
// loop to be sure it is all sent
while (nleft) {
if ((nwritten = send(client, ptr, nleft, 0)) < 0) {
if (errno == EINTR) {
// the socket call was interrupted -- try again
continue;
} else {
// an error occurred, so break out
perror("write");
return false;
}
} else if (nwritten == 0) {
// the socket is closed
return false;
}
nleft -= nwritten;
ptr += nwritten;
}
return true;
}
//3rd Tier Private functions
int Server::interpret_request(string request)
{
//if the return value stays as -1 then there was a bad input
int return_value = -1;
if (request == "quit") {
//?should this also quit the server or just the client?
return_value = 0;
}
else if(request == "put") {
return_value = 1;
}
else if(request == "list") {
return_value = 2;
}
else if(request == "get") {
return_value = 3;
}
else if(request == "reset\n") {
return_value = 4;
}
return return_value;
}
/**
* Adds the specified message to the messages vector and returns the index
* it was inserted at.
*
*/
void Server::add_message(string user, string message)
{
//check if user exists
//log.info(to_string(users_messages.count(user)) + '\n');
pthread_mutex_lock(&messages_mutex);
if(users_messages.count(user) == 1) {
//vector for the users' messages
users_messages[user].push_back(message);
}
else {
//if user doesn't exist then make a new entry
//first make a vector to store users' messages
vector<string> new_user_vector;
new_user_vector.push_back(message);
users_messages.insert(pair<string, vector<string>>(user, new_user_vector));
}
pthread_mutex_unlock(&messages_mutex);
}
/**
* Makes and formats a string to return with the index and subjects of messages for a user
*/
string Server::list(string user)
{
//return string
string return_string = "";
//make a temp vector for the one associated with the user
vector<string> temp_messages_vector;
pthread_mutex_lock(&messages_mutex);
temp_messages_vector = users_messages[user];
pthread_mutex_unlock(&messages_mutex);
//protocol needs list in front
return_string += "list ";
int tmp_vec_size = temp_messages_vector.size();
//add to the return string how many messages there are
return_string += to_string(tmp_vec_size) + '\n';
//if no messages then just return a zero
if(tmp_vec_size == 0) {
return_string += to_string(0) + '\n';
}
//iterate and get all messages for a user
for (int i = 0; i < tmp_vec_size; i++) {
//get subject from the message
stringstream tmp(temp_messages_vector[i]);
string subject = "";
getline(tmp, subject, ' ');
return_string += to_string(i + 1) + " " + subject + '\n';
//for debug
//log.info("Whole string: " + "**\n" + temp_messages_vector[i] + "**\n");
}
return return_string;
}
/**
* Gets the message from the user from the specified index
*/
string Server::get(string user, int index)
{
//return string
string return_string = "";
pthread_mutex_lock(&messages_mutex);
//if user doesn't exist don't check
if(users_messages.count(user) == 0) {
//log.error("No such user to GET from\n");
pthread_mutex_unlock(&messages_mutex);
return_string = "error no such user\n";
return return_string;
}
//make a temp vector for the one associated with the user
vector<string> temp_messages_vector;
//assign temp vector to the stored one for the user
temp_messages_vector = users_messages[user];
pthread_mutex_unlock(&messages_mutex);
//if user doesn't have a message at the index return
if(temp_messages_vector.size() < index) {
//log.error("No message at specified index to GET from\n");
return_string = "error no message at index\n";
return return_string;
}
//set return string to the message at [index] in the vector
return_string = "message " + temp_messages_vector[index - 1];
return return_string;
} | b7e9edb8cafc0b92d02311beeab54b301615c4d2 | [
"Markdown",
"Python",
"Makefile",
"C++"
] | 11 | Python | canada11/MessagingServiceThreaded | 97847118d0d8e2a2b26e3dfbe0965c6adaa79f74 | 212f909ea9c2e100e8cef434bbfe1978854f6044 |
refs/heads/master | <file_sep>
# Create DB
CREATE DATABASE IF NOT EXISTS `CLAS12OCR`;
CREATE DATABASE IF NOT EXISTS `CLAS12TEST`;
<file_sep>#!/usr/bin/env python
# ****************************************************************
"""
# Info
"""
# ****************************************************************
from __future__ import print_function
from utils import (fs, gcard_helper, get_args, scard_helper,
user_validation, utils)
import argparse
import os
import sqlite3
import subprocess
import sys
import time
import numpy as np
import gcard_selector
from subprocess import PIPE, Popen
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))+'/../../')
# Could also do the following, but then python has to search the
# sys.path.append(os.path.dirname(os.path.abspath(__file__)))
def gcard_handler(args, UserSubmissionID, timestamp, scard_fields):
""" The below two lines are commented out because we are not
currently using interactive gcard selection
print("You have not specified a custom gcard,
please use one of the common CLAS12 gcards listed below \n")
scard_fields.data['gcards'] = gcard_selector.select_gcard(args)
"""
utils.printer("Writing GCards to Database")
gcard_helper.GCard_Entry(UserSubmissionID, timestamp,
scard_fields.data['gcards'])
print("Successfully added gcards to database")
return scard_fields
if __name__ == "__main__":
args = get_args.get_args_client()
gcard_handler(args, UserSubmissionID, timestamp, scard_fields)
<file_sep>"""
Tests for update_tables. A database is built in memory that
mimics the structure of our full database.
"""
# Standard Lib
import os
import unittest
import sqlite3
import sys
# Local
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + '/../src/')
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + '/../../')
import update_tables
from utils import fs, utils
def add_field(db, sql, tablename, field_name, field_type):
strn = "ALTER TABLE {0} ADD COLUMN {1} {2}".format(
tablename, field_name, field_type)
sql.execute(strn)
db.commit()
def create_table(db, sql, tablename, PKname, FKargs):
strn = ("CREATE TABLE IF NOT EXISTS {0}({1} INTEGER"
" PRIMARY KEY AUTOINCREMENT {2})").format(
tablename, PKname, FKargs)
sql.execute(strn)
db.commit()
class DatabaseTest(unittest.TestCase):
def setUp(self):
""" Setup a testing database for this problem. """
self.db = sqlite3.Connection(':memory:')
self.sql = self.db.cursor()
for table, primary_key, foreign_keys in zip(
fs.tables, fs.PKs, fs.foreign_key_relations):
create_table(self.db, self.sql, table, primary_key, foreign_keys)
for i, table in enumerate(fs.tables):
for field, field_type in fs.table_fields[i]:
add_field(self.db, self.sql, table, field, field_type)
self.scard = """
project: CLAS12
farm_name: OSG
gcards: /jlab/clas12Tags/gcards/clas12-default.gcard
generator: https://userweb.jlab.org/~ungaro/lund/
generatorOUT: yes
gemcEvioOUT: yes
gemcHipoOUT: yes
reconstructionOUT: yes
dstOUT: yes
"""
def tearDown(self):
""" Close testing database. """
self.db.close()
def test_add_user(self):
""" Test the addition of a user into the database. """
user = 'TestUser'
update_tables.add_new_user(user, 'TestDomain', self.db, self.sql)
self.sql.execute('SELECT user FROM users')
results = self.sql.fetchall()[0][0]
self.assertEquals(results, user)
def test_add_entry_to_submissions(self):
""" Test the addition of an entry into UserSubmissions table. """
for i in range(10):
uid = update_tables.add_timestamp_to_submissions(
utils.gettime(), self.db, self.sql)
self.assertEquals(uid, i+1)
def test_add_scard_to_submissions(self):
""" Try adding an scard to the user information
and retrieving it again. """
# Create a test submission to get user submission id
uid = update_tables.add_entry_to_submissions(
utils.gettime(), self.db, self.sql)
update_tables.add_scard_to_submissions(
self.scard, uid, self.db, self.sql)
self.sql.execute(
("SELECT scard FROM submissions WHERE "
" user_submission_id = {}").format(uid))
result = self.sql.fetchall()[0][0]
self.assertEquals(self.scard, result)
if __name__ == "__main__":
unittest.main()
<file_sep>import subprocess
import os
#this is a comment
class command_class:
def __init__(self,command_name,command_string,expected_output):
self.name = command_name
self.command = command_string
self.expect_out = expected_output
def test_function(command):
process = subprocess.Popen(command.command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = process.communicate()
if command.expect_out != '0':
if stdout == command.expect_out:
return(stdout,stderr)
else:
err_mess = str(stderr) + "unexpected sdtout of: " + str(stdout)
return(stdout, err_mess)
else:
return(stdout,stderr)
test_folder= os.path.dirname(os.path.abspath(__file__))+'/clas12-test'
if os.path.isdir(test_folder):
print('removing previous database file')
subprocess.call(['rm','-rf',test_folder])
if os.path.isdir(test_folder):
print('removing previous database file')
subprocess.call(['rm','-rf',test_folder])
else:
print(test_folder+" is not present, not deleteing")
subprocess.call(['mkdir','-p',test_folder])
print(test_folder+" is now present")
#abspath = os.path.abspath(__file__)
#dname = os.path.dirname(abspath)+'/clas12-test'
os.chdir(test_folder)
f = open('msqlrw.txt',"w")
f.write("root\n")
f.write(" ")
f.close()
folders = ['utils','server','client']
for folder in folders:
folder_name= os.path.dirname(os.path.abspath(__file__))+'/'+folder
if not os.path.isdir(folder_name):
print('{0} not found, cloning from github'.format(folder))
substring = 'https://github.com/robertej19/{0}.git'.format(folder)
subprocess.call(['git','clone',substring])
filename = os.path.dirname(os.path.abspath(__file__))+'/utils/CLAS12OCR.db'
if os.path.isfile(filename):
print('removing previous database file')
subprocess.call(['rm',filename])
create_mysql_db = command_class('Create MySQL DB',
['python2', 'utils/create_database.py'],
'0')
create_mysql_db_test = command_class('Create MySQL Test DB',
['python2', 'utils/create_database.py','--test_database'],
'0')
create_sqlite_db = command_class('Create SQLite DB',
['python2', 'utils/create_database.py','--lite=utils/CLAS12OCR.db'],
'0')
submit_scard_1 = command_class('Submit scard 1 on client through sqlite',
['python2', 'client/src/SubMit.py','--lite=utils/CLAS12OCR.db','-u=robertej','client/scards/scard_type1.txt'],
'0')
submit_scard_1_mysql = command_class('Submit scard 1 on client through MySQL CLAS12OCR db',
['python2', 'client/src/SubMit.py','-u=robertej','client/scards/scard_type1.txt'],
'0')
submit_scard_1_mysql_test = command_class('Submit scard 1 on client through MySQL CLAS12TEST db',
['python2', 'client/src/SubMit.py','--test_database','-u=robertej','client/scards/scard_type1.txt'],
'0')
#submit_scard_2 = command_class('Create scard 2 on client',
# ['python2', 'client/src/SubMit.py','--lite=utils/CLAS12OCR.db','-u=robertej','client/scard_type2.txt'],
# '0')
verify_submission_success = command_class('Verify scard submission success',
['sqlite3','utils/CLAS12OCR.db','SELECT user FROM submissions WHERE user_submission_id=1'],
'robertej\n')
submit_server_jobs_test_db = command_class('Submit jobs from server on CLAS12TEST',
['python2', 'server/src/Submit_UserSubmission.py', '-b','1', '--test_database', '-w', '-s', '-t'],
'0')
submit_server_jobs_prod_db = command_class('Submit jobs from server on CLAS12OCR',
['python2', 'server/src/Submit_UserSubmission.py', '-b','1', '-w', '-s', '-t'],
'0')
submit_server_jobs_sqlite = command_class('Submit jobs from server',
['python2', 'server/src/Submit_UserSubmission.py', '-b','1', '--lite=utils/CLAS12OCR.db', '-w', '-s', '-t'],
'0')
command_sequence = [create_mysql_db,create_mysql_db_test,create_sqlite_db,
submit_scard_1, submit_scard_1_mysql, submit_scard_1_mysql_test,
verify_submission_success,submit_server_jobs_sqlite]
def run_through_tests(command_sequence):
err_sum = 0
for command in command_sequence:
out, err = test_function(command)
print('Testing command: {0}'.format(command.name))
if not err:
print('... success')
#print(out)
else:
print(out)
print('... fail, error message:')
print(err)
err_sum += 1
return err_sum
status = run_through_tests(command_sequence)
if status > 0:
exit(1)
else:
exit(0)
"""
#which condor_submit if val = 0, do not submit, print not found message
"""
<file_sep>#!/usr/bin/env python
# ****************************************************************
"""
# Info
"""
# ****************************************************************
from __future__ import print_function
from utils import (fs, gcard_helper, get_args, scard_helper,
user_validation, utils)
import argparse
import os
import sqlite3
import subprocess
import sys
import time
import numpy as np
from subprocess import PIPE, Popen
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))+'/../../')
def selector(options):
print("\n Select a gcard by number (1-{0}) from the above list: ".format(
len(options)-1))
selection = input()
return selection
def select_gcard(args):
filename = fs.dirname+"/valid_gcards.txt"
with open(filename) as f:
content = f.readlines()
content = [x.strip("\n") for x in content]
for linenum, line in enumerate(content):
if not linenum == 0:
print("({0}) - {1}".format(linenum, line))
else:
print(line+"\n")
selection = selector(content)
while (selection not in np.arange(1, len(content))
or not (isinstance(selection, int))):
print(("\n Selection not in valid range, try again, or "
"hit ctrl+c to exit"))
selection = selector(content)
gcard_selected = content[selection].split(',')[0]
print("Gcard for simultions will be {0}".format(gcard_selected))
return gcard_selected
if __name__ == "__main__":
args = get_args.get_args()
select_gcard(args)
<file_sep>matplotlib>=3.2.1; python_version > "3.0"
matplotlib>=1.2.0; python_version == "2.7"
mysqlclient>=1.3.0; python_version > "3.0"
mysqlclient>=1.0.0; python_version == "2.7"
numpy>=1.18.5; python_version > "3.0"
numpy>=1.7.1; python_version == "2.7"
<file_sep>#!/usr/bin/env python
"""
This is the submission script for use on the client side.
Takes in an scard.txt file. Default file name is "scard.txt"
which must be located in running directory, or can be specified
directly by executing "python SubMit.py /path/to/scard/scard_name.txt.
This will query the computer for username and domainname information,
add to the databse, then reads the scard, downloads any gcards or other
files from online repositories, and inserts the inforamtion into the database.
Please note the database must exist for this to work properly.
If the database does not exist (while we are using SQLite): go
to the server side code and generate the database. Consult the
most recent README for specific directions on accomplishing this.
"""
# Future imports
from __future__ import print_function
# Standard library imports
import os
import sys
import time
from subprocess import PIPE, Popen
# Third party imports
import argparse
import sqlite3
# Ensure that the client can locate utils. Having to call sys
# before this import breaks PEP8. This will be fixed by
# packaging and installing the utilities.
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))+'/../../')
from utils import (database, fs, gcard_helper, get_args,
scard_helper, user_validation, utils)
# This project imports
import gcard_handler
import gcard_selector
import scard_handler
import update_tables
def client(args):
"""
Main client function. This is the driver which validates the scard
submitted and populates the database tables.
"""
logger = utils.configure_logger(args)
db_conn, sql = setup_database(args)
# Get basic information related to this user submission.
# If the username is provided at the CL, that takes
# priority over inference of the username.
timestamp = utils.gettime()
username = args.username or user_validation.get_username()
domain_name = user_validation.get_domain_name()
logger.debug(
'Found {}@{} at time: {}'.format(username, domain_name,
timestamp))
# A simple name based method for retrieval
# of the scard type. Open the SCard to validate
# this submission before starting the database
# population.
scard_obj = scard_handler.open_scard(args.scard)
scard_type = scard_handler.get_scard_type(args.scard)
scard_obj.printer()
logger.debug('Type inference for SCard: {}'.format(scard_type))
# Verify that the gcard exists in our container, try to
# download online gcards for types 3/4. If any of this
# fails we do not go forward with submission.
if scard_type in [1, 2]:
logger.debug('Adding (type 1/2) gcard: {}'.format(
scard_obj.configuration))
elif scard_type in [3, 4]:
logger.info('Types 3/4 are not supported yet!')
else:
print('Could not determine type, exiting')
"""
-----------------------------------------------
From this point and down, all options have been
validated and the databases will be populated.
-----------------------------------------------
"""
if username not in database.get_users(sql):
logger.debug('Adding new user {} to users'.format(username))
update_tables.add_new_user(username, db_conn, sql)
# Setup an entry in the UserSubmissions table for the current submission.
user_submission_id = update_tables.add_timestamp_to_submissions(
timestamp, db_conn, sql)
logger.debug('user_submission_id = {}'.format(user_submission_id))
if scard_obj.client_ip:
logger.debug('Logging client IP: {}'.format(scard_obj.client_ip))
update_tables.add_client_ip_to_submissions(
ip=scard_obj.client_ip,
user_submission_id=user_submission_id,
db=db_conn, sql=sql
)
# Update database tables with scard
update_tables.add_scard_to_submissions(scard_obj.raw_text,
user_submission_id,
db_conn, sql)
user_id = database.get_user_id(username, sql)
logger.debug('For user = {}, user_id = {}'.format(username, user_id))
# Update User and UserID for this submission with key UserSubmissionID
logger.debug('Updating submissions(user,user_id) = ({},{})'.format(
username, user_id
))
update_tables.update_user_information(username, user_id,
user_submission_id,
db_conn, sql)
update_tables.add_entry_to_submissions(
user_submission_id,
scard_obj.farm_name,
db_conn, sql
)
db_conn.close()
def configure_args():
"""Configure and collect arguments from command line."""
ap = argparse.ArgumentParser()
help_str = ("relative path and name scard you"
"want to submit, e.g. ../scard.txt")
ap.add_argument('scard', help=help_str, nargs='?')
ap.add_argument('-d', '--debug', default=0, type=int)
help_str = ("use -l=<database> or --lite=<database> to connect to"
" an sqlite database.")
ap.add_argument('-l', '--lite', help=help_str, required=False,
type=str, default=None)
help_str = ("Enter user ID for web-interface,"
"Only if \'whoami\' is \'gemc\'")
ap.add_argument('-u', '--username', default=None, help=help_str)
help_str = ("Passing this arguement will instruct"
"the client to connect to MySQL:CLAS12TEST"
"database, instead of CLAS12OCR (production)")
ap.add_argument('--test_database', default=False, help=help_str,
action='store_true')
# Collect args from the command line and return to user
return ap.parse_args()
def setup_database(args):
""" Configure and open the database connection
based on user settings.
Inputs:
-------
- args - argparse args for setting up the
database connection.
"""
if args.lite:
use_mysql = False
username, password = "<PASSWORD>", "<PASSWORD>"
database_name = args.lite
else:
use_mysql = True
if args.test_database:
cred_file_name = '/..'+fs.test_db_cred_file #the ../ is needed due to the path difference in client/src and utils/
database_name = fs.MySQL_Test_DB_Name
else:
cred_file_name = '/..'+fs.prod_db_cred_file
database_name = fs.MySQL_Prod_DB_Name
cred_file_loc = os.path.dirname(os.path.abspath(__file__)) + cred_file_name
cred_file = os.path.normpath(cred_file_loc)
username, password = database.load_database_credentials(cred_file)
db_conn, sql = database.get_database_connection(
use_mysql=use_mysql,
database_name=database_name,
username=username,
password=<PASSWORD>,
hostname=fs.db_hostname
)
return db_conn, sql
if __name__ == "__main__":
args = configure_args()
if args.scard:
client(args)
else:
print("No scard detected. Please call python SubMit.py -h for help.")
<file_sep>#!/usr/bin/env python
"""
This module contains client side utilities for updating
the main SQL tables. Anything that uses INSERT or UPDATE
lives here.
"""
from __future__ import print_function
import argparse
import os
import sqlite3
import subprocess
import sys
import time
import numpy as np
from subprocess import PIPE, Popen
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))+'/../../')
from utils import (fs, gcard_helper, get_args,
scard_helper, user_validation, utils)
def add_new_user(username, db, sql):
"""Add a user to the Users table."""
strn = """
INSERT INTO users(
user, join_date, priority
)
VALUES ("{0}", "{1}", "{2}");
""".format(username, utils.gettime(), 1)
sql.execute(strn)
db.commit()
def add_timestamp_to_submissions(timestamp, db, sql):
""" Add a new entry to the UserSubmission table,
this will auto-increment and assign a UserSubmissionID. """
strn = """
INSERT INTO submissions(client_time)
VALUES ("{0}");""".format(timestamp)
sql.execute(strn)
db.commit()
# The last row ID is the assigned UserSubmissionID
# for this submission. Does the return value need
# to be the lastrowid before commiting changes?
return sql.lastrowid
def add_scard_to_submissions(scard, user_submission_id, db, sql):
"""Inject the scard raw into the table UserSubmissions """
strn = """
UPDATE submissions SET {0} = '{1}'
WHERE user_submission_id = "{2}";
""".format('scard', scard, user_submission_id)
sql.execute(strn)
db.commit()
def add_client_ip_to_submissions(ip, user_submission_id, db, sql):
""" If the SCard contains the client IP, this function
is used to add it to the submissions table. """
strn = """
UPDATE submissions SET {0} = '{1}'
WHERE user_submission_id = "{2}";
""".format('client_ip', ip, user_submission_id)
sql.execute(strn)
db.commit()
def add_entry_to_submissions(usub_id, farm_name, db, sql):
""" Create an entry in the FarmSubmissions table for this
user submission.
Inputs:
-------
usub_id - UserSubmissionID for this submission (int)
gcard_id - GcardID for this submission (int)
farm_name - Name of farm destination (str)
sql - The database cursor object for writing.
db - The database for committing changes.
"""
strn = """
UPDATE submissions SET run_status = 'Not Submitted'
WHERE user_submission_id = '{0}';
""".format(usub_id)
sql.execute(strn)
db.commit()
def update_user_information(username, user_id, user_submission_id, db, sql):
""" Update the User and UserID for UserSubmissions.UserSubmissionID
specified in arguments.
Inputs:
-------
username - To set User (str)
user_id - To set UserID (int), this comes from Users.UserID
user_submission_id - Key for setting these in UserSubmissions table (int)
db - Database connection for committing changes
sql - Database cursor for execution of statements
"""
update_template = """
UPDATE submissions SET {0} = '{1}'
WHERE user_submission_id = {2};
"""
sql.execute(update_template.format('user_id', user_id, user_submission_id))
db.commit()
sql.execute(update_template.format('user', username, user_submission_id))
db.commit()
<file_sep>"""Module for reading the raw SCard, returns an SCard class object. """
from __future__ import print_function
from utils import fs, utils
from utils import scard_helper
import os
import sys
# Configure the current script to find utilities.
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + '/../../')
#def scard_handler(args, UserSubmissionID, timestamp):
# """Handle the raw scard and return the fields as an scard object.
#
# 1) Open the raw scard.
# 2) Convert it to an instance of scard_class, this runs
# the raw file through a parser, catching some errors
# and can potentially exit to system.
# 3) Write the contents of the scard into the UserSubmissions table.
# 4) Inject the scard into the SCards table (may not be needed,
# waiting to see).
# 5) Return the scard_class instance to the main code.
#
# This function is under construction.
# """
# scard_file = args.scard
#
# # Load the raw scard file into memory and convert it
# # to an instance of scard_class.
# with open(scard_file, 'r') as file:
# scard = file.read()
#
# scard_fields = scard_helper.scard_class(scard)
#
# # Inject the scard into the UserSubmissions table.
# strn = """
# UPDATE UserSubmissions SET {0} = '{1}'
# WHERE UserSubmissionID = "{2}";""".format(
# 'scard', scard, UserSubmissionID
# )
# utils.db_write(strn)
# utils.printer(("UserSubmission specifications written to database "
# "with UserSubmissionID {0} from scard {1}").format(
# UserSubmissionID, scard_file))
#
# # Inject the scard into the SCards table.
# scard_helper.SCard_Entry(UserSubmissionID, timestamp, scard_fields.data)
# print(("\t Your scard has been read into the database "
# "with UserSubmissionID = {0} at {1} \n").format(
# UserSubmissionID, timestamp)
# )
#
# return scard_fields
#
def open_scard(scard_filename):
"""Temporary function name, to provide functionality of
the function above. """
with open(scard_filename, 'r') as scard_file:
scard = scard_file.read()
# Get a class instance, this parses the scard.
# Append the raw text to the object, it is not
# really much memory so I think this is fine.
# It becomes useful instead of re-opening the
# file multiple times to have the raw text.
scard_fields = scard_helper.scard_class(scard)
scard_fields.raw_text = scard
return scard_fields
def get_scard_type(scard_filename):
""" Returns the type of scard by inspecting the name
of the scard file. This can be replaced by a function
that inspects the contents of the scard and infers the
type. Such a function already exists in server/type_manager.
That can be migrated to utilities if needed. For now
this simple approach is okay, because the web_interface
always names the scard with the type in the name.
Input:
------
scard_filename - The name of the scard file (str).
Returns:
--------
scard_type - The type of the scard, can be None if
none of the allowed types are found in the name.
"""
scard_type = None
for possible_type in fs.valid_scard_types:
name = 'type{0}'.format(possible_type)
if name in scard_filename:
scard_type = possible_type
return scard_type
| 3a9c81936d7bad659210891882188b35327f694c | [
"SQL",
"Python",
"Text"
] | 9 | SQL | mit-mc-clas12/client | ee5520efc1f073f85c132a7a31604e2c0c907d62 | 8014250304aa2aa730cdb366cf901ff994b3b048 |
refs/heads/master | <repo_name>lifefeel/nvidia-jarvis-grpc-examples<file_sep>/examples/python/README.md
# Jarvis gRPC Python Examples
## Install
1. Create virtual environment
```
virtualenv -p python3 myenv
source myenv/bin/activate
```
2. Install packages
```
pip install -r requirements.txt
```
## Run
```
python speech_recognition.py
```
## Reference
Python examples were created by referring to Jarvis `speech_API_demo.ipynb` of jarvis-speech-client Docker container.
<file_sep>/examples/python/jarvis_streaming_asr_client.py
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of NVIDIA CORPORATION nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#!/usr/bin/env python
import wave
import sys
import grpc
import time
import argparse
import jarvis_api.audio_pb2 as ja
import jarvis_api.jarvis_asr_pb2 as jasr
import jarvis_api.jarvis_asr_pb2_grpc as jasr_srv
def get_args():
parser = argparse.ArgumentParser(description="Streaming transcription via Jarvis AI Services")
parser.add_argument("--num-clients", default=1, type=int, help="Number of client threads")
parser.add_argument("--num-iterations", default=1, type=int, help="Number of iterations over the file")
parser.add_argument(
"--input-file", required=True, type=str, help="Name of the WAV file with LINEAR_PCM encoding to transcribe"
)
parser.add_argument(
"--simulate-realtime", default=False, action='store_true', help="Option to simulate realtime transcription"
)
parser.add_argument(
"--word-time-offsets", default=False, action='store_true', help="Option to output word timestamps"
)
parser.add_argument(
"--max-alternatives",
default=1,
type=int,
help="Maximum number of alternative transcripts to return (up to limit configured on server)",
)
parser.add_argument(
"--automatic-punctuation",
default=False,
action='store_true',
help="Flag that controls if transcript should be automatically punctuated",
)
parser.add_argument("--jarvis-uri", default="localhost:50051", type=str, help="URI to access Jarvis server")
return parser.parse_args()
def print_to_file(responses, output_file, max_alternatives, word_time_offsets):
start_time = time.time()
with open(output_file, "w") as f:
for response in responses:
if not response.results:
continue
result = response.results[0]
if result.is_final:
for index, alternative in enumerate(result.alternatives):
f.write(
"Time %.2fs: Transcript %d: %s\n" % (time.time() - start_time, index, alternative.transcript)
)
if word_time_offsets:
f.write("Timestamps:\n")
f.write("%-40s %-16s %-16s\n" % ("Word", "Start (ms)", "End (ms)"))
for word_info in result.alternatives[0].words:
f.write("%-40s %-16.0f %-16.0f\n" % (word_info.word, word_info.start_time, word_info.end_time))
else:
f.write(">>>Time %.2fs: %s\n" % (time.time() - start_time, result.alternatives[0].transcript))
def asr_client(
id,
output_file,
input_file,
num_iterations,
simulate_realtime,
jarvis_uri,
max_alternatives,
automatic_punctuation,
word_time_offsets,
):
CHUNK = 1600
channel = grpc.insecure_channel(jarvis_uri)
wf = wave.open(input_file, 'rb')
frames = wf.getnframes()
rate = wf.getframerate()
duration = frames / float(rate)
if id == 0:
print("File duration: %.2fs" % duration)
client = jasr_srv.JarvisASRStub(channel)
config = jasr.RecognitionConfig(
encoding=ja.AudioEncoding.LINEAR_PCM,
sample_rate_hertz=wf.getframerate(),
language_code="en-US",
max_alternatives=max_alternatives,
enable_automatic_punctuation=automatic_punctuation,
enable_word_time_offsets=word_time_offsets,
)
streaming_config = jasr.StreamingRecognitionConfig(config=config, interim_results=True) # read data
def generator(w, s, num_iterations, output_file):
try:
for i in range(num_iterations):
w = wave.open(input_file, 'rb')
start_time = time.time()
yield jasr.StreamingRecognizeRequest(streaming_config=s)
num_requests = 0
while 1:
d = w.readframes(CHUNK)
if len(d) <= 0:
break
num_requests += 1
if simulate_realtime:
time_to_sleep = max(0.0, CHUNK / rate * num_requests - (time.time() - start_time))
time.sleep(time_to_sleep)
yield jasr.StreamingRecognizeRequest(audio_content=d)
w.close()
except Exception as e:
print(e)
responses = client.StreamingRecognize(generator(wf, streaming_config, num_iterations, output_file))
print_to_file(responses, output_file, max_alternatives, word_time_offsets)
from threading import Thread
parser = get_args()
print("Number of clients:", parser.num_clients)
print("Number of iteration:", parser.num_iterations)
print("Input file:", parser.input_file)
threads = []
output_filenames = []
for i in range(parser.num_clients):
output_filenames.append("output_%d.txt" % i)
t = Thread(
target=asr_client,
args=(
i,
output_filenames[-1],
parser.input_file,
parser.num_iterations,
parser.simulate_realtime,
parser.jarvis_uri,
parser.max_alternatives,
parser.automatic_punctuation,
parser.word_time_offsets,
),
)
t.start()
threads.append(t)
for i, t in enumerate(threads):
t.join()
print(str(parser.num_clients), "threads done, output written to output_<thread_id>.txt")
<file_sep>/examples/dart/README.md
# Jarvis gRPC Dart Examples
## Install packages
```
pub get
```
or
```
dart pub get
```
## Run
```
dart speech_recognition.dart
```
<file_sep>/README.md
# NVIDIA Jarvis gRPC Examples
[NVIDIA Jarvis Quick Start](https://ngc.nvidia.com/catalog/resources/nvidia:jarvis:jarvis_quickstart) only has Python examples. This repository aims to share various language NVIDIA Jarvis gRPC examples.
## Contributing
Anyone can contribute to this repository. Please send a PR of examples of some programming language or other examples.
<file_sep>/examples/python/speech_recognition.py
import io
import librosa
import grpc
import sys
import os
current_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(current_path, 'jarvis_api'))
# ASR proto
import jarvis_api.jarvis_asr_pb2 as jasr
import jarvis_api.jarvis_asr_pb2_grpc as jasr_srv
import jarvis_api.audio_pb2 as ja
channel = grpc.insecure_channel('localhost:50051')
jarvis_asr = jasr_srv.JarvisASRStub(channel)
wav_file = os.path.join(current_path, "../../wav/sample.wav")
audio, sr = librosa.core.load(wav_file, sr=None)
with io.open(wav_file, 'rb') as fh:
content = fh.read()
# Set up an offline/batch recognition request
req = jasr.RecognizeRequest()
req.audio = content # raw bytes
req.config.encoding = ja.AudioEncoding.LINEAR_PCM # Supports LINEAR_PCM, FLAC, MULAW and ALAW audio encodings
req.config.sample_rate_hertz = sr # Audio will be resampled if necessary
req.config.language_code = "en-US" # Ignored, will route to correct model in future release
req.config.max_alternatives = 1 # How many top-N hypotheses to return
req.config.enable_automatic_punctuation = True # Add punctuation when end of VAD detected
req.config.audio_channel_count = 1 # Mono channel
response = jarvis_asr.Recognize(req)
asr_best_transcript = response.results[0].alternatives[0].transcript
print("ASR Transcript:", asr_best_transcript)
print("\n\nFull Response Message:")
print(response)
<file_sep>/examples/python/jarvis_api/jarvis_asr_pb2_grpc.py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import jarvis_asr_pb2 as jarvis__asr__pb2
class JarvisASRStub(object):
"""
The JarvisASR service provides two mechanisms for converting speech to text.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Recognize = channel.unary_unary(
'/nvidia.jarvis.asr.JarvisASR/Recognize',
request_serializer=jarvis__asr__pb2.RecognizeRequest.SerializeToString,
response_deserializer=jarvis__asr__pb2.RecognizeResponse.FromString,
)
self.StreamingRecognize = channel.stream_stream(
'/nvidia.jarvis.asr.JarvisASR/StreamingRecognize',
request_serializer=jarvis__asr__pb2.StreamingRecognizeRequest.SerializeToString,
response_deserializer=jarvis__asr__pb2.StreamingRecognizeResponse.FromString,
)
class JarvisASRServicer(object):
"""
The JarvisASR service provides two mechanisms for converting speech to text.
"""
def Recognize(self, request, context):
"""Recognize expects a RecognizeRequest and returns a RecognizeResponse. This request will block
until the audio is uploaded, processed, and a transcript is returned.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def StreamingRecognize(self, request_iterator, context):
"""StreamingRecognize is a non-blocking API call that allows audio data to be fed to the server in
chunks as it becomes available. Depending on the configuration in the StreamingRecognizeRequest,
intermediate results can be sent back to the client. Recognition ends when the stream is closed
by the client.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_JarvisASRServicer_to_server(servicer, server):
rpc_method_handlers = {
'Recognize': grpc.unary_unary_rpc_method_handler(
servicer.Recognize,
request_deserializer=jarvis__asr__pb2.RecognizeRequest.FromString,
response_serializer=jarvis__asr__pb2.RecognizeResponse.SerializeToString,
),
'StreamingRecognize': grpc.stream_stream_rpc_method_handler(
servicer.StreamingRecognize,
request_deserializer=jarvis__asr__pb2.StreamingRecognizeRequest.FromString,
response_serializer=jarvis__asr__pb2.StreamingRecognizeResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'nvidia.jarvis.asr.JarvisASR', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class JarvisASR(object):
"""
The JarvisASR service provides two mechanisms for converting speech to text.
"""
@staticmethod
def Recognize(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/nvidia.jarvis.asr.JarvisASR/Recognize',
jarvis__asr__pb2.RecognizeRequest.SerializeToString,
jarvis__asr__pb2.RecognizeResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def StreamingRecognize(request_iterator,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.stream_stream(request_iterator, target, '/nvidia.jarvis.asr.JarvisASR/StreamingRecognize',
jarvis__asr__pb2.StreamingRecognizeRequest.SerializeToString,
jarvis__asr__pb2.StreamingRecognizeResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 6a641079e683b38565f9b1eb5003d1806dd39b91 | [
"Markdown",
"Python"
] | 6 | Markdown | lifefeel/nvidia-jarvis-grpc-examples | e38ecb48481548cc4f9089f350062d951ae5ec06 | 1ddc85bb6af9aeddeda7e86e7554f1a3523b9e89 |
refs/heads/master | <repo_name>kolayuk/dUnlock<file_sep>/JellyUnlockSrv/suspender.h
#ifndef SUSPENDER_H
#define SUSPENDER_H
#include <QObject>
#include <e32base.h>
#include <application.h>
#include <proxy.h>
class Suspender : public QObject
{
Q_OBJECT
QTimer* iTimer;
public:
explicit Suspender(Proxy* pr,QObject *parent = 0);
Proxy* proxy;
bool iSuspended;
Application* application;
signals:
void sendId(int id);
void maySleep();
public slots:
void Suspend(int aShow);
void unSuspend();
void setupQML(Application* app);
void Tick();
void setNotSleep();
};
#endif // SUSPENDER_H
<file_sep>/JellyUnlock/application.h
#ifndef APPLICATION_H
#define APPLICATION_H
#include <QObject>
#include <localizer.h>
#include <QSettings>
#include <QDeclarativeContext>
#include <qmlapplicationviewer.h>
#ifdef Q_OS_SYMBIAN
#include <e32base.h>
#include <SplashControl.h>
struct TApplicationInfo
{
TFileName iCaption;
TUid iUid;
static TInt Compare(const TApplicationInfo& aInfo1, const TApplicationInfo& aInfo2)
{
return aInfo1.iCaption.CompareC(aInfo2.iCaption);
}
};
#endif
class Application : public QObject
{
Q_OBJECT
public:
CSplashScreen* splash;
explicit Application(QmlApplicationViewer& v,QObject *parent = 0);
Localizer* loc;
QSettings* settings;
void ReadSettings();
bool isFirstStart;
QmlApplicationViewer& viewer;
Q_INVOKABLE void ChangeSetting(QString id, QVariant value);
int countScans;
Q_INVOKABLE void EditPic();
Q_INVOKABLE void Exit();
Q_INVOKABLE int isKeyChecked(int index);
Q_INVOKABLE int keysLen();
Q_INVOKABLE void checkKey(int key, bool checked);
QList<int> keys;
QMap<int,int> keyMap;
QStringList appModel;
#ifdef Q_OS_SYMBIAN
RArray<TApplicationInfo> apps;
RArray<TApplicationInfo> fullApps;
#endif
signals:
void appWorkChanged(int newstate);
void autostartChanged(int newstate);
void pictureChanged(QString newpic);
void playerAlbumChanged(int newstate);
void zoomChanged(int newstate);
void hideSMSChanged(int newstate);
void useWallpaperChanged(int newstate);
void app1Changed(QString app);
void app2Changed(QString app);
void app3Changed(QString app);
void app4Changed(QString app);
void app5Changed(QString app);
void app6Changed(QString app);
void cameraAppChanged(QString app);
void useSystemFontChanged(int newstate);
void notificationsChanged(int newstate);
void orientationChanged(int newstate);
void showAppPanelNotification();
public slots:
void SortApps(QString filter);
void KillAnotherLockScreens();
void KillLockScreen(QString name);
int GetAnotherLockscreens();
int isLockScreenLaunched(QString name);
void HideSplash();
};
#endif // APPLICATION_H
<file_sep>/JellyUnlockSrv/operatorobserver.h
#ifndef OPERATOROBSERVER_H
#define OPERATOROBSERVER_H
#include <Etel3rdParty.h>
class MOperatorObserver
{
public:
virtual void GetOperatorName(const TDesC& aOperatorName,TInt err) = 0;
};
class COperatorObserver : public CActive
{
public:
static COperatorObserver* NewL(MOperatorObserver* aObserver);
static COperatorObserver* NewLC(MOperatorObserver* aObserver);
void ConstructL(void);
~COperatorObserver();
void GetOperator();
protected:
void DoCancel();
void RunL();
private:
COperatorObserver(MOperatorObserver* aObserver);
private:
MOperatorObserver* iObserver;
CTelephony* iTelephony;
CTelephony::TOperatorNameV1 iOperatorNameV1;
CTelephony::TOperatorNameV1Pckg iOperatorNameV1Pckg;
};
#endif // OPERATOROBSERVER_H
<file_sep>/JellyUnlockSrv/clientdll.h
/*
* ==============================================================================
* Name : clientdll.h
* Part of : Animation example
* Interface :
* Description :
* Version :
*
* Copyright (c) 2004 - 2006 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation.
* ==============================================================================
*/
#ifndef __CLIENT_DLL_H__
#define __CLIENT_DLL_H__
// INCLUDES
#include <w32adll.h>
// CLASS DECLARATION
/**
* RClientDll.
* An instance of RClientDll is an Animation Client DLL, used to load
* and destroy the Animation Server
*/
class RClientDll : public RAnimDll
{
public:
/**
* RClientDll.
* Construct an Animation Client DLL object for use with the
* aSession window server session.
* @param aSession the window server session to use
*/
IMPORT_C RClientDll( RWsSession& aSession );
};
#endif //__CLIENT_DLL_H__
// End of File
<file_sep>/JellyUnlock/moc/moc_application.cpp
/****************************************************************************
** Meta object code from reading C++ file 'application.h'
**
** Created: Fri 21. Dec 16:08:18 2012
** by: The Qt Meta Object Compiler version 62 (Qt 4.7.3)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../application.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'application.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 62
#error "This file was generated using the moc from 4.7.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_Application[] = {
// content:
5, // revision
0, // classname
0, 0, // classinfo
30, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
18, // signalCount
// signals: signature, parameters, type, tag, flags
22, 13, 12, 12, 0x05,
42, 13, 12, 12, 0x05,
71, 64, 12, 12, 0x05,
95, 13, 12, 12, 0x05,
119, 13, 12, 12, 0x05,
136, 13, 12, 12, 0x05,
156, 13, 12, 12, 0x05,
185, 181, 12, 12, 0x05,
206, 181, 12, 12, 0x05,
227, 181, 12, 12, 0x05,
248, 181, 12, 12, 0x05,
269, 181, 12, 12, 0x05,
290, 181, 12, 12, 0x05,
311, 181, 12, 12, 0x05,
337, 13, 12, 12, 0x05,
363, 13, 12, 12, 0x05,
389, 13, 12, 12, 0x05,
413, 12, 12, 12, 0x05,
// slots: signature, parameters, type, tag, flags
447, 440, 12, 12, 0x0a,
465, 12, 12, 12, 0x0a,
495, 490, 12, 12, 0x0a,
523, 12, 519, 12, 0x0a,
547, 490, 519, 12, 0x0a,
577, 12, 12, 12, 0x0a,
// methods: signature, parameters, type, tag, flags
599, 590, 12, 12, 0x02,
631, 12, 12, 12, 0x02,
641, 12, 12, 12, 0x02,
654, 648, 519, 12, 0x02,
672, 12, 519, 12, 0x02,
694, 682, 12, 12, 0x02,
0 // eod
};
static const char qt_meta_stringdata_Application[] = {
"Application\0\0newstate\0appWorkChanged(int)\0"
"autostartChanged(int)\0newpic\0"
"pictureChanged(QString)\0playerAlbumChanged(int)\0"
"zoomChanged(int)\0hideSMSChanged(int)\0"
"useWallpaperChanged(int)\0app\0"
"app1Changed(QString)\0app2Changed(QString)\0"
"app3Changed(QString)\0app4Changed(QString)\0"
"app5Changed(QString)\0app6Changed(QString)\0"
"cameraAppChanged(QString)\0"
"useSystemFontChanged(int)\0"
"notificationsChanged(int)\0"
"orientationChanged(int)\0"
"showAppPanelNotification()\0filter\0"
"SortApps(QString)\0KillAnotherLockScreens()\0"
"name\0KillLockScreen(QString)\0int\0"
"GetAnotherLockscreens()\0"
"isLockScreenLaunched(QString)\0"
"HideSplash()\0id,value\0"
"ChangeSetting(QString,QVariant)\0"
"EditPic()\0Exit()\0index\0isKeyChecked(int)\0"
"keysLen()\0key,checked\0checkKey(int,bool)\0"
};
const QMetaObject Application::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_Application,
qt_meta_data_Application, 0 }
};
#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &Application::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION
const QMetaObject *Application::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
}
void *Application::qt_metacast(const char *_clname)
{
if (!_clname) return 0;
if (!strcmp(_clname, qt_meta_stringdata_Application))
return static_cast<void*>(const_cast< Application*>(this));
return QObject::qt_metacast(_clname);
}
int Application::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
switch (_id) {
case 0: appWorkChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 1: autostartChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 2: pictureChanged((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 3: playerAlbumChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 4: zoomChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 5: hideSMSChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 6: useWallpaperChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 7: app1Changed((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 8: app2Changed((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 9: app3Changed((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 10: app4Changed((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 11: app5Changed((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 12: app6Changed((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 13: cameraAppChanged((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 14: useSystemFontChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 15: notificationsChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 16: orientationChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 17: showAppPanelNotification(); break;
case 18: SortApps((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 19: KillAnotherLockScreens(); break;
case 20: KillLockScreen((*reinterpret_cast< QString(*)>(_a[1]))); break;
case 21: { int _r = GetAnotherLockscreens();
if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break;
case 22: { int _r = isLockScreenLaunched((*reinterpret_cast< QString(*)>(_a[1])));
if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break;
case 23: HideSplash(); break;
case 24: ChangeSetting((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QVariant(*)>(_a[2]))); break;
case 25: EditPic(); break;
case 26: Exit(); break;
case 27: { int _r = isKeyChecked((*reinterpret_cast< int(*)>(_a[1])));
if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break;
case 28: { int _r = keysLen();
if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break;
case 29: checkKey((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
default: ;
}
_id -= 30;
}
return _id;
}
// SIGNAL 0
void Application::appWorkChanged(int _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
// SIGNAL 1
void Application::autostartChanged(int _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
// SIGNAL 2
void Application::pictureChanged(QString _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
// SIGNAL 3
void Application::playerAlbumChanged(int _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
// SIGNAL 4
void Application::zoomChanged(int _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
// SIGNAL 5
void Application::hideSMSChanged(int _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 5, _a);
}
// SIGNAL 6
void Application::useWallpaperChanged(int _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 6, _a);
}
// SIGNAL 7
void Application::app1Changed(QString _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 7, _a);
}
// SIGNAL 8
void Application::app2Changed(QString _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 8, _a);
}
// SIGNAL 9
void Application::app3Changed(QString _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 9, _a);
}
// SIGNAL 10
void Application::app4Changed(QString _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 10, _a);
}
// SIGNAL 11
void Application::app5Changed(QString _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 11, _a);
}
// SIGNAL 12
void Application::app6Changed(QString _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 12, _a);
}
// SIGNAL 13
void Application::cameraAppChanged(QString _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 13, _a);
}
// SIGNAL 14
void Application::useSystemFontChanged(int _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 14, _a);
}
// SIGNAL 15
void Application::notificationsChanged(int _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 15, _a);
}
// SIGNAL 16
void Application::orientationChanged(int _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 16, _a);
}
// SIGNAL 17
void Application::showAppPanelNotification()
{
QMetaObject::activate(this, &staticMetaObject, 17, 0);
}
QT_END_MOC_NAMESPACE
<file_sep>/JellyUnlockStarter/inc/Application.h
/*
============================================================================
Name : Application.h
Author : <NAME> (aka Kolay)
Version : 1.0
Copyright :
Contacts:
<EMAIL>
http://kolaysoft.ru
(c) KolaySoft, 2011
Description : CApplication declaration
============================================================================
*/
#ifndef APPLICATION_H
#define APPLICATION_H
// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <ProcessMonitor.h>
// CLASS DECLARATION
class CApplication : public CBase, public MProcessCallBack
{
public:
// Constructors and destructor
~CApplication();
static CApplication* NewL();
static CApplication* NewLC();
void StateChanged();
CProcessMonitor* iMon;
private:
CApplication();
void ConstructL();
};
#endif // APPLICATION_H
<file_sep>/JellyUnlockSrv/const.h
#ifndef CONST_H
#define CONST_H
#include <QString>
const int KLockTimer=9000;
const int KAfterLockTimer=100;
const int KAddPriority=1;
const int KMyUid=0x20067b13;
const int KGUIUid=0x20067b14;
#define KLangDir "C:\\system\\apps\\JellyUnlock\\lang\\"
#define KLangSettingFile "C:\\system\\apps\\JellyUnlock\\lang\\lang.setting"
#define KLangFile "C:\\system\\apps\\JellyUnlock\\lang\\strings.l"
_LIT(KStarter,"JellyUnlockStarter.exe");
#define KConfigFile "C:\\System\\Apps\\JellyUnlock\\config.ini"
#define KDllName "JellyUnlockAnim.dll"
#define KPropertyUid 0x20067B13
_LIT(KMyServer,"JellyUnlockSrv.exe");
const bool KAutostart=true;
const bool KWork=true;
#define KPicture ""
const int KGesture=0;
const int KButton=0;
const int KZoom=0;
const int KTime=0;
const int KOrient=0;
const int KHideSMS=0;
const int KShowNotifications=0;
#endif // CONST_H
<file_sep>/JellyUnlockSrv/skinbgprovider.h
#ifndef SkinBgProvider_H
#define SkinBgProvider_H
#include <QDeclarativeImageProvider>
#include <gulicon.h>
#include <apgcli.h>
#include <bautils.h>
#include <aknutils.h>
#include <akniconutils.h>
#include <aknsutils.h>
#include <coecntrl.h>
class SkinBgProvider : public QObject, public QDeclarativeImageProvider,public CCoeControl
{
Q_OBJECT
private:
void CopyBitmapL(CFbsBitmap *aSource, CFbsBitmap *aTarget);
CGulIcon* LoadAppIconHard(TUid aUid);
CGulIcon* LoadAppIconEasy(TUid aUid);
const QSize* iSize;
public:
explicit SkinBgProvider();
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize);
signals:
public slots:
};
#endif // SkinBgProvider_H
<file_sep>/JellyUnlockSrv/animdll.h
#ifndef ANIMDLL_H
#define ANIMDLL_H
#include <QObject>
#include <w32std.h>
#include <clientdll.h>
#include <clientimagecommander.h>
#include <propertyobserver.h>
class AnimDll : public QObject, public MPropertyCallBack
{
Q_OBJECT
RClientDll iClientDll;
RWindowGroup* iWinGroup;
CPropertyObserver* iObserver;
public:
explicit AnimDll(RWsSession* aWs, QString aName,QObject *parent = 0);
void ValChanged(TUid aUid,TUint32 aKey,TInt val);
void ValTxtChanged(TUid aUid,TUint32 aKey, TDesC val);
RImageCommander iClientCommander;
signals:
void KeyCaptured(int key,int duration);
public slots:
};
#endif // ANIMDLL_H
<file_sep>/JellyUnlock/application.cpp
#include "application.h"
#include <const.h>
#include <QDebug>
#ifdef Q_OS_SYMBIAN
#include <MGFetch.h>
#include <e32debug.h>
#include <f32file.h>
#include <eikenv.h>
#include <apgcli.h>
#include <apgtask.h>
#endif
#include <QFile>
Application::Application(QmlApplicationViewer& v,QObject *parent) :
QObject(parent),viewer(v)
{
TBuf<255> p1(_L("C:\\System\\JellyUnlock\\splash_h.jpg"));
TBuf<255> p2(_L("C:\\System\\JellyUnlock\\splash_v.jpg"));
splash=CSplashScreen::NewL(p2,p1);
int lang=1;
#ifdef Q_OS_SYMBIAN
lang=User::Language();
#endif
loc=new Localizer(lang,this);
QFile fs(KFirstStart);
isFirstStart=false;
if (fs.exists())
{
fs.remove();
QFile file(KConfigFile);
if (file.exists()){file.remove();}
isFirstStart=true;
}
settings=new QSettings(KConfigFile,QSettings::IniFormat);
keyMap.clear();
keyMap.insert(0,180); // menu
keyMap.insert(1,179); // lock
keyMap.insert(2,166); // power
keyMap.insert(3,196); // green
keyMap.insert(4,197); // red
keyMap.insert(5,171); // camera
keyMap.insert(6,226); // light camera
keys.clear();
settings->beginGroup("keys");
QStringList sets=settings->allKeys();
for (int i=0;i<sets.length();i++)
{
keys.append(settings->value(sets[i],-1).toInt());
}
settings->endGroup();
if (keys.length()==0){keys.append(180);}
#ifdef Q_OS_SYMBIAN
RApaLsSession AppSession;
AppSession.Connect();
TApaAppInfo appInfo;
AppSession.GetAllApps();
TBuf<255> UidTxt;
while (AppSession.GetNextApp(appInfo)==KErrNone)
{
HBufC* fn;
if (AppSession.GetAppIcon(appInfo.iUid,fn)!=KErrNone){continue;}
if (fn){delete fn;}
if (appInfo.iCaption.Length()<2){continue;}
TApplicationInfo info;
info.iCaption=appInfo.iCaption;
info.iUid=appInfo.iUid;
apps.Append(info);
fullApps.Append(info);
}
AppSession.Close();
TLinearOrder<TApplicationInfo> sortOrder(TApplicationInfo::Compare);
fullApps.Sort(sortOrder);
apps.Sort(sortOrder);
for (int i=0; i<fullApps.Count();i++)
{
appModel<<QString::fromRawData(reinterpret_cast<const QChar*>(apps[i].iCaption.Ptr()),apps[i].iCaption.Length());
}
#else
for (int i=0; i<20;i++)
{
appModel<<QString::number(i);
}
#endif
}
void Application::ReadSettings()
{
emit appWorkChanged(settings->value("settings/appwork",KWork).toBool());
emit autostartChanged(settings->value("settings/autostart",KAutostart).toBool());
#ifdef Q_OS_SYMBIAN
TParse parse;
QString file=settings->value("settings/picture",KPicture).toString();
file=file.replace("file:///","");
TPtrC file1 (reinterpret_cast<const TText*>(file.constData()),file.length());
CEikonEnv::Static()->FsSession().Parse(file1,parse);
TBuf<255> a=parse.NameAndExt();
file=QString::fromRawData(reinterpret_cast<const QChar*>(a.Ptr()),a.Length());
emit pictureChanged(file);
RApaLsSession ls;
ls.Connect();
TApaAppInfo info;
bool ok;
QString name;
ls.GetAppInfo(info, TUid::Uid((TUint32)settings->value("apps/app1",app1).toString().toULong(&ok,16)));
name=QString::fromRawData(reinterpret_cast<const QChar*>(info.iCaption.Ptr()),info.iCaption.Length());
app1Changed(name);
ls.GetAppInfo(info, TUid::Uid((TUint32)settings->value("apps/app2",app2).toString().toULong(&ok,16)));
name=QString::fromRawData(reinterpret_cast<const QChar*>(info.iCaption.Ptr()),info.iCaption.Length());
app2Changed(name);
ls.GetAppInfo(info, TUid::Uid((TUint32)settings->value("apps/app3",app3).toString().toULong(&ok,16)));
name=QString::fromRawData(reinterpret_cast<const QChar*>(info.iCaption.Ptr()),info.iCaption.Length());
app3Changed(name);
ls.GetAppInfo(info, TUid::Uid((TUint32)settings->value("apps/app4",app4).toString().toULong(&ok,16)));
name=QString::fromRawData(reinterpret_cast<const QChar*>(info.iCaption.Ptr()),info.iCaption.Length());
app4Changed(name);
ls.GetAppInfo(info, TUid::Uid((TUint32)settings->value("apps/app5",app5).toString().toULong(&ok,16)));
name=QString::fromRawData(reinterpret_cast<const QChar*>(info.iCaption.Ptr()),info.iCaption.Length());
app5Changed(name);
ls.GetAppInfo(info, TUid::Uid((TUint32)settings->value("apps/app6",app6).toString().toULong(&ok,16)));
name=QString::fromRawData(reinterpret_cast<const QChar*>(info.iCaption.Ptr()),info.iCaption.Length());
app6Changed(name);
ls.GetAppInfo(info, TUid::Uid((TUint32)settings->value("settings/zcamapp",camapp).toString().toULong(&ok,16)));
name=QString::fromRawData(reinterpret_cast<const QChar*>(info.iCaption.Ptr()),info.iCaption.Length());
cameraAppChanged(name);
#endif
emit zoomChanged(settings->value("settings/zoom",KZoom).toInt());
emit playerAlbumChanged(settings->value("settings/playeralbum",KPlayer).toInt());
emit useWallpaperChanged(settings->value("settings/zusewallpaper",0).toInt());
emit useSystemFontChanged(settings->value("settings/zusesystemfont",0).toInt());
emit orientationChanged(settings->value("settings/zzorientation",0).toInt());
settings->beginGroup("keys");
QStringList sets=settings->allKeys();
for (int i=0;i<sets.length();i++) settings->remove(sets[i]);
for (int i=0;i<keys.length();i++) settings->setValue(QString::number(i),keys[i]);
settings->endGroup();
settings->beginGroup("settings");
qDebug()<<settings->allKeys();
settings->endGroup();
}
void Application::ChangeSetting(QString id, QVariant value)
{
#ifdef Q_OS_SYMBIAN
TRAPD(err,
{
TBuf<255> a;
a.Append(KMyServer);
a.Append(_L("*"));
TFindProcess processFinder(a); // by name, case-sensitive
TFullName result;
RProcess processHandle;
while ( processFinder.Next(result) == KErrNone)
{
User::LeaveIfError(processHandle.Open ( processFinder, EOwnerThread));
processHandle.Kill(KErrNone);
processHandle.Close();
}
});
TRAPD(err2,
{
TBuf<255> a;
a.Append(KMyServerStarter);
a.Append(_L("*"));
TFindProcess processFinder(a); // by name, case-sensitive
TFullName result;
RProcess processHandle;
while ( processFinder.Next(result) == KErrNone)
{
User::LeaveIfError(processHandle.Open ( processFinder, EOwnerThread));
processHandle.Kill(KErrNone);
processHandle.Close();
}
});
#endif
if (id!="")
{
if (id=="zcamapp")
{
qDebug()<<"change camapp "<<value.toInt()<<QString::number((TUint32)apps[value.toInt()].iUid.iUid,16);
settings->setValue("settings/"+id,QString::number((TUint32)apps[value.toInt()].iUid.iUid,16));
}
else if (id.contains(QRegExp("app."))&&id!="appwork")
{
#ifdef Q_OS_SYMBIAN
qDebug()<<"change app "<<value.toInt()<<QString::number((TUint32)apps[value.toInt()].iUid.iUid,16);
settings->setValue("apps/"+id,QString::number((TUint32)apps[value.toInt()].iUid.iUid,16));
#endif
}
else settings->setValue("settings/"+id,value);
settings->sync();
settings->setValue("settings/appwork",settings->value("settings/appwork",KWork).toBool());
settings->setValue("settings/autostart",settings->value("settings/autostart",KAutostart).toBool());
settings->setValue("settings/picture",settings->value("settings/picture",KPicture).toString());
settings->setValue("settings/zoom",settings->value("settings/zoom",KZoom).toInt());
settings->setValue("settings/playeralbum",settings->value("settings/playeralbum",KPlayer).toInt());
settings->setValue("settings/zusewallpaper",settings->value("settings/zusewallpaper",0).toInt());
settings->setValue("settings/zusesystemfont",settings->value("settings/zusesystemfont",0).toInt());
settings->setValue("settings/zzorientation",settings->value("settings/zzorientation",0).toInt());
settings->setValue("apps/app1",settings->value("apps/app1",app1).toString());
settings->setValue("apps/app2",settings->value("apps/app2",app2).toString());
settings->setValue("apps/app3",settings->value("apps/app3",app3).toString());
settings->setValue("apps/app4",settings->value("apps/app4",app4).toString());
settings->setValue("apps/app5",settings->value("apps/app5",app5).toString());
settings->setValue("apps/app6",settings->value("apps/app6",app6).toString());
settings->setValue("settings/zcamapp",settings->value("settings/zcamapp",camapp).toString());
settings->sync();
}
#ifdef Q_OS_SYMBIAN
if (settings->value("settings/appwork",KWork).toBool())
{
RApaLsSession session;
session.Connect();
CApaCommandLine* cmdLine = CApaCommandLine::NewLC();
cmdLine->SetExecutableNameL(KMyServer);
cmdLine->SetCommandL(EApaCommandRun);
cmdLine->SetCommandL(EApaCommandBackground);
User::LeaveIfError( session.StartApp(*cmdLine) );
CleanupStack::PopAndDestroy(cmdLine);
session.Close();
}
#endif
}
void Application::EditPic()
{
#ifdef Q_OS_SYMBIAN
CDesCArray* arr=new CDesCArrayFlat(3);
MGFetch::RunL(*arr,EImageFile,EFalse);
if (arr->Count()>0)
{
QString file=QString::fromRawData(reinterpret_cast<const QChar*>(arr->MdcaPoint(0).Ptr()),arr->MdcaPoint(0).Length());
file="file:///"+file;
ChangeSetting("picture",file);
file=file.replace("file:///","");
TParse parse;
TPtrC file1 (reinterpret_cast<const TText*>(file.constData()),file.length());
CEikonEnv::Static()->FsSession().Parse(file1,parse);
TBuf<255> a=parse.NameAndExt();
file=QString::fromRawData(reinterpret_cast<const QChar*>(a.Ptr()),a.Length());
emit pictureChanged(file);
}
#endif
}
void Application::Exit()
{
}
int Application::isKeyChecked(int index)
{
int key=keyMap.value(index,-1);
qDebug()<<"checking key "<<key<<keys.contains(key);
if (keys.contains(key)&&key!=-1) return 1;
else return 0;
}
void Application::checkKey(int index, bool checked)
{
int key=keyMap.value(index,-1);
if (checked)
{
if (!keys.contains(key)) keys.append(key);
}
else keys.removeOne(key);
settings->beginGroup("keys");
QStringList sets=settings->allKeys();
for (int i=0;i<sets.length();i++) settings->remove(sets[i]);
for (int i=0;i<keys.length();i++) settings->setValue(QString::number(i),keys[i]);
settings->endGroup();
settings->sync();
}
int Application::keysLen()
{
return keys.length();
}
void Application::SortApps(QString filter)
{
#ifdef Q_OS_SYMBIAN
apps.Reset();
appModel.clear();
QString name;
for (int i=0;i<fullApps.Count();i++)
{
name=QString::fromRawData(reinterpret_cast<const QChar*>(fullApps[i].iCaption.Ptr()),fullApps[i].iCaption.Length());
if (name.toLower().startsWith(filter.toLower()))
{
apps.Append(fullApps[i]);
appModel.append(name);
}
}
viewer.rootContext()->setContextProperty("appModel",appModel);
#endif
}
void Application::KillAnotherLockScreens()
{
QStringList list;
list<<"SwipeUnlock";
list<<"7Unlock";
for (int i=0;i<list.length();i++)
KillLockScreen(list[i]);
}
void Application::KillLockScreen(QString name)
{
TPtrC n (static_cast<const TUint16*>(name.utf16()), name.length());
TRAPD(err,
{
TBuf<255> a;
a.Append(n);
a.Append(_L("Srv.exe"));
a.Append(_L("*"));
TFindProcess processFinder(a); // by name, case-sensitive
TFullName result;
RProcess processHandle;
while ( processFinder.Next(result) == KErrNone)
{
User::LeaveIfError(processHandle.Open ( processFinder, EOwnerThread));
processHandle.Kill(KErrNone);
processHandle.Close();
}
});
TRAPD(err2,
{
TBuf<255> a;
a.Append(n);
a.Append(_L("Starter.exe"));
a.Append(_L("*"));
TFindProcess processFinder(a); // by name, case-sensitive
TFullName result;
RProcess processHandle;
while ( processFinder.Next(result) == KErrNone)
{
User::LeaveIfError(processHandle.Open ( processFinder, EOwnerThread));
processHandle.Kill(KErrNone);
processHandle.Close();
}
});
QString configPath;
if (name=="SwipeUnlock") name="SwypeUnlock";
configPath="C:\\System\\Apps\\"+name+"\\config.ini";
QSettings* lockSettings=new QSettings(configPath,QSettings::IniFormat);
lockSettings->setValue("settings/autostart",false);
lockSettings->setValue("settings/appwork",false);
lockSettings->sync();
delete lockSettings;
}
int Application::GetAnotherLockscreens()
{
int results=0;
QStringList list;
list<<"SwipeUnlock";
list<<"7Unlock";
for (int i=0;i<list.length();i++)
if (isLockScreenLaunched(list[i])) results++;
return results;
}
int Application::isLockScreenLaunched(QString name)
{
TPtrC n (static_cast<const TUint16*>(name.utf16()), name.length());
int err1=-1;
TRAP(err1,
{
TBuf<255> a;
a.Append(n);
a.Append(_L("Srv.exe"));
a.Append(_L("*"));
TFindProcess processFinder(a); // by name, case-sensitive
TFullName result;
RProcess processHandle;
User::LeaveIfError(processFinder.Next(result));
User::LeaveIfError(processHandle.Open ( processFinder, EOwnerThread));
processHandle.Close();
});
qDebug()<<name<<err1;
if (err1==KErrNotFound) return 0;
else return 1;
}
void Application::HideSplash()
{
qDebug()<<"Hide splash";
splash->Hide();
}
<file_sep>/animdll/src/const.h
/*
* const.h
*
* Created on: 16.10.2010
* Author: mvideo
*/
#ifndef CONST_H_
#define CONST_H_
enum {
EStartCapture=1,
EStopCapture
};
#endif /* CONST_H_ */
<file_sep>/JellyUnlock/const.h
#ifndef CONST_H
#define CONST_H
#ifdef Q_OS_SYMBIAN
#define KLangSettingFile "C:\\system\\apps\\JellyUnlock\\lang\\lang.setting"
#define KLangFile "C:\\system\\apps\\JellyUnlock\\lang\\strings.l"
#define KConfigFile "C:\\System\\Apps\\JellyUnlock\\config.ini"
#define KFirstStart "C:\\System\\Apps\\JellyUnlock\\firststart"
#else
#define KLangSettingFile "D:\\Symbian\\QtSDK\\workspace\\JellyUnlock\\lang\\lang.setting"
#define KLangFile "D:\\Symbian\\QtSDK\\workspace\\JellyUnlock\\lang\\strings.l"
#define KConfigFile "config.ini"
#define KFirstStart "firststart"
#endif
#ifdef Q_OS_SYMBIAN
_LIT(KMyServer,"JellyUnlockSrv.exe");
_LIT(KMyServerStarter,"JellyUnlockStarter.exe");
#endif
const bool KAutostart=true;
const bool KWork=true;
const int KPlayer=1;
#define KPicture "file:///C:\\Data\\Images\\Android.png"
const int KZoom=1;
const int KUseSystemFont=0;
const QString app1="101F4CCE";
const QString app2="101F4CD5";
const QString app3="10005901";
const QString app4="102072C3";
const QString app5="10008D39";
const QString app6="10005902";
const QString camapp="101F857A";
#endif // CONST_H
| 3ec943d869615c093cb83457eea93e55e5ffb844 | [
"C",
"C++"
] | 12 | C++ | kolayuk/dUnlock | a7578a1af9f85825c4bf1addf8d8bf59ca866598 | c83abfca8414462e4dfa2ccab9b4074b976303d0 |
refs/heads/master | <repo_name>27359794/humperdink<file_sep>/README.md
Humperdink Simulator
====================
Version 0.2.0 Alpha (last updated 2010)
**Authors:** <NAME> (wrote simulator and API), <NAME> (wrote `genetic_algorithm.py`)
A "humperdink" is a virtual creature simulated in a 2D physics environment.
The humperdink is parameterised as a set of limbs connected by oscillating joints.
The parameters for each limb are:
- angle (direction relative to the limb's parent)
- length
- frequency (how fast to move the limb)
- amplitude (in radians, how far to turn on an oscillation)
- phase (in modulo 2*pi, the phase shift of the sinusoid - e.g. a phase shift of pi would place the oscillation completely out of phase, turning in the opposite direction)
These parameters, and the connectivity of limbs are specified as a tree in JSON format, for example:
{
"angle":3.14,
"length":40.0,
"connections": [
{
"angle":1.57,
"length":20.0,
"frequency":3.0,
"amplitude":3.14,
"phase":2.10,
"connections": [
{
"angle":0.0,
"length":40.0,
"frequency":6.0,
"amplitude":0.4,
"phase":0.0,
"connections": []
}
]
},
{
"angle":-1.57,
"length":20.0,
"frequency":3.0,
"amplitude":3.14,
"phase":4.20,
"connections": [
{
"angle":0.0,
"length":40.0,
"frequency":6.0,
"amplitude":0.4,
"phase":0.0,
"connections": []
}
]
}
]
}
(whitespace non-essential)
Runtime Flags:
* `-f filename` specify the JSON file to read from (without this flag it defaults to stdin)
* `-i iterations` specify the number of iterations before termination
* `-s speed` specify the number of iterations to process before displaying a frame
* `-g` suppress graphical output
Compilation:
run: `make`
Requires jansson JSON library, provided in tar.gz
Typical installation:
```
./configure
make
sudo make install
```
Compile with `-DNOGRAPHICS`
to make a non-graphical executable that does not require OpenGL libraries
requires Open GL and GLUT for graphical display.
on Ubuntu this may require:
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev
Nvidia hardware might prefer:
sudo apt-get install nvidia-glx-180-dev
in which case you'll need to change the Makefile's CFLAGS line to have:
-I/usr/share/doc/nvidia-glx-180-dev/include/
Compiling your program with the humperdink simulator:
The following shows a basic example:
#include "environment.h"
#include "creature.h"
#include <stdlib.h>
#include <stdio.h>
int main( int argc, char *argv[] ) {
json_t *json;
json_error_t error;
char humperdink[] = "{\"angle\":0.0,\"length\":50.0,\"connections\": []}";
// see also json_loadf and json_load_file
// http://www.digip.org/jansson/doc/dev/tutorial.html
json = json_loads( humperdink, &error );
if( !json ) {
fprintf( stderr, "Error parsing humperdink on line %d:\n", error.line );
fprintf( stderr, "\t%s\n\n", error.text );
exit( 0 );
}
Environment simulationEnvironment = createEnvironment( 800, 600 );
Creature simulatedCreature = createCreature( json, getEnvironmentSpace( simulationEnvironment ) );
int iterations = 100;
for ( int i = 0; i < iterations; ++i ) {
updateEnvironment( simulationEnvironment );
double x = getCreatureX( simulatedCreature );
double y = getCreatureY( simulatedCreature );
printf( "(%lf, %lf)\n", x, y );
}
destroyCreature( simulatedCreature );
destroyEnvironment( simulationEnvironment );
return 0;
}
<file_sep>/creature.c
#include "creature.h"
#include <string.h>
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
// physics simulation
#include "chipmunk.h"
// thickness of creature limbs
#define SHAPE_RADIUS 4.0f
// mass per 1 unit of limb length
#define MASS_PER_LENGTH 0.25f
static int groupCount = 1;
/*
* Node ADT data that defines a single limb of a creature
* - array of connecting limbs
* - parameters for this limb
* - size of this limb sub-tree
*/
struct creatureNode {
CreatureNode *connections;
int numConnections;
parameters_t parameters;
int treeSize;
cpBody *body;
// end of limb, where new limbs connect
cpVect endPoint;
cpFloat length;
cpFloat angle;
CreatureNode parent;
};
/*
* Creature ADT data
* root node of limb-tree, and the corresponding genome
*/
struct creature {
CreatureNode root;
json_t *json;
};
/*
* Private helper function prototypes
*/
static void destroyCreatureNodeTree( CreatureNode node );
static CreatureNode createNodesFromJSON( json_t *jsonObject, CreatureNode parent, cpSpace *space );
static CreatureNode createNodesFromJSON( json_t *jsonObject, CreatureNode parent, cpSpace *space ) {
assert( json_is_object( jsonObject ) );
// Borrowed references, no need for memory collection
json_t *jsonConnections = json_object_get( jsonObject, "connections" );
assert( json_is_array( jsonConnections ) );
json_t *jsonAngle = json_object_get( jsonObject, "angle" );
json_t *jsonLength = json_object_get( jsonObject, "length" );
json_t *jsonFrequency = json_object_get( jsonObject, "frequency" );
json_t *jsonAmplitude = json_object_get( jsonObject, "amplitude" );
json_t *jsonPhase = json_object_get( jsonObject, "phase" );
parameters_t parameters;
parameters.numConnections = json_array_size( jsonConnections );
parameters.angle = json_real_value( jsonAngle );
parameters.length = json_real_value( jsonLength );
parameters.frequency = json_real_value( jsonFrequency );
parameters.amplitude = json_real_value( jsonAmplitude );
parameters.phase = json_real_value( jsonPhase );
CreatureNode node = createCreatureNode( parameters, parent, space );
node->treeSize = 1;
for ( int i = 0; i < parameters.numConnections; ++i ) {
json_t *jsonChildObject = json_array_get( jsonConnections, i );
node->connections[i] = createNodesFromJSON( jsonChildObject, node, space );
node->treeSize += node->connections[i]->treeSize;
}
return node;
}
/*
* ADT implementation
*/
CreatureNode createCreatureNode( parameters_t parameters, CreatureNode parent, cpSpace *space ) {
// create memory for node
CreatureNode node = malloc( sizeof( struct creatureNode ) );
assert( node != NULL );
// copy parameters into the node
node->parameters = parameters;
// find how many connections this node has
node->numConnections = node->parameters.numConnections;
// create memory (array) for references to the connecting nodes
node->connections = malloc( sizeof( CreatureNode ) * node->numConnections );
assert( node->connections != NULL );
// create physics objects
node->parent = parent;
cpVect position;
cpFloat baseAngle;
if ( parent == NULL ) {
position = cpvzero;
baseAngle = M_PI/2.0;
} else {
position = parent->endPoint;
baseAngle = parent->angle;
}
// angle (create unit vector)
node->angle = baseAngle + node->parameters.angle;
cpVect limbVec = cpvforangle( node->angle );
// limb vector (multiply unit vector by length)
node->length = node->parameters.length;
limbVec = cpvmult( limbVec, node->length );
// endpoint (add limb vector to starting position)
node->endPoint = cpvadd( limbVec, position );
cpFloat mass = node->parameters.length * MASS_PER_LENGTH;
node->body = cpSpaceAddBody(
space,
cpBodyNew( mass, cpMomentForSegment( mass, cpvzero, limbVec ) )
);
// move
node->body->p = position;
// shape (starting position to endpoint, relative to body)
cpShape *shape = cpSegmentShapeNew( node->body, cpvzero, limbVec, SHAPE_RADIUS );
shape->group = groupCount++;
shape->u = FRICTION;
cpSpaceAddShape(
space,
shape
);
if ( parent != NULL ) {
//printf( " connecting to parent\n" );
// joint (connect this limb to its parent)
cpSpaceAddConstraint(
space,
cpPivotJointNew( node->body, parent->body, position )
);
cpFloat amplitude = node->parameters.amplitude;
cpFloat frequency = node->parameters.frequency;
cpFloat phaseShift = node->parameters.phase;
cpConstraint *motor = cpSpaceAddConstraint(
space,
cpOscillatingMotorNew( node->body, parent->body, frequency, amplitude, phaseShift )
);
motor->maxForce = MAX_FORCE;
}
return node;
}
void destroyCreatureNode( CreatureNode node ) {
// destroy everything malloced in the constructor
free( node->connections );
free( node );
}
Creature createCreature( json_t *json, cpSpace *space ) {
// allocate memory for the creature
Creature creature = malloc( sizeof( struct creature ) );
assert( creature != NULL );
// recursively create nodes
creature->root = createNodesFromJSON( json, NULL, space );
//printf( "Creature Size: %d\n", creature->root->treeSize );
//printf( "Position: (%lf, %lf)\n", creature->root->body->p.x, creature->root->body->p.y );
return creature;
}
void destroyCreature( Creature creature ) {
// remove all nodes recursively from the root
destroyCreatureNodeTree( creature->root );
free( creature );
}
double getCreatureX( Creature creature ) {
return creature->root->body->p.x;
}
double getCreatureY( Creature creature ) {
return creature->root->body->p.y;
}
cpVect getCreaturePosition( Creature creature ) {
return creature->root->body->p;
}
void printCreatureDebug( Creature creature ) {
fprintf( stderr, "Creature Debug:\n" );
fprintf( stderr, "--------------\n" );
fprintf( stderr, " Root Position: (%lf,%lf)\n", creature->root->body->p.x, creature->root->body->p.y );
fprintf( stderr, " Root Velocity: (%lf,%lf)\n", creature->root->body->v.x, creature->root->body->v.y );
fprintf( stderr, " Root rotational Velocity: %lf\n", creature->root->body->w );
fprintf( stderr, " Total Limbs: %d\n", creature->root->treeSize );
fprintf( stderr, " Limb Positions:\n");
cpVect *limbPositions = getCreatureLimbPositions( creature );
for ( int i = 0; i < creature->root->treeSize; ++i ) {
fprintf( stderr, " %d: (%lf,%lf)\n", i, limbPositions[i].x, limbPositions[i].y );
}
free( limbPositions );
fprintf( stderr, "--------------\n\n" );
}
int getCreatureNumLimbs( Creature creature ) {
return creature->root->treeSize;
}
cpVect *getCreatureLimbPositions( Creature creature ) {
int numLimbs = creature->root->treeSize;
cpVect *positions = malloc( sizeof( cpVect ) * numLimbs );
assert( positions != NULL );
int stackTop = 0;
int limbNo = 0;
CreatureNode limbStack[numLimbs];
limbStack[0] = creature->root;
while ( limbNo < numLimbs && stackTop >= 0) {
CreatureNode limb = limbStack[stackTop];
stackTop--;
positions[limbNo] = limb->body->p;
limbNo++;
for ( int i = 0; i < limb->numConnections && limbNo+i < numLimbs; ++i ) {
stackTop++;
limbStack[stackTop] = limb->connections[i];
}
}
return positions;
}
/*
* Private helper function implementation
*/
static void destroyCreatureNodeTree( CreatureNode node ) {
assert( node != NULL );
int numConnections = node->parameters.numConnections;
// destroy all connections recursively
for( int i = 0; i < numConnections; ++i ) {
destroyCreatureNodeTree( node->connections[i] );
}
destroyCreatureNode( node );
}
<file_sep>/Makefile
NAME = simulator
OBJS = display.o drawSpace.o environment.o main.o creature.o
LIB_PATH = ./Chipmunk/src/
LIB_OBJS = $(LIB_PATH)chipmunk.o \
$(LIB_PATH)cpArbiter.o \
$(LIB_PATH)cpArray.o \
$(LIB_PATH)cpBB.o \
$(LIB_PATH)cpBody.o \
$(LIB_PATH)cpCollision.o \
$(LIB_PATH)cpHashSet.o \
$(LIB_PATH)cpPolyShape.o \
$(LIB_PATH)cpShape.o \
$(LIB_PATH)cpSpace.o \
$(LIB_PATH)cpSpaceHash.o \
$(LIB_PATH)cpVect.o \
$(LIB_PATH)constraints/cpConstraint.o \
$(LIB_PATH)constraints/cpDampedRotarySpring.o \
$(LIB_PATH)constraints/cpDampedSpring.o \
$(LIB_PATH)constraints/cpGearJoint.o \
$(LIB_PATH)constraints/cpGrooveJoint.o \
$(LIB_PATH)constraints/cpOscillatingMotor.o \
$(LIB_PATH)constraints/cpPinJoint.o \
$(LIB_PATH)constraints/cpPivotJoint.o \
$(LIB_PATH)constraints/cpRatchetJoint.o \
$(LIB_PATH)constraints/cpRotaryLimitJoint.o \
$(LIB_PATH)constraints/cpSimpleMotor.o \
$(LIB_PATH)constraints/cpSlideJoint.o
INC_PATH = ./Chipmunk/include/chipmunk/
OBJECTS = $(OBJS) $(LIB_OBJS)
ifeq ($(shell uname),Darwin)
CFLAGS = -I$(INC_PATH) -framework OpenGL -framework GLUT -lm -DNDEBUG -ffast-math -O2 -ljansson
else
CFLAGS = -I$(INC_PATH) -lGL -lglut -lm -DNDEBUG -I/usr/X11R6/include -L/usr/X11R6/lib -ffast-math -O2 -ljansson
endif
COMPILE = gcc -Wall $(CFLAGS) -std=gnu99
# symbolic targets:
all: $(NAME)
.c.o:
$(COMPILE) -c $< -o $@
.S.o:
$(COMPILE) -x assembler-with-cpp -c $< -o $@
.c.s:
$(COMPILE) -S $< -o $@
clean:
rm -f $(NAME) $(OBJECTS)
$(NAME): $(OBJECTS)
$(COMPILE) -o $(NAME) $(OBJECTS)
<file_sep>/main.c
#include "environment.h"
#include "creature.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#define SLEEP_TICKS 16
static void timercall( int value );
static void display( void );
static void initGL( float width, float height );
static Environment simulationEnvironment;
static Creature simulatedCreature;
static int simulationSpeed;
static char message[1024];
static int iterations;
int main( int argc, char *argv[] ) {
simulationSpeed = 1;
iterations = 0; // infinite
char *filename = NULL;
bool graphics = true;
#ifdef NOGRAPHICS
graphics = false;
#endif
for ( int i = 0; i < argc; ++i ) {
if ( strncmp( argv[i], "-f", 2 ) == 0 && i+1 < argc ) {
filename = argv[i+1];
} else if ( strncmp( argv[i], "-s", 2 ) == 0 && i+1 < argc ) {
simulationSpeed = atoi( argv[i+1] );
} else if ( strncmp( argv[i], "-i", 2 ) == 0 && i+1 < argc ) {
iterations = atoi( argv[i+1] );
} else if ( strncmp( argv[i], "-g", 2 ) == 0 ) {
graphics = false;
}
}
fprintf( stderr, "Simulating with a humperdink from " );
if ( filename == NULL ) {
fprintf( stderr, "stdin" );
} else {
fprintf( stderr, "%s", filename );
}
fprintf( stderr, ": %d iterations. Processing %d iterations at once.\n", iterations, simulationSpeed );
json_t *json;
json_error_t error;
if ( filename == NULL ) {
json = json_loadf( stdin, 0, &error );
} else {
json = json_load_file( filename, 0, &error );
}
if( !json ) {
fprintf( stderr, "Error parsing humperdink on line %d:\n", error.line );
fprintf( stderr, "\t%s\n\n", error.text );
exit( 0 );
}
int width = 800;
int height = 600;
cpInitChipmunk( );
simulationEnvironment = createEnvironment( width, height );
simulatedCreature = createCreature( json, getEnvironmentSpace( simulationEnvironment ) );
if ( graphics ) {
#ifndef NOGRAPHICS
glutInit( &argc, (char**)argv );
glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGBA );
glutInitWindowSize( width, height );
glutCreateWindow( "Humperdinks in their natural habitat" );
initGL( width, height );
glutDisplayFunc( display );
// glutIdleFunc(idle);
glutTimerFunc( SLEEP_TICKS, timercall, 0 );
// antialias
glEnable( GL_LINE_SMOOTH );
glEnable( GL_POINT_SMOOTH );
glEnable( GL_BLEND );
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
glHint( GL_LINE_SMOOTH_HINT, GL_DONT_CARE );
glHint( GL_POINT_SMOOTH_HINT, GL_DONT_CARE );
// go-go gadget GLUT!
glutMainLoop();
#endif
} else {
for ( int i = 0; i < iterations || iterations == 0; ++i ) {
updateEnvironment( simulationEnvironment );
printf( "(%lf, %lf)\n", getCreatureX( simulatedCreature ), getCreatureY( simulatedCreature ) );
}
}
destroyCreature( simulatedCreature );
destroyEnvironment( simulationEnvironment );
return 0;
}
static void display( void ) {
//printf( "(%lf, %lf)\n", getCreatureX( simulatedCreature ), getCreatureY( simulatedCreature ) );
sprintf( message, "(%lf, %lf)", getCreatureX( simulatedCreature ), getCreatureY( simulatedCreature ) );
displayEnvironment( simulationEnvironment, message, getCreaturePosition( simulatedCreature ) );
for ( int i = 0; i < simulationSpeed; ++i ) {
//printCreatureDebug( simulatedCreature );
updateEnvironment( simulationEnvironment );
printf( "(%lf, %lf)\n", getCreatureX( simulatedCreature ), getCreatureY( simulatedCreature ) );
iterations--;
}
if ( iterations == 0 ) {
exit( 0 );
}
}
static void timercall( int value ) {
#ifndef NOGRAPHICS
glutTimerFunc( SLEEP_TICKS, timercall, 0 );
glutPostRedisplay( );
#endif
}
static void initGL( float width, float height ) {
#ifndef NOGRAPHICS
glClearColor( 1.0f, 1.0f, 1.0f, 0.0f );
glMatrixMode( GL_PROJECTION );
glLoadIdentity( );
glOrtho( -(width/2.0f), (width/2.0f), -(height/2.0f), (height/2.0f), -1.0f, 1.0f );
glTranslatef( 0.5f, 0.5f, 0.0f );
glEnableClientState( GL_VERTEX_ARRAY );
#endif
}
<file_sep>/genetic_algorithm.py
import random
import subprocess
import math
POPULATION_SIZE = 30 # Initial population size. This should stay relatively constant.
ITERATIONS = 30 # Amount of generations to go through
PROPORTION_OFFSPRING = 0.8 # 80:20 for offspring:old generation
MUTATION_PROBABILITY = 1000 # 1/x chance of mutation
class Organism(object):
def __init__(self, bitstring):
self.bitstring = bitstring
self.JSONObject = dictToJSON(self.bitstringToDict(0))
self.fitness = self.getFitness()
def getFitness(self):
"""Return the fitness of this organism.
This function should be catered to whatever task you're solving.
"""
return fitness_distanceMovedPerTime(self)
def breed(self, partner):
"""Breed a child with 'partner'.
Uses the cross-over method, as well as applying all necessary
random mutations to the child.P
"""
child = self.crossover(partner)
child.mutate()
return child
def crossover(self, partner):
"""Apply the cross-over reproduction method and return one of the children.
Randomly choose a split-point, then create two children based on this point.
The first child is the male[:splitpoint] + female[splitpoint:]
The second is female[:splitpoint] + male[splitpoint:]
The function then randomly picks one of these children and returns them.
Currently, this only does a single split point. It may be prudent to
change this method to allow multiple splits.
"""
splitpoint = random.randint(1, min([len(self.bitstring), len(partner.bitstring)]))
newBitstring = random.choice([
self.bitstring[:splitpoint] + partner.bitstring[splitpoint:],
partner.bitstring[:splitpoint] + self.bitstring[splitpoint:]])
newChild = Organism(newBitstring)
return newChild
def mutate(self):
"""Occasionally flip certain bits in the bitstring.
The regularity of this is denoted by MUTATION_PROBABILITY.
"""
for i in range(len(self.bitstring)):
if blueMoon(): # Once in a blue moon!
self.bitstring = self.bitstring[:i] + flip(self.bitstring[i]) + self.bitstring[i+1:]
def bitstringToDict(self, offset):
"""Convert the organism's bitstring to a JSON object."""
chunkSize = 24
strNumConnections = self.bitstring[offset:3+offset]
strAngle = self.bitstring[3+offset:8+offset]
strLeng = self.bitstring[8+offset:12+offset]
strFreq = self.bitstring[12+offset:16+offset]
strAmpl = self.bitstring[16+offset:20+offset]
strPhase = self.bitstring[20+offset:24+offset]
numConnections = int(strNumConnections, 2)
limb = {}
limb["angle"] = (int(strAngle, 2) / 31.0) * math.pi*2.0
limb["length"] = int(strLeng, 2) * 5.0
limb["frequency"] = int(strFreq, 2) / 4.0
limb["amplitude"] = (int(strAmpl, 2) / 15.0) * math.pi
limb["phase"] = (int(strPhase, 2) / 15.0) * math.pi*2.0
limb["treeSize"] = 1
limb["connections"] = []
offset += chunkSize
for i in range(numConnections):
if offset >= len(self.bitstring):
break
child = self.bitstringToDict(offset)
limb["connections"].append( child )
limb["treeSize"] += child["treeSize"]
offset += limb["treeSize"]*chunkSize
return limb
def __cmp__(self, other):
"""A comparison function for the sorting of the population.
Compare organisms based on their fitness.
"""
return -cmp(self.fitness, other.fitness)
def __add__(self, partner):
"""Breed two organisms using the '+' operator.
This is in no way necessary -- I just wanted to take advantage of Python's
operator-overloading!
"""
return self.breed(partner)
def main():
print 'Program has started!'
population = makePopulation()
# print 'Population created successfully.'
# print [x.fitness for x in population]
for i in xrange(ITERATIONS):
population = nextGeneration(population)
print 'Average population fitness at generation %d (%d%%): %f' % (i+1, 100 * i/ITERATIONS, averagePopulationFitness(population))
raw_input('Optimisation finished. Press enter to view your creations!')
for h in sorted(population):
print 'aoeu'
viewSimulation(h)
raw_input('Program complete. Press enter to exit.')
def nextGeneration(population):
"""Make the next generation of organisms, given the current generation.
First, sort the population in terms of descending fitness (the Organism class
already has a __cmp__() method which allows us to do this easily).
Next, reserve the best (POPULATION_SIZE * (1 - PROPORTION_OFFSPRING)) members
of our population for the next generation. This will guarantee that our
algorithm continues to climb hills.
Breed our new generation of (POPULATION_SIZE * PROPORTION_OFFSPRING) organisms.
The parents are randomly chosen from the set of old-gen organisms with a
fitness greater than the average fitness of that population.
TODO: Add roulette-wheel selection (fitness proportionate selection).
"""
population.sort()
newPopulation = population[:int(POPULATION_SIZE * (1 - PROPORTION_OFFSPRING))]
culledPopulation = applyNaturalSelection(population)
# print culledPopulation
i = 0
while i < POPULATION_SIZE * PROPORTION_OFFSPRING:
father = random.choice(culledPopulation)
mother = random.choice(culledPopulation)
child = father + mother # W00T for operator-overloading!!!
while child.fitness is None:
father = random.choice(culledPopulation)
mother = random.choice(culledPopulation)
child = father + mother
newPopulation.append(child)
i += 1
return newPopulation
def makePopulation():
"""Create a population of POPULATION_SIZE random organisms.
Note that this function does not actually create the organisms, it calls
on the generateOrganismBitstring() function for this.
"""
population = []
for i in range(POPULATION_SIZE):
population.append(generateOrganism())
print 'Population %d%% generated' % ((i*100)/POPULATION_SIZE)
return population
def averagePopulationFitness(population):
"""Get the average fitness of a population."""
return sum([org.fitness for org in population]) / float(len(population))
def medianPopulationFitness(population):
"""Same as the above but for median, not average."""
return population[len(population)/2].fitness
def applyNaturalSelection(population, fitnessDistribution=averagePopulationFitness):
"""Kill off all organisms with a fitness level below the average fitness
of the population.
The kwarg 'fitnessDistribution' is the function to find the average/median/etc
"""
averageFitness = fitnessDistribution(population)
culledPopulation = filter(lambda org: org.fitness >= averageFitness, population)
return culledPopulation
def generateOrganism():
"""Generate an organism.
This function should be catered to whatever task you're solving.
"""
return Organism(makeLimb(MAX_LIMBS))
def blueMoon():
"""Has a 1/MUTATION_PROBABILITY chance of returning true.
Useful for deciding when to mutate.
"""
return random.randint(0, MUTATION_PROBABILITY) == 0
def flip(bit):
"""Flip a single bit in a bitstring. '1' -> '0' and vice versa."""
return '1' if bit == '0' else '0'
#############################
## Humperdink-specific code
#############################
MAX_LIMBS = 16
MAX_FREQUENCY = 12
MAX_ANGLE = 31
MAX_LENGTH = 15
MAX_AMPLITUDE = 15
MAX_PHASE = 15
MAX_CHILDREN = 8
def decimalToBinary(n):
if n == 0: return ''
return decimalToBinary(n >> 1) + str(n & 1)
def paddedBinary(n, size):
"""Convert a decimal number to binary, and pad the number at the start with 0's"""
pure = decimalToBinary(n)
return ('0' * (size - len(pure))) + pure
def dictToJSON(d):
return str(d).replace("'", '"')
def makeLimb(limbsPermitted, conv=paddedBinary):
"""Make a limb and any child limbs that go with it.
'limbsPermitted' denotes the amount of limbs/child limbs the function can make.
'conv' denotes how the base10 values will be converted (should include padding).
For a binary string, 'conv' should be 'paddedBinary'.
"""
limb = ''
if limbsPermitted <= 0:
return limb
chld = random.randint(0, min([MAX_CHILDREN-1, limbsPermitted-1]))
angl = random.randint(0, MAX_ANGLE)
leng = random.randint(0, MAX_LENGTH)
freq = random.randint(0, MAX_FREQUENCY)
ampl = random.randint(0, MAX_AMPLITUDE)
phas = random.randint(0, MAX_PHASE)
limb += conv(chld, 3) + \
conv(angl, 5) + \
conv(leng, 4) + \
conv(freq, 4) + \
conv(ampl, 4) + \
conv(phas, 4)
limbsPermitted -= 1
for i in xrange(chld):
childrenAfterThis = chld - i - 1
chld_permitted = random.randint(1, limbsPermitted - childrenAfterThis)
limbsPermitted -= chld_permitted
limb += makeLimb(chld_permitted)
return limb
def fitness_distanceMovedPerTime(humperdink):
sim = subprocess.Popen(#'./simulator -i 1000 ', # uncomment this line to see the organism
'./simulator -i 1000 -g',
shell = True,
stdout = subprocess.PIPE,
stdin = subprocess.PIPE)
coords = sim.communicate(humperdink.JSONObject)
if coords == ('', None):
return -100
coords = coords[0].split('\n')[-2].split(',')
x_coord = coords[0][1:]
if x_coord == 'nan':
return -100
return float(x_coord)
def viewSimulation(humperdink):
print 'sumiluaosnetuhaeo'
sim = subprocess.Popen('./simulator -s 10',
shell = True,
stdin = subprocess.PIPE)
sim.communicate(humperdink.JSONObject)
if __name__ == '__main__':
main()
<file_sep>/display.c
#include "display.h"
void drawString( int x, int y, char *str ) {
glColor3f( 0.0f, 0.0f, 0.0f );
glRasterPos2i( x, y );
for ( int i=0, len=strlen(str); i<len; i++ ) {
if ( str[i] == '\n' ) {
y -= 16;
glRasterPos2i( x, y );
} else {
glutBitmapCharacter( GLUT_BITMAP_HELVETICA_10, str[i] );
}
}
}
<file_sep>/display.h
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#include "drawSpace.h"
void drawString( int x, int y, char *str );<file_sep>/creature.h
/*
* Creature ADT:
* For converting genome array to a tree structure
* and creating physics simulation objects
*/
#include <stdint.h>
#include <math.h>
#include <jansson.h>
#include "chipmunk.h"
// ADT types
typedef struct creature *Creature;
typedef struct creatureNode *CreatureNode;
/*
* Each creature is made up of a tree with a maximum of 16 nodes
* (of arbitrary arrangement)
* each node is parameterised by 5 parameters (described in the enum below)
* An array of these parameters, in a depth-first order, defines the creature's
* 'genome'
*/
#define NUM_PARAMETERS 6
#define MAX_FORCE 100000
#define FRICTION 0.2f
/*
* - number of branches that connect to this node
* - length of this node's parent-connecting branch
* - frequency of the oscillation of this branch (relative to parent)
* - the amplitude of the oscillation of this branch
* - the rotation angle (starting position) of the oscillation of this branch
*/
typedef struct {
int numConnections;
double angle;
double length;
double frequency;
double amplitude;
double phase;
} parameters_t;
/*
* ADT interface functions
*/
/*
* Constructor: Creates a node from a set of parameters
* Deconstructor: Removes memory allocated for a node
*/
CreatureNode createCreatureNode( parameters_t parameters, CreatureNode parent, cpSpace *space );
void destroyCreatureNode( CreatureNode node );
/*
* Constructor: Creates a creature and all nodes from a genome
* Deconstructor: Removes memory for all nodes of the creature
*/
Creature createCreature( json_t *json, cpSpace *space );
void destroyCreature( Creature creature );
double getCreatureX( Creature creature );
double getCreatureY( Creature creature );
cpVect getCreaturePosition( Creature creature );
void printCreatureDebug( Creature creature );
int getCreatureNumLimbs( Creature creature );
cpVect *getCreatureLimbPositions( Creature creature );<file_sep>/environment.h
#ifndef NOGRAPHICS
#include "display.h"
#endif
#include "chipmunk.h"
typedef struct environment *Environment;
Environment createEnvironment( int width, int height );
void updateEnvironment( Environment env );
void destroyEnvironment( Environment env );
void displayEnvironment( Environment env, char *message, cpVect center );
cpSpace *getEnvironmentSpace( Environment env );<file_sep>/environment.c
#include "environment.h"
#include "creature.h"
#include "chipmunk.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#define GROUND_LENGTH 100000
typedef struct creatureListNode *creatureListNode_t;
struct creatureListNode {
Creature creature;
creatureListNode_t next;
};
struct environment {
cpSpace *space;
cpBody *staticBody;
int width;
int height;
cpFloat groundHeight;
};
Environment createEnvironment( int width, int height ) {
Environment env = malloc( sizeof( struct environment ) );
assert( env != NULL );
/*
* Simulation parameters
*/
env->width = width;
env->height = height;
/*
* Create the Space
*/
env->space = cpSpaceNew( );
env->space->iterations = 10; // physics accuracy
cpSpaceResizeStaticHash( env->space, 30.0f, 1000 );
cpSpaceResizeActiveHash( env->space, 30.0f, 1000 );
env->space->gravity = cpv( 0, -200 );
// create a static physics body (fixed in space)
env->staticBody = cpBodyNew( INFINITY, INFINITY );
/*
* Create the Ground
*/
// space left/right of the center point
cpFloat halfWidth = width/2.0f * GROUND_LENGTH;
// space top/bottom of the center point
cpFloat halfHeight = height/2.0f;
// height of ground
env->groundHeight = 10.0f;
/*
printf( "%f, %f\n", halfWidth,-halfHeight );
printf( "%f, %f\n", -halfWidth,-halfHeight );
printf( "%f, %f\n", -halfWidth,-halfHeight+groundHeight );
printf( "%f, %f\n", halfWidth,-halfHeight+groundHeight );
*/
// polygon for ground shape
cpVect groundPoly[] = {
cpv( halfWidth, -halfHeight ),
cpv( -halfWidth, -halfHeight ),
cpv( -halfWidth, -halfHeight+env->groundHeight ),
cpv( halfWidth, -halfHeight+env->groundHeight )
};
// create a ground shape, attached to the staticBody
cpShape *ground = cpPolyShapeNew( env->staticBody, 4, groundPoly, cpvzero );
ground->e = 1.0f; ground->u = 1.0f;
ground->group = 0;
// add this ground shape to the physics space
cpSpaceAddStaticShape( env->space, ground );
return env;
}
void updateEnvironment( Environment env ) {
cpSpaceStep( env->space, 1.0f/60.0f );
}
void destroyEnvironment( Environment env ) {
cpBodyFree( env->staticBody );
cpSpaceFreeChildren( env->space );
cpSpaceFree( env->space );
free( env );
}
cpSpace *getEnvironmentSpace( Environment env ) {
return env->space;
}
void displayEnvironment( Environment env, char *message, cpVect center ) {
#ifndef NOGRAPHICS
static double lastX = 0.0;
double changeRate = 0.95;
double y = -center.y;
drawSpaceOptions options = {
0,
0,
1,
4.0f,
0.0f,
1.5f,
};
glClear( GL_COLOR_BUFFER_BIT );
// space left/right of the center point
cpFloat halfWidth = env->width/2.0f;
// space top/bottom of the center point
cpFloat halfHeight = env->height/2.0f;
glPushMatrix(); {
if ( y > 0.0f ) y = 0.0f;
glTranslatef(lastX, y, 0.0f);
lastX = changeRate * lastX + (1.0f-changeRate) * -center.x;
glColor3f( 1.0f, 0.0f, 0.0f );
glBegin(GL_LINES); {
glVertex2f(0.0f, halfHeight/4.0f);
glVertex2f(20.0f, halfHeight/4.0f - 10.0f);
glVertex2f(20.0f, halfHeight/4.0f - 10.0f);
glVertex2f(0.0f, halfHeight/4.0f - 20.0f);
glVertex2f(0.0, halfHeight/4.0f);
glVertex2f(0.0, -halfHeight+env->groundHeight);
} glEnd();
drawSpace( env->space, &options );
} glPopMatrix();
glPushMatrix(); {
glTranslatef(0.0, y, 0.0f);
glColor3f( 0.0f, 0.0f, 0.0f );
// draw ground line
glBegin(GL_LINES); {
glVertex2f(-halfWidth, -halfHeight+env->groundHeight);
glVertex2f(halfWidth, -halfHeight+env->groundHeight);
} glEnd();
} glPopMatrix();
if ( center.x)
drawString( -300, -210, message );
glutSwapBuffers();
#endif
}
| 8d3345b9ddec51db1f41239c64d4fb0ebce8d4a9 | [
"Markdown",
"C",
"Python",
"Makefile"
] | 10 | Markdown | 27359794/humperdink | 4f57e7458f1bc0e1ef78c7497f98980ae90ac1b7 | 14919d6fbf2aa39cd20a587c30bd305d0cf28810 |
refs/heads/master | <file_sep>/// TEMA 2 POO
/// <NAME>12
#include <iostream>
#include <stdlib.h>
using namespace std;
class Complex
{
private:
float re, im;
public:
Complex() /// Constructori de init cu si fara param, constr de copiere si destructor
{
re = im = 0;
}
Complex(float re, float im)
{
this->re = re;
this->im = im;
}
Complex(const Complex* c)
{
this->re = c->re;
this->im = c->im;
}
~Complex()
{
}
void set(float re, float im) /// setteri si getteri
{
this->re = re;
this->im = im;
}
void set(const Complex c)
{
set(c.re, c.im);
}
float getRe()
{
return re;
}
float getIm()
{
return im;
}
Complex operator + (const Complex c) ///Operatori pt operatii cu nr complexe
{
Complex aux;
aux.re = this->re + c.re;
aux.im = this->im + c.im;
return aux;
}
Complex operator - (const Complex c)
{
Complex aux;
aux.re = this->re - c.re;
aux.im = this->im - c.im;
return aux;
}
Complex operator = (const Complex c)
{
this->re = c.re;
this->im = c.im;
return *this;
}
Complex operator * (Complex c)
{
Complex aux;
aux.re = this->getRe() * c.getRe() - this->getIm()*c.getIm();
aux.im = this->getIm() * c.getRe() + this->getRe() * c.getIm();
return aux;
}
Complex operator * (int c)
{
Complex aux;
aux.re = this->getRe() * c;
aux.im = this->getIm() * c;
return aux;
}
friend istream& operator >> (istream& in, Complex& num) /// Operatorii pt citire si afisare
{
in >> num.re;
in >> num.im;
return in;
}
friend ostream& operator << (ostream& out, const Complex& num)
{
if(num.im > 0)
{
out << num.re << "+" << num.im<<"i";
}
else if(num.im == 0)
{
out << num.re;
}
else if(num.im < 0)
{
out << num.re << "-" << num.im <<"i";
}
return out;
}
};
class Matrice /// Clasa de baza
{
protected:
Complex **v;
public:
virtual bool diagonal(int linii, int coloane) /// Functii virtuale
{
for(int i = 0; i < linii; i++)
{
for(int j = 0; j < coloane; j++)
{
if(i != j && v[i][j].getRe() != 0 && v[i][j].getIm() != 0)
return false;
}
}
return true;
}
virtual bool superior_triunghi(int linii, int coloane)
{
for(int i = 0; i < linii; i++)
{
for(int j = 0; j < i && j < coloane; j++)
{
if( v[i][j].getRe() != 0 && v[i][j].getIm() != 0)
return false;
}
}
return true;
}
virtual bool inferior_triunghi(int linii, int coloane)
{
for(int i = 0; i < linii; i++)
{
for(int j = i+1; j < coloane; j++)
{
if(v[i][j].getRe() != 0 && v[i][j].getIm() != 0)
return false;
}
}
return true;
}
virtual void print(int linii, int coloane)
{
for(int i = 0; i< linii; i++)
{
for(int j = 0; j< coloane; j++)
cout << v[i][j] << " ";
cout << endl;
}
}
void init(int linii, int coloane)
{
v = new Complex*[linii];
for(int i = 0; i < linii; i++)
{
v[i] = new Complex[coloane]();
}
}
Matrice() /// Constr fara si cu param, constr de copiere si destructor
{
v = NULL;
}
Matrice(int linii, int coloane)
{
init(linii, coloane);
}
~Matrice()
{
delete[] v;
}
void set(int i, int j, const Complex c) /// Setter si getter
{
v[i][j].set(c);
}
Complex get(int i, int j)
{
return v[i][j];
}
void umple(int n, int m) /// Functie care genereaza o matrice cu nr random
{
int real, imag;
Complex aux;
for (int i = 0; i< n; i++)
for(int j = 0; j< m; j++)
{
real=rand()%10;
imag=rand()%10;
aux.set(real, imag);
v[i][j].set(aux);
}
}
friend istream& operator >> (istream &in, Matrice mat) /// Operatorii de citire si afisare
{
int linii, coloane, real, imaginar;
Complex aux;
in >> linii;
in >> coloane;
for(int i = 0; i< linii; i++)
for(int j = 0; j< coloane; j++)
{
in >> real;
in >> imaginar;
aux.set(real, imaginar);
mat.set(i, j, aux);
}
return in;
}
friend ostream& operator << (ostream &out, Matrice mat)
{
int linii, coloane;
cout << "Introduceti nr de linii si coloane al matricei pe care doriti sa o afisati: ";
cin >> linii;
cin >> coloane;
for(int i = 0; i< linii; i++)
{
for(int j = 0; j< coloane; j++)
out << mat.get(i, j) << " ";
out << endl;
}
return out;
}
};
class Matrice_oarecare: public Matrice /// Prima clasa derivata
{
private:
int lin, col;
public:
Matrice_oarecare(): Matrice()
{
}
Matrice_oarecare(int lin, int col): Matrice(lin, col)
{
this->lin = lin;
this->col = col;
}
~Matrice_oarecare()
{
delete[] v;
}
void print()
{
for(int i = 0; i < lin; i++)
{
for(int j = 0; j < col; j++)
{
if(v[i][j].getIm() != 0)
cout <<v[i][j].getRe() <<"+"<< v[i][j].getIm()<< "i ";
else
cout <<v[i][j].getRe() <<" ";
}
cout << "\n";
}
cout<< '\n';
}
bool verificare() /// Functia de verificare din cerinta
{
if(superior_triunghi(lin, col) || inferior_triunghi(lin, col))
return diagonal(lin, col);
return false;
}
friend istream& operator >> (istream &in, Matrice_oarecare mat) /// Operatorii de citire si scriere
{
int real, imaginar;
Complex aux;
for(int i = 0; i < mat.lin; i++)
for(int j = 0; j < mat.col; j++)
{
in >> real;
in >> imaginar;
aux.set(real, imaginar);
mat.set(i, j, aux);
}
return in;
}
friend ostream& operator << (ostream &out, Matrice_oarecare mat)
{
for(int i = 0; i < mat.lin; i++)
{
for(int j = 0; j < mat.col; j++)
out << mat.get(i, j) << " ";
out << endl;
}
return out;
}
Matrice_oarecare& operator = (Matrice_oarecare matrice) /// Operator =
{
for(int i = 0; i < matrice.lin; i++)
for(int j = 0; j < matrice.col; j++)
v[i][j] = matrice.get(i, j);
return *this;
}
};
class Matrice_patratica: public Matrice /// A doua clasa derivata
{
private:
int dim;
public:
bool diagonal()
{
for(int i = 0; i < dim; i++)
{
for(int j = 0; j < dim; j++)
{
if(i != j && v[i][j].getRe() != 0 && v[i][j].getIm() != 0)
return false;
}
}
return true;
}
bool superior_triunghi()
{
for(int i = 0; i < dim; i++)
{
for(int j = 0; j < i && j < dim; j++)
{
if( v[i][j].getRe() != 0 && v[i][j].getIm() != 0)
return false;
}
}
return true;
}
bool inferior_triunghi()
{
for(int i = 0; i < dim; i++)
{
for(int j = i+1; j < dim; j++)
{
if(v[i][j].getRe() != 0 && v[i][j].getIm() != 0)
return false;
}
}
return true;
}
Matrice_patratica(): Matrice()
{
}
Matrice_patratica(int dim): Matrice(dim, dim)
{
this->dim = dim;
}
~Matrice_patratica()
{
delete[] v;
}
void print() /// Functia de afisare contine si determinantul
{
for(int i = 0; i < dim; i++)
{
for(int j = 0; j < dim; j++)
{
if(v[i][j].getIm() != 0)
cout <<v[i][j].getRe() <<"+"<< v[i][j].getIm()<< "i ";
else
cout <<v[i][j].getRe() <<" ";
}
cout << "\n";
}
cout<<"\nDeterminant: "<<determinant().getRe()<<"+"<<determinant().getIm()<<"i \n\n";
}
bool verificare() /// Functia de verificare din cerinta
{
if(superior_triunghi() || inferior_triunghi())
return
diagonal();
return false;
}
Complex determinant() /// Sursa: https://stackoverflow.com/questions/21220504/matrix-determinant-algorithm-c
{
Matrice_patratica Minor(dim - 1);
int c1,c2;
Complex determinant;
int O=1;
if(dim == 2)
{
determinant = v[0][0]*v[1][1]-v[0][1]*v[1][0];
return determinant;
}
else
{
for(int i = 0; i < dim; i++)
{
c1 = 0, c2 = 0;
for(int j = 0; j < dim; j++)
{
for(int k = 0; k < dim; k++)
{
if(j != 0 && k != i)
{
Minor.set(c1, c2, v[j][k]);
c2++;
if(c2>dim-2)
{
c1++;
c2=0;
}
}
}
}
determinant = determinant + (v[0][i]*Minor.determinant()) *O;
O=-1*O;
}
}
return determinant;
}
friend istream& operator >> (istream &in, Matrice_patratica mat) /// Operatorii de citire si afisare
{
int real, imaginar;
Complex aux;
for(int i = 0; i < mat.dim; i++)
for(int j = 0; j < mat.dim; j++)
{
in >> real;
in >> imaginar;
aux.set(real, imaginar);
mat.set(i, j, aux);
}
return in;
}
friend ostream& operator << (ostream &out, Matrice_patratica mat)
{
for(int i = 0; i < mat.dim; i++)
{
for(int j = 0; j < mat.dim; j++)
out << mat.get(i, j) << " ";
out << endl;
}
return out;
}
Matrice_patratica& operator = (Matrice_patratica matrice) /// Operator =
{
for(int i = 0; i < matrice.dim; i++)
for(int j = 0; j < matrice.dim; j++)
v[i][j] = matrice.get(i, j);
return *this;
}
};
int main()
{
Matrice a(5, 5), b(5, 5);
Matrice_oarecare c(5, 5), x(3, 5);
Matrice_patratica d(3);
Complex e(2, 1), r(74, 62);
for(int i = 0; i < 3; i++)
{
d.set(i, i, e);
}
for(int i = 0; i < 3; i++)
for(int j = 0; j < 3; j++)
if (i == j)
x.set(i, j, r);
d.print();
if(d.verificare()) cout<<"\nVerificare!\n\n";
x.print();
if(x.verificare()) cout<<"\nVerificare!\n\n";
c.umple(5, 5);
c.print();
return 0;
}
| 80e813ec4304a300723db404e6f743ee38c484dd | [
"C++"
] | 1 | C++ | Ghadamiyan/Tema2_Poo | 988dc6af000bb0fef04df3e2537f4c803c5e54b7 | f9e70a171b416a3d13950a3935917a9485284cbc |
refs/heads/master | <repo_name>KevinBaileyCrum/spray_project<file_sep>/api/app.js
// import libraries
const express = require('express')
const cors = require('cors')
const mongoose = require('mongoose')
const bodyParser = require('body-parser')
// express
const app = express()
// parse frontend requests
app.use(bodyParser.urlencoded({
extended: true
}))
app.use(bodyParser.json());
// import db models
const {User} = require('./models/user')
// import endpoints
const ticks = require('./routes/getTicks.js')
const register = require('./routes/register.js')
const login = require('./routes/login.js')
const addFriend = require('./routes/addFriend.js')
const getFriends = require('./routes/getFriends.js')
// import middleware
// const auth = require('./middleware/auth')
// env
const port = 9000
const DATABASE_URL= 'mongodb://localhost/test'
app.use(cors())
// connnect to databse
mongoose.connect(DATABASE_URL, {
useUnifiedTopology: true,
useNewUrlParser: true,
useCreateIndex: true,
useFindAndModify: false
})
const db = mongoose.connection
db.on('error', (error) => console.error(error))
db.once('open', () => console.log('connected to database'))
// route endpoints
app.use('/getTicks', ticks)
app.use('/register', register)
app.use('/login', login)
app.use('/addFriend', addFriend)
app.use('/getFriends', getFriends)
app.listen(port, () => console.log(`Example app listening on port ${port}!`))
<file_sep>/client/src/components/tickCard.js
import React, { Component } from 'react'
import {
IonContent,
IonCard,
IonCardContent,
IonCardTitle,
IonCardSubtitle,
IonAvatar,
IonImg,
IonIcon,
IonText
} from '@ionic/react'
import {
happy
} from 'ionicons/icons'
class TickCard extends Component {
render() {
return (
<IonCard>
<IonImg src={this.props.tick.routeImg} />
<IonAvatar>
<IonImg src={this.props.tick.userImg} />
</IonAvatar>
<IonText>
{this.props.tick.userName}
</IonText>
<IonCardTitle>
{this.props.tick.routeName} : {this.props.tick.routeGrade}
</IonCardTitle>
<IonCardSubtitle>
Route Style:
</IonCardSubtitle>
<p> {this.props.tick.style} </p>
<IonCardSubtitle>
Route Date:
</IonCardSubtitle>
<p> {this.props.tick.date} </p>
</IonCard>
)
}
}
export default TickCard
<file_sep>/README.md
# Spray Project

## About
Mountain Project is great and one of my favorite aspects of the site that Ive been playing with this past year involves ticking climbs. One thing that is missing is a news feed for when your friends tick climbs. Spray Project lets you add friends and see what they have been ticking.
I'm surprised something like this does not exist within Mountain Project and I would love for them to add a feature such as this. There is more funcionality that could be added to augment the spray experience such as a method of congradulating friends on their ticks. Unfortunatly that lies outside the scope of Mountain Project's API and would require hackey screen scraping and injecting users' passwords to go headless and send a message.
## Note of Deprecation
At the end of 2020 Mountain Project was purchased by OnX and the public api was shut down. This application, like many others reliant on public apis is now out of order. To all the users of Spray Project good luck with spraying using other means, perhaps I'll over hear you, the old fassioned way, in the meadow.
## Technologies Used:
* Express.js
* React.js
* Json Web Token
* MongoDB and Mongoose
* Ionic Framework
I feel like in hindsight the whole thing could have been built using soley React.js or Express.js as they are both sophisticated enough to meet the project's requirements however I've always wanted to work with both Express and React working together and I figured now is the chance.
### Express Backend
fill in your own API key for Mountain Project endpoints used in `api/routes/ticks.js`
provide own secret for signing Json Web Token in the auth middleware
cd ./api run `npm run start-dev`
runs port 9000
### MongoDB
install local instance of mongoDB by following
`https://github.com/mongodb/homebrew-brew`.
### React Frontend
Built with Ionic5
cd ./clinet run `npm start`
runs port 3000
#### Submit a PR
I am open to any suggestions or pull requests
#### Deployment
I hope to deploy this project soon once it is up and running but feel free to clone and check it out as is.
#### Spray Project does not use semi-colons. If a language allows for you not to use them and you do not have good reason to use them, why use them?
<file_sep>/client/src/components/header.js
import React, { Component } from 'react'
import {
IonToolbar,
IonHeader,
IonIcon,
IonTitle,
IonButtons,
IonButton,
IonPopover,
IonList,
IonItem,
IonLabel
} from '@ionic/react'
import {
person,
chevronDown
} from 'ionicons/icons'
class Header extends Component {
constructor(props) {
super(props)
this.state = {
showPopover: false
}
this.togglePopover = this.togglePopover.bind(this)
this.defaultState = this.state
}
togglePopover = () => {
this.setState({
showPopover: !this.state.showPopover
})
}
render(){
return(
<div>
<IonHeader>
<IonToolbar>
<IonTitle>
Spray Project
</IonTitle>
<IonButtons
slot='end'
>
<IonButton
onClick={this.togglePopover}
>
{this.props.sprayName}
<IonIcon icon={chevronDown} />
</IonButton>
</IonButtons>
</IonToolbar>
</IonHeader>
<IonPopover
isOpen= {this.state.showPopover}
onDidDismiss= {this.togglePopover}
>
<IonList>
<IonItem>
<IonLabel>
Manage Friends
</IonLabel>
</IonItem>
<IonItem>
<IonButton
onClick={this.props.logout}
>
Logout
</IonButton>
</IonItem>
</IonList>
</IonPopover>
</div>
)
}
}
export default Header
<file_sep>/client/src/components/authed.js
import React, { Component } from 'react'
import axios from 'axios'
import TickList from './ticklist'
import AddFriend from './addFriend'
import Header from './header'
import ManageFriends from './manageFriends'
import {
IonToast,
IonToolbar,
IonHeader,
IonIcon,
IonButtons,
IonButton,
IonTitle
} from '@ionic/react'
import {
person
} from 'ionicons/icons'
const API = 'http://localhost:9000/'
class authed extends Component {
constructor(props) {
super(props)
this.state = {
toastMessage: '',
friendsList: [],
newFriendMpId: 0
}
this.defaultState = this.state
this.showToast = this.showToast.bind(this)
this.handleDissmiss = this.handleDissmiss.bind(this)
this.handleNewFriend = this.handleNewFriend.bind(this)
this.getFriends = this.getFriends.bind(this)
}
handleNewFriend = (newFriendMpId) => {
console.log('handling of new friend: ' + newFriendMpId)
this.setState({
newFriendMpId: newFriendMpId,
friendsList: [...this.state.friendsList, newFriendMpId]
})
}
showToast = (message) => {
this.setState({
toastMessage: message
})
}
handleDissmiss = () => {
this.setState(this.defaultState)
}
getFriends() {
return axios.get(API + 'getFriends', {
headers: {
'Authorization': `${this.props.authToken}`
},
params: {
sprayName: `${this.props.sprayName}`
}
})
.then(response => {
this.setState({
friendsList: response.data
})
})
.catch(error => {
console.log(error)
})
}
render() {
return (
<div>
<Header
sprayName= {this.props.sprayName}
logout= {this.props.logout}
friendsList= {this.state.friendsList}
/>
<IonToast
isOpen= {this.state.toastMessage !== ''}
header= 'Success'
message= {this.state.toastMessage}
buttons= {[
{
text: 'OK',
handler: this.handleDissmiss
}
]}
/>
<AddFriend
showToast= {this.showToast}
handleNewFriend= {this.handleNewFriend}
sprayName= {this.props.sprayName}
authToken= {this.props.authToken}
/>
<TickList
newFriendMpId= {this.state.newFriendMpId}
sprayName= {this.props.sprayName}
authToken= {this.props.authToken}
friendsList= {this.state.friendsList}
getFriends= {this.getFriends}
/>
</div>
)
}
}
export default authed
<file_sep>/api/tests/loginTest.js
const util = require('util')
const chai = require('chai')
const axios = require('axios');
const URL = 'http://localhost:9000'
chai.should()
// test ger url
axios.get(URL+'/login')
.then(response => {
response.status.should.be.equal(200)
})
.catch(err => {
console.log(err)
})
// test invalid user
axios.post(URL+'/login', {
email: '<EMAIL>',
password: 'no'
})
.then(response => {
// console.log(response.data)
response.status.should.be.equal(401)
response.data.should.equal('invalid user')
})
.catch(err => {
err.response.status.should.be.equal(401)
err.response.data.should.equal('invalid user')
})
// test login
axios.post(URL+'/login', {
email: 'abc@abc',
password: 'abc'
})
.then(response => {
console.log('login test res ' + JSON.stringify(response.data))
util.inspect(response)
})
.catch(err => {
console.log(err)
util.inspect(err)
})
<file_sep>/api/routes/getTicks.js
// ticks.js
const express = require('express')
const router = express.Router()
const axios = require('axios')
const apiKey = require('./apiKey')
// import middleware
const auth = require('../middleware/auth')
function TickObj(
userName = null, // getUser api
userImg = null,
routeId = null, // tick api vvv
date = null,
style = null,
notes = null,
stars = null,
routeName = null, // route api vvv
routeGrade = null,
routeImg = null,
tickId = null
){
this.userName = userName
this.userImg = userImg
this.routeId = routeId
this.date = date
this.style = style
this.notes = notes
this.stars = stars
this.routeName = routeName
this.routeGrade = routeGrade
this.routeImg = routeImg
this.tickId = tickId
}
mpApiGetRoutes = (routeId) => {
console.log(routeId)
try {
return axios.get('https://www.mountainproject.com/data/get-routes?', {
params: {
routeIds: routeId,
key: apiKey.apiKey
}
})
.then((response) => {
// console.log(response.data.routes)
return response.data.routes
})
.catch((error) => {
console.log('axios error mpApiGetRoutes ' + error)
})
} catch (error) {
console.error(`mpApiGetRoutes axios error ${error}`)
}
}
mpApiGetTicks = (userId) => {
try {
console.log('mpApiGetTicks ' + userId)
return axios.get('https://www.mountainproject.com/data/get-ticks?', {
params: {
userId: userId,
key: apiKey.apiKey
}
})
.then((response) => {
console.log('axios here')
console.log(response.data)
return response.data.ticks
})
.catch((error) => {
console.log('axios error mpApiGetTicks ' + error)
})
} catch (error) {
console.error(`mpApiGetTicks axios error ${error}`)
}
}
const getTicks = (userId, user) => {
console.log('getTicks on ' + userId)
return mpApiGetTicks(userId).then(mpTicksRes=>{
var tickList = []
for (res in mpTicksRes){
var tick = new TickObj()
tick.userName = user.userName
tick.userImg = user.userImg
tick.routeId = mpTicksRes[res].routeId
tick.date = mpTicksRes[res].date
tick.style = mpTicksRes[res].style
tick.notes = mpTicksRes[res].notes
tick.stars = mpTicksRes[res].userRating
tick.tickId = mpTicksRes[res].tickId
tickList.push(tick)
}
routes=tickList.map(tick=>mpApiGetRoutes(tick.routeId))
return Promise.all(routes).then(results=>{
for (route in results){
mpRoutesRes=results[route]
tickList[route].routeName = mpRoutesRes[0].name
tickList[route].routeGrade = mpRoutesRes[0].rating
tickList[route].routeImg = mpRoutesRes[0].imgSqSmall
}
return tickList
})
})
}
const getUser = async (mpId) => {
return axios.get('https://www.mountainproject.com/data/get-user?', {
params: {
userId: mpId,
key: apiKey.apiKey
}
})
.then(response => {
const user = {
userName: response.data.name,
userImg: response.data.avatar
}
console.log(user)
return user
})
.catch(error => {
console.log(response.error)
})
}
router.get('/', async (req, res) => {
const mpId = req.query.mpId
console.log('ticks for ' + mpId)
const user = await getUser(mpId)
getTicks(mpId, user).then((response) => {
console.log('then on getTicks ' + mpId)
res.send(response)
}).catch(console.log)
})
module.exports = router
<file_sep>/api/routes/getFriends.js
const express = require('express')
const router = express.Router()
const axios = require('axios')
// import middleware
const auth = require('../middleware/auth')
const User = require('../models/user')
router.get('/', auth, async(req, res) => {
const sprayName = req.query.sprayName
try {
const user = await User.findOne({sprayName})
if (!user) {
return res.status(401).send('you are not real')
}
let friendsList = user.friendsList
return res.status(200).send(friendsList)
} catch (error) {
console.log(error)
return res.status(401).send(error)
}
})
module.exports = router
<file_sep>/client/src/components/ticklist.js
import React, { Component } from 'react'
import axios from 'axios'
import TickCard from './tickCard'
import {
IonSpinner,
IonContent
} from '@ionic/react'
const API = 'http://localhost:9000/' // pass this to component from app?
class TickList extends Component{
constructor(props){
super(props)
this.state = {
isLoading: true,
ticks: [],
}
}
getTicks(friendsList) {
friendsList.forEach(async (mpId) => {
console.log(mpId)
axios.get(API + 'getTicks', {
headers: {
'Authorization': `${this.props.authToken}`
},
params: {
mpId: mpId
}
})
.then(response => {
this.setState({
ticks: this.state.ticks.concat(response.data),
isLoading: false
})
})
.catch(error => {
console.log(error)
})
})
}
async componentDidMount() {
await this.props.getFriends()
await this.getTicks(this.props.friendsList)
}
async componentDidUpdate(prevProps) {
if (this.props.newFriendMpId !== prevProps.newFriendMpId) {
await this.getTicks([this.props.newFriendMpId]) // add new ticks
}
}
render() {
const sortedTicklist = this.state.ticks.sort((a,b) => {
return new Date(b.date) - new Date(a.date)
})
console.log(sortedTicklist)
return (
<div>
{this.state.isLoading ?
(<IonSpinner/>)
:
(
sortedTicklist.map(tick =>
<div key = {tick.tickId}>
<TickCard
tick = {tick}
/>
</div>
)
)
}
</div>
)
}
}
export default TickList
<file_sep>/client/src/components/logRegSlider.js
import React, { Component } from 'react'
/* ionic */
import {
IonSegment,
IonSegmentButton,
IonToolbar,
IonToast,
IonContent
} from '@ionic/react'
import Login from './login'
import Registration from './registration'
class LogRegSlider extends Component {
constructor(props) {
super(props)
this.state = {
tab: 'login',
redirected: false
}
this.handleChange = this.handleChange.bind(this)
this.onRedirect= this.onRedirect.bind(this)
}
handleChange = (event) => {
const value = event.detail.value
this.setState({ tab: value })
}
onRedirect = () => {
this.setState({
redirected: true,
tab: 'login'
})
}
render() {
return (
<div>
<div>
<IonToast
isOpen= {this.state.redirected === true}
header= {'Welcome, you may now log in'}
onDidDissmiss= {() => {this.setState({ redirected: false })}}
buttons={['OK']}
/>
<IonToolbar>
<IonSegment onIonChange= {this.handleChange} value= {this.state.tab}>
<IonSegmentButton value= 'login'>
login
</IonSegmentButton>
<IonSegmentButton value= 'register'>
register
</IonSegmentButton>
</IonSegment>
</IonToolbar>
</div>
<div>
{this.state.tab === 'login' ?
(<Login
loginUpdate={this.props.loginUpdate}
/>)
:
(<Registration
onRedirectProp={this.onRedirect}
/>)
}
</div>
</div>
)
}
}
export default LogRegSlider
<file_sep>/api/routes/login.js
const express = require('express')
const router = express.Router()
const bcrypt = require('bcryptjs')
const jwt = require('jsonwebtoken')
// import db model
const User = require('../models/user')
// import jwt secret
const JWT_SECRET = require('./jwtConfig')
// Login
router.get('/', function(req, res) {
res.send('this is hello login')
})
// Login Process
router.post('/', async(req, res) => {
const email = req.body.email
const password = req.body.password
try {
const user = await User.findOne({email})
if (!user) {
return res.status(401).send('invalid user')
}
const isMatch = await bcrypt.compare(password, user.password)
if (!isMatch) {
return res.status(401).send('invalid password')
}
const token = jwt.sign({ id: user._id }, JWT_SECRET.secret, { expiresIn: '7d' })
if (!token) throw Error('could not sign token')
res.status(200).json({
token,
user: {
id: user._id,
sprayName: user.sprayName,
}
})
} catch (e) {
res.status(400).json({ msg: e.message })
}
})
module.exports = router
<file_sep>/client/src/components/login.js
import React, { Component } from 'react'
import axios from 'axios'
import {
IonItem,
IonLabel,
IonInput,
IonCard,
IonCardContent,
IonToast,
IonNote,
IonButton
} from '@ionic/react'
const API = 'http://localhost:9000/login' // pass this to component from app?
class Login extends Component {
constructor(props){
super(props)
this.state = {
email: '',
password: '',
emailError: '',
passwordError: '',
error: '',
}
this.handleChange = this.handleChange.bind(this)
this.handleSubmit = this.handleSubmit.bind(this)
this.handleDissmiss = this.handleDissmiss.bind(this)
}
validate = () => {
let emailError= ''
let passwordError= ''
if (!this.state.email) {
emailError= 'please enter an email'
}
if (!this.state.password) {
passwordError= 'please enter your password'
}
if (emailError || passwordError){
this.setState({ emailError, passwordError })
return false
}
return true
}
handleDissmiss = () => {
this.setState({
error: ''
})
}
handleChange = (event) => {
const name = event.target.name
const value = event.target.value
this.setState({
[name]: value
})
}
handleSubmit = (event) => {
event.preventDefault()
const isValid = this.validate()
if (isValid) {
axios.post(API, {
email: event.target.email.value,
password: event.target.password.value
})
.then(response => {
console.log('axios response \n' + JSON.stringify(response))
localStorage.setItem('authToken', response.data.token)
localStorage.setItem('sprayName', response.data.user.sprayName)
this.props.loginUpdate()
})
.catch(error => {
console.log(error.response)
this.setState({error: error.response})
})
}
}
render() {
return (
<IonCard>
<IonCardContent>
<form onSubmit={this.handleSubmit}>
<IonToast
isOpen= {this.state.error !== ''}
header= {this.state.error.data}
buttons={[
{
text: 'OK',
handler: this.handleDissmiss
}
]}
/>
<IonItem>
<IonLabel>
Email*
</IonLabel>
<IonInput
type='text'
name='email'
value={this.state.email}
onIonBlur={this.handleChange}
/>
</IonItem>
<IonNote slot='end' color='danger'>
{this.state.emailError}
</IonNote>
<IonItem>
<IonLabel>
Password*
</IonLabel>
<IonInput
type="<PASSWORD>"
name="password"
value={this.state.password}
onIonBlur={this.handleChange}
/>
</IonItem>
<IonNote slot='end' color='danger'>
{this.state.passwordError}
</IonNote>
<IonButton type='submit'>Submit</IonButton>
</form>
</IonCardContent>
</IonCard>
)
}
}
export default Login
<file_sep>/api/routes/addFriend.js
const express = require('express')
const router = express.Router()
const axios = require('axios')
const apiKey = require('./apiKey')
// import middleware
const auth = require('../middleware/auth')
const User = require('../models/user')
function FriendObj(
name = null,
avatar = null,
location = null
){
this.name = name
this.avatar = avatar
this.location = location
}
// calls mountain project get user api for populating add friend card
router.get('/', auth, async(req, res) => {
const mpId = req.query.mpId
const sprayName = req.query.sprayName
try {
axios.get('https://www.mountainproject.com/data/get-user?', {
params: {
userId: mpId,
key: apiKey.apiKey
}
})
.then((response) => {
if (!response.data) {
return res.status(400).send('Invalid User Id')
} else {
var Friend = new FriendObj()
Friend.mpid = response.data.id
Friend.name = response.data.name
Friend.avatar = response.data.avatar
Friend.location = response.data.location
Friend.about = response.data.otherInterests
return res.status(200).send(Friend)
}
})
.catch((error) => {
console.log('axios error')
console.log(error)
})
} catch (error) {
return res.status(401).send(error)
}
})
// adding friend mpId to db
router.post('/', auth, async(req, res) => {
const mpId = req.query.mpId // friend mpId
const sprayName = req.query.sprayName
try {
const user = await User.findOneAndUpdate(
{ sprayName: sprayName},
{ $push: { friendsList: mpId } },
)
if (!user) {
console.log('adding friend db error')
}
return res.status(200).send('friend added')
} catch (error) {
console.log(error)
return res.status(401).send(error)
}
})
module.exports = router
<file_sep>/api/routes/register.js
const express = require('express')
const router = express.Router()
const bcrypt = require('bcryptjs')
const jwt = require('jsonwebtoken')
// import db model
const User = require('../models/user')
// import jwt secret
const JWT_SECRET = require('./jwtConfig')
router.get('/', function(req, res) {
res.send('hello ' + JSON.stringify(JWT_SECRET.secret))
})
router.post('/', function(req, res) {
console.log(req.body)
const sprayName = req.body.sprayName
const email = req.body.email
const password = req.body.password
const mpId = req.body.mpId
let newUser = new User({
sprayName: sprayName,
email: email,
password: <PASSWORD>,
mpId: mpId,
friendsList: []
})
bcrypt.genSalt(10, function(err, salt){
bcrypt.hash(newUser.password, salt, function(err, hash){
if (err){
console.log(err)
}
newUser.password = <PASSWORD>
newUser.save(function(err){
if (err){
console.log(err)
if (err.code === 11000){
console.log('dup key found')
res.status(401).send('acount already exists with that email')
}
return
} else {
res.status(200).send('success redirecting to login')
}
})
})
})
})
module.exports = router
<file_sep>/client/src/components/friendCard.js
import React, { Component } from 'react'
import {
IonCard,
IonCardHeader,
IonCardContent,
IonAvatar,
IonImg,
IonButton
} from '@ionic/react'
class FriendCard extends Component {
render() {
return (
<IonCard>
<IonAvatar>
<IonImg src={this.props.friendObj.avatar} />
</IonAvatar>
<IonCardHeader>
{this.props.friendObj.name}
</IonCardHeader>
<IonCardHeader>
{/* Location */}
{this.props.friendObj.location}
</IonCardHeader>
<IonCardContent>
{this.props.friendObj.about}
</IonCardContent>
<IonButton
color='danger'
onClick={this.props.modalOff}
>
cancel
</IonButton>
<IonButton
onClick={this.props.handleAddFriend}
>
add
</IonButton>
</IonCard>
)
}
}
export default FriendCard
| 748cd9ae8a1929ec8b1f39309d7f841005df243e | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | KevinBaileyCrum/spray_project | ea55f4b4ef77a3cbc25ca4938568dd8ed5f346a9 | 515d25ac122c89cd69c35031972a6f09547f4607 |
refs/heads/master | <repo_name>4js-mikefolcher/java-jwt<file_sep>/README.md
# java-jwt
Java implementation of JSON Web Token (JWT)
## Getting Started
**Prerequisite**\
Before you get started, the org.json jar file must be downloaded and referenced in CLASSPATH.\
You can download the latest version here: https://jar-download.com/artifacts/org.json
**Download & Build**
- Download this Git repository to your local machine
- Run the jar-build.sh command to build the jar file
- Reference the jwt-fourjs.jar file in your CLASSPATH
## Usage
### Generate JWT Token
The following code can be used to generate JWT token in Java
**Java Implementation**
```java
import com.fourjs.jwt.JWebToken;
String subject = "John";
String[] audience = new String[]{"Admin", "Accounting", "Payroll"};
int expireMinutes = 30;
String secretKey = "ThisIsMySpecialSecretKey:OU812!";
JWebToken token = JWebToken.CreateToken(subject, audience, expireMinutes, secretKey);
String bearerToken = token.toString();
```
The following code can be used to generate a JWT token in Genero
**Genero Implementation**
```genero
IMPORT JAVA com.fourjs.jwt.JWebToken
IMPORT JAVA java.lang.String
IMPORT JAVA java.lang.Object
PUBLIC TYPE JavaString java.lang.String
PUBLIC TYPE JavaStringArray ARRAY[] OF JavaString
PUBLIC TYPE JavaObjectArray ARRAY[] OF java.lang.Object
PUBLIC TYPE TWebToken com.fourjs.jwt.JWebToken
FUNCTION buildToken() RETURNS ()
DEFINE token TWebToken
DEFINE permissions DYNAMIC ARRAY OF STRING = ["Admin", "Accounting", "Payroll"];
DEFINE javaPermissions JavaStringArray
DEFINE idx INTEGER
DEFINE expireMinutes INTEGER
DEFINE secretKey STRING
DEFINE subject STRING
DEFINE bearerToken STRING
LET subject = "John"
LET expireMinutes = 30
LET secretKey = "ThisIsMySpecialSecretKey:OU812!"
LET javaPermissions = JavaStringArray.create(permissions.getLength())
FOR idx = 1 TO permissions.getLength()
LET javaPermissions[idx] = permissions[idx]
END FOR
LET token = TWebToken.CreateToken(subject, javaPermissions, expireMinutes, secretKey)
LET bearerToken = token.toString()
END FUNCTION
```
### Verify JWT Token
JWT token recieved in the String format can be used to verify and extract audience and subject information as follows.
**Java Implementation**
```java
//verify and use
String secretKey = "ThisIsMySpecialSecretKey:OU812!";
JWebToken incomingToken = new JWebToken(bearerToken, secretKey);
if (incomingToken.isValid()) {
List<String> audience = incomingToken.getAudience();
String subject = incomingToken.getSubject();
}
```
**Genero Implementation**
```genero
IMPORT JAVA com.fourjs.jwt.JWebToken
IMPORT JAVA java.lang.String
IMPORT JAVA java.lang.Object
PUBLIC TYPE JavaString java.lang.String
PUBLIC TYPE JavaStringArray ARRAY[] OF JavaString
PUBLIC TYPE JavaObjectArray ARRAY[] OF java.lang.Object
PUBLIC TYPE TWebToken com.fourjs.jwt.JWebToken
FUNCTION verifyToken(bearerToken STRING) RETURNS (BOOLEAN)
DEFINE token TWebToken
DEFINE secretKey STRING
LET secretKey = "ThisIsMySpecialSecretKey:OU812!"
LET token = TWebToken.create(bearerToken, secretKey)
RETURN token.isValid()
END FUNCTION
```
### JWT Tutorial
This code was modified from the original implementation done by com.metamug\
Here is the original tutorial.
https://metamug.com/article/security/jwt-java-tutorial-create-verify.html
<file_sep>/jar-build.sh
#!/bin/bash
#set -x
cwd="`pwd`"
srcdir="${cwd}/src/main/java/com/fourjs/jwt"
javafile="${srcdir}/JWebToken.java"
if [ ! -d "$srcdir" ]; then
echo "You should be in the root git directory when running this script"
exit 1
fi
if [ ! -f "$javafile" ]; then
echo "The java source file $javafile does not exist"
exit 1
fi
javac "$javafile"
if [ $? -ne 0 ]; then
echo "Compilation error occurred"
exit 1
fi
classfile="${srcdir}/JWebToken.class"
if [ ! -f "$classfile" ]; then
echo "Compilation error occurred"
exit 1
fi
jarroot="${cwd}/src/main/java"
if [ ! -d "$jarroot" ]; then
echo "You should be in the root git directory when running this script"
exit 1
fi
cd "$jarroot"
jar cMf jwt-fourjs.jar META-INF/MANIFEST.MF com/fourjs/jwt/JWebToken.class
if [ $? -ne 0 ]; then
echo "An error occurred attempting to create the jar file"
exit 1
fi
mv jwt-fourjs.jar "${cwd}/."
echo "Jar file has been created successfully"
| 42939e1e12af31504238dafef6fb068a1a195ea6 | [
"Markdown",
"Shell"
] | 2 | Markdown | 4js-mikefolcher/java-jwt | 3948239fc10bc95f45f53656c2a88c1fe70115cd | 029ba00ce2b74098f046f77beb814e74f7841fde |
refs/heads/master | <file_sep>jquery-scrollsnap-plugin
========================
Javascript implementation of vertical scroll snapping.
Demo and documentation at http://benoit.pointet.info/stuff/jquery-scrollsnap-plugin/ .
<file_sep>// TODO allow for x scrollsnapping
(function( $ ) {
$.fn.scrollsnap = function( options ) {
var settings = $.extend( {
'snaps' : '*',
'proximity' : 12,
'offset' : 0,
'duration' : 200,
'easing' : 'swing',
}, options);
return this.each(function() {
var scrollingEl = this;
if (scrollingEl.scrollTop !== undefined) {
// scrollingEl is DOM element (not document)
$(scrollingEl).css('position', 'relative');
$(scrollingEl).bind('scrollstop', function(e) {
var matchingEl = null, matchingDy = settings.proximity + 1;
$(scrollingEl).find(settings.snaps).each(function() {
var snappingEl = this,
dy = Math.abs(snappingEl.offsetTop + settings.offset - scrollingEl.scrollTop);
if (dy <= settings.proximity && dy < matchingDy) {
matchingEl = snappingEl;
matchingDy = dy;
}
});
if (matchingEl) {
var endScrollTop = matchingEl.offsetTop + settings.offset;
if($(scrollingEl).scrollTop() != endScrollTop) {
$(scrollingEl).animate({scrollTop: endScrollTop}, settings.duration, settings.easing);
}
}
});
} else if (scrollingEl.defaultView) {
// scrollingEl is DOM document
$(scrollingEl).bind('scrollstop', function(e) {
var matchingEl = null, matchingDy = settings.proximity + 1;
$(scrollingEl).find(settings.snaps).each(function() {
var snappingEl = this;
var dy = Math.abs(($(snappingEl).offset().top + settings.offset) - scrollingEl.defaultView.scrollY);
if (dy <= settings.proximity && dy < matchingDy) {
matchingEl = snappingEl;
matchingDy = dy;
}
});
if (matchingEl) {
var endScrollTop = $(matchingEl).offset().top + settings.offset;
if($(scrollingEl).scrollTop() != endScrollTop) {
$('html, body').animate({scrollTop: endScrollTop}, settings.duration, settings.easing);
}
}
});
}
});
};
})( jQuery );
| 98aebaf7814e0ecad166a8132b9ef2bb66339f48 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | sabotai/nycLTrainDataVisualization | e5352d4404b6c23f603e9bd2921f417bbf7c2d1d | e12e4245e474c0950654a423d64267a92142b374 |
refs/heads/master | <file_sep>const express = require('express');
const cors = require('cors');
const port = 3000;
const apiRouter = require('./routes');
let app = express();
//middleware
app.use(cors());
app.use(express.json());
//router
app.use('/api', apiRouter);
//port
app.listen(port);
| d7ba467489d53921842ee1829794714be3d580c7 | [
"JavaScript"
] | 1 | JavaScript | dmayes77/building-apis-expressjs | d80837706be22ff274b91b36046bfe251292547f | 7816b32de313e20d942459e6a10ac3f19eca8fa1 |
refs/heads/master | <repo_name>anamkhan2/quick-travis<file_sep>/src/components/Table/Table.js
import React, { useState } from "react";
import { Tooltip } from "@material-ui/core";
const Table = ({course, students}) => {
const [heatlhyTemp, setHealthy] = useState(96);
const [onlyUnhealthy, setOnlyUnhealthy] = useState(false);
const getTemp = s => {
let keys = Object.keys(students)
for (var i = 0; i < keys.length; i++){
if ( s === students[keys[i]]["netid"]) {
let entries = Object.keys(students[keys[i]]["record"])
if (entries.length !== 0){
let max = 0;
let dT = "";
for (const entry in entries){
if (Date.parse(entries[entry]) > max){
max = Date.parse(entries[entry]);
dT = entries[entry]
}
}
return [students[keys[i]]["record"][dT], dT];
}
else {
return ("-", "-");
}
}
}
return ("-", "-")
}
return(
<div id="table-container">
<button data-cy="change" id="update_healthy" onClick={() => heatlhyTemp === 96 ? setHealthy(90) : setHealthy(96)}>
Change Healthy Temp
</button>
<button data-cy="unhealthy" onClick={() => setOnlyUnhealthy(!onlyUnhealthy)}>
{onlyUnhealthy ? "Show All Students" : "Show Unhealthy Students"}
</button>
<caption>{course["Name"]}</caption>
<table data-cy="table" className="course-table table-bordered" data-testid={course["Name"]}>
<thead>
<th scope="col">Student Name</th>
<th scope="col">Latest Temperature</th>
<th scope="col">Date of Temperature</th>
</thead>
<tbody>
{course["Roster"].map((s) =>
Number(getTemp(s)[0]) > heatlhyTemp ?
<tr>
<td class="unhealthy" data-testid="unhealthy" key={s}>{s}</td>
<Tooltip data-testid="tooltip" title="temperature not within healthy range" aria-label="temperature not within healthy range"><td>{getTemp(s)[0]}</td></Tooltip>
<td>{getTemp(s)[1]}</td>
</tr>
: onlyUnhealthy ? console.log("") :
<tr>
<td class="healthy" data-testid="healthy" key={s}>{s}</td>
<Tooltip data-testid="tooltip" title="temperature within healthy range" aria-label="temperature within healthy range"><td>{getTemp(s)[0]}</td></Tooltip>
<td>{getTemp(s)[1]}</td>
</tr>
)}
</tbody>
</table>
</div>
);
}
export default Table;<file_sep>/src/components/Table/Table.test.js
import { render, fireEvent, getAttribute, findByText } from '@testing-library/react'
import React from "react";
import Table from "./Table";
import data from '../data.json';
test('loads items eventually', async () => {
const info = {Course: data["Course"], Students: data["Student"]};
const professor = {Name: "<NAME>", Courses: ["Agile Methodology"]};
const {findByText, getByTestId} = render(<Table course={info.Course["EECS394"]} students={info.Students} />)
const item = await findByText("xqv6932")
expect(item).toBeInTheDocument()
// expect(item).getAttribute('key').toBe('xqv6932')
const table = await getByTestId("Agile Software Development");
expect(table).toBeInTheDocument()
});
test('firing button changes table data classes', async () => {
const info = {Course: data["Course"], Students: data["Student"]};
const professor = {Name: "<NAME>", Courses: ["Agile Methodology"]};
const {findByText, findByTestId} = render(<Table course={info.Course["EECS394"]} students={info.Students} />)
// find elements
const button = await findByText("Change Healthy Temp")
expect(button).toBeInTheDocument()
const table = await findByTestId("Agile Software Development");
expect(table).toBeInTheDocument()
const entry = await findByText("xqv6932")
expect(entry).toBeInTheDocument()
expect(entry.className).toEqual("healthy")
const entry2 = await findByText("npv7128")
expect(entry2).toBeInTheDocument()
expect(entry2.className).toEqual("healthy")
// fire event and test classes
fireEvent.click(button)
expect(entry.className).toEqual("healthy")
expect(entry2.className).toEqual("unhealthy")
fireEvent.click(button)
expect(entry.className).toEqual("healthy")
expect(entry2.className).toEqual("healthy")
});<file_sep>/src/firebase.js
import firebase from 'firebase/app';
var firebaseConfig = {
apiKey: "<KEY>",
authDomain: "quick-travis2.firebaseapp.com",
databaseURL: "https://quick-travis2.firebaseio.com",
projectId: "quick-travis2",
storageBucket: "quick-travis2.appspot.com",
messagingSenderId: "504046538903",
appId: "1:504046538903:web:122456b73fd2b65060d9d2",
measurementId: "G-5K2DPSX6J9"
};
const Firebase = firebase.initializeApp(firebaseConfig);
export default Firebase;<file_sep>/src/App.js
import React from 'react';
import './App.css';
// import Firebase from './firebase'
import 'firebase/database';
import Table from "./components/Table/Table";
import data from './components/data.json';
function App() {
const info = {Course: data["Course"], Students: data["Student"]};
const professor = {Name: "<NAME>", Courses: ["Agile Methodology"]};
return (
<div className="App">
<h1> Health Passport</h1>
<header className="App-header">
<h1>{professor.Name}</h1>
<Table course={info.Course["EECS394"]} students={info.Students}/>
</header>
</div>
);
}
export default App;
<file_sep>/cypress/integration/App.spec.js
describe ('Test App', () => {
// test 1
it ('launches', () => {
cy.visit ('/');
});
// test 2
it ('opens with student temperature table with correct 3 headers', () => {
cy.visit ('/');
cy.get('[data-cy=table]').should('contain', 'Student Name');
cy.get('[data-cy=table]').should('contain', 'Latest Temperature');
cy.get('[data-cy=table]').should('contain', 'Date of Temperature');
});
// all below are parts of test 3
it('shows unhealthy students when "show unhealthy" button is selected', () => {
cy.visit ('/');
cy.get('[data-cy=unhealthy]').click();
cy.get('[data-cy=table]').should('contain' ,'qrs7059');
cy.get('[data-cy=table]').should('not.contain' ,'npv7128');
cy.get('[data-cy=table]').should('not.contain' ,'xqv6932');
cy.get('[data-cy=unhealthy]').click();
cy.get('[data-cy=table]').should('contain' ,'qrs7059');
cy.get('[data-cy=table]').should('contain' ,'npv7128');
cy.get('[data-cy=table]').should('contain' ,'xqv6932');
});
it('shows correct students when healthy temperature guideline is changed', () => {
cy.visit ('/');
cy.get('[data-cy=change]').click();
cy.get('[data-cy=unhealthy]').click();
cy.get('[data-cy=table]').should('contain' ,'qrs7059');
cy.get('[data-cy=table]').should('contain' ,'npv7128');
cy.get('[data-cy=table]').should('contain' ,'xqv6932');
});
}); | b7cb21a7f04e13545c0a0104492bcd753da21e1b | [
"JavaScript"
] | 5 | JavaScript | anamkhan2/quick-travis | c28b1558dfaa3ae5a921024f1d1de20eed8ded22 | a9888427e3e44ceb24681896a4866f22f66dda63 |
refs/heads/master | <file_sep># do the stuff
export PS1="➜ "
| a25a2a667223844b330d1455f352e1316370dffb | [
"Shell"
] | 1 | Shell | ali019283/promptless | 1722b3fbef285866a919cad6e62f50bf7150539c | 63d547784c192012a7ce2009c0e584f64c776779 |
refs/heads/master | <repo_name>AlanBrisset/L3MotsCroises<file_sep>/SOURCES/FONCTIONS_S/FOUND.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zmq.h>
#include <unistd.h>
#include "fonctions.h"
int FOUND(void *responder, char choix[]){
printf ("\n");
char *fonction= choix;
char *parametres[100];
int i=0;
fonction += 6;
/* Divise la chaine en plusieurs variables dans un tableau de chaine de caractere */
char *mot = strdup (fonction); /* Recupération de la variable WORDS */
printf("\n----------------- REPONSE RECUE PAR LE CLIENT ------------------\n\n");
printf("Le mot à verifier pour le client est : ");
printf (mot); /* Affichage du mot+ coordonnées du joueur */
printf ("\n");
sleep (1);
/* AJOUT DE L'ALGORITHME (variable buffer contient nom utilisateur )*/
/* Verifie si le joueur n'est pas déjà connecté */
int longueur = strlen(mot);
int existe = 0;
char mot_bis[longueur];
FILE* fichier = NULL;
char * line = NULL;
size_t len = 0;
ssize_t read;
fichier = fopen ("./RESSOURCES/WORDS.txt", "r");
if(fichier==NULL)
printf ("Impossible d'ouvrir le fichier WORDS.txt\n");
else
{
while ((read = getline(&line, &len, fichier)) != -1) {
if (!strcmp(line,mot)){
existe=1;
printf("MOT VALIDE\n\n");
printf("\n-----------------------------------\n\n");
zmq_send (responder, "BRAVO ! MOT VALIDE", 60, 0); /*Envoi du message de confirmation*/
return 0;
}
}
}
/* Sinon */
if(!existe){
printf("MOT NON-VALIDE\n\n");
printf("\n-----------------------------------\n\n");
zmq_send (responder, "MOT NON VALIDE, REESSAYEZ", 40, 0); /*Envoi du message de confirmation*/
return 1;
}
fclose(fichier);
}
<file_sep>/SOURCES/RESSOURCES/dicos/divise.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zmq.h>
#include <unistd.h>
void main(int longueur){
int taille = longueur;
taille++;
char mot_bis[longueur];
FILE* fichier = NULL;
FILE* fichier2 = NULL;
char * line = NULL;
size_t len = 0;
ssize_t read;
fichier = fopen ("dico.txt", "r");
fichier2 = fopen("dico25.txt", "a");
if(fichier==NULL)
printf ("Impossible d'ouvrir le fichier USERS.txt\n");
else
{
while ((read = getline(&line, &len, fichier)) != -1) {
if (strlen(line) == 26 && fichier2 != NULL){
printf("%s\n",line);
fprintf (fichier2,"\n%s",line);
}
}
fclose(fichier);
fclose(fichier2);
}
}
<file_sep>/SOURCES/FONCTIONS_C/WORDS.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zmq.h>
#include <unistd.h>
#include "fonctions.h"
int WORDS(void *requester){
char buffer[10];
/* ENVOYER DU RIEN */
zmq_send(requester, "ENVOIAEZRT", 30, 0);
zmq_send(requester, "ENVOIAEZRT", 30, 0);
/* RECEPTION DE LA GRILLE */
printf("\n\n----------------- RECEPTION DES MOTS A TROUVER ------------------\n\n");
char buff[60];
zmq_recv(requester, buff, 60, 0);
printf("zzzz");
char *parametres[100];
int i=0;
parametres[i] = strtok(buff," ");
while(parametres[i]!=NULL)
{
parametres[++i] = strtok(NULL," ");
}
/* Affichage des mots à trouver pour le client */
int j = sizeof(parametres);
for (i=0; i<j; i++)
{
printf(parametres[i]);
printf(" ");
}
printf("\n\n--------------------\n\n");
return 1;
}
<file_sep>/SOURCES/Makefile
DIR_C = ./FONCTIONS_C/
DIR_S = ./FONCTIONS_S/
all: client server clean
client: join_c.o grid_c.o words_c.o found_c.o leave_c.o client.o
gcc -o client join.o grid.o words.o found.o leave.o client.o -lzmq
server: join_s.o grid_s.o words_s.o found_s.o leave_s.o server.o
gcc -o server join.o grid.o words.o found.o leave.o server.o -lzmq
join_c.o:
gcc -o join.o -c $(DIR_C)JOIN.c -W -Wall -ansi -pedantic -lzmq
grid_c.o:
gcc -o grid.o -c $(DIR_C)GRID.c -W -Wall -ansi -pedantic -lzmq
words_c.o:
gcc -o words.o -c $(DIR_C)WORDS.c -W -Wall -ansi -pedantic -lzmq
found_c.o:
gcc -o found.o -c $(DIR_C)FOUND.c -W -Wall -ansi -pedantic -lzmq
leave_c.o:
gcc -o leave.o -c $(DIR_C)LEAVE.c -W -Wall -ansi -pedantic -lzmq
client.o: client.c $(DIR_C)fonctions.h
gcc -o client.o -c client.c -W -Wall -ansi -pedantic -lzmq
join_s.o:
gcc -o join.o -c $(DIR_S)JOIN.c -W -Wall -ansi -pedantic -lzmq
grid_s.o:
gcc -o grid.o -c $(DIR_S)GRID.c -W -Wall -ansi -pedantic -lzmq
words_s.o:
gcc -o words.o -c $(DIR_S)WORDS.c -W -Wall -ansi -pedantic -lzmq
found_s.o:
gcc -o found.o -c $(DIR_S)FOUND.c -W -Wall -ansi -pedantic -lzmq
leave_s.o:
gcc -o leave.o -c $(DIR_S)LEAVE.c -W -Wall -ansi -pedantic -lzmq
server.o: server.c $(DIR_S)fonctions.h
gcc -o server.o -c server.c -W -Wall -ansi -pedantic -lzmq
clean:
rm -rf *.o
mrproper: clean
rm -rf client server
<file_sep>/README.md
# L3MotsCroises
Projet de L3, avec <NAME> et <NAME>. Génération d'une grille de mots croisés, comprenant une communication client-serveur. Le projet n'a pas été fini.
Les fichiers sont fonctionnels un à un : on peut bien se connecter au serveur, ce dernier enregistre les clients qui se connectent, le fichier WORDS.C permet bien de fouiller une grille de mots fléchés en se basant sur des dictionnaires, et d'en ressortir les mots.
Cependant, la liaison entre les fichiers n'a pas été effectuée, du moins elle n'est pas fonctionnelle.
D'autres fonctionnalités ne sont pas du tout présentes (l'interface graphique notamment).
<file_sep>/SOURCES/FONCTIONS_S/LEAVE.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zmq.h>
#include <unistd.h>
#include "fonctions.h"
int LEAVE(void *responder, char choix[]){
char *fonction= choix;
char *parametres[100];
int i=0;
parametres[i] = strtok(fonction," ");
while(parametres[i]!=NULL)
{
parametres[++i] = strtok(NULL," ");
}
/* Divise la chaine en plusieurs variables dans un tableau de chaine de caractere */
char *nomJoueur = strdup (parametres[1]); /* Recupération de la variable NOM */
printf("\n----------------- TENTATIVE DE CONNECTION AVEC CLIENT ------------------\n\n");
printf("Le nom joueur voulant se déconnecter est : ");
printf (nomJoueur); /* Affichage du nom du joueur */
printf ("\n");
sleep (1);
/* AJOUT DE L'ALGORITHME (variable buffer contient nom utilisateur )*/
/* Verifie si le joueur n'est pas déjà connecté */
int longueur = strlen(nomJoueur);
int existe = 0;
char mot_bis[longueur];
FILE* fichier = NULL;
char * line = NULL;
size_t len = 0;
ssize_t read;
fichier = fopen ("./RESSOURCES/USERS.txt", "r+");
if(fichier==NULL)
printf ("Impossible d'ouvrir le fichier USERS.txt\n");
else
{
while ((read = getline(&line, &len, fichier)) != -1) {
if (!strcmp(line,nomJoueur)){
existe=1;
fprintf("", line);
zmq_send (responder, "Joueur déconnecté par le serveur !", 60, 0); /*Envoi du message de confirmation*/
}
}
fclose(fichier);
}
/* Si il n'existe pas, alors on l'ajoute */
if(!existe){
zmq_send (responder, "Vous n'êtes pas connecté, connectez vous avec JOIN !", 60, 0); /*Envoi du message de confirmation*/
return 1;
}
}
<file_sep>/SOURCES/server.c
#include <zmq.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <assert.h>
#include "FONCTIONS_S/fonctions.h"
#define PORT1 8000;
#define PORT2 8001;
int main (void)
{
/* CREATION DES FLUX DE COMMUNICATION AVEC PORTS 1 & 2 */
void *context = zmq_ctx_new ();
void *responder = zmq_socket (context, ZMQ_REP);
int rc = zmq_bind (responder, "tcp://*:1111");
assert (rc == 0);
void *context2 = zmq_ctx_new ();
void *responder2 = zmq_socket (context2, ZMQ_REP);
rc = zmq_bind (responder2, "tcp://*:2222");
assert (rc == 0);
/* Variables de validation d'etats */
int connexion = 0;
int grille = 0;
int mots = 0;
int valide = 0;
int quitte = 0;
/* NETTOYAGE DES FICHIERS .txt DU PROJET */
FILE* fichier1 = NULL;
fichier1 = fopen ("./RESSOURCES/USERS.txt", "w");
FILE* fichier2 = NULL;
fichier2 = fopen ("./RESSOURCES/GRID.txt", "w");
FILE* fichier3 = NULL;
fichier3 = fopen ("./RESSOURCES/WORDS.txt", "w");
while (1) {
printf ("\n\n------------- EN ATTENTE DE RECEPTION D'UNE COMMANDE -------------\n\n");
char choix[100];
zmq_recv (responder, choix, 100, 0); /* Réception de la fonction du joueur*/
char *pointeur;
char *separateur = { " " }; /* Le séparateur*/
char *buffer;
char *Chaine_Entrante = choix;
buffer = strdup (Chaine_Entrante);
/* DETERMINATON DE LA FONCTION EXECUTEE */
pointeur = strtok( buffer, separateur );
/* ----------------- APPELS DES FONCTIONS A AJOUTER DANS L'ORDRE ! ------------------- */
/* FONCTIONS DE JOIN (YOUSSEF) */
if(!strcmp(pointeur,"JOIN")){
connexion = JOIN(responder,choix);
}
/*FONCTIONS DE GRID (ALAN) */
if(connexion){
/*Changement de port avec le client */
grille = GRID(responder2);
}
/*FONCTIONS DE WORDS (ALAN)*/
if(grille){
/* !!!!!! PROBLEME DE SEGMENTATION FAULT (core dumped) ICI !!!!!!!!*/
mots = WORDS(responder2);
}
/*FONCTIONS DE FOUND (LEO)*/
else if(!strcmp(pointeur,"FOUND")){
valide = FOUND(responder,choix);
}
/*FONCTIONS DE ATTRIBUTION DE SCORE (YOUSSEF) */
else if(!strcmp(pointeur,"LEAVE")){
quitte = LEAVE(responder,choix);
}
}
return 0;
}
<file_sep>/SOURCES/FONCTIONS_C/LEAVE.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zmq.h>
#include <unistd.h>
#include <string.h>
#include "fonctions.h"
int LEAVE(void *requester,char choix[]){
printf("\n\nVOUS AVEZ CHOISI DE VOUS DECONNECTER \n\n");
/* ---------------------- VERIFICATION DE LA VALIDITE LA FOCNTION ----------------------*/
char *pointeur;
char *separateur = { " " }; /* Le séparateur*/
char *buffer;
char *Chaine_Entrante = choix;
int nb_mot=1;
buffer = strdup (Chaine_Entrante);
/* premier appel, */
pointeur = strtok( buffer, separateur );
while( pointeur != NULL )
{
/* Cherche les autres separateur */
pointeur = strtok( NULL, separateur );
if ( pointeur != NULL )
{
nb_mot++; /* increment du nombre de mot*/
}
}
/* ---------------------- SI OK, ENVOI DU BUFFER AU SERVER ----------------------*/
if(nb_mot == 2){
zmq_send(requester, choix, 60, 0); /* Envoi de la fonction au server */
/* ---------------------- REPONSE DU SERVER ----------------------*/
char buffer[60]; /* Création de la variable buffer, qui contiendra le message de confirmation */
zmq_recv(requester, buffer, 60, 0); /* Réception du message de confirmation */
printf(buffer); /* Affichage du message de confirmation */
printf("\n\n--------------------\n\n");
return 1;
}
/* ---------------------- SINON, MESSAGE D'ERREUR ----------------------*/
else {
printf("\nMerci de bien entrer le bon nombre d'arguments pour la fonction LEAVE\n\n"); /* Affichage du message d'erreur de nombre d'arguments */
printf("Du type : LEAVE <idnetifiant>"); /* Affichage du message du type attendu de la fonction */
printf("\n\n--------------------\n\n");
return 0;
}
}
<file_sep>/SOURCES/FONCTIONS_S/JOIN.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zmq.h>
#include <unistd.h>
#include "fonctions.h"
int JOIN(void *responder, char choix[]){
char *fonction= choix;
char *parametres[100];
int i=0;
parametres[i] = strtok(fonction," ");
while(parametres[i]!=NULL)
{
parametres[++i] = strtok(NULL," ");
}
/* Divise la chaine en plusieurs variables dans un tableau de chaine de caractere */
char *nomJoueur = strdup (parametres[1]); /* Recupération de la variable NOM */
printf("\n----------------- TENTATIVE DE CONNECTION AVEC CLIENT ------------------\n\n");
printf("Le nom joueur voulant se connecter est : ");
printf (nomJoueur); /* Affichage du nom du joueur */
printf ("\n");
sleep (1);
/* AJOUT DE L'ALGORITHME (variable buffer contient nom utilisateur )*/
/* Verifie si le joueur n'est pas déjà connecté */
int longueur = strlen(nomJoueur);
int existe = 0;
char mot_bis[longueur];
FILE* fichier = NULL;
FILE* fichierbis = NULL;
FILE* fichierter = NULL;
char * line = NULL;
char * line2 = NULL;
char * line3 = NULL;
size_t len = 0;
ssize_t read;
ssize_t read2;
ssize_t read3;
fichier = fopen ("./RESSOURCES/USERS.txt", "r");
if(fichier==NULL)
printf ("Impossible d'ouvrir le fichier USERS.txt\n");
else
{
while ((read = getline(&line, &len, fichier)) != -1) {
if (!strcmp(line,nomJoueur)){
existe=1;
/*
printf("\n----------------- AFFICHAGE DES JOUEURS CONNECTES ------------------\n\n");
while ((read2 = getline(&line2, &len, fichier)) != -1) {
printf(line2);
} */
zmq_send (responder, "Vous êtes déjà connecté !", 60, 0); /*Envoi du message de confirmation*/
}
}
fclose(fichier);
}
/* Si il n'existe pas, alors on l'ajoute */
if(!existe){
/*fichier = NULL;*/
fichierbis = fopen("./RESSOURCES/USERS.txt", "a");
if (fichierbis != NULL)
{
fprintf (fichierbis,"%s\n",nomJoueur);
}
else
printf("on ouvre pas ici");
/*
char message[60];
strcat(message, "Nouveau joueur ajouté, Bienvenue ");
strcat(message, nomJoueur);
strcat(message, " !"); */
zmq_send (responder, "Nouveau joueur ajouté, Bienvenue !", 60, 0); /*Envoi du message de confirmation*/
fclose(fichierbis);
}
fichierter = fopen("./RESSOURCES/USERS.txt", "r");
printf("\n----------------- AFFICHAGE DES JOUEURS CONNECTES ------------------\n\n");
while ((read3 = getline(&line3, &len, fichierter)) != -1) {
printf(line3);
}
printf("\n\n--------------------\n\n");
fclose(fichierter);
return 1;
}
<file_sep>/SOURCES/FONCTIONS_S/GRID.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
int GRID(void *responder){
FILE* grilleFinie = NULL;
char * line = NULL;
size_t len = 0;
ssize_t read;
/* RECEVOIR DU RIEN */
char buffer11[0];
zmq_recv(responder, buffer11, 0, 0); /* Réception du message de confirmation */
/* --- DIMENSIONS DE LA GRILLE --- */
int dimLigne = 5;
int dimColonne = 6;
/*const char *motsLigneGrille[dimLigne]; /*Variable qui contiendra les mots générant la grille : chaque ligne sera constituée d'un mot.*/
/*strcpy(motsLigneGrille[4], "@"); /* On insère le symbole @ dans la dernière ligne de la grille. Cela nous permettra de savoir si toute la grille a été générée ou non (si le symbole @ a disparu, cela signifie qu'il a été remplacé par un mot).*/
char motsLigneGrille[dimLigne][dimColonne+1];
int j,k = 0; /* j sera une valeur aléatoire, k sera l'index de la variable motsLigneGrille.*/
srand(time(NULL)); /*Initialisation de la donnée seed (calcul aléatoire).*/
char nomDico[30] = "./RESSOURCES/dicos/dico";
char nbCaracteres[15];
sprintf(nbCaracteres, "%d", dimColonne);
FILE* fichier2 = NULL;
fichier2 = fopen ("./RESSOURCES/GRID.txt", "a");
grilleFinie = fopen ("./RESSOURCES/GRID.txt", "r");
char * tabGrille[255];
char *p=tabGrille;
strcat (nomDico, nbCaracteres); /*nomDico a le bon nom par rapport au nb de caractères demandés.*/
strcat (nomDico, ".txt");
char dest[256]; /* Contiendra le mot générateur */
/* VERIFIER SI LE FICHIER EST VIDE */
int caracterePremier = 0;
/*On lit le prmeier caractère du fichier*/
caracterePremier = fgetc(fichier2);
if(caracterePremier==EOF)
{
while(k<5)
{
FILE* fichier = NULL;
fichier = fopen (nomDico, "r");
if(fichier==NULL)
{
printf(nomDico);
printf("Impossible d'afficher le dictionnaire de génération de grille.");
}
else
{
char * line = NULL;
size_t len = 0;
ssize_t read;
while ((k<5) && (read = getline(&line, &len, fichier)) != -1)
{
j = rand() % (6000 + 1); /* Nombre aléatoire entre 1 et 6000*/
if (j==1298 && (k<5) && strlen(line)>3) /* On choisit une valeur fixe. On a une chance sur 6000 de passer dans ce if.*/
{
line[6]='\0';
strcpy(motsLigneGrille[k], line);
k++;
if (fichier2 != NULL)
{
fprintf (fichier2,"%s\n",line);
}
else{
printf("Impossible d'exporter la grille");
}
}
}
}
fclose(fichier);
}
fclose(fichier2);
printf("\n----------------- AFFICHAGE DES LIGNES DE LA GRILLE ------------------\n\n");
printf("1: ");
printf(motsLigneGrille[0]);
printf("\n");
printf("2: ");
printf(motsLigneGrille[1]);
printf("\n");
printf("3: ");
printf(motsLigneGrille[2]);
printf("\n");
printf("4: ");
printf(motsLigneGrille[3]);
printf("\n");
printf("5: ");
printf(motsLigneGrille[4]);
printf("\n");
printf("\n--------------------");
printf("\n");
strcpy(tabGrille, "GRID ");
char nbLignesChar[15];
sprintf(nbLignesChar, "%d", dimLigne);
char nbColonnesChar[15];
sprintf(nbColonnesChar, "%d", dimColonne);
strcat(tabGrille, nbLignesChar);
strcat(tabGrille, " ");
strcat(tabGrille, nbColonnesChar);
strcat(tabGrille, " ");
while ((read = getline(&line, &len, grilleFinie)) != -1) {
strcat(tabGrille, line);
p[strlen(p)-1] = '\0' ;
}
}
printf("\n----------------- ENVOI DE LA GRILLE ------------------\n\n");
printf(tabGrille);
fclose(grilleFinie);
zmq_send (responder, tabGrille, 60, 0); /*Envoi du message de confirmation*/
printf("\n\n--------------------\n\n");
return 1;
}
<file_sep>/SOURCES/FONCTIONS_C/fonctions.h
#ifndef H_FONCTIONS
#define H_FONCTIONS
int JOIN(void *requester, char choix[]);
int GRID(void *requester);
int WORDS(void *requester);
int FOUND(void *requester, char choix[]);
int LEAVE(void *requester, char choix[]);
#endif
<file_sep>/ALGORITHME/WORDS.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
int main(int argc, char *argv[])
{
/* Ouverture du fichier GRID.txt
// Chemin : ../RESSOURCES/GRID.txt
// Stockage de tous les mots dans une seule variable
// Un seul String contenant tous les mots bout à bout*/
char const* const fileName = "RESSOURCES/GRID.txt"; /* should check that argc > 1 */
FILE* file = fopen(fileName, "r"); /* should check the result */
char line[256];
int idx1, idx2=0;
char grilleIntermediaire[5][6];
int nbColonnes, nbCaracteres = 0;
while (fgets(line, sizeof(line), file)) {
/* note that fgets don't strip the terminating \n, checking its
presence would allow to handle lines longer that sizeof(line) */
nbColonnes = strlen(line);
line[nbColonnes]='\0';
nbColonnes = nbColonnes-2;
nbCaracteres = nbCaracteres+nbColonnes+1;
/*printf("%s", line); */
strcpy(grilleIntermediaire[idx1], line);
idx1++;
}
/* may check feof here to make a difference between eof and io failure -- network
timeout for instance */
fclose(file);
int nbLignes = nbCaracteres/(nbColonnes+1);
char *grilleEnLigne = grilleIntermediaire[0];
char subbuff[25]; /* Contiendra la variable lue, puis le mot en entier */
char subbuffbis[25]=""; /* Contiendra la lettre+1 du mot */
int additionColonnes; /* Valeur servant dans les while. Il prendra la valeur de nbColonnes*1, puis nbColonnes*2, etc */
int valeurIncrementee; /* Valeur servant dans les while. Il prendra la valeur de 1, puis 2, etc */
int longueurMotActuel;
char const* const cheminDico = "RESSOURCES/dicos/dico";
char nomDico[60]="RESSOURCES/dicos/dico"; // Variable qui contiendra le nom du dictionnaire à lire
char numDico[5]="";
char tableauMotsTrouves[100][nbColonnes+1];
char tableauCoordsTrouvees[100][nbColonnes+1];
int posx_origine, posy_origine, posx_dest, posy_dest;
char c_posx_origine[5], c_posy_origine[5], c_posx_dest[5], c_posy_dest[5], c_coords[22];
FILE* fichierDico = NULL;
printf("Mots trouves + leurs coord :\n\n");
for (int posLettreLue = 0; posLettreLue<nbCaracteres; posLettreLue++)
{
if(posLettreLue-(nbColonnes+1)>=0) /* Test vertical supérieure possible */
{
longueurMotActuel=2;
memcpy(subbuff, &grilleEnLigne[posLettreLue], 1); /* Récupération de la lettre lue */
subbuff[1] = '\0';
additionColonnes = nbColonnes+1; /* Initialisation de la variable additionColonnes*/
while(posLettreLue-additionColonnes>=0)
{
memcpy(subbuffbis, &grilleEnLigne[posLettreLue-additionColonnes], 1);
subbuffbis[1] = '\0';
strcat(subbuff, subbuffbis);
memset(subbuffbis, 0, 25);
/* --- VERIFICATION DANS LE DICO --- */
/*longueurMotActuel = strlen(subbuff);*/
if(longueurMotActuel >=3)
{
sprintf(numDico, "%d", longueurMotActuel);
strcat(nomDico,numDico);
strcat(nomDico,".txt");
int motTrouve = 0;
fichierDico = fopen(nomDico, "r");
if(fichierDico==NULL)
{
printf("Impossible de charger le dictionnaire suivant : ");
printf(nomDico);
}
else
{
while (fgets(line, sizeof(line), fichierDico))
{
if(line!=NULL && motTrouve == 0)
{
line[longueurMotActuel]='\0';
if(strcmp(line,subbuff)==0)
{
strcpy(tableauMotsTrouves[idx2], line);
printf(tableauMotsTrouves[idx2]);
printf("\n");
posx_origine = (posLettreLue/(nbColonnes+1))+1;
posy_origine = (posLettreLue%(nbColonnes+1))+1;
posx_dest = ((posLettreLue-additionColonnes)%(nbColonnes+1))+1;
posy_dest = posy_origine;
sprintf(c_posx_origine, "%d", posx_origine);
sprintf(c_posy_origine, "%d", posy_origine);
sprintf(c_posx_dest, "%d", posx_dest);
sprintf(c_posy_dest, "%d", posy_dest);
strcpy(c_coords, c_posx_origine);
strcat(c_coords, c_posy_origine);
strcat(c_coords, " ");
strcat(c_coords, c_posx_dest);
strcat(c_coords, c_posy_dest);
strcpy(tableauCoordsTrouvees[idx2], c_coords);
printf(tableauCoordsTrouvees[idx2]);
printf("\n");
motTrouve=1;
idx2++;
}
}
}
}
fclose(fichierDico);
}
/* --- FIN --- */
additionColonnes = additionColonnes+nbColonnes+1;
longueurMotActuel++;
strcpy(nomDico, cheminDico);
}
memset(subbuff, 0, 25);
}
if((posLettreLue-nbColonnes>=0) && ((posLettreLue-nbColonnes)%(nbColonnes+1)!=0)) /* Test diagonale supérieure droite possible. Le deuxième test vérifie qu'il s'agit bien d'une diagonale, et non d'un retour à la ligne (cas où le caractère sélectionné est tout à droite). */
{
longueurMotActuel = 2;
memcpy(subbuff, &grilleEnLigne[posLettreLue], 1); /* Récupération de la lettre lue */
subbuff[1] = '\0';
additionColonnes = nbColonnes+1; /* Initialisation de la variable additionColonnes*/
while((posLettreLue-additionColonnes>=0) && ((posLettreLue-additionColonnes)%(nbColonnes+1)!=0))
{
memcpy(subbuffbis, &grilleEnLigne[posLettreLue-additionColonnes], 1);
subbuffbis[1] = '\0';
strcat(subbuff, subbuffbis);
memset(subbuffbis, 0, 25);
/* --- VERIFICATION DANS LE DICO --- */
/*longueurMotActuel = strlen(subbuff);*/
if(longueurMotActuel >=3)
{
sprintf(numDico, "%d", longueurMotActuel);
strcat(nomDico,numDico);
strcat(nomDico,".txt");
int motTrouve=0;
fichierDico = fopen(nomDico, "r");
if(fichierDico==NULL)
{
printf("Impossible de charger le dictionnaire suivant : ");
printf(nomDico);
}
else
{
while (fgets(line, sizeof(line), fichierDico))
{
if(line!=NULL && motTrouve == 0)
{
line[longueurMotActuel]='\0';
if(strcmp(line,subbuff)==0)
{
strcpy(tableauMotsTrouves[idx2], line);
printf(tableauMotsTrouves[idx2]);
printf("\n");
posx_origine = (posLettreLue/(nbColonnes+1))+1;
posy_origine = (posLettreLue%(nbColonnes+1))+1;
posx_dest = ((posLettreLue-additionColonnes)/(nbColonnes+1))+1;
posy_dest = ((posLettreLue-additionColonnes)%(nbColonnes+1))+1;
sprintf(c_posx_origine, "%d", posx_origine);
sprintf(c_posy_origine, "%d", posy_origine);
sprintf(c_posx_dest, "%d", posx_dest);
sprintf(c_posy_dest, "%d", posy_dest);
strcpy(c_coords, c_posx_origine);
strcat(c_coords, c_posy_origine);
strcat(c_coords, " ");
strcat(c_coords, c_posx_dest);
strcat(c_coords, c_posy_dest);
strcpy(tableauCoordsTrouvees[idx2], c_coords);
printf(tableauCoordsTrouvees[idx2]);
printf("\n");
motTrouve=1;
idx2++;
}
}
}
}
fclose(fichierDico);
}
/* --- FIN --- */
additionColonnes = additionColonnes+nbColonnes;
longueurMotActuel++;
strcpy(nomDico, cheminDico);
}
memset(subbuff, 0, 25);
}
if((posLettreLue+1<nbCaracteres) && ((posLettreLue+1)%(nbColonnes+1)!=0)) /* Test horizontal droit possible. On vérifie que le prochain caractère n'est pas sur la ligne du dessous. */
{
longueurMotActuel=2;
memcpy(subbuff, &grilleEnLigne[posLettreLue], 1); /* Récupération de la lettre lue */
subbuff[1] = '\0';
valeurIncrementee = 1; /* Initialisation de la variable valeurIncrementee*/
while((posLettreLue+valeurIncrementee<nbCaracteres) && ((posLettreLue+valeurIncrementee)%(nbColonnes+1)!=0))
{
memcpy(subbuffbis, &grilleEnLigne[posLettreLue+valeurIncrementee], 1);
subbuffbis[1] = '\0';
strcat(subbuff, subbuffbis);
/*printf(subbuff);
printf(" ");*/
memset(subbuffbis, 0, 25);
/* --- VERIFICATION DANS LE DICO --- */
/*longueurMotActuel = strlen(subbuff);*/
if(longueurMotActuel >=3)
{
sprintf(numDico, "%d", longueurMotActuel);
strcat(nomDico,numDico);
strcat(nomDico,".txt");
int motTrouve=0;
fichierDico = fopen(nomDico, "r");
if(fichierDico==NULL)
{
printf("Impossible de charger le dictionnaire suivant : ");
printf(nomDico);
}
else
{
/*printf(nomDico);*/
while (fgets(line, sizeof(line), fichierDico))
{
if(line!=NULL && motTrouve==0)
{
line[longueurMotActuel]='\0';
if(strcmp(line,subbuff)==0)
{
strcpy(tableauMotsTrouves[idx2], line);
printf(tableauMotsTrouves[idx2]);
posx_origine = (posLettreLue/(nbColonnes+1))+1;
posy_origine = (posLettreLue%(nbColonnes+1))+1;
posx_dest = posx_origine;
posy_dest = ((posLettreLue+valeurIncrementee)%(nbColonnes+1))+1;
sprintf(c_posx_origine, "%d", posx_origine);
sprintf(c_posy_origine, "%d", posy_origine);
sprintf(c_posx_dest, "%d", posx_dest);
sprintf(c_posy_dest, "%d", posy_dest);
strcpy(c_coords, c_posx_origine);
strcat(c_coords, c_posy_origine);
strcat(c_coords, " ");
strcat(c_coords, c_posx_dest);
strcat(c_coords, c_posy_dest);
strcpy(tableauCoordsTrouvees[idx2], c_coords);
printf(tableauCoordsTrouvees[idx2]);
printf("\n");
motTrouve=1;
idx2++;
}
}
}
}
fclose(fichierDico);
}
/* --- FIN --- */
valeurIncrementee++;
longueurMotActuel++;
strcpy(nomDico, cheminDico);
}
memset(subbuff, 0, 25);
}
if((posLettreLue+nbColonnes+2<nbCaracteres) && ((posLettreLue+nbColonnes+2)%(nbColonnes+1)!=0)) /* Test diagonale inférieure droite possible. Le deuxième test vérifie qu'il s'agit bien d'une diagonale, et non d'un retour à la ligne (cas où le caractère sélectionné est tout à droite). */
{
longueurMotActuel=2;
memcpy(subbuff, &grilleEnLigne[posLettreLue], 1); /* Récupération de la lettre lue */
subbuff[1] = '\0';
additionColonnes = nbColonnes+2; /* Initialisation de la variable additionColonnes*/
while((posLettreLue+additionColonnes<nbCaracteres) && ((posLettreLue+additionColonnes)%(nbColonnes+1)!=0))
{
memcpy(subbuffbis, &grilleEnLigne[posLettreLue+additionColonnes], 1);
subbuffbis[1] = '\0';
strcat(subbuff, subbuffbis);
memset(subbuffbis, 0, 25);
/* --- VERIFICATION DANS LE DICO --- */
/*longueurMotActuel = strlen(subbuff);*/
if(longueurMotActuel >=3)
{
sprintf(numDico, "%d", longueurMotActuel);
strcat(nomDico,numDico);
strcat(nomDico,".txt");
int motTrouve=0;
fichierDico = fopen(nomDico, "r");
if(fichierDico==NULL)
{
printf("Impossible de charger le dictionnaire suivant : ");
printf(nomDico);
}
else
{
while (fgets(line, sizeof(line), fichierDico))
{
if(line!=NULL && motTrouve==0)
{
line[longueurMotActuel]='\0';
if(strcmp(line,subbuff)==0)
{
strcpy(tableauMotsTrouves[idx2], line);
printf(tableauMotsTrouves[idx2]);
printf("\n");
posx_origine = (posLettreLue/(nbColonnes+1))+1;
posy_origine = (posLettreLue%(nbColonnes+1))+1;
posx_dest = ((posLettreLue+additionColonnes)/(nbColonnes+1))+1;
posy_dest = ((posLettreLue+additionColonnes)%(nbColonnes+1))+1;
sprintf(c_posx_origine, "%d", posx_origine);
sprintf(c_posy_origine, "%d", posy_origine);
sprintf(c_posx_dest, "%d", posx_dest);
sprintf(c_posy_dest, "%d", posy_dest);
strcpy(c_coords, c_posx_origine);
strcat(c_coords, c_posy_origine);
strcat(c_coords, " ");
strcat(c_coords, c_posx_dest);
strcat(c_coords, c_posy_dest);
strcpy(tableauCoordsTrouvees[idx2], c_coords);
printf(tableauCoordsTrouvees[idx2]);
printf("\n");
motTrouve=1;
idx2++;
}
}
}
}
fclose(fichierDico);
}
/* --- FIN --- */
longueurMotActuel++;
additionColonnes = additionColonnes+nbColonnes+2;
strcpy(nomDico, cheminDico);
}
memset(subbuff, 0, 25);
}
if(posLettreLue+nbColonnes+1<nbCaracteres) /* Test vertical inférieur possible */
{
longueurMotActuel=2;
memcpy(subbuff, &grilleEnLigne[posLettreLue], 1); /* Récupération de la lettre lue */
subbuff[1] = '\0';
additionColonnes = nbColonnes+1; /* Initialisation de la variable additionColonnes*/
while(posLettreLue+additionColonnes<nbCaracteres)
{
memcpy(subbuffbis, &grilleEnLigne[posLettreLue+additionColonnes], 1);
subbuffbis[1] = '\0';
strcat(subbuff, subbuffbis);
memset(subbuffbis, 0, 25);
/* --- VERIFICATION DANS LE DICO --- */
/*longueurMotActuel = strlen(subbuff);*/
if(longueurMotActuel >=3)
{
sprintf(numDico, "%d", longueurMotActuel);
strcat(nomDico,numDico);
strcat(nomDico,".txt");
int motTrouve = 0;
fichierDico = fopen(nomDico, "r");
if(fichierDico==NULL)
{
printf("Impossible de charger le dictionnaire suivant : ");
printf(nomDico);
}
else
{
while (fgets(line, sizeof(line), fichierDico))
{
if(line!=NULL && motTrouve == 0)
{
line[longueurMotActuel]='\0';
if(strcmp(line,subbuff)==0)
{
strcpy(tableauMotsTrouves[idx2], line);
printf(tableauMotsTrouves[idx2]);
printf("\n");
posx_origine = (posLettreLue/(nbColonnes+1))+1;
posy_origine = (posLettreLue%(nbColonnes+1))+1;
posx_dest = ((posLettreLue+additionColonnes)/(nbColonnes+1))+1;
posy_dest = posy_origine;
sprintf(c_posx_origine, "%d", posx_origine);
sprintf(c_posy_origine, "%d", posy_origine);
sprintf(c_posx_dest, "%d", posx_dest);
sprintf(c_posy_dest, "%d", posy_dest);
strcpy(c_coords, c_posx_origine);
strcat(c_coords, c_posy_origine);
strcat(c_coords, " ");
strcat(c_coords, c_posx_dest);
strcat(c_coords, c_posy_dest);
strcpy(tableauCoordsTrouvees[idx2], c_coords);
printf(tableauCoordsTrouvees[idx2]);
printf("\n");
motTrouve=1;
idx2++;
}
}
}
}
fclose(fichierDico);
}
/* --- FIN --- */
longueurMotActuel++;
additionColonnes = additionColonnes+nbColonnes+1;
strcpy(nomDico, cheminDico);
}
memset(subbuff, 0, 25);
}
if((posLettreLue+nbColonnes<nbCaracteres) && ((posLettreLue+nbColonnes)%(nbColonnes+1)!=5)) /* Test diagonale inférieure gauche possible. Le deuxième test vérifie qu'il s'agit bien d'une diagonale, et non d'un retour à la ligne (cas où le caractère sélectionné est tout à gauche). */
{
longueurMotActuel=2;
memcpy(subbuff, &grilleEnLigne[posLettreLue], 1); /* Récupération de la lettre lue */
additionColonnes = nbColonnes; /* Initialisation de la variable additionColonnes*/
while((posLettreLue+additionColonnes<nbCaracteres) && ((posLettreLue+additionColonnes)%(nbColonnes+1)!=5))
{
memcpy(subbuffbis, &grilleEnLigne[posLettreLue+additionColonnes], 1);
subbuffbis[1] = '\0';
strcat(subbuff, subbuffbis);
memset(subbuffbis, 0, 25);
/* --- VERIFICATION DANS LE DICO --- */
/*longueurMotActuel = strlen(subbuff);*/
if(longueurMotActuel >=3)
{
sprintf(numDico, "%d", longueurMotActuel);
strcat(nomDico,numDico);
strcat(nomDico,".txt");
int motTrouve=0;
fichierDico = fopen(nomDico, "r");
if(fichierDico==NULL)
{
printf("Impossible de charger le dictionnaire suivant : ");
printf(nomDico);
}
else
{
while (fgets(line, sizeof(line), fichierDico))
{
if(line!=NULL && motTrouve ==0 )
{
line[longueurMotActuel]='\0';
if(strcmp(line,subbuff)==0)
{
strcpy(tableauMotsTrouves[idx2], line);
printf(tableauMotsTrouves[idx2]);
printf("\n");
posx_origine = (posLettreLue/(nbColonnes+1))+1;
posy_origine = (posLettreLue%(nbColonnes+1))+1;
posx_dest = ((posLettreLue+additionColonnes)/(nbColonnes+1))+1;
posy_dest = ((posLettreLue+additionColonnes)%(nbColonnes+1))+1;
sprintf(c_posx_origine, "%d", posx_origine);
sprintf(c_posy_origine, "%d", posy_origine);
sprintf(c_posx_dest, "%d", posx_dest);
sprintf(c_posy_dest, "%d", posy_dest);
strcpy(c_coords, c_posx_origine);
strcat(c_coords, c_posy_origine);
strcat(c_coords, " ");
strcat(c_coords, c_posx_dest);
strcat(c_coords, c_posy_dest);
strcpy(tableauCoordsTrouvees[idx2], c_coords);
printf(tableauCoordsTrouvees[idx2]);
printf("\n");
motTrouve=1;
idx2++;
}
}
}
}
fclose(fichierDico);
}
/* --- FIN --- */
longueurMotActuel++;
additionColonnes = additionColonnes+nbColonnes;
strcpy(nomDico, cheminDico);
}
memset(subbuff, 0, 25);
}
if((posLettreLue-1>=0) && ((posLettreLue-1)%nbColonnes!=5)) /* Test horizontal gauche possible. */
{
longueurMotActuel=2;
memcpy(subbuff, &grilleEnLigne[posLettreLue], 1); /* Récupération de la lettre lue */
subbuff[1] = '\0';
valeurIncrementee = 1; /* Initialisation de la variable valeurIncrementee*/
while((posLettreLue-valeurIncrementee>=0) && ((posLettreLue-valeurIncrementee)%(nbColonnes+1)!=5))
{
memcpy(subbuffbis, &grilleEnLigne[posLettreLue-valeurIncrementee], 1);
subbuffbis[1] = '\0';
strcat(subbuff, subbuffbis);
memset(subbuffbis, 0, 25);
/* --- VERIFICATION DANS LE DICO --- */
/*longueurMotActuel = strlen(subbuff);*/
if(longueurMotActuel >=3)
{
sprintf(numDico, "%d", longueurMotActuel);
strcat(nomDico,numDico);
strcat(nomDico,".txt");
int motTrouve=0;
fichierDico = fopen(nomDico, "r");
if(fichierDico==NULL)
{
printf("Impossible de charger le dictionnaire suivant : ");
printf(nomDico);
}
else
{
while (fgets(line, sizeof(line), fichierDico))
{
if(line!=NULL && motTrouve==0)
{
line[longueurMotActuel]='\0';
if(strcmp(line,subbuff)==0)
{
strcpy(tableauMotsTrouves[idx2], line);
printf(tableauMotsTrouves[idx2]);
posx_origine = (posLettreLue/(nbColonnes+1))+1;
posy_origine = (posLettreLue%(nbColonnes+1))+1;
posx_dest = posx_origine;
posy_dest = (posLettreLue-valeurIncrementee)%(nbColonnes+1)+1;
sprintf(c_posx_origine, "%d", posx_origine);
sprintf(c_posy_origine, "%d", posy_origine);
sprintf(c_posx_dest, "%d", posx_dest);
sprintf(c_posy_dest, "%d", posy_dest);
strcpy(c_coords, c_posx_origine);
strcat(c_coords, c_posy_origine);
strcat(c_coords, " ");
strcat(c_coords, c_posx_dest);
strcat(c_coords, c_posy_dest);
strcpy(tableauCoordsTrouvees[idx2], c_coords);
printf(tableauCoordsTrouvees[idx2]);
printf("\n");
motTrouve = 1;
idx2++;
}
}
}
}
fclose(fichierDico);
}
/* --- FIN --- */
longueurMotActuel++;
valeurIncrementee++;
strcpy(nomDico, cheminDico);
}
memset(subbuff, 0, 25);
}
if((posLettreLue-nbColonnes-2>=0) && ((posLettreLue-nbColonnes-2)%nbColonnes!=5)) /* Test diagonale supérieure gauche possible. Le deuxième test vérifie qu'il s'agit bien d'une diagonale, et non d'un retour à la ligne (cas où le caractère sélectionné est tout à gauche). */
{
longueurMotActuel=2;
memcpy(subbuff, &grilleEnLigne[posLettreLue], 1); /* Récupération de la lettre lue */
subbuff[1] = '\0';
additionColonnes = nbColonnes+2; /* Initialisation de la variable additionColonnes*/
while((posLettreLue-additionColonnes>=0) && ((posLettreLue-additionColonnes)%nbColonnes!=5))
{
memcpy(subbuffbis, &grilleEnLigne[posLettreLue-additionColonnes], 1);
subbuffbis[1] = '\0';
strcat(subbuff, subbuffbis);
memset(subbuffbis, 0, 25);
/* --- VERIFICATION DANS LE DICO --- */
/*longueurMotActuel = strlen(subbuff);*/
if(longueurMotActuel >=3)
{
sprintf(numDico, "%d", longueurMotActuel);
strcat(nomDico,numDico);
strcat(nomDico,".txt");
int motTrouve = 0;
fichierDico = fopen(nomDico, "r");
if(fichierDico==NULL)
{
printf("Impossible de charger le dictionnaire suivant : ");
printf(nomDico);
}
else
{
while (fgets(line, sizeof(line), fichierDico))
{
if(line!=NULL && motTrouve == 0)
{
line[longueurMotActuel]='\0';
if(strcmp(line,subbuff)==0)
{
strcpy(tableauMotsTrouves[idx2], line);
printf(tableauMotsTrouves[idx2]);
printf("\n");
posx_origine = (posLettreLue/(nbColonnes+1))+1;
posy_origine = (posLettreLue%(nbColonnes+1))+1;
posx_dest = ((posLettreLue-additionColonnes)/(nbColonnes+1))+1;
posy_dest = ((posLettreLue-additionColonnes)%(nbColonnes+1))+1;
sprintf(c_posx_origine, "%d", posx_origine);
sprintf(c_posy_origine, "%d", posy_origine);
sprintf(c_posx_dest, "%d", posx_dest);
sprintf(c_posy_dest, "%d", posy_dest);
strcpy(c_coords, c_posx_origine);
strcat(c_coords, c_posy_origine);
strcat(c_coords, " ");
strcat(c_coords, c_posx_dest);
strcat(c_coords, c_posy_dest);
strcpy(tableauCoordsTrouvees[idx2], c_coords);
printf(tableauCoordsTrouvees[idx2]);
printf("\n");
motTrouve = 1;
idx2++;
}
}
}
}
fclose(fichierDico);
}
/* --- FIN --- */
longueurMotActuel++;
additionColonnes = additionColonnes+nbColonnes+2;
strcpy(nomDico, cheminDico);
}
memset(subbuff, 0, 25);
}
}
printf("\n\nSélection de x mots parmi tous les mots trouvés : \n");
FILE* fichierWords = NULL;
fichierWords = fopen("RESSOURCES/WORDS.txt", "a");
char ensembleMotsTrouves[255]="";
if(fichierWords!=NULL)
{
char tableauMotsFinaux[100][nbColonnes+nbLignes+1];
int idx3 = 0;
int r;
srand(time(NULL));
int str_len;
while(idx3<=(nbLignes+nbColonnes))
{
r = rand()%(idx2+1);
if(
(strcmp(tableauMotsTrouves[r], "")!=0)
&&
strlen(tableauMotsTrouves[r])<nbColonnes+1
)
{
printf("random: %d ", r);
char str1[25];
strcpy(str1, tableauMotsTrouves[r]);
char str2[25];
strcpy(str2, tableauCoordsTrouvees[r]);
strcat(str1, " ");
strcat(ensembleMotsTrouves, str1);
strcat(str1, str2);
strcpy(tableauMotsFinaux[idx3], str1);
strcpy(tableauMotsTrouves[r], "");
fprintf(fichierWords, "%s\n", tableauMotsFinaux[idx3]);
printf(tableauMotsFinaux[idx3]);
printf("\n");
idx3++;
}
}
}
else
printf("Le fichier ne s'ouvre pas.");
printf("\nListe des mots qui seront envoyés au client :\n");
printf(ensembleMotsTrouves);
}
<file_sep>/SOURCES/FONCTIONS_C/GRID.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zmq.h>
#include <unistd.h>
#include <string.h>
#include "fonctions.h"
int GRID(void *requester){
char buffer[0];
char buffer12[60]; /* Création de la variable buffer, qui contiendra le message de confirmation */
/* ENVOYER DU RIEN */
zmq_send(requester, buffer, 0, 0);
/* RECEPTION DE LA GRILLE */
printf("\n\n----------------- RECEPTION DE LA GRILLE ------------------\n\n\n\n");
zmq_recv(requester, buffer12, 60, 0);
char *parametres[100];
int i=0;
parametres[i] = strtok(buffer12," ");
while(parametres[i]!=NULL)
{
parametres[++i] = strtok(NULL," ");
}
/* Division des mots en fonction du nombre de lettre par mots */
const char *str = parametres[3];
int lig = atoi(parametres[1]);
int col = atoi(parametres[2]);
char *str1;
char str2[25];
char subbuff[10][100];
int nb=0;
for (i=1; i<=lig; i++)
{
memcpy(subbuff[i], &str[nb], col );
subbuff[i][col] = '\0';
nb=nb+col;
char* str1 = subbuff[i];
int j, cpt;
cpt=0;
/*printf(" | "); printf(subbuff[i]); printf(" | \n");*/
printf(" | ");
for(j=0; j<=lig; j++, cpt++)
{
memcpy(str2, &str1[j], 1);
printf(str2);
printf(" ");
}
printf(" | \n");
printf(" | ");
int k;
for(k=1; k<col; k++)
{
printf(" ");
}
printf(" ");
/*int l;
for(l=0; l<cpt; l++)
{
printf(" ");
}*/
printf(" | \n");
}
printf("\n\n--------------------\n\n");
}
<file_sep>/SOURCES/client.c
/*
* client.c
*
* Created on: 24 oct. 2016
* Author: tc
*/
#include <string.h>
#include <zmq.h>
#include <stdio.h>
#include <unistd.h>
#include "FONCTIONS_C/fonctions.h"
#define PORT1 8000;
#define PORT2 8001;
int main (void)
{
/* CREATION DES FLUX DE COMMUNICATION AVEC PORTS 1 & 2 */
void *context = zmq_ctx_new ();
void *requester = zmq_socket (context, ZMQ_REQ);
zmq_connect (requester, "tcp://localhost:1111");
void *context2 = zmq_ctx_new ();
void *requester2 = zmq_socket (context2, ZMQ_REQ);
zmq_connect (requester2, "tcp://localhost:2222");
/* Variables de validation d'etats */
int connexion = 0;
int grille = 0;
int mots = 0;
int valide = 0;
int quitte = 0;
int score = 0;
/* ---------------------- BOUCLE DE CHOIX DU CLIENT ------------------------- */
while(1){
printf ("\nVeuillez choisir la fonction à executer : JOIN, FOUND ou LEAVE \n");
char choix[100];
fgets(choix, sizeof choix, stdin); /* Entrée du nom du joueur */
char *pointeur;
char *separateur = { " " }; /* Le séparateur*/
char *buffer;
char *Chaine_Entrante = choix;
buffer = strdup (Chaine_Entrante);
/* DETERMINATON DE LA FONCTION EXECUTEE */
if(strchr(buffer, ' ')!=NULL ){
pointeur = strtok( buffer, separateur );
}
else {
pointeur = buffer;
}
/* ----------- APPELS DES FONCTIONS A AJOUTER DANS L'ORDRE ! ------------ */
/* FONCTIONS DE JOIN (YOUSSEF) */
if(!strcmp(pointeur,"JOIN")){
connexion = JOIN(requester, choix);
}
/*FONCTIONS DE GRID (LEO - ALAN) */
if(connexion){
grille = GRID(requester2); /*Changement de port avec le serveur */
}
/*FONCTIONS DE WORDS (LEO)*/
if(grille){
mots = WORDS(requester2);
}
/*FONCTIONS DE FOUND (LEO)*/
else if(!strcmp(pointeur,"FOUND")){
/*Changement de port avec le serveur */
valide = FOUND(requester, choix);
if(valide){
score = score +2;
}}
/*FONCTIONS DE ATTRIBUTION DE SCORE (YOUSSEF) */
else if(!strcmp(pointeur,"LEAVE")){
quitte = LEAVE(requester, choix);
printf("VOTRE SCORE EST : %i , A BIENTOT !",score);
}
else {
printf(pointeur);
printf("\nLa fonction entrée n'existe pas\n\n");
}
}
zmq_close (requester);
zmq_ctx_destroy (context);
return 0;
}
<file_sep>/SOURCES/FONCTIONS_S/fonctions.h
#ifndef H_FONCTIONS
#define H_FONCTIONS
int JOIN(void *responder,char choix[]);
int GRID(void *responder);
int WORDS(void *responder);
int FOUND(void *responder,char choix[]);
int LEAVE(void *responder,char choix[]);
#endif
| 282a2008123150367167b8b24f12dda6d6ae7861 | [
"Markdown",
"C",
"Makefile"
] | 15 | C | AlanBrisset/L3MotsCroises | 50b48392b7cd8133ea1b1c6e8c71fbc72660cd31 | 97ceaeec8ae2101658ddc2dc9dcd7bc31c791eec |
refs/heads/master | <repo_name>hmaurer/js-lab<file_sep>/undefined.js
(function (undefined) {
var answer
console.log(undefined)
console.log(answer == undefined)
})(42)
<file_sep>/true_eq_false.js
var a = ''
var b = '0'
var x = (a == false)
var y = (b == false)
var z = (a == b)
console.log(x, y, z)
<file_sep>/prototypes.js
function God() {
}
God.prototype = {
answer: 42
}
function Cat() {
}
Cat.prototype = {
__proto__: God.prototype,
meouw: function () {
return "meouw!"
}
}
var c = new Cat()
console.log(c.answer, c.meouw())
<file_sep>/selectionsort.js
function swap(xs, i, j) {
var t = xs[i]
xs[i] = xs[j]
xs[j] = t
}
function selectionsort(xs) {
for (var i = 0, l = xs.length; i < l; i++) {
var k = i
for (var j = i + 1; j < l; j++) {
if (xs[j] < xs[k]) {
k = j;
}
}
swap(xs, i, k)
}
return xs
}
module.exports = selectionsort
| 6ddd40f461ea18026167d3dd3b5308956618edcf | [
"JavaScript"
] | 4 | JavaScript | hmaurer/js-lab | f80010b5247bf0ed1aa4d9f7785943abf6cdccfd | 7341be650b26f4ec983d678b899c3b702ce5766c |
refs/heads/main | <file_sep>#Variables
#Data Types
#Keywords
#All Seven Types of Operators
#Binary Digits
<file_sep>print("hi this is chaitra")
| b326cb721ad2ecedace6459e7c36436867422e46 | [
"Python"
] | 2 | Python | KaviyaPeriyasamy/Python-Task | 9de3ab74642a20cdc66256feea7b6788ada212b5 | f6bcbba0b20a900ecdd51597e7ecde855b6abf8d |
refs/heads/master | <repo_name>pelluch/abs<file_sep>/aur/android-google-apis-10/PKGBUILD
# Maintainer: <NAME> <sjakub-at-gmail-dot-com>
pkgname=android-google-apis-10
pkgver=2.3.3_r02
pkgrel=1
pkgdesc='Android Google APIs, API-10'
arch=('any')
url="http://code.google.com/android/add-ons/google-apis"
license=('custom')
depends=('android-platform-10')
options=('!strip')
source=("http://dl-ssl.google.com/android/repository/google_apis-10_r02.zip"
"source.properties")
sha1sums=('cc0711857c881fa7534f90cf8cc09b8fe985484d'
'f47c47077aaeaa362e5dff91d7d416abde7e23ad')
package() {
mkdir -p "${pkgdir}/opt/android-sdk/add-ons/"
mv "${srcdir}/google_apis-10_r02" "${pkgdir}/opt/android-sdk/add-ons/addon-google_apis-google-10"
cp "${srcdir}/source.properties" "${pkgdir}/opt/android-sdk/add-ons/addon-google_apis-google-10"
chmod -R ugo+rX "${pkgdir}/opt"
}
<file_sep>/aur/android-google-apis-8/PKGBUILD
# Maintainer: <NAME> <sjakub-at-gmail-dot-com>
pkgname=android-google-apis-8
pkgver=2.2_r02
pkgrel=1
pkgdesc='Android Google APIs, API-8'
arch=('any')
url="http://code.google.com/android/add-ons/google-apis"
license=('custom')
depends=('android-platform-8')
options=('!strip')
source=("http://dl-ssl.google.com/android/repository/google_apis-8_r02.zip"
"source.properties")
sha1sums=('3079958e7ec87222cac1e6b27bc471b27bf2c352'
'd2fb8da197df317d749cf7c9562edbe734ab508e')
package() {
mkdir -p "${pkgdir}/opt/android-sdk/add-ons/"
mv "${srcdir}/google_apis-8_r02" "${pkgdir}/opt/android-sdk/add-ons/addon-google_apis-google-8"
cp "${srcdir}/source.properties" "${pkgdir}/opt/android-sdk/add-ons/addon-google_apis-google-8"
chmod -R ugo+rX "${pkgdir}/opt"
}
<file_sep>/aur/android-google-apis/PKGBUILD
# Maintainer: lestb <b.lester011+arch at gmail dot com>
# Contributor: <NAME> <<EMAIL>>
# Contributor: <NAME> <<EMAIL>>
# Contributor: <NAME> <sjakub-at-gmail-dot-com>
_rev=r05
_apilevel=19
pkgname=android-google-apis
pkgver=${_apilevel}_${_rev}
pkgrel=1
pkgdesc="Android Google APIs, latest API"
arch=('any')
url="http://code.google.com/android/add-ons/google-apis"
license=('custom')
depends=("android-platform")
provides=("${pkgname}-${_apilevel}")
conflicts=("${pkgname}-${_apilevel}")
options=('!strip')
source=("http://dl.google.com/android/repository/google_apis-${_apilevel}_${_rev}.zip"
"source.properties")
sha1sums=('5609457b52a2afdbf9aa830c8c30c2ef70e90b74'
'30841f6d08080ade762bc6b585e8776c945fa4ac')
package() {
mkdir -p "${pkgdir}/opt/android-sdk/add-ons/"
mv "${srcdir}"/google_apis-[0-9]*-mac-x86 "${pkgdir}/opt/android-sdk/add-ons/addon-google_apis-google-${_apilevel}"
cp "${srcdir}/source.properties" "${pkgdir}/opt/android-sdk/add-ons/addon-google_apis-google-${_apilevel}"
chmod -R ugo+rX "${pkgdir}/opt"
}
<file_sep>/README.md
abs
===
Custom builds for packages using the arch build system.
<file_sep>/official/postgis/PKGBUILD
# $Id: PKGBUILD 111814 2014-05-25 09:10:19Z jlichtblau $
# Maintainer: <NAME> <<EMAIL>>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: <NAME> <<EMAIL>>
pkgname=postgis
pkgver=2.1.3
pkgrel=1
pkgdesc="Adds support for geographic objects to PostgreSQL"
arch=('i686' 'x86_64')
url="http://postgis.net/"
license=('GPL')
depends=('postgresql' 'gdal' 'json-c')
changelog=$pkgname.changelog
source=(http://download.osgeo.org/postgis/source/${pkgname}-${pkgver}.tar.gz
postgis-2.1.3-libjson-c.patch)
sha256sums=('c17812aa4bb86ed561dfc65cb42ab45176b94e0620de183a4bbd773d6d876ec1'
'68fd36730baf96341744c03582b0e8af309328ba79bb59fa981a515299cc1bda')
prepare() {
cd ${pkgname}-${pkgver}
patch -Np1 -i $srcdir/postgis-2.1.3-libjson-c.patch
}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}
# vim: ts=2 sw=2 et:
| 7c47372671dcdb988518390cd9adeac6114cf67a | [
"Markdown",
"Shell"
] | 5 | Shell | pelluch/abs | cabac2bec1513796871ef1bc8030467c6510ab93 | 90483f2a6a9fec253ff4c2bc7f7045e37118ee94 |
refs/heads/master | <file_sep>package com.acv.kotlin_fat_secret.domain.interactor
import com.acv.kotlin_fat_secret.domain.FoodSearch
import com.acv.kotlin_fat_secret.domain.interactor.base.Command
import com.acv.kotlin_fat_secret.domain.repository.FoodRepository
class GetFoodsSearchInteractor(val foodRepository: FoodRepository) : Command<List<FoodSearch>> {
var description: String? = null
override fun execute(): List<FoodSearch> {
val description = this.description ?: throw IllegalStateException("description can´t be null")
val foods = foodRepository.searchBy(description)
return foods
}
}<file_sep>package com.acv.kotlin_fat_secret.data.service.profile
import com.acv.kotlin_fat_secret.data.service.Service
import com.acv.kotlin_fat_secret.data.service.mapper.FoodMapper
import com.acv.kotlin_fat_secret.data.service.mapper.ProfileAuthMapper
import com.acv.kotlin_fat_secret.data.service.mapper.ProfileMapper
import com.acv.kotlin_fat_secret.data.unwrapCall
import com.acv.kotlin_fat_secret.domain.Authentication
import com.acv.kotlin_fat_secret.domain.FoodSearch
import com.acv.kotlin_fat_secret.domain.Profile
import com.acv.kotlin_fat_secret.infraestructure.repository.dataset.FoodDataSet
import com.acv.kotlin_fat_secret.infraestructure.repository.dataset.ProfileDataSet
class CloudProfileDataSet(val language: String, val service: Service) : ProfileDataSet {
override fun requestGet(): Profile {
service.requestProfileGet().unwrapCall {
return Profile()
}
}
override fun requestCreate(): Authentication {
service.requestProfileCreate().unwrapCall {
return ProfileAuthMapper().transform(profileAuth)
}
}
}<file_sep>package com.acv.kotlin_fat_secret.domain.repository
import com.acv.kotlin_fat_secret.domain.FoodEntry
import com.acv.kotlin_fat_secret.domain.FoodSearch
interface FoodRepository {
fun searchBy(description: String): List<FoodSearch>
fun entryBy(date: Int): List<FoodEntry>
}<file_sep>package com.acv.kotlin_fat_secret.domain.interactor.base
interface Event {
}<file_sep>package com.acv.kotlin_fat_secret.data.cache
import android.content.Context
import com.acv.kotlin_fat_secret.domain.Authentication
import com.acv.kotlin_fat_secret.infraestructure.ui.extension.DelegatesExt
class ProfileCacheImpl(val context: Context) : ProfileAuthCache {
companion object {
val TOKEN = "token"
val SECRET = "secret"
}
var token: String by DelegatesExt.preference(context, TOKEN, "")
var secret: String by DelegatesExt.preference(context, SECRET, "")
override fun put(authentication: Authentication) {
token = authentication.oauth_token
secret = authentication.auth_secret
}
override fun get(): Authentication = Authentication(token, secret)
}<file_sep>package com.acv.kotlin_fat_secret.domain.interactor
import com.acv.kotlin_fat_secret.domain.WeightMonth
import com.acv.kotlin_fat_secret.domain.interactor.base.Command
import com.acv.kotlin_fat_secret.domain.repository.WeightRepository
import java.util.*
class GetWeightMonthInteractor(val profileRepository: WeightRepository) : Command<List<WeightMonth>> {
var date: Int = (Calendar.getInstance().timeInMillis * 1000L).toInt()
override fun execute(): List<WeightMonth> = profileRepository.weightBy(date)
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.adapter
import android.support.v7.widget.RecyclerView
import android.view.View
import android.widget.TextView
import com.acv.kotlin_fat_secret.R
import com.acv.kotlin_fat_secret.domain.FoodSearch
import org.jetbrains.anko.find
class SearchFoodItemViewHolder(itemView: View, val itemClick: ((FoodSearch) -> Unit)?) : RecyclerView.ViewHolder(itemView) {
val name: TextView = itemView.find(R.id.tvName)
val description: TextView = itemView.find(R.id.tvDescription)
fun bind(food: FoodSearch) {
name.text = food.name
description.text = food.description
itemView.setOnClickListener { itemClick?.invoke(food) }
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search
import com.acv.kotlin_fat_secret.domain.FoodSearch
import com.acv.kotlin_fat_secret.infraestructure.ui.common.PresentationView
interface SearchFoodView : PresentationView {
fun showFoods(foods: List<FoodSearch>)
fun showLoading()
fun hideLoading()
}<file_sep>package com.acv.kotlin_fat_secret.domain.interactor
import com.acv.kotlin_fat_secret.data.cache.ProfileAuthCache
import com.acv.kotlin_fat_secret.domain.Authentication
import com.acv.kotlin_fat_secret.domain.interactor.base.Command
import com.acv.kotlin_fat_secret.domain.repository.ProfileRepository
class GetProfileAuthInteractor(val profileCache: ProfileAuthCache) : Command<Authentication> {
override fun execute(): Authentication = profileCache.get()
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.splash
import com.acv.kotlin_fat_secret.domain.interactor.GetProfileAuthInteractor
import com.acv.kotlin_fat_secret.infraestructure.ui.common.Presenter
import org.jetbrains.anko.doAsync
import org.jetbrains.anko.uiThread
open class SplashPresenter(override val view: SplashView,
val getProfileInteractor: GetProfileAuthInteractor) : Presenter<SplashView> {
open fun checkProfile() {
doAsync() {
val getProfileInteractor = getProfileInteractor
val authentication = getProfileInteractor.execute()
uiThread {
if (authentication.isValid())
view.goToMain()
else
view.goToLogin()
}
}
}
}<file_sep>package com.acv.kotlin_fat_secret.data.service.mapper
import com.acv.kotlin_fat_secret.data.service.weight.DayResponse
import com.acv.kotlin_fat_secret.domain.WeightMonth
class WeightMapper {
fun transform(entries: List<DayResponse>): List<WeightMonth> {
return entries.mapNotNull { transform(it) }
}
fun transform(day: DayResponse) = day.let {
WeightMonth(day.date, day.kg, day.comment)
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search
import com.acv.kotlin_fat_secret.domain.interactor.GetFoodsSearchInteractor
import com.acv.kotlin_fat_secret.infraestructure.ui.common.Presenter
import org.jetbrains.anko.doAsync
import org.jetbrains.anko.uiThread
open class SearchFoodPresenter(
override val view: SearchFoodView,
val getFoodsSearchInteractor: GetFoodsSearchInteractor
) : Presenter<SearchFoodView> {
open fun searchFood(description: String) {
doAsync() {
view.showLoading()
val getFoodsSearchInteractor = getFoodsSearchInteractor
getFoodsSearchInteractor.description = description
val foods = getFoodsSearchInteractor.execute()
uiThread {
view.showFoods(foods)
view.hideLoading()
}
}
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.module
import android.content.Context
import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Module
import dagger.Provides
@Module
abstract class FragmentModule(protected val fragment: Fragment) {
@Provides @ActivityScope
fun provideFragment(): Fragment = fragment
@Provides @ActivityScope
fun provideFargmentContext(): Context = fragment.activity.baseContext
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.login
import com.acv.kotlin_fat_secret.infraestructure.ui.login.LoginActivity
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Subcomponent
@Subcomponent(modules = arrayOf( LoginActivityModule::class ))
@ActivityScope interface LoginActivityComponent {
fun injectTo(actvity: LoginActivity)
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.food
import com.acv.kotlin_fat_secret.domain.interactor.GetFoodsSearchInteractor
import com.acv.kotlin_fat_secret.infraestructure.di.module.FragmentModule
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.SearchFoodFragment
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.SearchFoodPresenter
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.SearchFoodView
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.adapter.SearchFoodAdapter
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.adapter.WeightAdapter
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Module
import dagger.Provides
@Module
class SearchFoodFragmentModule(fragment: SearchFoodFragment) : FragmentModule(fragment) {
@Provides @ActivityScope
fun provideMainView(): SearchFoodView = fragment as SearchFoodView
@Provides @ActivityScope
fun provideAdapter(): SearchFoodAdapter = SearchFoodAdapter()
@Provides @ActivityScope
fun provideMainPresenter(view: SearchFoodView, getFoodsSearchInteractor: GetFoodsSearchInteractor)
= SearchFoodPresenter(view, getFoodsSearchInteractor)
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.diary
import com.acv.kotlin_fat_secret.domain.interactor.GetFoodEntriesInteractor
import com.acv.kotlin_fat_secret.infraestructure.di.module.FragmentModule
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.diary.DiaryFragment
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.diary.DiaryPresenter
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.diary.DiaryView
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Module
import dagger.Provides
@Module
class DiaryFragmentModule(fragment: DiaryFragment) : FragmentModule(fragment) {
@Provides @ActivityScope
fun provideDiaryView(): DiaryView = fragment as DiaryView
@Provides @ActivityScope
fun provideDiaryPresenter(view: DiaryView,
getFoodEntriesInteractor: GetFoodEntriesInteractor) : DiaryPresenter
= DiaryPresenter(view, getFoodEntriesInteractor)
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.weight
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.WeightMonthFragment
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Subcomponent
@ActivityScope
@Subcomponent(modules = arrayOf(WeightMonthFragmentModule::class))
interface WeightMonthFragmentComponent {
fun injectTo(fragment: WeightMonthFragment)
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.login
import android.app.Activity
import android.graphics.Color
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
import android.support.v4.content.ContextCompat
import android.view.View
import com.acv.kotlin_fat_secret.R
import org.jetbrains.anko.*
import org.jetbrains.anko.appcompat.v7.toolbar
import org.jetbrains.anko.design.appBarLayout
class LoginActivityUI : AnkoComponent<Activity> {
override fun createView(ui: AnkoContext<Activity>): View {
return with(ui) {
verticalLayout {
appBarLayout {
id = R.id.appbar
backgroundColor = ContextCompat.getColor(ctx, R.color.accent)
toolbar {
id = R.id.toolbar
setTitleTextColor(Color.WHITE)
overflowIcon!!.colorFilter = PorterDuffColorFilter(Color.WHITE, PorterDuff.Mode.MULTIPLY)
}
}
frameLayout {
id = R.id.container
}
}
}
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.extension
import java.util.*
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.splash
import com.acv.kotlin_fat_secret.infraestructure.ui.common.PresentationView
interface SplashView : PresentationView {
fun goToMain()
fun goToLogin()
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search
import android.graphics.Color
import android.support.design.widget.AppBarLayout
import android.support.design.widget.AppBarLayout.LayoutParams.*
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.view.View
import com.acv.kotlin_fat_secret.R
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.adapter.SearchFoodAdapter
import org.jetbrains.anko.AnkoComponent
import org.jetbrains.anko.AnkoContext
import org.jetbrains.anko.appcompat.v7.toolbar
import org.jetbrains.anko.design.appBarLayout
import org.jetbrains.anko.design.coordinatorLayout
import org.jetbrains.anko.matchParent
import org.jetbrains.anko.recyclerview.v7.recyclerView
import org.jetbrains.anko.support.v4.swipeRefreshLayout
class SearchFoodFragmentUI(val listAdapter: SearchFoodAdapter) : AnkoComponent<Fragment> {
override fun createView(ui: AnkoContext<Fragment>): View {
return with(ui) {
coordinatorLayout {
lparams(width = matchParent)
appBarLayout {
lparams(width = matchParent)
id = R.id.appbar
toolbar {
id = R.id.toolbar
setTitleTextColor(Color.WHITE)
}.lparams {
scrollFlags = SCROLL_FLAG_SCROLL or SCROLL_FLAG_ENTER_ALWAYS or SCROLL_FLAG_SNAP
}
}
swipeRefreshLayout {
id = R.id.swipe_refresh
recyclerView {
id = R.id.rv_foods
layoutManager = LinearLayoutManager(ctx)
adapter = listAdapter
}
}.lparams {
behavior = AppBarLayout.ScrollingViewBehavior()
}
}
}
}
}
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.splash
import com.acv.kotlin_fat_secret.infraestructure.ui.splash.SplashActivity
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Subcomponent
@ActivityScope
@Subcomponent(modules = arrayOf(
SplashActivityModule::class
))
interface SplashActivityComponent {
fun injectTo(activity: SplashActivity)
}<file_sep>package com.acv.kotlin_fat_secret.data.service.mapper
import com.acv.kotlin_fat_secret.data.service.profile.ProfileAuthService
import com.acv.kotlin_fat_secret.domain.Authentication
class ProfileAuthMapper() {
fun transform(profile: ProfileAuthService) = profile.let {
Authentication(profile.token, profile.secret)
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.profile
import android.graphics.Color
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
import android.support.v4.app.Fragment
import android.support.v4.content.ContextCompat
import android.view.View
import com.acv.kotlin_fat_secret.R
import org.jetbrains.anko.*
import org.jetbrains.anko.appcompat.v7.toolbar
import org.jetbrains.anko.design.appBarLayout
class ProfileFragmentUI : AnkoComponent<Fragment>{
override fun createView(ui: AnkoContext<Fragment>): View {
return with(ui) {
verticalLayout {
appBarLayout {
id = R.id.appbar
backgroundColor = ContextCompat.getColor(ctx, R.color.accent)
toolbar {
id = R.id.toolbar
setTitleTextColor(Color.WHITE)
overflowIcon!!.colorFilter = PorterDuffColorFilter(Color.WHITE, PorterDuff.Mode.MULTIPLY)
}
}
textView {
id = R.id.tv_profile
}
}
}
}
}<file_sep>package com.acv.kotlin_fat_secret.data.service.food.entry
import com.google.gson.annotations.SerializedName
class FoodEntriesResponse(
@SerializedName("food_entry") val entries: List<FoodEntryResponse>
)
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.adapter
import android.graphics.Typeface
import android.text.TextUtils
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import com.acv.kotlin_fat_secret.R
import org.jetbrains.anko.*
class SearchFoodItemUI : AnkoComponent<ViewGroup> {
override fun createView(ui: AnkoContext<ViewGroup>): View {
return with(ui) {
linearLayout {
lparams(width = matchParent, height = wrapContent)
orientation = LinearLayout.VERTICAL
horizontalPadding = dip(16)
padding = dip(8)
textView {
lparams {
gravity = Gravity.CENTER_VERTICAL
weight = 1.0f
}
id = R.id.tvName
singleLine = true
ellipsize = TextUtils.TruncateAt.END
textSize = 16f
}.setTypeface(null, Typeface.BOLD)
textView {
lparams {
gravity = Gravity.CENTER_VERTICAL
weight = 1.0f
}
id = R.id.tvDescription
singleLine = true
ellipsize = TextUtils.TruncateAt.END
textSize = 14f
}
}
}
}
}<file_sep>package com.acv.kotlin_fat_secret.data.service.profile
import com.acv.kotlin_fat_secret.data.service.profile.ProfileService
import com.google.gson.annotations.SerializedName
class ProfileResponse(
@SerializedName("profile") val profile: ProfileService
)<file_sep>package com.acv.kotlin_fat_secret.data.service.mapper
import com.acv.kotlin_fat_secret.data.service.food.entry.FoodEntryResponse
import com.acv.kotlin_fat_secret.domain.FoodEntry
class EntryMapper {
fun transform(entries: List<FoodEntryResponse>): List<FoodEntry> {
return entries.mapNotNull { transform(it) }
}
fun transform(entry: FoodEntryResponse) = entry.id?.let {
FoodEntry(entry.id,
entry.description,
entry.date,
entry.meal,
entry.foodId,
entry.servingId,
entry.units,
entry.name,
entry.calories,
entry.carbohydrate,
entry.protein,
entry.fat,
entry.saturatedFat,
entry.polyunsaturatedFat,
entry.monounsaturatedFat,
entry.transFat,
entry.choresterol,
entry.sodium,
entry.potassium,
entry.fiber,
entry.sugar,
entry.vitaminA,
entry.vitaminC,
entry.calcium,
entry.irom)
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.weight
import android.os.Bundle
import android.support.annotation.VisibleForTesting
import android.support.v4.view.MenuItemCompat
import android.support.v4.widget.SwipeRefreshLayout
import android.support.v7.widget.SearchView
import android.util.Log
import android.view.*
import com.acv.kotlin_fat_secret.R
import com.acv.kotlin_fat_secret.domain.WeightMonth
import com.acv.kotlin_fat_secret.infraestructure.di.ApplicationComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.weight.WeightMonthFragmentModule
import com.acv.kotlin_fat_secret.infraestructure.ui.common.BaseFragment
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.adapter.WeightAdapter
import org.jetbrains.anko.AnkoContext
import org.jetbrains.anko.support.v4.ctx
import org.jetbrains.anko.support.v4.find
import java.util.*
import javax.inject.Inject
class WeightMonthFragment : BaseFragment(), WeightMonthView {
companion object {
fun newInstance(): WeightMonthFragment = WeightMonthFragment()
}
val swipe by lazy { find<SwipeRefreshLayout>(R.id.swipe_refresh) }
@Inject
lateinit var adapter: WeightAdapter
@Inject @VisibleForTesting
lateinit var presenter: WeightMonthPresenter
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setHasOptionsMenu(true)
}
override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?)
: View? = WeightMonthFragmentUI(adapter).createView(AnkoContext.create(ctx, this))
override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
presenter.searchWeights(Date().time.div(1000L).toInt())
swipe.setOnRefreshListener { presenter.searchWeights(Date().time.div(1000L).toInt()) }
}
override fun injectDependencies(applicationComponent: ApplicationComponent)
= applicationComponent.plus(WeightMonthFragmentModule(this)).injectTo(this)
override fun showWeights(weights: List<WeightMonth>) {
adapter.items = weights
adapter.notifyDataSetChanged()
}
override fun showLoading() {
swipe.isRefreshing = true
}
override fun hideLoading() {
swipe.isRefreshing = false
}
override fun onCreateOptionsMenu(menu: Menu?, inflater: MenuInflater?) {
Log.e("create", "ee")
inflater?.apply { inflate(R.menu.search, menu) }
val searchItem = menu?.findItem(R.id.action_search)
val searchView = MenuItemCompat.getActionView(searchItem) as SearchView
characterSearch(searchView)
super.onCreateOptionsMenu(menu, inflater)
}
fun characterSearch(searchView: SearchView) {
searchView.setOnQueryTextListener(object : SearchView.OnQueryTextListener {
override fun onQueryTextSubmit(query: String): Boolean = false
override fun onQueryTextChange(newText: String): Boolean = false
})
}
}
<file_sep>package com.acv.kotlin_fat_secret.domain
class Authentication(
val oauth_token : String = "",
val auth_secret : String = ""
){
fun isValid() = oauth_token.isNotEmpty() && auth_secret.isNotEmpty()
}
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.repository.dataset
import com.acv.kotlin_fat_secret.domain.FoodEntry
import com.acv.kotlin_fat_secret.domain.FoodSearch
interface FoodDataSet {
fun requestSearchBy(description: String): List<FoodSearch>
fun requestEntriesBy(date: Int): List<FoodEntry>
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.profile
import com.acv.kotlin_fat_secret.domain.Profile
import com.acv.kotlin_fat_secret.infraestructure.ui.common.PresentationView
interface ProfileView : PresentationView {
fun showProfile(profile: Profile)
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.login
import com.acv.kotlin_fat_secret.infraestructure.ui.login.LoginFragment
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Subcomponent
@ActivityScope
@Subcomponent(modules = arrayOf(
LoginFragmentModule::class
))
interface LoginFragmentComponent {
fun injectTo(fragment: LoginFragment)
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.login
import com.acv.kotlin_fat_secret.infraestructure.di.module.ActivityModule
import com.acv.kotlin_fat_secret.infraestructure.ui.login.LoginActivity
import dagger.Module
@Module class LoginActivityModule(activity: LoginActivity) : ActivityModule(activity) {
}<file_sep>package com.acv.kotlin_fat_secret.data.service.weight
import com.google.gson.annotations.SerializedName
class MonthResponse(
@SerializedName("from_date_int") val from: Int?,
@SerializedName("to_date_int") val to: Int?,
@SerializedName("month") val month: List<DayResponse>
)<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.qualifier
import javax.inject.Qualifier
@Qualifier
annotation class ApplicationQualifier<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main
import android.support.design.widget.BottomNavigationView
import android.support.v7.widget.Toolbar
import com.acv.kotlin_fat_secret.R
import com.acv.kotlin_fat_secret.infraestructure.di.ApplicationComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.main.MainActivityModule
import com.acv.kotlin_fat_secret.infraestructure.ui.common.BaseActivity
import com.acv.kotlin_fat_secret.infraestructure.ui.extension.replace
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.diary.DiaryFragment
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.SearchFoodFragment
import com.acv.kotlin_fat_secret.infraestructure.ui.main.profile.ProfileFragment
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.WeightMonthFragment
import org.jetbrains.anko.find
class MainActivity : BaseActivity() {
val bottomNavigation by lazy { find<BottomNavigationView>(R.id.bottom_navigation) }
val toolbar by lazy { find<Toolbar>(R.id.toolbar) }
override fun injectDependencies(applicationComponent: ApplicationComponent)
= applicationComponent.plus(MainActivityModule(this)).injectTo(this)
override fun initView() {
setContentView(R.layout.main)
initBottonNavigation()
replace(SearchFoodFragment.newInstance())
}
private fun initBottonNavigation() {
bottomNavigation.setOnNavigationItemSelectedListener { item ->
when (item.getItemId()) {
R.id.action_favorites -> {
replace(SearchFoodFragment.newInstance())
}
R.id.action_schedules -> {
replace(WeightMonthFragment.newInstance())
}
R.id.action_user -> {
replace(ProfileFragment.newInstance())
}
}
false
}
}
}
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.common
import android.os.Bundle
import android.support.v4.app.Fragment
import com.acv.kotlin_fat_secret.infraestructure.di.ApplicationComponent
import com.acv.kotlin_fat_secret.infraestructure.ui.App
abstract class BaseFragment : Fragment() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
injectDependencies(App.graph)
}
abstract fun injectDependencies(applicationComponent: ApplicationComponent)
}<file_sep>package com.acv.kotlin_fat_secret.domain.repository
import com.acv.kotlin_fat_secret.domain.Authentication
import com.acv.kotlin_fat_secret.domain.Profile
interface ProfileRepository {
fun create(): Authentication
fun get() : Profile
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.login
import android.os.Bundle
import android.support.annotation.VisibleForTesting
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.acv.kotlin_fat_secret.R
import com.acv.kotlin_fat_secret.infraestructure.di.ApplicationComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.login.LoginFragmentModule
import com.acv.kotlin_fat_secret.infraestructure.ui.common.BaseFragment
import com.acv.kotlin_fat_secret.infraestructure.ui.main.MainActivity
import org.jetbrains.anko.AnkoContext
import org.jetbrains.anko.support.v4.ctx
import javax.inject.Inject
import com.acv.kotlin_fat_secret.infraestructure.ui.extension.launch
import org.jetbrains.anko.support.v4.find
class LoginFragment : BaseFragment(), LoginView {
companion object {
fun newInstance(): LoginFragment = LoginFragment()
}
val btnLogin by lazy { find<TextView>(R.id.btnLogin) }
@Inject @VisibleForTesting
lateinit var presenter: LoginPresenter
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
presenter.init()
}
override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?,
savedInstanceState: Bundle?): View? {
return LoginFragmentUI().createView(AnkoContext.create(ctx, this))
}
override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
// btnLogin.setOnClickListener { presenter. }
}
override fun injectDependencies(applicationComponent: ApplicationComponent) {
applicationComponent.plus(LoginFragmentModule(this))
.injectTo(this)
}
override fun goToMain() {
launch<MainActivity>()
}
}
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.login
import com.acv.kotlin_fat_secret.infraestructure.ui.common.PresentationView
interface LoginView : PresentationView {
fun goToMain()
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.food.diary
import com.acv.kotlin_fat_secret.infraestructure.ui.common.PresentationView
interface DiaryView : PresentationView {
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.main
import com.acv.kotlin_fat_secret.infraestructure.di.module.ActivityModule
import com.acv.kotlin_fat_secret.infraestructure.ui.main.MainActivity
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.SearchFoodView
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Module
import dagger.Provides
@Module
class MainActivityModule(activity: MainActivity) : ActivityModule(activity) {
@Provides @ActivityScope
fun provideMainView(): SearchFoodView = activity as SearchFoodView
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.login
import com.acv.kotlin_fat_secret.domain.interactor.CreateProfileInteractor
import com.acv.kotlin_fat_secret.infraestructure.ui.common.Presenter
import org.jetbrains.anko.doAsync
import org.jetbrains.anko.uiThread
open class LoginPresenter(
override val view: LoginView,
val profileInteractor: CreateProfileInteractor
) : Presenter<LoginView> {
open fun init() {
doAsync() {
val profileInteractor = profileInteractor
val profile = profileInteractor.execute()
uiThread {
if (profile.isValid())
view.goToMain()
}
}
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.module
import android.content.Context
import com.acv.kotlin_fat_secret.BuildConfig
import com.acv.kotlin_fat_secret.R
import com.acv.kotlin_fat_secret.data.cache.ProfileAuthCache
import com.acv.kotlin_fat_secret.data.cache.ProfileCacheImpl
import com.acv.kotlin_fat_secret.data.service.FatRequestInterceptor
import com.acv.kotlin_fat_secret.data.service.Service
import com.acv.kotlin_fat_secret.infraestructure.di.qualifier.ApiKey
import com.acv.kotlin_fat_secret.infraestructure.di.qualifier.ApplicationQualifier
import com.acv.kotlin_fat_secret.infraestructure.di.qualifier.CacheDuration
import dagger.Module
import dagger.Provides
import okhttp3.Cache
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import okhttp3.logging.HttpLoggingInterceptor.Level
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import javax.inject.Singleton
@Module
class DataModule {
@Provides @Singleton
fun provideCache(@ApplicationQualifier context: Context) = Cache(context.cacheDir, 10 * 1024 * 1024.toLong())
@Provides @Singleton @ApiKey
fun provideApiKey(@ApplicationQualifier context: Context): String = context.getString(R.string.fat_secret_api_key)
@Provides @Singleton @CacheDuration
fun provideCacheDuration(@ApplicationQualifier context: Context)
= context.resources.getInteger(R.integer.cache_duration)
@Provides @Singleton
fun provideOkHttpClient(cache: Cache, interceptor: FatRequestInterceptor): OkHttpClient =
OkHttpClient().newBuilder()
.cache(cache)
.addInterceptor(interceptor)
.addInterceptor(HttpLoggingInterceptor().apply {
level = if (BuildConfig.DEBUG) Level.HEADERS else Level.HEADERS
})
.build()
@Provides @Singleton
fun provideRequestInterceptor(@ApiKey apiKey: String, @CacheDuration cacheDuration: Int)
= FatRequestInterceptor(apiKey, cacheDuration)
@Provides @Singleton
fun provideRestAdapter(client: OkHttpClient, @ApplicationQualifier context: Context): Retrofit {
return Retrofit.Builder()
.baseUrl(context.getString(R.string.base_url))
.client(client)
.addConverterFactory(GsonConverterFactory.create())
.build()
}
@Provides @Singleton
fun providesService(retrofit: Retrofit): Service = retrofit.create(Service::class.java)
@Provides @Singleton
fun provideProfileCache(@ApplicationQualifier context: Context) : ProfileAuthCache = ProfileCacheImpl(context)
}<file_sep>package com.acv.kotlin_fat_secret.domain.interactor
import com.acv.kotlin_fat_secret.data.cache.ProfileAuthCache
import com.acv.kotlin_fat_secret.domain.Authentication
import com.acv.kotlin_fat_secret.domain.interactor.base.Command
import com.acv.kotlin_fat_secret.domain.repository.ProfileRepository
class CreateProfileInteractor(val profileRepository: ProfileRepository,
val profileCache: ProfileAuthCache) : Command<Authentication> {
override fun execute(): Authentication {
val authentication = profileRepository.create()
profileCache.put(authentication)
return authentication
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.weight
import com.acv.kotlin_fat_secret.domain.interactor.GetWeightMonthInteractor
import com.acv.kotlin_fat_secret.infraestructure.di.module.FragmentModule
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.WeightMonthFragment
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.WeightMonthPresenter
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.WeightMonthView
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.adapter.WeightAdapter
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Module
import dagger.Provides
@Module
class WeightMonthFragmentModule (fragment: WeightMonthFragment) : FragmentModule(fragment){
@Provides @ActivityScope
fun provideWeightView(): WeightMonthView = fragment as WeightMonthView
@Provides @ActivityScope
fun provideAdapter(): WeightAdapter = WeightAdapter()
@Provides @ActivityScope
fun providePresenter(view: WeightMonthView, getWeightMonthInteractor: GetWeightMonthInteractor)
= WeightMonthPresenter(view, getWeightMonthInteractor)
}<file_sep>package com.acv.kotlin_fat_secret.domain
class Profile(
val weight_measure : String = "",
val height_measure : String = "",
val last_weight_kg : Float = 0F,
val last_weight_date_int : Int = 0,
val last_weight_commment : String = "No hay comentarios",
val goal_weight_kg : Float = 0F,
val height_cm : Float = 0F
)
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.module
import com.acv.kotlin_fat_secret.data.cache.ProfileAuthCache
import com.acv.kotlin_fat_secret.data.cache.ProfileCache
import com.acv.kotlin_fat_secret.domain.interactor.*
import com.acv.kotlin_fat_secret.domain.repository.FoodRepository
import com.acv.kotlin_fat_secret.domain.repository.ProfileRepository
import com.acv.kotlin_fat_secret.domain.repository.WeightRepository
import dagger.Module
import dagger.Provides
@Module
class DomainModule {
@Provides fun provideSearchByInteractor(foodRepository: FoodRepository)
= GetFoodsSearchInteractor(foodRepository)
@Provides fun provideEntryByInteractor(foodRepository: FoodRepository)
= GetFoodEntriesInteractor(foodRepository)
@Provides fun providesCreateProfileInteractor(profileRepository: ProfileRepository,
profileCache: ProfileAuthCache)
= CreateProfileInteractor(profileRepository, profileCache)
@Provides fun providesGetProfileAuthInteractor(profileCache: ProfileAuthCache)
= GetProfileAuthInteractor(profileCache)
@Provides fun providesGetProfileInteractor(profileRepository: ProfileRepository)
= GetProfileInteractor(profileRepository)
@Provides fun providesGetWeightMonthInteractor(repository: WeightRepository)
= GetWeightMonthInteractor(repository)
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.weight
import com.acv.kotlin_fat_secret.domain.WeightMonth
import com.acv.kotlin_fat_secret.infraestructure.ui.common.PresentationView
interface WeightMonthView : PresentationView {
fun showWeights(weights: List<WeightMonth>)
fun showLoading()
fun hideLoading()
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.extension
import android.app.Activity
import android.content.Intent
import android.support.v4.app.ActivityCompat
import android.support.v4.app.ActivityOptionsCompat
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentActivity
import android.view.View
import com.acv.kotlin_fat_secret.R
import com.acv.kotlin_fat_secret.infraestructure.ui.common.BaseFragment
inline fun <reified T : Activity> Activity.navigate(id: String,
sharedView: View? = null,
transitionName: String? = null) {
val intent = Intent(this, T::class.java)
intent.putExtra("id", id)
var options: ActivityOptionsCompat? = null
if (sharedView != null && transitionName != null) {
options = ActivityOptionsCompat.makeSceneTransitionAnimation(this, sharedView, transitionName)
}
ActivityCompat.startActivity(this, intent, options?.toBundle())
}
inline fun <reified T : Activity> Activity.navigate() {
val intent = Intent(this, T::class.java)
ActivityCompat.startActivity(this, intent, null)
}
inline fun <reified T : Activity> Activity.launch() {
val intent = Intent(this, T::class.java)
ActivityCompat.startActivity(this, intent, null)
}
inline fun <reified T : Activity> Fragment.launch() {
val intent = Intent(this.activity, T::class.java)
ActivityCompat.startActivity(this.activity, intent, null)
}
fun FragmentActivity.replace(fragment: BaseFragment, id : Int = R.id.container){
supportFragmentManager.beginTransaction().replace(id, fragment).commit()
}<file_sep>package com.acv.kotlin_fat_secret.data.service.mapper
import com.acv.kotlin_fat_secret.data.service.profile.ProfileService
import com.acv.kotlin_fat_secret.domain.Profile
class ProfileMapper() {
fun transform(profile: ProfileService) = profile.let {
Profile(profile.weightMeasure, profile.heigthMeasure, profile.lastWeightKg, profile.lastWeightDate,
profile.lastWeightComment, profile.goalWeightKg, profile.heightCm)
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.profile
import android.os.Bundle
import android.support.annotation.VisibleForTesting
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.acv.kotlin_fat_secret.R
import com.acv.kotlin_fat_secret.domain.Profile
import com.acv.kotlin_fat_secret.infraestructure.di.ApplicationComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.profile.ProfileFragmentModule
import com.acv.kotlin_fat_secret.infraestructure.ui.common.BaseFragment
import org.jetbrains.anko.AnkoContext
import org.jetbrains.anko.support.v4.ctx
import org.jetbrains.anko.support.v4.find
import javax.inject.Inject
class ProfileFragment : BaseFragment(), ProfileView {
val tvProfile by lazy { find<TextView>(R.id.tv_profile) }
@Inject @VisibleForTesting
lateinit var presenter: ProfilePresenter
companion object {
fun newInstance(): ProfileFragment = ProfileFragment()
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
presenter.loadProfile()
}
override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?)
: View? = ProfileFragmentUI().createView(AnkoContext.create(ctx, this))
override fun injectDependencies(applicationComponent: ApplicationComponent)
= applicationComponent.plus(ProfileFragmentModule(this)).injectTo(this)
override fun showProfile(profile: Profile) {
tvProfile.text = profile.last_weight_commment
}
}
<file_sep>package com.acv.kotlin_fat_secret.domain.interactor
import com.acv.kotlin_fat_secret.domain.Profile
import com.acv.kotlin_fat_secret.domain.interactor.base.Command
import com.acv.kotlin_fat_secret.domain.repository.ProfileRepository
class GetProfileInteractor(val profileRepository: ProfileRepository) : Command<Profile> {
override fun execute(): Profile = profileRepository.get()
}<file_sep>package com.acv.kotlin_fat_secret.domain.interactor.base
import com.acv.kotlin_fat_secret.domain.interactor.base.Event
interface Interactor {
operator fun invoke(): Event
}<file_sep>package com.acv.kotlin_fat_secret.data.cache
import com.acv.kotlin_fat_secret.domain.Authentication
interface ProfileAuthCache {
fun put(authentication: Authentication)
fun get(): Authentication
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.profile
import com.acv.kotlin_fat_secret.domain.interactor.GetProfileInteractor
import com.acv.kotlin_fat_secret.infraestructure.ui.common.Presenter
import org.jetbrains.anko.doAsync
import org.jetbrains.anko.uiThread
class ProfilePresenter(
override val view: ProfileView,
val getProfileInteractor: GetProfileInteractor
) : Presenter<ProfileView> {
fun loadProfile() {
doAsync {
val profile = getProfileInteractor.execute()
uiThread {
view.showProfile(profile)
}
}
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.common
interface Presenter<out T> { val view: T }<file_sep>package com.acv.kotlin_fat_secret.domain.interactor.event
import com.acv.kotlin_fat_secret.domain.FoodSearch
import com.acv.kotlin_fat_secret.domain.interactor.base.Event
class FoodsSearchEvent(val foods: List<FoodSearch>) : Event<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.adapter
import android.support.v7.widget.RecyclerView
import android.view.ViewGroup
import com.acv.kotlin_fat_secret.domain.FoodSearch
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.adapter.WeightItemViewHolder
import org.jetbrains.anko.AnkoContext
import kotlin.properties.Delegates
class SearchFoodAdapter: RecyclerView.Adapter<SearchFoodItemViewHolder>() {
var itemClick: ((FoodSearch) -> Unit)? = null
var items: List<FoodSearch> by Delegates.observable(emptyList()) { prop, old, new -> notifyDataSetChanged() }
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SearchFoodItemViewHolder =
SearchFoodItemViewHolder(SearchFoodItemUI().createView(
AnkoContext.create(parent.context, parent)), itemClick)
override fun onBindViewHolder(holder: SearchFoodItemViewHolder, position: Int) {
holder.bind(items[position])
}
override fun getItemCount() = items.size
fun findPositionById(id: String): Int = items.withIndex().first({ it.value.id == id }).index
}
<file_sep>package com.acv.kotlin_fat_secret.data.service.weight
import com.acv.kotlin_fat_secret.data.service.Service
import com.acv.kotlin_fat_secret.data.service.mapper.WeightMapper
import com.acv.kotlin_fat_secret.data.unwrapCall
import com.acv.kotlin_fat_secret.domain.WeightMonth
import com.acv.kotlin_fat_secret.infraestructure.repository.dataset.WeightDataSet
class CloudWeightDataSet(val service: Service) : WeightDataSet {
override fun requestWeightBy(date: Int): List<WeightMonth> =
service.requestWeightsGetMonth(date).unwrapCall {
WeightMapper().transform(month)
}
}<file_sep>apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.acv.kotlin_fat_secret"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
resValue "string", "fat_secret_api_key", "4eb42ee6f54d40d8ae282bf893214a8c"
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile "com.android.support:appcompat-v7:$supportVersion"
testCompile 'junit:junit:4.12'
compile "com.android.support:appcompat-v7:$supportVersion"
compile "com.android.support:recyclerview-v7:$supportVersion"
compile "com.android.support:design:$supportVersion"
compile "com.android.support:cardview-v7:$supportVersion"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
//Dagger
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
compile "com.google.dagger:dagger:$daggerVersion"
//Glide
compile 'com.github.bumptech.glide:glide:3.7.0'
//BottomNavigation
compile 'com.github.armcha:LuseenBottomNavigation:1.8.2'
// Anko
compile "org.jetbrains.anko:anko-common:$ankoVersion"
compile "org.jetbrains.anko:anko-sqlite:$ankoVersion"
compile "org.jetbrains.anko:anko-sdk15:$ankoVersion"
compile "org.jetbrains.anko:anko-support-v4:$ankoVersion"
compile "org.jetbrains.anko:anko-appcompat-v7:$ankoVersion"
compile "org.jetbrains.anko:anko-recyclerview-v7:$ankoVersion"
compile "org.jetbrains.anko:anko-design:$ankoVersion"
compile "org.jetbrains.anko:anko-cardview-v7:$ankoVersion"
compile "com.squareup.okhttp3:okhttp:$okhttpVersion"
compile "com.squareup.okhttp3:logging-interceptor:$okhttpVersion"
compile ("com.squareup.retrofit2:retrofit:$retrofitVersion"){
exclude module: 'okhttp'
}
compile "com.squareup.retrofit2:converter-gson:$retrofitVersion"
}
repositories {
mavenCentral()
}
<file_sep>/*
* Copyright (C) 2015 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.acv.kotlin_fat_secret.data.service
import com.acv.kotlin_fat_secret.data.service.authentication.AuthenticationResponse
import com.acv.kotlin_fat_secret.data.service.food.entry.FoodEntriesGetResponse
import com.acv.kotlin_fat_secret.data.service.food.search.FoodsSearchResponse
import com.acv.kotlin_fat_secret.data.service.profile.ProfileResponse
import com.acv.kotlin_fat_secret.data.service.weight.MonthResponse
import com.acv.kotlin_fat_secret.domain.WeightMonth
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
interface Service {
@GET("/rest/server.api?method=foods.search")
fun requestFoodsSearch(@Query("search_expression") searchExpresion: String): Call<FoodsSearchResponse>
@GET("/rest/server.api?method=food_entries.get")
fun requestFoodEntries(@Query("date") searchExpresion: Int): Call<FoodEntriesGetResponse>
@GET("/rest/server.api?method=profile.create")
fun requestProfileCreate(): Call<AuthenticationResponse>
@GET("/rest/server.api?method=profile.get")
fun requestProfileGet(): Call<ProfileResponse>
@GET("/rest/server.api?method=weights.get_month")
fun requestWeightsGetMonth(@Query("date") searchExpresion: Int): Call<MonthResponse>
}<file_sep>package com.acv.kotlin_fat_secret.data.service.food.entry
import com.google.gson.annotations.SerializedName
class FoodEntriesGetResponse(
@SerializedName("food_entries") val entries: FoodEntriesResponse
)<file_sep>package com.acv.kotlin_fat_secret.data.service.food
import com.acv.kotlin_fat_secret.data.service.Service
import com.acv.kotlin_fat_secret.data.service.mapper.EntryMapper
import com.acv.kotlin_fat_secret.data.service.mapper.FoodMapper
import com.acv.kotlin_fat_secret.data.unwrapCall
import com.acv.kotlin_fat_secret.domain.FoodEntry
import com.acv.kotlin_fat_secret.domain.FoodSearch
import com.acv.kotlin_fat_secret.infraestructure.repository.dataset.FoodDataSet
class CloudFoodDataSet(val service: Service) : FoodDataSet {
override fun requestSearchBy(description: String): List<FoodSearch> {
val response = service.requestFoodsSearch(description).execute()
return FoodMapper().transform(response.body().foods.foods)
}
override fun requestEntriesBy(date: Int): List<FoodEntry> =
service.requestFoodEntries(date).unwrapCall {
EntryMapper().transform(entries.entries)
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui
import android.app.Application
import com.acv.kotlin_fat_secret.infraestructure.di.ApplicationComponent
import com.acv.kotlin_fat_secret.infraestructure.di.DaggerApplicationComponent
import com.acv.kotlin_fat_secret.infraestructure.di.module.ApplicationModule
class App : Application() {
companion object {
lateinit var graph: ApplicationComponent
}
override fun onCreate() {
super.onCreate()
initializeDagger()
}
fun initializeDagger() {
graph = DaggerApplicationComponent.builder()
.applicationModule(ApplicationModule(this))
.build()
}
}
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.repository
import com.acv.kotlin_fat_secret.domain.Authentication
import com.acv.kotlin_fat_secret.domain.Profile
import com.acv.kotlin_fat_secret.domain.repository.ProfileRepository
import com.acv.kotlin_fat_secret.infraestructure.repository.dataset.ProfileDataSet
class ProfileRepositoryImpl(val artistDataSets: ProfileDataSet) : ProfileRepository {
override fun create(): Authentication {
return artistDataSets.requestCreate()
}
override fun get(): Profile {
return artistDataSets.requestGet()
}
}<file_sep>package com.acv.kotlin_fat_secret.data.service.mapper
import com.acv.kotlin_fat_secret.data.service.food.search.FoodResponse
import com.acv.kotlin_fat_secret.domain.FoodSearch
class FoodMapper() {
fun transform(foods: List<FoodResponse>): List<FoodSearch> {
return foods.mapNotNull { transform(it) }
}
fun transform(food: FoodResponse) = food.id.let {
FoodSearch(food.id, food.name, food.type, food?.brand, food.url, food.description)
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.food.diary
import android.graphics.Color
import android.support.v4.app.Fragment
import android.view.View
import android.view.View.GONE
import android.support.design.widget.AppBarLayout
import android.support.design.widget.AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS
import android.support.design.widget.AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL
import com.acv.kotlin_fat_secret.R
import org.jetbrains.anko.*
import org.jetbrains.anko.appcompat.v7.toolbar
import org.jetbrains.anko.design.appBarLayout
import org.jetbrains.anko.design.coordinatorLayout
import org.jetbrains.anko.support.v4.nestedScrollView
class DiaryFragmentUI() : AnkoComponent<Fragment> {
override fun createView(ui: AnkoContext<Fragment>): View {
return with(ui) {
coordinatorLayout {
lparams(width = matchParent)
appBarLayout {
lparams(width = matchParent)
id = R.id.appbar2
toolbar {
id = R.id.toolbar
setTitleTextColor(Color.WHITE)
}.lparams {
scrollFlags = SCROLL_FLAG_SCROLL or SCROLL_FLAG_ENTER_ALWAYS
}
calendarView {
id = R.id.cv_diary
visibility = GONE
}
}
imageView {
imageResource = R.drawable.ic_add_white_24px
}.lparams {
behavior = AppBarLayout.ScrollingViewBehavior()
}
nestedScrollView {
verticalLayout {
textView {
id = R.id.tv_calories
text = "1000/2000"
}
}
}.lparams {
behavior = AppBarLayout.ScrollingViewBehavior()
}
}
}
}
}
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.food.diary
import android.os.Bundle
import android.support.annotation.VisibleForTesting
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.acv.kotlin_fat_secret.infraestructure.di.ApplicationComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.diary.DiaryFragmentModule
import com.acv.kotlin_fat_secret.infraestructure.ui.common.BaseFragment
import org.jetbrains.anko.AnkoContext
import org.jetbrains.anko.support.v4.ctx
import java.util.*
import javax.inject.Inject
class DiaryFragment : BaseFragment(), DiaryView {
companion object {
fun newInstance(): DiaryFragment = DiaryFragment()
}
@Inject @VisibleForTesting
lateinit var presenter: DiaryPresenter
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
presenter.init(Date())
}
override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?)
: View? = DiaryFragmentUI().createView(AnkoContext.create(ctx, this))
override fun injectDependencies(applicationComponent: ApplicationComponent)
= applicationComponent.plus(DiaryFragmentModule(this)).injectTo(this)
}
<file_sep>package com.acv.kotlin_fat_secret.domain
import java.util.*
data class FoodEntry(val id: Int,
val description: String,
val date: Date,
val meal: String,
val foodId: Int,
val servingId: Int,
val units: Float,
val name: String,
val calories: Float,
val carbohydrate: Float,
val protein: Float,
val fat: Float,
val saturatedFat: Float?,
val polyunsaturatedFat: Float?,
val monounsaturatedFat: Float?,
val transFat: Float?,
val choresterol: Float?,
val sodium: Float?,
val potassium: Float?,
val fiber: Float?,
val sugar: Float?,
val vitaminA: Float?,
val vitaminC: Float?,
val calcium: Float?,
val irom: Float?)<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.login
import com.acv.kotlin_fat_secret.domain.interactor.CreateProfileInteractor
import com.acv.kotlin_fat_secret.infraestructure.di.module.FragmentModule
import com.acv.kotlin_fat_secret.infraestructure.ui.login.LoginFragment
import com.acv.kotlin_fat_secret.infraestructure.ui.login.LoginPresenter
import com.acv.kotlin_fat_secret.infraestructure.ui.login.LoginView
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Module
import dagger.Provides
@Module
class LoginFragmentModule(fragment: LoginFragment) : FragmentModule(fragment) {
@Provides @ActivityScope
fun provideLoginView(): LoginView = fragment as LoginView
@Provides @ActivityScope
fun provideLoginPresenter(view: LoginView,
profileInteractor: CreateProfileInteractor
) = LoginPresenter(view, profileInteractor)
}<file_sep>package com.acv.kotlin_fat_secret.domain.repository
import com.acv.kotlin_fat_secret.domain.WeightMonth
interface WeightRepository {
fun weightBy(date: Int): List<WeightMonth>
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.adapter
import android.support.v7.widget.RecyclerView
import android.view.View
import android.widget.TextView
import com.acv.kotlin_fat_secret.R
import com.acv.kotlin_fat_secret.domain.FoodSearch
import com.acv.kotlin_fat_secret.domain.WeightMonth
import org.jetbrains.anko.find
class WeightItemViewHolder(itemView: View,
val itemClick: ((WeightMonth) -> Unit)?)
: RecyclerView.ViewHolder(itemView) {
val name: TextView = itemView.find(R.id.tvName)
val description: TextView = itemView.find(R.id.tvDescription)
fun bind(weight: WeightMonth) {
name.text = weight.weight.toString()
description.text = weight.comment
itemView.setOnClickListener { itemClick?.invoke(weight) }
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.profile
import com.acv.kotlin_fat_secret.domain.interactor.GetProfileInteractor
import com.acv.kotlin_fat_secret.infraestructure.di.module.FragmentModule
import com.acv.kotlin_fat_secret.infraestructure.ui.main.profile.ProfileFragment
import com.acv.kotlin_fat_secret.infraestructure.ui.main.profile.ProfilePresenter
import com.acv.kotlin_fat_secret.infraestructure.ui.main.profile.ProfileView
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Module
import dagger.Provides
@Module
class ProfileFragmentModule(fragment: ProfileFragment) : FragmentModule(fragment) {
@Provides @ActivityScope
fun provideProfileView(): ProfileView = fragment as ProfileView
@Provides @ActivityScope
fun provideProfilePresenter(view: ProfileView,
getProfileInteractor: GetProfileInteractor) : ProfilePresenter
= ProfilePresenter(view, getProfileInteractor)
}<file_sep>package com.acv.kotlin_fat_secret.data.service
import android.net.Uri
import android.util.Base64
import android.util.Log
import okhttp3.Interceptor
import okhttp3.Response
import java.security.InvalidKeyException
import java.security.NoSuchAlgorithmException
import java.util.*
import javax.crypto.Mac
import javax.crypto.spec.SecretKeySpec
class FatRequestInterceptor(val apiKey: String, val cacheDuration: Int) : Interceptor {
private val APP_SECRET = "a973a97be2e343f7a6a472bd964932ec&"
private val APP_URL = "http://platform.fatsecret.com/rest/server.api"
override fun intercept(chain: Interceptor.Chain): Response {
val request = chain.request()
val unixTime = System.currentTimeMillis() / 1000L
val nonce = System.currentTimeMillis().toString()
var url = request.url().newBuilder()
.addQueryParameter("format", "json")
.addQueryParameter("oauth_consumer_key", apiKey)
.addQueryParameter("oauth_nonce", nonce)
.addQueryParameter("oauth_signature_method", "HMAC-SHA1")
.addQueryParameter("oauth_timestamp", unixTime.toString())
.addQueryParameter("oauth_version", "1.0")
var build = url.build()
val split = build.query().split("&").toTypedArray()
build = url.query(paramify(split)).build()
val base = request.method() + "&" + Uri.encode(APP_URL) + "&" + Uri.encode(build.query())
val calc = sign(base)
build = request.url().newBuilder()
.query(paramify(split))
.addQueryParameter("oauth_signature", calc)
.build()
val newRequest = request.newBuilder()
.url(build)
.build()
return chain.proceed(newRequest)
}
private fun sign(method: String): String? {
try {
val signingKey = SecretKeySpec(APP_SECRET.toByteArray(), "HmacSHA1")
val mac = Mac.getInstance("HmacSHA1")
mac.init(signingKey)
return String(Base64.encode(mac.doFinal(method.toByteArray()), Base64.DEFAULT)).trim()
} catch (e: NoSuchAlgorithmException) {
Log.w("FatSecret_TEST FAIL", e.message)
return null
} catch (e: InvalidKeyException) {
Log.w("FatSecret_TEST FAIL", e.message)
return null
}
}
private fun paramify(params: Array<String>): String {
val p = Arrays.copyOf(params, params.size)
Arrays.sort(p)
return join(p, "&")
}
private fun join(array: Array<String>, separator: String): String {
val b = StringBuilder()
for (i in array.indices) {
if (i > 0)
b.append(separator)
b.append(array[i])
}
return b.toString()
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.diary
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.diary.DiaryFragment
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Subcomponent
@ActivityScope
@Subcomponent(modules = arrayOf(DiaryFragmentModule::class))
interface DiaryFragmentComponent {
fun injectTo(fragment: DiaryFragment)
}<file_sep>package com.acv.kotlin_fat_secret.data.service.food.search
import com.google.gson.annotations.SerializedName
class FoodsResponse(
@SerializedName("food") val foods: List<FoodResponse>,
@SerializedName("max_results") val maxResults: Int,
@SerializedName("total_results") val totalResult: Int,
@SerializedName("page_number") val pageNumber: Int
)
<file_sep>package com.acv.kotlin_fat_secret.domain.interactor.base
interface Command<T> {
fun execute(): T
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.food
import com.acv.kotlin_fat_secret.infraestructure.ui.main.food.search.SearchFoodFragment
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Subcomponent
@ActivityScope
@Subcomponent(modules = arrayOf(
SearchFoodFragmentModule::class
))
interface SearchFoodFragmentComponent {
fun injectTo(fragment: SearchFoodFragment)
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.adapter
import android.support.v7.widget.RecyclerView
import android.view.ViewGroup
import com.acv.kotlin_fat_secret.domain.FoodSearch
import com.acv.kotlin_fat_secret.domain.WeightMonth
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.adapter.WeightItemViewHolder
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.adapter.WeightItemUI
import org.jetbrains.anko.AnkoContext
import kotlin.properties.Delegates
class WeightAdapter : RecyclerView.Adapter<WeightItemViewHolder>() {
var itemClick: ((WeightMonth) -> Unit)? = null
var items: List<WeightMonth> by Delegates.observable(emptyList()) {
prop, old, new -> notifyDataSetChanged()
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): WeightItemViewHolder =
WeightItemViewHolder(WeightItemUI().createView(
AnkoContext.create(parent.context, parent)), itemClick)
override fun onBindViewHolder(holder: WeightItemViewHolder, position: Int) {
holder.bind(items[position])
}
override fun getItemCount() = items.size
}
<file_sep>package com.acv.kotlin_fat_secret.data.service.food.search
import com.google.gson.annotations.SerializedName
class FoodsSearchResponse(
@SerializedName("foods") val foods: FoodsResponse
)<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.module
import com.acv.kotlin_fat_secret.data.service.Service
import com.acv.kotlin_fat_secret.data.service.food.CloudFoodDataSet
import com.acv.kotlin_fat_secret.data.service.profile.CloudProfileDataSet
import com.acv.kotlin_fat_secret.data.service.weight.CloudWeightDataSet
import com.acv.kotlin_fat_secret.domain.repository.FoodRepository
import com.acv.kotlin_fat_secret.domain.repository.ProfileRepository
import com.acv.kotlin_fat_secret.domain.repository.WeightRepository
import com.acv.kotlin_fat_secret.infraestructure.di.qualifier.LanguageSelection
import com.acv.kotlin_fat_secret.infraestructure.repository.FoodRepositoryImpl
import com.acv.kotlin_fat_secret.infraestructure.repository.ProfileRepositoryImpl
import com.acv.kotlin_fat_secret.infraestructure.repository.WeightRepositoryImpl
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module
class RepositoryModule {
@Provides @Singleton
fun provideFood(service: Service): FoodRepository
= FoodRepositoryImpl(CloudFoodDataSet(service))
@Provides @Singleton
fun provideProfile(@LanguageSelection language: String, service: Service): ProfileRepository
= ProfileRepositoryImpl(CloudProfileDataSet(language, service))
@Provides @Singleton
fun provideWeight(service: Service): WeightRepository
= WeightRepositoryImpl(CloudWeightDataSet(service))
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.splash
import com.acv.kotlin_fat_secret.domain.interactor.GetProfileAuthInteractor
import com.acv.kotlin_fat_secret.infraestructure.di.module.ActivityModule
import com.acv.kotlin_fat_secret.infraestructure.ui.splash.SplashActivity
import com.acv.kotlin_fat_secret.infraestructure.ui.splash.SplashPresenter
import com.acv.kotlin_fat_secret.infraestructure.ui.splash.SplashView
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Module
import dagger.Provides
@Module
class SplashActivityModule(activity: SplashActivity) : ActivityModule(activity) {
@Provides @ActivityScope
fun provideSplashView(): SplashView = activity as SplashView
@Provides @ActivityScope
fun provideSplashPresenter(view: SplashView, getProfileInteractor: GetProfileAuthInteractor)
= SplashPresenter(view, getProfileInteractor)
}<file_sep>package com.acv.kotlin_fat_secret.data.service.weight
import com.acv.kotlin_fat_secret.data.service.profile.ProfileService
import com.google.gson.annotations.SerializedName
class DayResponse(
@SerializedName("date_int") val date: Int?,
@SerializedName("weight_comment") val comment: String?,
@SerializedName("weight_kg") val kg: Float?
)<file_sep>package com.acv.kotlin_fat_secret.infraestructure.repository
import com.acv.kotlin_fat_secret.domain.WeightMonth
import com.acv.kotlin_fat_secret.domain.repository.WeightRepository
import com.acv.kotlin_fat_secret.infraestructure.repository.dataset.WeightDataSet
class WeightRepositoryImpl(internal val dataSet: WeightDataSet) : WeightRepository {
override fun weightBy(date: Int): List<WeightMonth> {
val result = dataSet.requestWeightBy(date)
if (result.isNotEmpty()) {
return result
}
return emptyList()
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.repository.dataset
import com.acv.kotlin_fat_secret.domain.Authentication
import com.acv.kotlin_fat_secret.domain.Profile
interface ProfileDataSet {
fun requestCreate(): Authentication
fun requestGet() : Profile
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.login
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.view.View
import com.acv.kotlin_fat_secret.R
import com.acv.kotlin_fat_secret.infraestructure.ui.main.weight.adapter.WeightAdapter
import org.jetbrains.anko.*
import org.jetbrains.anko.recyclerview.v7.recyclerView
class LoginFragmentUI() : AnkoComponent<Fragment> {
override fun createView(ui: AnkoContext<Fragment>): View {
return with(ui) {
linearLayout {
lparams(width = matchParent, height = matchParent)
button {
id = R.id.btnLogin
text = ctx.getString(R.string.btnLogin)
}
}
}
}
}
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.main
import com.acv.kotlin_fat_secret.infraestructure.ui.main.MainActivity
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Subcomponent
@Subcomponent(modules = arrayOf( MainActivityModule::class ))
@ActivityScope interface MainActivityComponent {
fun injectTo(activity: MainActivity)
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.repository.dataset
import com.acv.kotlin_fat_secret.domain.WeightMonth
interface WeightDataSet {
fun requestWeightBy(date: Int): List<WeightMonth>
}<file_sep>package com.acv.kotlin_fat_secret.domain
data class FoodSearch(val id: String,
val name: String,
val type: String,
val brand: String?,
val url: String,
val description: String)<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.login
import com.acv.kotlin_fat_secret.infraestructure.di.ApplicationComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.login.LoginActivityModule
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.splash.SplashActivityModule
import com.acv.kotlin_fat_secret.infraestructure.ui.common.BaseActivity
import com.acv.kotlin_fat_secret.infraestructure.ui.extension.replace
import org.jetbrains.anko.setContentView
class LoginActivity : BaseActivity() {
override fun initView() {
LoginActivityUI().setContentView(this)
replace(LoginFragment.newInstance())
}
override fun injectDependencies(applicationComponent: ApplicationComponent)
= applicationComponent.plus(LoginActivityModule(this)).injectTo(this)
}<file_sep>package com.acv.kotlin_fat_secret.domain
data class WeightMonth(val day: Int?,
val weight: Float?,
val comment: String?)<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.profile
import com.acv.kotlin_fat_secret.infraestructure.ui.main.profile.ProfileFragment
import com.antonioleiva.bandhookkotlin.di.scope.ActivityScope
import dagger.Subcomponent
@ActivityScope
@Subcomponent(modules = arrayOf(ProfileFragmentModule::class))
interface ProfileFragmentComponent {
fun injectTo(fragment: ProfileFragment)
}<file_sep>package com.acv.kotlin_fat_secret.data.service.food.entry
import com.google.gson.annotations.SerializedName
import java.util.*
class FoodEntryResponse(@SerializedName("food_entry_id") val id: Int,
@SerializedName("food_entry_description") val description: String,
@SerializedName("date_int") val date: Date,
@SerializedName("meal") val meal: String,
@SerializedName("food_id") val foodId: Int,
@SerializedName("serving_id") val servingId: Int,
@SerializedName("number_of_units") val units: Float,
@SerializedName("food_entry_name") val name: String,
@SerializedName("calories") val calories: Float,
@SerializedName("carbohydrate") val carbohydrate: Float,
@SerializedName("protein") val protein: Float,
@SerializedName("fat") val fat: Float,
@SerializedName("saturated_fat") val saturatedFat: Float?,
@SerializedName("polyunsaturated_fat") val polyunsaturatedFat: Float?,
@SerializedName("monunsaturated_fat") val monounsaturatedFat: Float?,
@SerializedName("trans_fat") val transFat: Float?,
@SerializedName("choresterol") val choresterol: Float?,
@SerializedName("sodium") val sodium: Float?,
@SerializedName("potassium") val potassium: Float?,
@SerializedName("fiber") val fiber: Float?,
@SerializedName("sugar") val sugar: Float?,
@SerializedName("vitaminA") val vitaminA: Float?,
@SerializedName("vitaminC") val vitaminC: Float?,
@SerializedName("calcium") val calcium: Float?,
@SerializedName("irom") val irom: Float?)
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di.module
import android.content.Context
import com.acv.kotlin_fat_secret.infraestructure.di.qualifier.ApplicationQualifier
import com.acv.kotlin_fat_secret.infraestructure.di.qualifier.LanguageSelection
import com.acv.kotlin_fat_secret.infraestructure.ui.App
import com.bumptech.glide.Glide
import dagger.Module
import dagger.Provides
import java.util.*
import javax.inject.Singleton
@Module
class ApplicationModule(private val app: App) {
@Provides @Singleton
fun provideApplication(): App = app
@Provides @Singleton @ApplicationQualifier
fun provideApplicationContext(): Context = app
@Provides @Singleton
fun provideGlide(@ApplicationQualifier context: Context): Glide = Glide.get(context)
@Provides @Singleton @LanguageSelection
fun provideLanguageSelection(): String = Locale.getDefault().language
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.repository
import com.acv.kotlin_fat_secret.domain.FoodEntry
import com.acv.kotlin_fat_secret.domain.FoodSearch
import com.acv.kotlin_fat_secret.domain.repository.FoodRepository
import com.acv.kotlin_fat_secret.infraestructure.repository.dataset.FoodDataSet
class FoodRepositoryImpl(val artistDataSets: FoodDataSet) : FoodRepository {
override fun searchBy(description: String): List<FoodSearch> {
val result = artistDataSets.requestSearchBy(description)
if (result.isNotEmpty()) {
return result
}
return emptyList()
}
override fun entryBy(date: Int): List<FoodEntry> {
val result = artistDataSets.requestEntriesBy(date)
if (result.isNotEmpty()) {
return result
}
return emptyList()
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.food.diary
import com.acv.kotlin_fat_secret.domain.interactor.GetFoodEntriesInteractor
import com.acv.kotlin_fat_secret.infraestructure.ui.common.Presenter
import org.jetbrains.anko.doAsync
import org.jetbrains.anko.uiThread
import java.util.*
class DiaryPresenter(
override val view: DiaryView,
val getFoodEntriesInteractor: GetFoodEntriesInteractor
) : Presenter<DiaryView> {
fun init(date: Date) {
doAsync {
val getFoodEntriesInteractor = getFoodEntriesInteractor
getFoodEntriesInteractor.date = date
val food = getFoodEntriesInteractor.execute()
uiThread {
}
}
}
}<file_sep>package com.acv.kotlin_fat_secret.data.service.profile
import com.google.gson.annotations.SerializedName
class ProfileAuthService(
@SerializedName("auth_token") val token: String,
@SerializedName("auth_secret") val secret: String
)
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.common
interface PresentationView<file_sep>package com.acv.kotlin_fat_secret.data.cache
import com.acv.kotlin_fat_secret.domain.Profile
interface ProfileCache {
fun put(authentication: Profile)
fun get(): Profile
}<file_sep>package com.acv.kotlin_fat_secret.data.service.food.search
import com.google.gson.annotations.SerializedName
class FoodResponse(
@SerializedName("food_id") val id: String,
@SerializedName("food_name") val name: String,
@SerializedName("food_type") val type: String,
@SerializedName("brand_name") val brand: String?,
@SerializedName("food_url") val url: String,
@SerializedName("food_description") val description: String
)
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.splash
import android.os.Bundle
import android.support.annotation.VisibleForTesting
import com.acv.kotlin_fat_secret.infraestructure.di.ApplicationComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.splash.SplashActivityModule
import com.acv.kotlin_fat_secret.infraestructure.ui.common.BaseActivity
import com.acv.kotlin_fat_secret.infraestructure.ui.extension.launch
import com.acv.kotlin_fat_secret.infraestructure.ui.login.LoginActivity
import com.acv.kotlin_fat_secret.infraestructure.ui.main.MainActivity
import org.jetbrains.anko.setContentView
import javax.inject.Inject
class SplashActivity : BaseActivity(), SplashView {
@Inject @VisibleForTesting
lateinit var presenter: SplashPresenter
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
presenter.checkProfile()
}
override fun initView() {
SplashActivityUI().setContentView(this)
}
override fun injectDependencies(applicationComponent: ApplicationComponent)
= applicationComponent.plus(SplashActivityModule(this)).injectTo(this)
override fun goToMain() {
launch<MainActivity>()
finish()
}
override fun goToLogin() {
launch<LoginActivity>()
finish()
}
}
<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.main.weight
import com.acv.kotlin_fat_secret.domain.interactor.GetWeightMonthInteractor
import com.acv.kotlin_fat_secret.infraestructure.ui.common.Presenter
import org.jetbrains.anko.doAsync
import org.jetbrains.anko.uiThread
class WeightMonthPresenter(
override val view: WeightMonthView,
val getWeightMonthInteractor: GetWeightMonthInteractor
) : Presenter<WeightMonthView> {
fun searchWeights(date: Int) {
doAsync {
view.showLoading()
val weightMonthInteractor = getWeightMonthInteractor
weightMonthInteractor.date = date
val weights = weightMonthInteractor.execute()
uiThread {
view.showWeights(weights)
view.hideLoading()
}
}
}
}<file_sep>package com.acv.kotlin_fat_secret.infraestructure.di
import com.acv.kotlin_fat_secret.infraestructure.di.module.ApplicationModule
import com.acv.kotlin_fat_secret.infraestructure.di.module.DataModule
import com.acv.kotlin_fat_secret.infraestructure.di.module.DomainModule
import com.acv.kotlin_fat_secret.infraestructure.di.module.RepositoryModule
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.diary.DiaryFragmentComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.diary.DiaryFragmentModule
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.login.LoginActivityComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.login.LoginActivityModule
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.login.LoginFragmentComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.login.LoginFragmentModule
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.main.MainActivityComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.main.MainActivityModule
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.food.SearchFoodFragmentComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.food.SearchFoodFragmentModule
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.profile.ProfileFragmentComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.profile.ProfileFragmentModule
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.splash.SplashActivityComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.splash.SplashActivityModule
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.weight.WeightMonthFragmentComponent
import com.acv.kotlin_fat_secret.infraestructure.di.subcomponent.weight.WeightMonthFragmentModule
import dagger.Component
import javax.inject.Singleton
@Singleton
@Component(modules = arrayOf(
ApplicationModule::class,
DataModule::class,
RepositoryModule::class,
DomainModule::class
))
interface ApplicationComponent {
fun plus(module: MainActivityModule): MainActivityComponent
fun plus(module: SearchFoodFragmentModule): SearchFoodFragmentComponent
fun plus(module: WeightMonthFragmentModule): WeightMonthFragmentComponent
fun plus(module: LoginActivityModule): LoginActivityComponent
fun plus(module: LoginFragmentModule): LoginFragmentComponent
fun plus(module: SplashActivityModule): SplashActivityComponent
fun plus(module: DiaryFragmentModule): DiaryFragmentComponent
fun plus(module: ProfileFragmentModule): ProfileFragmentComponent
}
<file_sep>package com.acv.kotlin_fat_secret.data.service.profile
import com.google.gson.annotations.SerializedName
class ProfileService(
@SerializedName("weight_measure") val weightMeasure : String,
@SerializedName("height_measure") val heigthMeasure : String,
@SerializedName("last_weight_kg") val lastWeightKg : Float,
@SerializedName("last_weight_date_int") val lastWeightDate : Int,
@SerializedName("last_weight_comment") val lastWeightComment: String,
@SerializedName("goal_weight_kg") val goalWeightKg : Float,
@SerializedName("height_cm") val heightCm : Float
)
<file_sep>package com.acv.kotlin_fat_secret.domain.interactor
import com.acv.kotlin_fat_secret.domain.FoodEntry
import com.acv.kotlin_fat_secret.domain.interactor.base.Command
import com.acv.kotlin_fat_secret.domain.repository.FoodRepository
import java.util.*
class GetFoodEntriesInteractor(val foodRepository: FoodRepository) : Command<List<FoodEntry>> {
var date: Date? = null
override fun execute(): List<FoodEntry> {
val date = this.date ?: throw IllegalStateException("date can´t be null")
val food = foodRepository.entryBy(dateToDays(date))
return food
}
private fun dateToDays(date: Date): Int {
return (date.time.div(1000L)).toInt()
}
}<file_sep>package com.acv.kotlin_fat_secret.data.service.authentication
import com.acv.kotlin_fat_secret.data.service.profile.ProfileAuthService
import com.google.gson.annotations.SerializedName
class AuthenticationResponse(
@SerializedName("profile") val profileAuth: ProfileAuthService
)<file_sep>package com.acv.kotlin_fat_secret.infraestructure.ui.splash
import android.app.Activity
import android.view.View
import com.acv.kotlin_fat_secret.R
import org.jetbrains.anko.*
class SplashActivityUI : AnkoComponent<Activity> {
override fun createView(ui: AnkoContext<Activity>): View {
return with(ui) {
verticalLayout {
id = R.id.appbar
imageView {
imageResource = R.drawable.ic_android_black_24dp
}
}
}
}
} | 7dba7ba1cf409b11ed862015be6010dc423dea56 | [
"Kotlin",
"Gradle"
] | 109 | Kotlin | carbaj03/kotlinFatSecret | df10baec25840c70afbcbd3062f96e5150c594d3 | dca3eb7fba7d880ec304c35445b1cd4e96a8205b |
refs/heads/master | <file_sep>import React,{ Component } from 'react';
import dummyData from './dummy-data';
import SearchBar from './components/SearchBar/SearchBar';
import Posts from './components/PostContainer/Posts';
import withAuthenticate from './components/Login/withAuthenticate';
import styled from 'styled-components';
import './App.css';
const Button = styled.button``
const AppDiv = styled.div`
text-align: center;
max-width: 642px;
margin: auto;
`;
class App extends Component {
constructor() {
super();
this.state = {
data: [],
id: '',
username: '',
thumbnailUrl: '',
likes: 0 ,
timestamp: 0,
filteredPosts: []
};
}
componentDidMount() {
this.setState({
data: dummyData
});
}
changeHandler = event => {
this.setState ({
[event.target.name]: event.target.value
})
}
searchFilter = event => {
const filtered = this.state.data.filter(post => post.username.toLowerCase().includes(event.target.value.toLowerCase()))
this.setState({filteredPosts: filtered})
}
render(){
return (
<AppDiv>
<SearchBar
changeHandler={this.changeHandler}
newSearch={this.state.search}
searchFilter={this.searchFilter}
/>
<Posts
thePosts= {this.state.data}
searchFilter={this.searchFilter}
filteredPosts={this.state.filteredPosts}
/>
<withAuthenticate />
<h1>-----</h1>
</AppDiv>
)
}
}
export default App;
<file_sep>import React, { Component } from 'react';
import Coms from './Coms/Coms';
import styled from 'styled-components'
import './Comments.css';
const CommentsStyles = styled.div`
max-width: 675px;
margin: auto;
`
const UserAnd = styled.div`
display: flex;
padding: 2%;
`
const Likes = styled.div`
text-align: left;
margin-left: 8px;
`
const Date = styled.div`
text-align: left;
margin-left: 8px;
font-size: 85%;
`
class Comments extends Component{
constructor(props) {
super();
this.state = {
thePosts: props.thePosts.comments,
theLikes: props.thePosts.likes,
id: 0,
username: "Leilani",
text: "",
likes: 0
}
}
addNewComment = (event, index) => {
event.preventDefault();
// index = this.state.thePosts.comments.length();
const newComment = {
id: index,
username: this.state.username,
text: this.state.text
};
// creating variable
// assigning an object to it
// key and the value in object references to state
this.setState({
thePosts: [...this.state.thePosts, newComment],
id: 0,
username: "",
text: ""
})
}
addNewLike = (event, index) => {
event.preventDefault();
const newLike = {
id: index,
likes: this.state.likes
};
this.setState ({
theLikes: this.state.theLikes + 1,
id: 0,
})
}
changeHandler = (event) => {
this.setState({
[event.target.name]: event.target.value
});
}
render(){
return(
<CommentsStyles>
<UserAnd>
<img src={this.props.thePosts.thumbnailUrl}
className="thumbnail" />
<h5 className="username">{this.props.thePosts.username}</h5>
</UserAnd>
<img src={this.props.thePosts.imageUrl} />
<Likes>
<button className="button" onClick={this.addNewLike}>like</button>
<button className="button">cmnt</button>
<p>{this.state.theLikes} likes</p>
</Likes>
{this.state.thePosts.map(each => {
return (
<div>
<Coms
comm = {each}
// key = {each.id}
/>
</div>
)})}
<Date>
<p>{this.props.thePosts.timestamp}</p>
</Date>
<form className="comm-form" onSubmit={this.addNewComment}>
<input
type= "text"
name= "text"
placeholder="Add a comment..."
value={this.state.text}
onChange={this.changeHandler}
/>
</form>
</CommentsStyles>
)
}
}
export default Comments;
// const Comments = props => {
// return(
// <div className="comments">
// <div className="userAnd">
// <img src={props.thePosts.thumbnailUrl}
// className="thumbnail" />
// <h5 className="username">{props.thePosts.username}</h5>
// </div>
// <img src={props.thePosts.imageUrl} />
// <div className="likes">
// <button className="button">like</button>
// <button className="button">cmnt</button>
// <p>{props.thePosts.likes} likes</p>
// </div>
// <div className="date">
// <p>{props.thePosts.timestamp}</p>
// </div>
// {/* <div> */}
// {props.thePosts.comments.map(each => {
// return (
// <div>
// <Coms
// comm = {each}
// key = {each.id}
// />
// </div>
// )})}
// {/* </div> */}
// {/* <props.thePosts.map(thepost =>) */}
// </div>
// )
// };<file_sep>import React from 'react';
const PostPage = PostPage => LoginPage => class extends React.Component {
constructor() {
super();
this.state = {
}
}
render() {
if(localStorage.getItem("LoggedOut")){
return <LoginPage />
}else {
return <PostPage />
}
}
}
export default PostPage; | 36d552783fd0f112dcdef3fa659678b3c11fc8a0 | [
"JavaScript"
] | 3 | JavaScript | lschimm/React-Insta-Clone | fcdee68984dfe7da3de34a4034a3b73255ee4830 | 882ccce2da52d35a250b45c0663f1981ff52f064 |
refs/heads/master | <file_sep>'use strict';
$(document).ready(function () {
var controller = new ScrollMagic.Controller();
// Базовая анимация появления
$('.fade-up').each(function () {
var basicAnimation = new TimelineMax().staggerFromTo($(this), 2, {
opacity: 0,
y: '80'
}, {
ease: Power4.easeOut,
opacity: 1,
y: 0
}, .2, "+=.2");
new ScrollMagic.Scene({
triggerHook: 1,
triggerElement: this
}).setTween(basicAnimation)
// .addIndicators()
.addTo(controller);
});
}); | cde6d84b5e10befc7f376a9600ec29afae6009ef | [
"JavaScript"
] | 1 | JavaScript | robotcigan/snmd | 322d14abb63f18053b9fd351083c891cf17711da | 8471bdb7b1f400d61d5e2cb3548768f50df50008 |
refs/heads/master | <repo_name>dnov09/CodeSignal-Problems<file_sep>/first_duplicate.py
#%%
def first_duplicate(a):
rmv_dup = set()
for nums in a:
if nums not in rmv_dup:
rmv_dup.add(nums)
else:
return nums
return -1
first_duplicate([3,4,5,1,5,1])<file_sep>/firstNotRepeatingCharacter.py
#%%
def firstNotRepeatingCharacter(s):
char_dict = {}
for char in list(s):
if char in char_dict:
char_dict[char] += 1
else:
char_dict[char] = 1
for char in char_dict:
if char_dict[char] == 1:
return char
return _
firstNotRepeatingCharacter('abababacbababab')
<file_sep>/Test Cases/first_duplicate_test.py
import unittest
from first_duplicate import *
class MyTest(unittest.TestCase):
def test(self):
self.assertEqual(first_duplicate([2, 1, 3, 5, 3, 2]), 4)
# Test cases
<file_sep>/adjacentElementsProduct.py
def adjacentElementsProduct(inputArray):
rv = []
count = 0
while count < (len(inputArray) - 1):
rv.append(inputArray[count] * inputArray[count + 1])
count += 1
return max(rv)
<file_sep>/addTwoDigits.py
def addTwoDigits(n):
if n < 10:
return n
return (n // 10) + (n % 10)
<file_sep>/largestNumber.py
def largestNumber(n):
return (10 ** n) - 1
| 0fef28725de4f5d8219bae991f7c271ed6b3b5b9 | [
"Python"
] | 6 | Python | dnov09/CodeSignal-Problems | 53833b95254ccc740feb2f87d86a4c0653450742 | 5d9faf0a9da9ac16f29b4c8afd5c486f4b0e3a91 |
refs/heads/main | <file_sep>import React from 'react'
export default function Search() {
return (
<div className="container">
<div className="jumbotron ">
<h1 className="display-4">Google Books Library</h1>
<p className="lead">Search for your desired book, then add it to the library!</p>
</div>
</div>
)
}
<file_sep>import React, { Component } from "react";
import { BrowserRouter, Route, Switch } from "react-router-dom"
import "./App.css";
import Navbar from "./Components/Navbar";
import Search from "./Components/Search";
import Intro from "./Components/Intro";
import Saved from "./Components/Saved";
function App() {
return (
<BrowserRouter>
<Navbar />
<Intro />
<Switch>
<Route exact path="/">
</Route>
<Route exact path="/search">
<Search/>
</Route>
<Route exact path="/saved">
<Saved/>
</Route>
</Switch>
</BrowserRouter>
);
}
export default App;
<file_sep># My-Little-Library
## Description
### Deployed link: https://fast-castle-45621.herokuapp.com/search
Users can search for books from the google books API and save the books they are interested in for a later date. A React MERN application with a Mongo database.
## Table of Contents
1. [Description](#-Description)
1. [Installation](#Installation)
1. [Usage](#Usage)
1. [Contributing](#Contributing)
1. [Questions](#Questions)
1. [License](#License)
## Visuals

View of searched books
## Technologies
[React](https://reactjs.org/)
[node.js](https://nodejs.org/en/)
[MongoDB](https://www.mongodb.com/)
## Installation
Ensure node.js is operational on your machine. Run npm install both in both the root directory and the client direction. Ensure mongo is running on your machine. Run npm start from the root directory to begin the program locally.
## Usage
Anyone can use, according to the terms of the license.
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## Questions
Please direct questions to:
Github account GnuArtemis
<EMAIL>
## License

MIT License
Copyright (c) 2020
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<file_sep>const router = require("express").Router();
const Book = require("../models/Book.js");
router.post("/api/books", (req, res) => {
Book.create(req.body)
.then(dbBooks => { res.send(dbBooks) })
.catch(err => {
res.status(400).json(err);
});
})
router.get("/api/mybooks", (req, res) => {
Book.find({})
.then(dbBooks => res.json(dbBooks))
.catch(err => {
res.status(400).json(err);
});
})
router.delete("/api/mybooks/:id", (req, res) =>{
Book.findById({_id:req.params.id })
.then(dbBooks => dbBooks.remove())
.then(dbBooks => res.json(dbBooks))
.catch(err => res.status(422).json(err));
})
// router.post("/api/transaction", ({ body }, res) => {
// Transaction.create(body)
// .then(dbTransaction => {
// res.json(dbTransaction);
// })
// .catch(err => {
// res.status(400).json(err);
// });
// });
module.exports = router;
| 9e405d5f87b6b7fdae201fe069b865f2fc5e2fcf | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | GnuArtemis/My-Little-Library | fe65de730e72c060c9d83ddc3114080ffb1ff9eb | 533bfabed86cebc3f37577437001fec1967564fe |
refs/heads/master | <file_sep>--
--
-- C'est quoi une ligne,
-- C'est quoi une section
--
-- 1- On part de l'exploitant => idgerep = id de l'exploitant
select * from exploitant where idgerep = 6424
--
-- 2- Remonte les déclarations de l'exploitant
-- Soit plusieurs déclarations par années.
select * from declaration where idgerep = 6424
--
-- 3- Recuperer la déclaration de l'année voulue.
select * from declaration where iddeclaration = 140104
--
-- 4- Récupérer les sections
-- Section : A une section est liée plusieurs tableaux ou page.
-- Sol, Air, ...
-- => Récupération de toutes les sections de la déclaration
select * from section where iddeclaration = 140104
-- => Récupération de la section : Air pour la déclaration 2016
select * from section where idsection = 933688
-- => A voir : Récuperer les types de sections.
select * from type
--
-- 5- Récupérer les tableaux de la section et le tableau H1.
-- 4411307 ==> Tableau H1
-- Tableau : Structure d'une page.
select * from tableau where idsection = 933688
select * from tableau where idtableau = 4411307
--
-- 6- Récupérer les lignes du tableau.
select * from ligne where idtableau = 4411307
select * from ligne where idligne = 4062396
--
-- 7- Récupérer les mesures de la ligne
select * from mesureligneperso where idligne = 4062396
select * from mesureligneperso where idligne = 4062395
--
-- 8- Récupérer les intitulés de la ligne.
select * from variablemodele where idvariable = 130631
select * from variablemodele where idvariable in (select idvariable from mesureligneperso where idligne = 4062396)
-----------------------
SELECT COUNT(tab)
FROM Tableau as tab, Section as sect, Declaration as decla
WHERE tab.idsection = sect.idsection
AND sect.iddeclaration = decla.iddeclaration
AND decla.idgerep = 31696
AND tab.codelettre = 'T1'
AND tab.estvalide= 1
AND decla.annee IN (2013, 2014, 2015)
------
SELECT COUNT(tab)
FROM Tableau as tab, Section as sect, Declaration as decla
WHERE tab.idsection = sect.idsection
AND sect.iddeclaration = decla.iddeclaration
AND decla.idgerep = 31696
AND tab.codelettre = 'T1'
AND tab.estvalide= 1
AND decla.annee IN (2013, 2014, 2015)
------
select * from tableau where codelettre = 'T1' limit 10
select * from tableaut1 limit 10
select * from section where iddeclaration=140106;
select * from tableau where idsection=933708 and codelettre='T1'
select * from tableaut1 where idsection =933708 limit 10
select * from exploitant where carriere = 1
"SABL05110"
"Z6YuyuS8"
select * from declaration where idgerep = 17765
select * from section where iddeclaration=140108;
select * from tableau where idsection=933724 and codelettre='T1'
select * from tableaut1 where idsection =933708 limit 10
-------
select distinct idvariable from variablemodele;
select * from declaration where idgerep=31696;
select * from section where iddeclaration=140106;
select * from tableau where idsection=933704;
select * from ligne where idtableau=4411496; -- 4062413 4062411
select * from mesureligneperso where idligne = 4062413;
select * from variablemodele where idvariable = 130636;
select * from mesureligneperso where valeurtextemoyen='cabine(s) de peinture';
--
-- Modèle
select * from tableaumodele limit 10
<file_sep> --
-- Nombre d'ordonnance prise par les CDPI
--
SELECT
CONCAT(dos.NUMERO_DOSSIER,
-- dossier lie QPC
stuff(
(Select ('+' + dosQPC.NUMERO_DOSSIER)
from piece pie
INNER JOIN ORDONNANCE ordDosQpc on ordDosQpc.PIE_ID = pie.PIE_ID
INNER JOIN DOSSIER dosQPC on dosQPC.DOS_ID = pie.DOS_ID
where dosQPC.DOS_ID_FOND_QPC = dos.DOS_ID
AND ordDosQpc.SI_QPC = 'true'
AND ordDosQpc.QPC_REGLEE_AVEC_AFFAIRE_PR = 'true'
for xml path ('')
),1,1,'+'),
-- dossier lie par instruction commune
stuff(
(Select ('+' + dosLieCommun.NUMERO_DOSSIER)
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
for xml path ('')
),1,1,'+')
)as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
tor.LIBELLE as 'COL_TEXTE_3',
pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
WHERE tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
<%if (dtoCritere.getDateDebut() != null ){ %>
AND pie.DATE_CREATION >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null){ %>
AND pie.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<%}%>
-------------------------------------------------------------------------------
--
-- Nombre d'ordonnance prise par les CDPI
--
SELECT
stuff(
(Select CONCAT('+', dosLieCommun.NUMERO_DOSSIER)
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
for xml path ('')
),1,1,''
) as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
tor.LIBELLE as 'COL_TEXTE_3',
pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
WHERE tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL);
---------------------------------------------------------
SELECT dosParent.NUMERO_DOSSIER as 'Dossier parent',
dos.NUMERO_DOSSIER,
ord.ORD_ID,
ord.SI_QPC,
ord.QPC_REGLEE_AVEC_AFFAIRE_PR,
CONCAT(dos.NUMERO_DOSSIER,
-- DOSSIER QPC reglee avec affaire principale
stuff(
(Select CONCAT('+', dosQPC.NUMERO_DOSSIER)
FROM DOSSIER dosQPC
WHERE dosQPC.DOS_ID = dos.DOS_ID_FOND_QPC
for xml path ('')
),1,1,''),
-- DOSSIER LIER
stuff(
(Select CONCAT('+', dosLieCommun.NUMERO_DOSSIER)
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
LEFT JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
for xml path ('')
),1,1,'')
)as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
tor.LIBELLE as 'COL_TEXTE_3',
pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
LEFT JOIN DOSSIER dosParent on dosParent.DOS_ID = dos.DOS_ID_FOND_QPC
WHERE tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
-- AND dos.NUMERO_DOSSIER = '1231'
-- AND ord.ORD_ID in ('203','3120','3118','3499','1745','5824','27602','27591','5827');
AND dos.NUMERO_DOSSIER like '%QPC%'
--------------------------------------------------------------------------
-- DOSSIER QPC réglée avec affaire principale
SELECT dosQpc.NUMERO_DOSSIER,
ord.ORD_ID,
ord.SI_QPC,
ord.QPC_REGLEE_AVEC_AFFAIRE_PR,
str.LIBELLE_COURT,
tor.LIBELLE,
pie.DATE_CREATION
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
LEFT JOIN DOSSIER dosQpc on dosQpc.DOS_ID = dos.DOS_ID_FOND_QPC
WHERE tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='true')
-- AND dos.NUMERO_DOSSIER = '1231'
---------------------------------------------------------------------------------------------------
--
-- Nombre d'ordonnance prise par les CDPI
--
SELECT dos.NUMERO_DOSSIER as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
tor.LIBELLE as 'COL_TEXTE_3',
ord.ORD_ID,
pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
AND ord.TYPE_CREATEUR = 'CDPI'
AND tor.TOR_CD IN ('TORR9',
'TORR5',
'RECER')
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND pie.DATE_CREATION >= '01/01/2014'
AND pie.DATE_CREATION <= '30/06/2014'
EXCEPT
SELECT dos.NUMERO_DOSSIER as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
tor.LIBELLE as 'COL_TEXTE_3',
ord.ORD_ID,
pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
AND tor.TOR_CD IN ('TORR9',
'TORR5',
'RECER')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND pie.DATE_CREATION >= '01/01/2014'
AND pie.DATE_CREATION <= '30/06/2014'
select ord.TYPE_CREATEUR, str.TYPE_STRUCTURE
from ordonnance ord
inner join STRUCTURE str on str.STR_ID=ord.STR_ID
where ord.ORD_ID=3489;
Select *
from Dossier dos
where dos.NUMERO_DOSSIER='43.1254 / 43.1255'
select dos.STR_ID, dos.NUMERO_DOSSIER, dos.STR_ID_INITIALE, dos.tdo_cd, str.TYPE_STRUCTURE
from dossier dos inner join structure str on str.STR_ID = dos.str_id
where numero_dossier like '%dos_cdpi_test_create_by_cdn%';
select *
from dossier dos
inner join structure str on str.STR_ID = dos.str_id
where dos.tdo_cd='CDPI' and str.str_id=30;
select distinct(ord.TYPE_CREATEUR)
from ORDONNANCE ord;
<file_sep>-- ===============
-- <NAME>
-- ===============
--
-- Delai moyen de jugement pour l'ensemble des décisions collégiales rendues par les CDPIs
--
SELECT
CONCAT(
dos.NUMERO_DOSSIER,
-- dossier lie QPC
stuff(
(Select ('+' + dosQPC.NUMERO_DOSSIER)
from piece pie
INNER JOIN ORDONNANCE ordDosQpc on ordDosQpc.PIE_ID = pie.PIE_ID
INNER JOIN DOSSIER dosQPC on dosQPC.DOS_ID = pie.DOS_ID
where dosQPC.DOS_ID_FOND_QPC = dos.DOS_ID
AND ordDosQpc.SI_QPC = 'true'
AND ordDosQpc.QPC_REGLEE_AVEC_AFFAIRE_PR = 'true'
for xml path ('')
),1,1,'+'),
-- dossier lie par instruction commune
stuff(
(Select ('+' + dosLieCommun.NUMERO_DOSSIER)
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
for xml path ('')
),1,1,'+')
)as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
CONCAT(FORMAT(dos.DATE_ENREGISTREMENT, 'dd/MM/yyyy'),
-- dossier lie QPC
stuff(
(Select ('+' + FORMAT(dosQPC.DATE_ENREGISTREMENT, 'dd/MM/yyyy'))
from piece pie
INNER JOIN ORDONNANCE ordDosQpc on ordDosQpc.PIE_ID = pie.PIE_ID
INNER JOIN DOSSIER dosQPC on dosQPC.DOS_ID = pie.DOS_ID
where dosQPC.DOS_ID_FOND_QPC = dos.DOS_ID
AND ordDosQpc.SI_QPC = 'true'
AND ordDosQpc.QPC_REGLEE_AVEC_AFFAIRE_PR = 'true'
order by dosQPC.NUMERO_DOSSIER desc
for xml path ('')
),1,1,'+'),
-- dossier lie par instruction commune
stuff(
(Select ('+' + FORMAT(dosLieCommun.DATE_ENREGISTREMENT, 'dd/MM/yyyy'))
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
order by dosLieCommun.NUMERO_DOSSIER desc
for xml path ('')
),1,1,'+')
)as 'COL_TEXTE_3',
pie.DATE_CREATION as 'COL_DATE_2'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN TYPE_REQUETE tyr ON dos.tyr_id = tyr.tyr_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
WHERE tor.TOR_CD IN ('DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
-----------------------------------------------------------------------------------------------
SELECT dos.NUMERO_DOSSIER,
str.LIBELLE_COURT,
dos.DATE_ENREGISTREMENT,
dos2.NUMERO_DOSSIER as 'NUMERO_DOSSIER_FILS_QPC',
dos2.DATE_ENREGISTREMENT as 'DATE_ENREGISTREMENT_DOS_FILS_QPC',
dos3.NUMERO_DOSSIER as 'NUMERO_DOSSIER_FILS_LIE',
dos3.DATE_ENREGISTREMENT as 'DATE_ENREGISTREMENT_DOS_FILS_LIE',
pie.DATE_CREATION as 'DATE_AFFICHAGE'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN TYPE_REQUETE tyr ON dos.tyr_id = tyr.tyr_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
LEFT join ORD_DOS_LIE odl on odl.ORD_ID = ord.ORD_ID
LEFT JOIN DOSSIER dos2 on dos2.dos_id = dos.DOS_ID_FOND_QPC
LEFT JOIN PIECE pie2 on pie2.DOS_ID = dos2.DOS_ID
LEFT join Dossier dos3 on odl.dos_id = dos3.DOS_ID
WHERE tor.TOR_CD IN ('DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
---------------------------------------------------------------------------------------------
SELECT
dos.NUMERO_DOSSIER as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
dos.DATE_ENREGISTREMENT as 'COL_DATE_1',
dos2.NUMERO_DOSSIER as 'COL_TEXTE_3',
dos2.DATE_ENREGISTREMENT as 'COL_DATE_2',
dos3.NUMERO_DOSSIER as 'COL_TEXTE_4',
dos3.DATE_ENREGISTREMENT as 'COL_DATE_3',
pie.DATE_CREATION as 'COL_DATE_4'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN TYPE_REQUETE tyr ON dos.tyr_id = tyr.tyr_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
LEFT join ORD_DOS_LIE odl on odl.ORD_ID = ord.ORD_ID
LEFT JOIN DOSSIER dos2 on dos2.dos_id = dos.DOS_ID_FOND_QPC
LEFT JOIN PIECE pie2 on pie2.DOS_ID = dos2.DOS_ID
LEFT join Dossier dos3 on odl.dos_id = dos3.DOS_ID
WHERE tor.TOR_CD IN ('DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
<file_sep>with dos_reouverts as (
-- lister les dossiers réouverts
SELECT dos.dos_id,
dos.numero_dossier,
dos.DATE_ENREGISTREMENT,
req.req_id,
pie.DATE_CREATION,
ord.ORD_ID
FROM dossier dos
INNER JOIN requete req ON req.dos_id = dos.dos_id
INNER JOIN type_requete tyr ON req.tyr_id= tyr.tyr_id
INNER JOIN ORD_REQ orr on orr.REQ_ID = req.REQ_ID
inner join ordonnance ord on ord.ORD_ID = orr.ORD_ID
inner join piece pie on pie.PIE_ID = ord.PIE_ID
WHERE dos.tdo_cd IN ( 'APPEL' )
AND tyr.TYR_CD in ('POURV')
AND EXISTS (
SELECT *
FROM requete req1
inner join ord_req orr1 ON orr1.req_id = req1.req_id
inner join ordonnance ord1 ON ord1.ord_id = orr1.ord_id
inner join type_ordonnance tor1 ON tor1.tor_id = ord1.tor_id
inner join decision_dispositif ddi1 ON ddi1.ord_id = ord1.ord_id
inner join dispositif dis1 ON dis1.dis_id = ddi1.dis_id
left join dispositif dis2 ON dis2.dis_id = ddi1.dis_id_liste_2
--detail decision dn lie
left join ordonnance ord_cdn ON ord_cdn.ord_id = req1.ord_id
left join (
SELECT *,
CASE
WHEN uni_id_duree IS NULL THEN 0
WHEN uni_id_duree = 1 THEN duree
WHEN uni_id_duree = 2 THEN duree * 30.44
WHEN uni_id_duree = 3 THEN duree * 365.25
END AS DUREE_JOUR,
CASE
WHEN uni_id_sursis IS NULL THEN 0
WHEN uni_id_sursis = 1 THEN sursis
WHEN uni_id_sursis = 2 THEN sursis * 30.44
WHEN uni_id_sursis = 3 THEN sursis * 365.25
END AS DUREE_JOUR_SURSIS
FROM decision_dispositif
) AS ddi_cdn ON ddi_cdn.ord_id = ord_cdn.ord_id
inner join dispositif dis1_cdn ON dis1_cdn.dis_id = ddi_cdn.dis_id
left join dispositif dis2_cdn ON dis2_cdn.dis_id = ddi_cdn.dis_id_liste_2
WHERE
req1.dos_id = dos.dos_id
AND req1.req_id = req.req_id
AND ord1.ORD_ID = ord.ord_id
AND ord1.type_createur IN ('CE')
AND (
dis1.dis_cd in ('ANREN')
OR (
dis1.dis_cd in ('REJRE','NONAD')
AND (dis2_cdn.DIS_CD in ('RADIA')
OR (dis2_cdn.DIS_CD in ('INTER') AND ddi_cdn.DUREE_JOUR > ddi_cdn.DUREE_JOUR_SURSIS )
)
AND req1.EFFET_SUSPENSIF=1
)
)
)
)
<file_sep>SELECT d.idgerep , d.iddeclaration, t.idtableau, t.codelettre, m.idchamp, m.valeurtextemoyen
FROM declaration d,
section s,
tableau t,
mesurechamp m
WHERE d.iddeclaration = s.iddeclaration
AND s.idsection = t.idsection
AND t.idtableau = m.idtableau
AND m.idchamp = 120240
AND d.annee = 2015
AND m.valeurtextemoyen IN ('chaudière(s)');
<file_sep>--
--
-- C'est quoi une ligne,
-- C'est quoi une section
--
-- 1- On part de l'exploitant => idgerep = ? id de l'exploitant
select * from exploitant where idgerep = 6424
--
-- 2- Remonte les déclarations de l'exploitant
-- Soit plusieurs déclarations par années.
select * from declaration where idgerep = 6424
--
-- 3- Recuperer la déclaration de l'année voulue.
select * from declaration where iddeclaration = 140104
--
-- 4- Récupérer les sections
-- Section : A une section est liée plusieurs tableaux ou page.
-- Sol, Air, ...
-- => Récupération de toutes les sections de la déclaration
select * from section where iddeclaration = 140104
-- => Récupération de la section : Air pour la déclaration 2016
select * from section where idsection = 933688
-- => A voir : Récuperer les types de sections.
select * from type
--
-- 5- Récupérer les tableaux de la section et le tableau H1.
-- 4411307 ==> Tableau H1
-- Tableau : Structure d'une page.
select * from tableau where idsection = 933688
select * from tableau where idtableau = 4411307
--
-- 6- Récupérer les lignes du tableau.
select * from ligne where idtableau = 4411307
select * from ligne where idligne = 4062396
--
-- 7- Récupérer les mesures de la ligne
select * from mesureligneperso where idligne = 4062396
select * from mesureligneperso where idligne = 4062395
--
-- 8- Récupérer les intitulés de la ligne.
select * from variablemodele where idvariable = 130631
select * from variablemodele where idvariable in (select idvariable from mesureligneperso where idligne = 4062396)
--
-- Modèle
select * from tableaumodele limit 10<file_sep> With icdn_delai_jug as (
SELECT ord.TOR_ID,
ord.ORD_ID,
pie.DOS_ID,
pie.DATE_CREATION, -- date d'affichage d'une ord/dec
req.DATE_ENREGISTREMENT as dateEnregistrementRequete, -- date enregistrement requete
DATEDIFF(dd, req.DATE_ENREGISTREMENT, pie.DATE_CREATION)+1 as diff,
dos.NUMERO_DOSSIER,
tor.TOR_CD,
dos.DATE_ENREGISTREMENT as dosDateEnregistrement
FROM ORDONNANCE ord
join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
join PIECE pie on pie.PIE_ID = ord.PIE_ID
join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
-- requete
join ORD_REQ ordReq on ordReq.ORD_ID = ord.ORD_ID
join REQUETE req on req.REQ_ID = ordReq.REQ_ID
join TYPE_REQUETE typReq on typReq.TYR_ID = req.TYR_ID
WHERE
tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND dos.TDO_CD = 'APPEL'
AND dos.STA_CD <> 'SUPPR'
AND ord.TYPE_CREATEUR = 'DN'
<%if (dtoCritere.getDateDebut() != null ){ %>
AND pie.DATE_CREATION >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null ){ %>
AND pie.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<% } %>
UNION
--
-- DOSSIER avec Requete et Ordonnance R.4126.9 et R.4126.10
--
SELECT ord.TOR_ID,
ord.ORD_ID,
pie.DOS_ID,
(
select count(req.req_id)
from requete req
inner join type_requete tyr on tyr.tyr_id =req.tyr_id
where tyr.TYR_CD in ('REQ9', 'REQ10')
AND req.dos_id = dos.DOS_ID
) as nbRequete,
pie.DATE_CREATION, -- date d'affichage d'une ord/dec
DATEDIFF(dd,
(select min(req.DATE_ENREGISTREMENT)
from requete req
inner join type_requete tyr on tyr.tyr_id =req.tyr_id
where tyr.TYR_CD in ('REQ9', 'REQ10')
AND req.dos_id = dos.DOS_ID)
, pie.DATE_CREATION)+1 as diff,
dos.NUMERO_DOSSIER,
tor.TOR_CD,
dos.DATE_ENREGISTREMENT as dosDateEnregistrement
FROM ORDONNANCE ord
join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
join PIECE pie on pie.PIE_ID = ord.PIE_ID
join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
WHERE dos.TDO_CD = 'APPEL'
AND dos.STA_CD <> 'SUPPR'
AND tor.TOR_CD IN ('TORR9', 'TOR10')
<%if (dtoCritere.getDateDebut() != null ){ %>
AND pie.DATE_CREATION >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null ){ %>
AND pie.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<% } %>
-- DOSSIER doit etre considere comme juge.
AND (
-- nombre de requete
select count(req.req_id)
from requete req
inner join type_requete tyr on tyr.tyr_id =req.tyr_id
where tyr.TYR_CD in ('REQ9', 'REQ10')
AND req.dos_id = dos.dos_id
) = (
-- nombre d'ordonnance
(select count(ORD_iD)
from (
SELECT ord.TOR_ID, ord.ORD_ID, ord.TYPE_CREATEUR, pie.DATE_CREATION
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
WHERE pie.DOS_ID = dos.DOS_ID
UNION ALL
SELECT ord.TOR_ID, ord.ORD_ID, ord.TYPE_CREATEUR, pie.DATE_CREATION
FROM ORD_DOS_LIE odl
INNER JOIN ORDONNANCE ord ON ord.ORD_ID = odl.ORD_ID
INNER JOIN PIECE pie ON pie.PIE_ID = ord.PIE_ID
WHERE odl.DOS_ID = dos.DOS_ID
) AS orp
INNER JOIN TYPE_ORDONNANCE tor ON tor.TOR_ID = orp.TOR_ID
WHERE
tor.TOR_CD IN ('TORR9', 'TORR10')
AND TYPE_CREATEUR in ('DN')
)
)
)
SELECT CONCAT(delais.NUMERO_DOSSIER,
-- Dossier lié par Instruction Commune
stuff(
(Select ('+' + dosLieCommun.NUMERO_DOSSIER)
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=delais.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = delais.ORD_ID
order by dosLieCommun.NUMERO_DOSSIER desc
for xml path ('')
),1,1,'+')
) as 'COL_TEXTE_1',
CONCAT(FORMAT(delais.dosDateEnregistrement, 'dd/MM/yyyy'),
stuff(
(Select ('+' + FORMAT(dosLieCommun.DATE_ENREGISTREMENT, 'dd/MM/yyyy'))
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=delais.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = delais.ORD_ID
order by dosLieCommun.NUMERO_DOSSIER desc
for xml path ('')
),1,1,'+')
) as 'COL_TEXTE_2',
delais.TOR_CD as 'COL_TEXTE_3',
delais.DATE_CREATION as 'COL_DATE_1',
delais.diff as 'COL_NUMERIC_1'
From (
SELECT ORD_ID, DOS_ID, NUMERO_DOSSIER, dosDateEnregistrement, DATE_CREATION, TOR_CD, MAX(diff) as diff
FROM icdn_delai_jug icdnDelJug
GROUP BY ORD_ID, DOS_ID, NUMERO_DOSSIER, dosDateEnregistrement, DATE_CREATION, TOR_CD
) delais
<file_sep>--
-- Nombre de décisions prises par les CDPI
--
SELECT
CONCAT(dos.NUMERO_DOSSIER,
stuff(
(Select ('+' + dosQPC.NUMERO_DOSSIER)
from piece pie
INNER JOIN ORDONNANCE ordDosQpc on ordDosQpc.PIE_ID = pie.PIE_ID
INNER JOIN DOSSIER dosQPC on dosQPC.DOS_ID = pie.DOS_ID
where dosQPC.DOS_ID_FOND_QPC = dos.DOS_ID
AND ordDosQpc.SI_QPC = 'true'
AND ordDosQpc.QPC_REGLEE_AVEC_AFFAIRE_PR = 'true'
for xml path ('')
),1,1,'+'),
-- dossier lie par instruction commune
stuff(
(Select ('+' + dosLieCommun.NUMERO_DOSSIER)
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
for xml path ('')
),1,1,'+')
) as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
WHERE tor.TOR_CD IN ('DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
<%if (dtoCritere.getDateDebut() != null ){ %>
AND pie.DATE_CREATION >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null){ %>
AND pie.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<%}%>
-------------------------------------------------------------------------------------------
SELECT dos.NUMERO_DOSSIER as 'COL_TEXTE_1', str.LIBELLE_COURT as 'COL_TEXTE_2', pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
AND tor.TOR_CD IN ('DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND pie.DATE_CREATION >= '01/01/2014'
AND pie.DATE_CREATION <= '30/06/2014'
EXCEPT
SELECT dos.NUMERO_DOSSIER as 'COL_TEXTE_1', str.LIBELLE_COURT as 'COL_TEXTE_2', pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
AND tor.TOR_CD IN ('DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND pie.DATE_CREATION >= '01/01/2014'
AND pie.DATE_CREATION <= '30/06/2014'
select *
from ordonnance
where TYPE_CREATEUR='CDPI'
and SI_QPC='true'
Select *
from Dossier dos
where dos.NUMERO_DOSSIER='1217/QPC'
<file_sep>--
-- Nombre de décisions prises par les CDPI
SELECT dos.NUMERO_DOSSIER as 'COL_TEXTE_1', str.LIBELLE_COURT as 'COL_TEXTE_2', pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
AND tor.TOR_CD IN ('DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
<%if (dtoCritere.getDateDebut() != null ){ %>
AND pie.DATE_CREATION >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null){ %>
AND pie.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<%}%>
--
-- Nombre de décisions prises par les CDPI
SELECT dos.NUMERO_DOSSIER as 'N°Dossier', str.LIBELLE_COURT as 'Chambre', pie.DATE_CREATION as 'Date d''affichage'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
AND tor.TOR_CD IN ('DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
<%if (dtoCritere.getDateDebut() != null ){ %>
AND pie.DATE_CREATION >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null){ %>
AND pie.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<%}%>
--
-- Nombre de décisions prises par les CDPI
SELECT dos.NUMERO_DOSSIER as 'N°Dossier', str.LIBELLE_COURT as 'Chambre', pie.DATE_CREATION as 'Date d''affichage'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
AND tor.TOR_CD IN ('DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND pie.DATE_CREATION >= '01/02/2014'
AND pie.DATE_CREATION <= '01/06/2014'
<file_sep>--
-- <NAME>
-- ==> Ecart entre la date d'enregistrement du dossier et la date de création de l'ordonnance.
-- ==> Pour un dossier QPC, s'il est jugé avec l'affaire principale, elle compte pour 1.
-- ==> Astuce : requete remonte tous les dossiers (y compris QPC). Qd QPC, on cherche le dossier 'fond QPC', et on attache
-- au dossier QPC, l'identifiant (PIE_ID) du dossier 'fond QPC' ==> fond QPC => dossier CDPI lié.
--
With icdpi_delai_jug as
(
SELECT ord.TOR_ID,
ord.ORD_ID,
ord.STR_ID,
ord.QPC_REGLEE_AVEC_AFFAIRE_PR,
pie.DATE_CREATION, --date d'affichage d'une ord/dec
dos.DATE_ENREGISTREMENT,
pie.DOS_ID,
pie.PIE_ID,
pie2.PIE_ID as pie2,
dos.DOS_ID_FOND_QPC,
case when ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 1
then pie2.PIE_ID
else pie.PIE_ID end as PIE_ID,
dos.NUMERO_DOSSIER,
DATEDIFF(dd,dos.DATE_ENREGISTREMENT,pie.DATE_CREATION) + 1 as diff
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
LEFT JOIN DOSSIER dos2 on dos2.dos_id = dos.DOS_ID_FOND_QPC
LEFT JOIN PIECE pie2 on pie2.DOS_ID = dos2.DOS_ID
WHERE
tor.TOR_CD IN ( 'TORR9','TORR5', 'RECER', 'DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND ((ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL) or (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='true' and dos.DOS_ID_FOND_QPC is not null))
AND pie.date_creation >= '01/01/2016'
AND pie.DATE_CREATION <= '30/06/2016'
)
SELECT case when AVG(cast(diff as float)) is null then 0 else AVG(cast(diff as float)) end
FROM
(SELECT MAX(diff) as diff, PIE_ID from icdpi_delai_jug
group by PIE_ID) delais
-- ==================================================
-- == <NAME>
-- ==================================================
With icdpi_delai_jug as (
SELECT
ord.TOR_ID,
ord.ORD_ID,
ord.STR_ID,
ord.QPC_REGLEE_AVEC_AFFAIRE_PR,
pie.DATE_CREATION, --date d'affichage d'une ord/dec
dos.DATE_ENREGISTREMENT,
pie.DOS_ID,
dos.DOS_ID_FOND_QPC,
case when ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 1
then pie2.PIE_ID
else pie.PIE_ID end as PIE_ID,
dos.NUMERO_DOSSIER as NUMERO_DOSSIER,
DATEDIFF(dd,dos.DATE_ENREGISTREMENT,pie.DATE_CREATION) + 1 as diff
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
LEFT JOIN DOSSIER dos2 on dos2.dos_id = dos.DOS_ID_FOND_QPC
LEFT JOIN PIECE pie2 on pie2.DOS_ID = dos2.DOS_ID
WHERE
tor.TOR_CD IN ('TORR9','TORR5', 'RECER', 'DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND ((ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL) or (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='true' and dos.DOS_ID_FOND_QPC is not null))
)
SELECT
CONCAT(
dos.NUMERO_DOSSIER,
-- dossier lie QPC
stuff(
(Select ('+' + dosQPC.NUMERO_DOSSIER)
from piece pie
INNER JOIN ORDONNANCE ordDosQpc on ordDosQpc.PIE_ID = pie.PIE_ID
INNER JOIN DOSSIER dosQPC on dosQPC.DOS_ID = pie.DOS_ID
where dosQPC.DOS_ID_FOND_QPC = dos.DOS_ID
AND ordDosQpc.SI_QPC = 'true'
AND ordDosQpc.QPC_REGLEE_AVEC_AFFAIRE_PR = 'true'
order by dosQPC.NUMERO_DOSSIER desc
for xml path ('')
),1,1,'+'),
-- dossier lie par instruction commune
stuff(
(Select ('+' + dosLieCommun.NUMERO_DOSSIER)
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
order by dosLieCommun.NUMERO_DOSSIER desc
for xml path ('')
),1,1,'+')
) as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
CONCAT(FORMAT(dos.DATE_ENREGISTREMENT, 'dd/MM/yyyy'),
-- dossier lie QPC
stuff(
(Select ('+' + FORMAT(dosQPC.DATE_ENREGISTREMENT, 'dd/MM/yyyy'))
from piece pie
INNER JOIN ORDONNANCE ordDosQpc on ordDosQpc.PIE_ID = pie.PIE_ID
INNER JOIN DOSSIER dosQPC on dosQPC.DOS_ID = pie.DOS_ID
where dosQPC.DOS_ID_FOND_QPC = dos.DOS_ID
AND ordDosQpc.SI_QPC = 'true'
AND ordDosQpc.QPC_REGLEE_AVEC_AFFAIRE_PR = 'true'
order by dosQPC.NUMERO_DOSSIER desc
for xml path ('')
),1,1,'+'),
-- dossier lie par instruction commune
stuff(
(Select ('+' + FORMAT(dosLieCommun.DATE_ENREGISTREMENT, 'dd/MM/yyyy'))
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
order by dosLieCommun.NUMERO_DOSSIER desc
for xml path ('')
),1,1,'+')
) as 'COL_DATE_1',
tord.LIBELLE as 'COL_TEXTE_3',
pie.DATE_CREATION as 'COL_DATE_2'
FROM (
SELECT MAX(diff) as diff, PIE_ID
FROM icdpi_delai_jug
GROUP BY PIE_ID) t1
INNER JOIN PIECE pie on pie.PIE_ID = t1.PIE_ID
INNER JOIN DOSSIER dos on dos.DOS_ID = pie.DOS_ID
INNER JOIN STRUCTURE str on str.STR_ID = dos.STR_ID
INNER JOIN ORDONNANCE ord on ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tord on tord.TOR_ID = ord.TOR_ID
<file_sep>-- ==============
-- Repartition type de requete pour ordonnance TORR5
-- ==============
select tor.TOR_ID, tyr.TYR_ID, tyr.TYR_CD, count(tyr.TYR_ID) as NB_REQ
from ORDONNANCE ord
inner join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
inner join PIECE pie on pie.PIE_ID = ord.PIE_ID
inner join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
inner join ORD_REQ or_req on or_req.ORD_ID = ord.ORD_ID
inner join REQUETE req on req.REQ_ID = or_req.REQ_ID
inner join TYPE_REQUETE tyr on tyr.TYR_ID = req.TYR_ID
where (ord.QPC_REGLEE_AVEC_AFFAIRE_PR is null or ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 0)
AND dos.TDO_CD = 'APPEL' AND dos.STA_CD <> 'SUPPR'
AND tor.tor_cd in ('TORR5')
AND ord.TYPE_CREATEUR = 'DN'
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '30/06/2016'
GROUP BY tyr.TYR_ID, tyr.TYR_CD, tor.TOR_ID
-- ============
-- Repartition type de requete pour ordonnance TORR5
-- ============
select tyr.LIBELLE as CHAMP_STAT, count(tyr.LIBELLE) as NOMBRE from ORDONNANCE ord
inner join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
inner join PIECE pie on pie.PIE_ID = ord.PIE_ID
inner join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
inner join ORD_REQ or_req on or_req.ORD_ID = ord.ORD_ID
inner join REQUETE req on req.REQ_ID = or_req.REQ_ID
inner join TYPE_REQUETE tyr on tyr.TYR_ID = req.TYR_ID
where (ord.QPC_REGLEE_AVEC_AFFAIRE_PR is null or ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 0)
AND dos.TDO_CD = 'APPEL' AND dos.STA_CD <> 'SUPPR' AND tor.tor_cd = 'TORR5' AND ord.TYPE_CREATEUR = 'DN'
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '30/06/2016'
GROUP BY tyr.LIBELLE
<file_sep>with dos_cdpi as (
Select dos.numero_dossier as 'N°Dossier',
dos.date_transfert as 'Date de transfert',
dos.date_enregistrement as 'Date d''enregistrement',
CASE WHEN sta_cd in ('TRANS') AND str_id_initiale is not null
<%if (dtoCritere.getDateDebut() != null ){ %>
AND dos.date_enregistrement >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<% if (dtoCritere.getDateFin() != null ){ %>
AND dos.date_enregistrement <= #DTO_CRITERE.DATE_FIN#
<% } %>
THEN dos.str_id_initiale
--copie d'un dossier transféré et la date d'enregistrement est dans la période d'analyse donc il compte 1 pour la chambre
WHEN sta_cd in ('TRANS') AND str_id_initiale is null THEN str_id
WHEN sta_cd not in ('TRANS') THEN isnull(dos.str_id,dos.str_id_initiale)
END as struId
FROM dossier dos
WHERE dos.sta_cd not in('SUPPR')
<%if (dtoCritere.getDateDebut() != null ){ %>
AND (isnull(dos.DATE_TRANSFERT, dos.DATE_ENREGISTREMENT)) >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null ){ %>
AND (isnull(dos.DATE_TRANSFERT, dos.DATE_ENREGISTREMENT)) <= #DTO_CRITERE.DATE_FIN#
<% } %>
)
Select dosCdpi.[N°Dossier] as 'COL_TEXTE_1', str.LIBELLE_COURT as 'COL_TEXTE_2', dosCdpi.[Date d'enregistrement] as 'COL_DATE_1', dosCdpi.[Date de transfert] as 'COL_DATE_2'
FROM dos_cdpi dosCdpi
INNER JOIN STRUCTURE str on str.STR_ID = dosCdpi.struId
WHERE str.type_structure<>'CDN' or str.type_structure is null
<file_sep>/*-- Element : document.createElement(elementHtml) --*/
var element = document.createElement('li');
/*-- TextNode : document.createTextNode('texte node') --*/
document.createTextNode('mon texte');
/*-- APPENDCHILD --*/
<element>< texteNode /></element>
var element = document.createElement('button')
var textNode = document.createTexteNode('supprimer');
element.appendChild(textNode);
/*-- REMOVECHILD --*/
// retire un element par son id
var element = document.getElementById("id_element_a_supprimer");
element.parentNode.removeChild(element);
// retire tous les enfants d'un élément
var element = document.getElementById("haut");
while (element.firstChild) {
element.removeChild(element.firstChild);
}
<file_sep>With icdn_delai_jug_col as (
SELECT ord.TOR_ID,
ord.ORD_ID,
ord.STR_ID,
pie.DOS_ID,
req.REQ_ID,
typReq.TYR_CD,
ord.QPC_REGLEE_AVEC_AFFAIRE_PR,
pie.DATE_CREATION as dateAffichageDecision, --date d'affichage d'une ord/dec
req.DATE_ENREGISTREMENT as dateEnregistrementRequete, -- date enregistrement requete
DATEDIFF(dd, req.DATE_ENREGISTREMENT, pie.DATE_CREATION)+1 as diff,
case when ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 1
then pie2.PIE_ID
else pie.PIE_ID
end as PIE_ID, dos.NUMERO_DOSSIER,
tor.tor_CD as type_ordonnance
FROM ORDONNANCE ord
join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
join PIECE pie on pie.PIE_ID = ord.PIE_ID
join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
-- requete
join ORD_REQ ordReq on ordReq.ORD_ID = ord.ORD_ID
join REQUETE req on req.REQ_ID = ordReq.REQ_ID
join TYPE_REQUETE typReq on typReq.TYR_ID = req.TYR_ID
-- QPC
LEFT JOIN DOSSIER dos2 on dos2.dos_id = dos.DOS_ID_FOND_QPC
LEFT JOIN PIECE pie2 on pie2.DOS_ID = dos2.DOS_ID
WHERE
tor.TOR_CD IN ('DECIS')
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR is null or ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 0)
AND dos.TDO_CD = 'APPEL' -- dossier CDN
AND dos.STA_CD <> 'SUPPR'
AND ord.TYPE_CREATEUR = 'DN' -- ordonnance pris par la CDN
-- and dos.dos_id=118855
-- ORDER BY ORD_ID, DOS_ID, REQ_ID DESC
)
SELECT case
when AVG(diff) is null
then 0
else AVG(diff) end
FROM (
SELECT MAX(diff) as diff, ORD_ID
from icdn_delai_jug_col
group by ORD_ID) delais
<file_sep>-- ================================================== -
-- SUB REQUEST
-- ================================================== -
select ord.ord_id, acd.DOS_ID, dos.NUMERO_DOSSIER,
case
when acd.TPE_CD in('PHYSI') and civ.LIBELLE_COURT in ('Dr','Pr') and qua.QUA_CD = 'POURS'
then 'Medecin poursuivi**'
when acd.TPE_CD in('PHYSI') and civ.LIBELLE_COURT in ('Dr','Pr') and qua.QUA_CD = 'PLAIN'
then 'Medecin plaignant**'
when acd.TPE_CD in('PHYSI') and civ.LIBELLE_COURT not in ('Dr','Pr')
then 'Personne physique non médecin'
when acd.TPE_CD in('MORAL') and tac.TAC_CD in ('TCNOM','TRPCD','MINIS','PREFE','TRARS','PROCU','AUTLO')
then tac.LIBELLE
when acd.TPE_CD in('MORAL') and tac.TAC_CD in ('ASSOC','SYNDI')
then 'Syndicat et associations de médecins'
when acd.TPE_CD in('MORAL') and tac.TAC_CD in ('CPAMA','MEDCO')
then 'Organisme de sécurité sociale'
when acd.TPE_CD in('MORAL') and tac.TAC_CD not in ('TCNOM','TRPCD','MINIS','PREFE','TRARS','PROCU','AUTLO','ASSOC','SYNDI','CPAMA','MEDCO')
then 'Personne morale (sauf autorités)'
ELSE 'autre'
end as type_plaignant
from ORDONNANCE ord
inner join ORD_REQ ordReq on ordReq.ORD_ID = ord.ORD_ID
inner join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
inner join PIECE pie on pie.PIE_ID = ord.PIE_ID
inner join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
inner join REQUERANT reqr on reqr.REQ_ID = ordReq.REQ_ID
inner join ACTEUR_DOSSIER acd on acd.ACD_ID = reqr.ACD_ID
left outer join CIVILITE civ on acd.CIV_ID = civ.CIV_ID
left outer join TYPE_ACTEUR tac on acd.TAC_ID = tac.TAC_ID
inner join QUALITE_ACTEUR qua on qua.QUA_ID = acd.QUA_ID
where (ord.QPC_REGLEE_AVEC_AFFAIRE_PR is null or ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 0)
AND dos.TDO_CD = 'APPEL' AND dos.STA_CD <> 'SUPPR' AND tor.tor_cd = 'TORR5' AND ord.TYPE_CREATEUR = 'DN'
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '31/12/2016'
-- ================================================== -
-- REQUETE COMPLETE
-- ================================================== -
with tmp as (
select ord.ord_id, acd.DOS_ID, case
when acd.TPE_CD in('PHYSI') and civ.LIBELLE_COURT in ('Dr','Pr') and qua.QUA_CD = 'POURS'
then 'Medecin poursuivi**'
when acd.TPE_CD in('PHYSI') and civ.LIBELLE_COURT in ('Dr','Pr') and qua.QUA_CD = 'PLAIN'
then 'Medecin plaignant**'
when acd.TPE_CD in('PHYSI') and civ.LIBELLE_COURT not in ('Dr','Pr')
then 'Personne physique non médecin'
when acd.TPE_CD in('MORAL') and tac.TAC_CD in ('TCNOM','TRPCD','MINIS','PREFE','TRARS','PROCU','AUTLO')
then tac.LIBELLE
when acd.TPE_CD in('MORAL') and tac.TAC_CD in ('ASSOC','SYNDI')
then 'Syndicat et associations de médecins'
when acd.TPE_CD in('MORAL') and tac.TAC_CD in ('CPAMA','MEDCO')
then 'Organisme de sécurité sociale'
when acd.TPE_CD in('MORAL') and tac.TAC_CD not in ('TCNOM','TRPCD','MINIS','PREFE','TRARS','PROCU','AUTLO','ASSOC','SYNDI','CPAMA','MEDCO')
then 'Personne morale (sauf autorités)'
ELSE 'autre'
end as type_plaignant
from ORDONNANCE ord
inner join ORD_REQ ordReq on ordReq.ORD_ID = ord.ORD_ID
inner join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
inner join PIECE pie on pie.PIE_ID = ord.PIE_ID
inner join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
inner join REQUERANT reqr on reqr.REQ_ID = ordReq.REQ_ID
inner join ACTEUR_DOSSIER acd on acd.ACD_ID = reqr.ACD_ID
left outer join CIVILITE civ on acd.CIV_ID = civ.CIV_ID
left outer join TYPE_ACTEUR tac on acd.TAC_ID = tac.TAC_ID
inner join QUALITE_ACTEUR qua on qua.QUA_ID = acd.QUA_ID
where (ord.QPC_REGLEE_AVEC_AFFAIRE_PR is null or ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 0)
AND dos.TDO_CD = 'APPEL' AND dos.STA_CD <> 'SUPPR' AND tor.tor_cd = 'TORR5' AND ord.TYPE_CREATEUR = 'DN'
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '31/12/2016'
)
select CHAMP_STAT ,count(*) as NOMBRE from (
select distinct ord_id,stuff((select distinct ('+' + type_plaignant)
from tmp ac1
where ac1.ord_id = ac2.ORD_ID
for xml path ('')),1,1,'') as CHAMP_STAT
from tmp ac2
) as Y
group by CHAMP_STAT
<file_sep>--
-- Nombre d'ordonnance prise par les CDPI
--
SELECT dos.NUMERO_DOSSIER as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
tor.LIBELLE as 'COL_TEXTE_3',
pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
AND tor.TOR_CD IN ('TORR9',
'TORR5',
'RECER')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
<%if (dtoCritere.getDateDebut() != null ){ %>
AND pie.DATE_CREATION >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null){ %>
AND pie.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<%}%>
--
-- Nombre d'ordonnance prise par les CDPI
--
SELECT dos.NUMERO_DOSSIER as 'COL_TEXTE_1',
str.LIBELLE_COURT as 'COL_TEXTE_2',
tor.LIBELLE as 'COL_TEXTE_3',
pie.DATE_CREATION as 'COL_DATE_1'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN TYPE_REQUETE tyr ON dos.tyr_id = tyr.tyr_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
AND tor.TOR_CD IN ('TORR9',
'TORR5',
'RECER')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND pie.DATE_CREATION >= '01/02/2014'
AND pie.DATE_CREATION <= '01/06/2014'
--
-- Nombre d'ordonnance prise par les CDPI
--
SELECT dos.NUMERO_DOSSIER as 'N°Dossier',
str.LIBELLE_COURT as 'Chambre',
tor.LIBELLE as 'Type d''ordonnance',
pie.DATE_CREATION as 'Date d''affichage'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN DOSSIER dos ON pie.dos_id = dos.dos_id
INNER JOIN TYPE_REQUETE tyr ON dos.tyr_id = tyr.tyr_id
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
AND tor.TOR_CD IN ('TORR9',
'TORR5',
'RECER')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false' OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND pie.DATE_CREATION >= '01/02/2014'
AND pie.DATE_CREATION <= '01/06/2014'
<file_sep>/**
* Créer une anomalie
* traitementAlerteAppareilValeurAbsenteH21(idPartie, listeLignesH21, 38);
* ==> SupprimerLignePersoTableauH1industrie2016action
*/
private void traitementAlerteAppareilValeurAbsenteH21(int idPartie, List listLignes, Integer indexIdMesureLignePerso) {
for(int i=0; i< listLignes.size(); i++){
ArrayList variable = (ArrayList) listLignes.get(i);
String idMesureLignePerso = (String) variable.get(indexIdMesureLignePerso);
Mesureligneperso mlp = mesurelignepersoDAO.getMesureLignePerso(Integer.parseInt(idMesureLignePerso), "appareilsids");
if (mlp != null && StringUtils.isEmpty(mlp.getValeurtextemoyen())) {
System.out.println("Créer alerte.");
// recuperation du tableau H21
Tableau tableauH21 = tableauDAO.getTableauPartie("H21", idPartie);
as.saveAnomalies(tableauH21, "Message appareil absent", 0, Settings.ANOMALIE_VALEUR_ABSENTE, -1, "appareil");
}
}
}
// récupérer les anomalies
// ==> AfficherTableauH2industrie2016action
List<Anomalie> anomaliesH21 = new ArrayList<Anomalie>();
List<Anomalie> anomaliesH21Carriere = (ArrayList<Anomalie>) ais.getAnomaliesCarriereAffichage("H21", tableauH21.getIdtableau());
List<Anomalie> anomaliesOthers = ais.getAnomalies("H21", getIdDeclaration());
anomaliesH21.addAll(anomaliesH21Carriere);
anomaliesH21.addAll(anomaliesOthers);
// Voir la différence entre
as.saveAnomalies(tableauH1, messageAnomalie, 0, Settings.ANOMALIE_VALEUR_ABSENTE, -1, "appareil");
==> Fonctionne
==> Méthode générique : sauvegarede sur Tableau
as.saveAnomalieH1(tableauH1.getIdtableau(), "H1", messageAnomalie, Settings.ANOMALIE_VALEUR_ABSENTE, "appareil");
==> Ne fonctionne pas
<file_sep> select count(distinct s.iddeclaration) from tableau t
join section s on s.idsection = t.idsection
join declaration d on s.iddeclaration = d.iddeclaration
where not exists ( select mc.* from Mesurechamp as mc where mc.idtableau = t.idtableau)
and t.codelettre='H1'
and d.annee = 2015;
--------------------------
select s.iddeclaration, d.idgerep as idGerep, e.idgidic from tableau t
join section s on s.idsection = t.idsection
join declaration d on s.iddeclaration = d.iddeclaration
join exploitant e on e.idgerep = d.idgerep
where not exists ( select mc.* from Mesurechamp as mc where mc.idtableau = t.idtableau)
and t.codelettre='H1'
and d.annee = 2015;
---------------------------
-- SQL Complete
-- Remonte la liste des gens qui ont un tableau H1 et pas de données dans MesureChamp
---------------------------
SELECT s.iddeclaration AS declaration,
e.idgidic AS idgidic,
e.etablissement AS etablissement,
c.nomcommune AS commune,
d1.nomdep AS departement
FROM tableau t
JOIN section s ON s.idsection = t.idsection
JOIN declaration d ON s.iddeclaration = d.iddeclaration
JOIN exploitant e ON e.idgerep = d.idgerep
JOIN commune c ON c.codeinsee = e.commune
JOIN departement d1 ON d1.codedep = c.codedep
WHERE NOT EXISTS
(SELECT mc.*
FROM Mesurechamp AS mc
WHERE mc.idtableau = t.idtableau)
AND t.codelettre = 'H1'
AND d.annee = 2015;
<file_sep>--
-- integration des certificats
--
set serveroutput on;
DECLARE
BEGIN
DBMS_OUTPUT.ENABLE( 1000000 ) ;
INTEG_DECES_CERTIFICAT.traite_deces_certificat(sysdate, null);
DBMS_OUTPUT.PUT_LINE('TEST OK');
END;
--
-- traitement des doublons
--
set serveroutput on;
DECLARE
BEGIN
DBMS_OUTPUT.ENABLE( 1000000 ) ;
INTEG_DECES_CERTIFICAT.traiteDoublonsCertificat();
DBMS_OUTPUT.PUT_LINE('TEST OK');
END;
--
-- Execute la procedure d'extraction.
--
SET SERVEROUTPUT ON;
DECLARE
v_Return type_ref.ref_cursor;
BEGIN
DBMS_OUTPUT.ENABLE( 1000000 ) ;
v_Return := TRAITER_EXTRACTION('CEDC','01/01/2009','10/04/2017',null,null,null,null,null,null,null,6,'PAYSFRA',1,1,null,'TOUS_CEDC',null,null,null,null,'0');
-- DBMS_OUTPUT.PUT_LINE('v_Return = ' || v_Return);
--:v_Return := v_Return; --<-- Cursor
--rollback;
END;
-- ===================== --
-- suppression CERTIFICAT
-- =====================
set serveroutput on;
DECLARE
BEGIN
DBMS_OUTPUT.ENABLE( 1000000 ) ;
INTEG_DECES_CERTIFICAT.deleteCertificats(to_date('2009/01/01', 'yyyy/mm/dd'), to_date('2009/06/01', 'yyyy/mm/dd'));
DBMS_OUTPUT.PUT_LINE('TEST suppression OK');
END;
<file_sep># Principe
##
- Affiche une popin de confirmation avant suppression par exemple
# Mise en place
##
# Ajout des fichiers
0- créer la directive : /module/button-rc.js
1- ajouter le fichier de script dans le fichier : index.html
<script src="js/module/button-rc.js"></script>
2- modifier le fichier app.js
Ajouter le module en chargement : 'auroraApp.button-rc'
<file_sep>--
-- Recuperation des dossiers ayant des REQ9 et REQ10 avec le nombre de requete de ce type et le nombre d'ordonnance associé
--
select
dos.dos_id,
dos.numero_dossier,
(
select count(req.req_id)
from requete req
inner join type_requete tyr on tyr.tyr_id =req.tyr_id
where tyr.TYR_CD in ('REQ9', 'REQ10')
AND req.dos_id = dos.DOS_ID
) as nbRequete,
(
select count(ORD_iD)
from (
SELECT ord.TOR_ID, ord.ORD_ID, ord.TYPE_CREATEUR, pie.DATE_CREATION
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
WHERE pie.DOS_ID = dos.DOS_ID
UNION ALL
SELECT ord.TOR_ID, ord.ORD_ID, ord.TYPE_CREATEUR, pie.DATE_CREATION
FROM ORD_DOS_LIE odl
INNER JOIN ORDONNANCE ord ON ord.ORD_ID = odl.ORD_ID
INNER JOIN PIECE pie ON pie.PIE_ID = ord.PIE_ID
WHERE odl.DOS_ID = dos.DOS_ID
) AS orp
INNER JOIN TYPE_ORDONNANCE tor ON tor.TOR_ID = orp.TOR_ID
WHERE
tor.TOR_CD IN ('TORR9', 'TORR10')
AND TYPE_CREATEUR in ('DN')
) as nbOrdonnance
from dossier dos
inner join TYPE_REQUETE tyr_dos on tyr_dos.TYR_ID=dos.TYR_ID
where dos.TDO_CD = 'APPEL'
AND dos.STA_CD not in('SUPPR')
AND tyr_dos.tyr_cd in ('REQ9', 'REQ10')
-------------------------------------------------------------------------------------------------
--
-- Un dossier R4126.9 / 10 est jugé si autant d'ordonnance que de requête associé.
--
select dos.dos_id, dos.numero_dossier
from dossier dos
inner join TYPE_REQUETE tyr_dos on tyr_dos.TYR_ID=dos.TYR_ID
where dos.TDO_CD = 'APPEL'
AND dos.STA_CD not in('SUPPR')
AND tyr_dos.tyr_cd in ('REQ9', 'REQ10')
AND (
select count(req.req_id)
from requete req
inner join type_requete tyr on tyr.tyr_id =req.tyr_id
where tyr.TYR_CD in ('REQ9', 'REQ10')
AND req.dos_id = dos.dos_id
) = (
(select count(ORD_iD)
from (
SELECT ord.TOR_ID, ord.ORD_ID, ord.TYPE_CREATEUR, pie.DATE_CREATION
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
WHERE pie.DOS_ID = dos.DOS_ID
UNION ALL
SELECT ord.TOR_ID, ord.ORD_ID, ord.TYPE_CREATEUR, pie.DATE_CREATION
FROM ORD_DOS_LIE odl
INNER JOIN ORDONNANCE ord ON ord.ORD_ID = odl.ORD_ID
INNER JOIN PIECE pie ON pie.PIE_ID = ord.PIE_ID
WHERE odl.DOS_ID = dos.DOS_ID
) AS orp
INNER JOIN TYPE_ORDONNANCE tor ON tor.TOR_ID = orp.TOR_ID
WHERE
tor.TOR_CD IN ('TORR9', 'TORR10')
AND TYPE_CREATEUR in ('DN')
)
)
<file_sep>Configuration Serveur :
Serveur utilisé pour utiliser API Rest :
- npm install : dépendance pour faire tourner le serveur
- node server.js pour lancer le serveur
<file_sep>--
-- Dossier jugé
--
with dos_reouverts as (
-- lister les dossiers réouverts
SELECT dos.dos_id,
dos.numero_dossier,
req.req_id,
pie.DATE_CREATION,
ord.ORD_ID
FROM dossier dos
INNER JOIN requete req ON req.dos_id = dos.dos_id
INNER JOIN type_requete tyr ON req.tyr_id= tyr.tyr_id
INNER JOIN ORD_REQ orr on orr.REQ_ID = req.REQ_ID
inner join ordonnance ord on ord.ORD_ID = orr.ORD_ID
inner join piece pie on pie.PIE_ID = ord.PIE_ID
WHERE dos.tdo_cd IN ( 'APPEL' )
AND tyr.TYR_CD in ('POURV')
AND EXISTS (
SELECT *
FROM requete req1
inner join ord_req orr1 ON orr1.req_id = req1.req_id
inner join ordonnance ord1 ON ord1.ord_id = orr1.ord_id
inner join type_ordonnance tor1 ON tor1.tor_id = ord1.tor_id
inner join decision_dispositif ddi1 ON ddi1.ord_id = ord1.ord_id
inner join dispositif dis1 ON dis1.dis_id = ddi1.dis_id
left join dispositif dis2 ON dis2.dis_id = ddi1.dis_id_liste_2
--detail decision dn lie
left join ordonnance ord_cdn ON ord_cdn.ord_id = req1.ord_id
left join (
SELECT *, CASE
WHEN uni_id_duree IS NULL THEN 0
WHEN uni_id_duree = 1 THEN duree
WHEN uni_id_duree = 2 THEN duree * 30.44
WHEN uni_id_duree = 3 THEN duree * 365.25
END AS DUREE_JOUR,
CASE
WHEN uni_id_sursis IS NULL THEN 0
WHEN uni_id_sursis = 1 THEN sursis
WHEN uni_id_sursis = 2 THEN sursis * 30.44
WHEN uni_id_sursis = 3 THEN sursis * 365.25
END AS DUREE_JOUR_SURSIS
FROM decision_dispositif) AS ddi_cdn ON ddi_cdn.ord_id = ord_cdn.ord_id
left join dispositif dis1_cdn ON dis1_cdn.dis_id = ddi_cdn.dis_id
left join dispositif dis2_cdn ON dis2_cdn.dis_id = ddi_cdn.dis_id_liste_2
WHERE req1.dos_id = dos.dos_id AND req1.req_id=req.req_id AND ord1.ORD_ID=ord.ord_id
AND ord1.type_createur IN ( 'CE' )
AND ( dis1.dis_cd in ('ANREN') OR ( dis1.dis_cd in ('REJRE','NONAD') AND (dis2_cdn.DIS_CD in ('RADIA') OR (dis2_cdn.DIS_CD in ('INTER')
AND ddi_cdn.DUREE_JOUR > ddi_cdn.DUREE_JOUR_SURSIS ) )AND req1.EFFET_SUSPENSIF=1)
))
)
select * from (
select dos.dos_id, dos.numero_dossier
from dossier dos
where dos.TDO_CD = 'APPEL'
AND dos.STA_CD not in('SUPPR')
--AND pour chque dossier on verifie s'il existe un nbr de requetes \{'RECER','POURV','CREDH'} jugées = au nombre de requêtes \{'RECER','POURV','CREDH'} du dossier
AND exists (
select SUM(nb_requete) as nb_requete, dossier_id
from(
--
-- Recuperation du nombre de requetes Not In ('RECER','POURV','CREDH')
-- Verifier que les requetess ont bien une décision ou une ordonnance valant décision.
-- Check si une décision est prise sur la requete :
-- => consiste à vérifier la presence d'une ordonnance sur la requete : tor.TOR_CD in ('TORR5','TORR9','TOR10','DECIS')
--
select count(distinct(req2.req_id)) as nb_requete, req2.dos_id as dossier_id from REQUETE req2
inner join DOSSIER dos2 on dos2.DOS_ID = req2.DOS_ID
inner join type_requete tyr_req on tyr_req.TYR_ID = req2.TYR_ID
where tyr_req.TYR_CD not in ('RECER','POURV','CREDH')
AND req2.DOS_ID = dos.DOS_ID
AND exists (
select top 1 * from PIECE pie
inner join ORDONNANCE ord on pie.PIE_ID = ord.PIE_ID
inner join ORD_REQ orr on orr.ORD_ID = ord.ORD_ID
inner join REQUETE req3 on req3.REQ_ID = orr.REQ_ID
inner join TYPE_ORDONNANCE tor on tor.TOR_ID = ord.TOR_ID
where req3.req_id = req2.req_id
and tor.TOR_CD in ('TORR5','TORR9','TOR10','DECIS')
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '30/06/2016'
)
group by req2.dos_id
union
--
-- Recuperation du nombre de requete pour le type 'RECER' : Rectification d'erreur Materielle
--
select count(distinct(req2.req_id)) as nb_requete, req2.dos_id as dossier_id from REQUETE req2
inner join DOSSIER dos2 on dos2.DOS_ID = req2.DOS_ID
inner join type_requete tyr_req on tyr_req.TYR_ID = req2.TYR_ID
where tyr_req.TYR_CD in ('RECER')
AND req2.DOS_ID = dos.DOS_ID
AND exists (
select top 1 * from PIECE pie
inner join ORDONNANCE ord on pie.PIE_ID = ord.PIE_ID
inner join ORD_REQ orr on orr.ORD_ID = ord.ORD_ID
inner join REQUETE req3 on req3.REQ_ID = orr.REQ_ID
inner join TYPE_ORDONNANCE tor on tor.TOR_ID = ord.TOR_ID
where req3.req_id = req2.req_id
and tor.TOR_CD in ('TORR5','TORR9','TOR10','DECIS')
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '30/06/2016'
)
group by req2.dos_id
) tmp
group by tmp.dossier_id
having SUM(tmp.nb_requete) = (
--
-- Check que le nombre de requête avec decision sur le dossier
-- est le meme que le nombre total de requete sur le dossier
--
select count(*) from REQUETE req2
inner join DOSSIER dos2 on dos2.DOS_ID = req2.DOS_ID
inner join type_requete tyr_req on tyr_req.TYR_ID = req2.TYR_ID
where (tyr_req.TYR_CD not in ('RECER','POURV','CREDH') or tyr_req.TYR_CD in ('RECER'))
AND req2.DOS_ID = dos.DOS_ID
)
)
UNION ALL
--
-- Dossier Réouvert :
-- Requete de type 'Pourvoi' avec une décision de renvoi : il existe une decision/ordonnance (<>RECER)
-- dont la date d'affichage est postérieure à la date d'affichage de la décision du conseil d'Etat.
--
select dos_reo.dos_id, dos_reo.numero_dossier
from dos_reouverts dos_reo
where exists (
select * from ordonnance ord_cdn
inner join PIECE pie_cdn on pie_cdn.PIE_ID = ord_cdn.PIE_ID
inner join DOSSIER dos on dos.DOS_ID = pie_cdn.DOS_ID
where dos.DOS_ID=dos_reo.DOS_ID
AND ord_cdn.type_createur in ('DN')
AND pie_cdn.date_creation> dos_reo.DATE_CREATION
AND pie_cdn.DATE_CREATION >= '01/01/2016'
AND pie_cdn.DATE_CREATION <= '30/06/2016'
)
) as NB_CDN_DOS_JUG;
<file_sep>-- =======================
-- NUMERO DE DOSSIER et ordonnance associé.
-- =======================
select dos.NUMERO_DOSSIER, tor.LIBELLE as NB
from ORDONNANCE ord
inner join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
inner join PIECE pie on pie.PIE_ID = ord.PIE_ID
inner join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
where dos.TDO_CD = 'APPEL' AND dos.STA_CD <> 'SUPPR'
AND tor.tor_cd in ('TOR10','TORR9','TORR5','RECER')
AND ord.TYPE_CREATEUR = 'DN'
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '30/06/2016';
-- =======================
-- NUMERO DE DOSSIER et requetes associé
-- cdn ==> tdo_cd='appel'
-- cdpi ==> tdo_cd='cdpi'
-- =======================
SELECT dos.NUMERO_DOSSIER, req.REQ_ID, tyr.TYR_CD, req.DATE_ENREGISTREMENT
FROM DOSSIER dos
left join REQUETE req on req.DOS_ID = dos.DOS_ID
left join TYPE_REQUETE tyr on tyr.TYR_ID = req.TYR_ID
where dos.TDO_CD = 'APPEL' AND dos.STA_CD <> 'SUPPR'
and req.DATE_ENREGISTREMENT >= '01/01/2016'
and req.DATE_ENREGISTREMENT <= '30/06/2016'
order by dos.NUMERO_DOSSIER DESC
-- ===================================================
-- NUMERO DE DOSSIER / ORDONNANCE ET REQUETE ASSOCIEE
-- ===================================================
select tor.TOR_ID, dos.NUMERO_DOSSIER, ord.ORD_ID, tor.LIBELLE, tyr.LIBELLE
from ORDONNANCE ord
inner join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
inner join PIECE pie on pie.PIE_ID = ord.PIE_ID
inner join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
inner join TYPE_REQUETE tyr on tyr.TYR_ID = ord.TYR_ID
where dos.TDO_CD = 'APPEL' AND dos.STA_CD <> 'SUPPR'
AND tor.tor_cd in ('TOR10','TORR9','TORR5','RECER')
AND ord.TYPE_CREATEUR = 'DN'
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '30/06/2016'
GROUP BY tor.TOR_ID, dos.NUMERO_DOSSIER, ord.ORD_ID, tor.LIBELLE, tyr.LIBELLE;
-- ===================================================
-- NUMERO DE DOSSIER / ORDONNANCE ET REQUETE ASSOCIEE
-- ===================================================
select tor.TOR_ID, tyr.TYR_ID, count(tyr.TYR_ID)
from ORDONNANCE ord
inner join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
inner join PIECE pie on pie.PIE_ID = ord.PIE_ID
inner join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
inner join TYPE_REQUETE tyr on tyr.TYR_ID = ord.TYR_ID
where dos.TDO_CD = 'APPEL' AND dos.STA_CD <> 'SUPPR'
AND tor.tor_cd in ('TOR10','TORR9','TORR5','RECER')
AND ord.TYPE_CREATEUR = 'DN'
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '30/06/2016'
GROUP BY tor.TOR_ID, tyr.TYR_ID;
----------------------------------
with temp as (
select tor.TOR_ID, tyr.TYR_ID, tyr.TYR_CD, count(tyr.TYR_ID) as NB_REQ
from ORDONNANCE ord
inner join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
inner join PIECE pie on pie.PIE_ID = ord.PIE_ID
inner join TYPE_REQUETE tyr on tyr.TYR_ID = ord.TYR_ID
inner join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
where (ord.QPC_REGLEE_AVEC_AFFAIRE_PR is null or ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 0)
AND dos.TDO_CD = 'APPEL' AND dos.STA_CD <> 'SUPPR'
AND tor.tor_cd in ('TOR10','TORR9','TORR5','RECER')
AND ord.TYPE_CREATEUR = 'DN'
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '30/06/2016'
GROUP BY tyr.TYR_ID, tyr.TYR_CD, tor.TOR_ID
)
select case when tor.TOR_CD = 'RECER' then 'R. 741-11' else tor.LIBELLE end as TYPE_ORD, tyr.LIBELLE as TYPE_REQ, temp3.NB_REQ, NB_TYPE_ORD.NB_ORD
from temp temp3
inner join TYPE_REQUETE tyr on tyr.TYR_ID = temp3.TYR_ID
inner join TYPE_ORDONNANCE tor on tor.TOR_ID = temp3.TOR_ID
inner join (select temp3.TOR_ID, SUM(temp3.NB_REQ) as NB_ORD
from temp temp3
group by (temp3.TOR_ID)) as NB_TYPE_ORD on NB_TYPE_ORD.TOR_ID = temp3.TOR_ID
ORDER BY TYPE_ORD DESC
<file_sep>select mor.LIBELLE, count(*)
FROM ORDONNANCE ord
inner join TYPE_ORDONNANCE tor on tor.TOR_ID = ord.TOR_ID
inner join MOTIF_ORDONNANCE mor on mor.MOR_ID = ord.MOR_ID
WHERE tor.TOR_CD = 'TORR9'
GROUP BY mor.libelle
Select mor.LIBELLE as CHAMP_STAT, count(mor.LIBELLE) as NOMBRE
from ORDONNANCE ord
inner join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
inner join PIECE pie on pie.PIE_ID = ord.PIE_ID
inner join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
inner join MOTIF_ORDONNANCE mor on mor.MOR_ID = ord.MOR_ID
where (ord.QPC_REGLEE_AVEC_AFFAIRE_PR is null or ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 0)
AND dos.TDO_CD = 'APPEL' AND dos.STA_CD <> 'SUPPR' AND tor.tor_cd = 'TORR9' AND ord.TYPE_CREATEUR = 'DN'
AND pie.DATE_CREATION >= '01/01/2016'
AND pie.DATE_CREATION <= '30/06/2016'
GROUP BY mor.LIBELLE
<file_sep>--
-- Selectionne le nombre de requete par Dossier Id ayant un decision ok.
-- Check que le nombre de requete check le nombre de requête par Dossier.
-- ==> Permet de checker qu'une requête a bien une décision.
--
select SUM(nb_requete) as nb_requete, dossier_id
from(
-- dossier non RECER / POURV / CREDH
-- dont type_ordonnance : 'TORR5','TORR9','TOR10','DECIS'
select count(req2.req_id) as nb_requete, req2.dos_id as dossier_id
from REQUETE req2
inner join DOSSIER dos2 on dos2.DOS_ID = req2.DOS_ID
inner join type_requete tyr_req on tyr_req.TYR_ID = req2.TYR_ID
where tyr_req.TYR_CD not in ('RECER','POURV','CREDH')
AND req2.DOS_ID = 119904
AND exists (
-- requetes du dossier ont bien une decision
--
select top 1 *
from PIECE pie
inner join ORDONNANCE ord on pie.PIE_ID = ord.PIE_ID
inner join ORD_REQ orr on orr.ORD_ID = ord.ORD_ID
inner join REQUETE req2 on req2.REQ_ID = orr.REQ_ID
inner join TYPE_ORDONNANCE tor on tor.TOR_ID = ord.TOR_ID
where req2.dos_id = 119904
and tor.TOR_CD in ('TORR5','TORR9','TOR10','DECIS')
--and pie.DATE_CREATION >= '01/01/2016'
--and pie.DATE_CREATION <= '12/31/2016'
)
group by req2.dos_id
union
-- dossier dont type_requete : RECER
-- dont type_ordonnance : 'TORR5','TORR9','TOR10','DECIS'
select count(req2.req_id) as nb_requete, req2.dos_id as dossier_id
from REQUETE req2
inner join DOSSIER dos2 on dos2.DOS_ID = req2.DOS_ID
inner join type_requete tyr_req on tyr_req.TYR_ID = req2.TYR_ID
where tyr_req.TYR_CD in ('RECER')
AND req2.DOS_ID = 122957
AND exists (
select top 1 * from PIECE pie
inner join ORDONNANCE ord on pie.PIE_ID = ord.PIE_ID
inner join ORD_REQ orr on orr.ORD_ID = ord.ORD_ID
inner join REQUETE req2 on req2.REQ_ID = orr.REQ_ID
inner join TYPE_ORDONNANCE tor on tor.TOR_ID = ord.TOR_ID
where req2.dos_id = 122957
and tor.TOR_CD in ('TORR5','TORR9','TOR10','DECIS')
--and pie.DATE_CREATION >= '01/01/2016'
--and pie.DATE_CREATION <= '12/31/2016'
)
group by req2.dos_id
) tmp
group by tmp.dossier_id
having SUM(tmp.nb_requete) = (
select count(*) from REQUETE req2
inner join DOSSIER dos2 on dos2.DOS_ID = req2.DOS_ID
inner join type_requete tyr_req on tyr_req.TYR_ID = req2.TYR_ID
where (tyr_req.TYR_CD not in ('RECER','POURV','CREDH') or tyr_req.TYR_CD in ('RECER'))
AND req2.DOS_ID = 122957
)
<file_sep> $(idModal).on('loaded.bs.modal', function (e) {
// do something...
console.log('modal loaded');
});
$(idModal).on('loaded', function (e) {
// do something...
console.log('loaded');
});
$(idModal).on('shown.bs.modal', function (e) {
console.log('shown modal');
/*
setTimeout(function(){
$('[data-toggle=confirmation]').confirmation({
rootSelector: '[data-toggle=confirmation]',
container: 'body'
});
}, 200);
*/
});
<file_sep>/*
* GESTION CONNEXION dans le code.
*/
try {
connection = PoolManager.getInstance().getConnection();
...
connection.commit();
} finally {
PoolManager.getInstance().releaseConnection(connection);
}
<file_sep> --
-- Nombre d'audiences enregistrées par les CDPI
--
SELECT aud.DATE as 'COL_DATE_1', str.LIBELLE_COURT as 'COL_TEXTE_1'
FROM AUDIENCE aud
INNER JOIN STRUCTURE str ON str.STR_ID = aud.STR_ID
AND str.TYPE_STRUCTURE IS NULL
INNER JOIN MISE_AU_ROLE mro ON aud.AUD_ID = mro.aud_id
INNER JOIN Dossier dos ON dos.dos_id = mro.dos_id
WHERE
SI_REPORT=0
<%if (dtoCritere.getDateDebut() != null ){ %>
AND aud.DATE >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null){ %>
AND aud.DATE <= #DTO_CRITERE.DATE_FIN#
<%}%>
<file_sep>/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.security.pwd;
import com.liferay.portal.PwdEncryptorException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.Base64;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.PropsKeys;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.util.PropsUtil;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* @author <NAME>
*/
public class PwdAuthenticator {
public static boolean authenticate(
String login, String clearTextPassword,
String currentEncryptedPassword)
throws PwdEncryptorException, SystemException {
String encryptedPassword = PasswordEncryptorUtil.encrypt(
clearTextPassword, currentEncryptedPassword);
if (currentEncryptedPassword.equals(encryptedPassword)) {
return true;
}
else if (GetterUtil.getBoolean(
PropsUtil.get(PropsKeys.AUTH_MAC_ALLOW))) {
try {
MessageDigest digester = MessageDigest.getInstance(
PropsUtil.get(PropsKeys.AUTH_MAC_ALGORITHM));
digester.update(login.getBytes(StringPool.UTF8));
String shardKey = PropsUtil.get(PropsKeys.AUTH_MAC_SHARED_KEY);
encryptedPassword = Base64.encode(
digester.digest(shardKey.getBytes(StringPool.UTF8)));
if (currentEncryptedPassword.equals(encryptedPassword)) {
return true;
}
else {
return false;
}
}
catch (NoSuchAlgorithmException nsae) {
throw new SystemException(nsae);
}
catch (UnsupportedEncodingException uee) {
throw new SystemException(uee);
}
}
return false;
}
}
<file_sep># TODO
- doc installation application
- doc installation sgbd
# Exercice
- Créer un prix standard : prc Standard ==> ZTG
- Créer un prc Promo ==> ZTP
# Nomenclature
RMP: prix d'achat
PRC: prix de vente sous lequel le vendeur ne doit pas descendre
PV net : prix de vente brute moins le taux conditions client
PV brut : PV tarif : prix auquel je dois vendre au client pour atteindre le bénéfice commercial.
Bénéfice commercial:
- visibilité commercial
- marge réalisée par le commercial/vendeur par rapport au PRC
Marge:
- visibilité administrateur de vente (ADV)
- montant dégagé par rapport au RMP
# ENVIRONNEMENT
dev ==> int ==> rec ==> prod
# Tables SAS_IN alimentées par SAP/PO
Ce sont les tables préfixées: TBL_IN.
- job de planification:
-- SAS_IN_HEBDO : prix d'achats / RMP
-- SAS_IN_Quotidien : articles / clients
==> C quoi la différence entre HEBDO et QUOTIDIEN ?? Question
# Tables SAS_OUT
Ce sont les tables préfixées dbo.x.itf
- Tables préfixées par X => Presto
Les tables sont déclinées par nature de tarif
Table do
x_itf_xtf_do_ztce
==> stocke les donneurs d'ordres, periode, nature et reference vers la ligne tarifaire.
x_itf_xtf_ztce
==> stocker les lignes tarifaires rattaché aux clients
- Pour SAP, une seule table d'export => [TBL_OUT_TARIF_PRC_SAP]
# Tables alimentées à partir des tables SAS_IN
- clients: TBL_CLIENT
- articles: TBL_PRODUCT
- prix achats: TBL_PURCHASE_BENCHMARK
- TBL_LOCAL_PRODUCT: table de liens Produit / OC
- TBL_LOCAL_CLIENT : table de liens client / succursale === OC
- Tbl_PRODUCT_MEASURE_UNIT
==> unités de mesures
- numérateur :
- dénominateur :
Permet de convertir les prix d'achats et les prcs : prix d'achats aux colis au prix au kilos
Lignes tarifaires : unité de facturation
is_default_unite : unité de facturation ; quand création d'une ligne tarifaire on récupére l'unité de facturation par défaut
==> celle dont le boolean est à true dans cette table
is_base_unit :==> à quoi sa sert?
Prix d'achats et le prix de vente sont exprimés à l'unité de facturation.
TBL_PRICE_LIST : table des tarifs en-tête.
Un tarif a une date de fin qui fait foi pour toutes les lignes tarifaires.
TBL_PRODUCT_PRICE : table de liens articles (articles de la succursale source) [ID_PRICE, ID_LOCAL_PRODUCT]
Pour un tarif : tous les produits de la succursale associé au tarif
TBL_PRICE_REVISION : table des lignes tarifaires
id_Price_Revision: référence à la table Product_Price
Am_Purchase : rmp de référence (récupéré à partir de la table TBL_PURCHASE_BENCHMARK (SAS_IN))
Dt_Purchase_Retrive
TBL_COMMERCIAL_BENCHMARK: table des ZTG ; établissement des prix PRCs
Quand un utilisateur crée un tarif de nature ZTG, cela crée un prix de vente de base (PRC) rattaché à un produit, une oc et période.
Ce tarif sert de tarif PRC pour les tarifs des autres natures.
Quand on créé un tarif d'une autre nature, le tarif PRC est récupéré au niveau des tarifs de nature ZTG pour l'article, l'oc et la période.
PRCs Promos : à noter que les PRCs Promos sont également stockés dans cette table avec l'attribut 'isPromotion' renseigné.
La table commercial benchmark est alimenté quand on valide une ligne tarifaire ZTG.
# NOTE de création d'un tarif
Un tarif est composé d'une partie en-tête et est associé à :
- des succursales,
- des articles
- des clients
# TARIF
##
# Partie en-tête
Nature du tarif
Un tarif est définit pour une nature:
- ZTG
- ZTP (prix promos)
- ZTS (prix soumission (fonction publique))
Propriété du tarif
Un tarif a une date de fin qui fait foi pour toutes les lignes tarifaires.
Un tarif est définit pour une OC Source ; cela siginifie que les produits qui pourrant êtré définit au niveau du tarif sont
forcément/uniquement des produits référencés et disponible au niveau de l'oc source.
# Principe de création d'un tarif
- Créer la partie en-tête
- Définir la gamme
- importer ==> Aliment alors la table : TBL_PRODUCT_PRICE et TBL_PRICE_REVISION
# Création des lignes tarifaires
Une ligne tarifaire est associé à un prix d'achat : pas de lien, on récupère le prix d'achat
et sa période qui sont intégrés à la ligne tarifaire ==> pas de LIEN
Processus d'import
- import de gamme
- import par copier / coller écran à partir d'une feuille excel
- saisie de masse
- batch de nuit
Pour calculer, le prix de vente, je me base sur les prix d'achats en fonction de la nature : standard / promo
Tant que la ligne n'est pas validé, les différents prix d'achats varient en fonction des imports arrivant de SAP ;
les prix ne sont pas bloqués mais évoluent au cours du temps ; les prix définit pour une période.
# validation d'une ligne tarifaire
- A la validation de la ligne tarifaire, le prix d'achat devient le prix de référence.
- contrôle d'unicité qui se déclenche : même nature, même oc, même client et période différente pour que sa passe:
==> deux tarifs différents:
- même nature, même période, même produit et deux clients différnets ==> ca passe
- contrôle d'unicité à l'intérieur : lignes similaires pour le même Tarif.
- contrôle d'unicité à l'exterieur : lignes similaires pour d'autres Tarif (toujours de même Nature, même OC, même Periode)
- la ligne tarifaire est alors envoyé dans les tables SAS_OUT SAP et PRESTO.
-- table client et nature ==> ??
-- table ligne_tarifaire et nature ==> ??
==> Alimentation des tables SAS_OUT
Le soir, le batch tourne pour générer les xmls
- batch en mode standard
- batch en mode urgence
Envoit urgent via l'application ==> met le champs une croix dans le champ mode
==> dt_last_exctract_std / dt_last_extract_urg
Valiation de la ligne ==> met à jour les tables xdo_entete et x_nature ==> Toujours par nature de tarif
Dès que la ligne est validé ou modifier, le SAS_OUT est mise à jour (procédure PL/SQL à repréciser).
Planification des jobs SAS_OUT:
-- XML_Deblocage : job planifié tous les 5 minutes
-- XML_Standard : job planifié le soir
- une fois validé, le seul champs modifiable est la date de fin de validité. Il sert à clôturer le tarif.
A noter que la date de fin de validité est positionné par défaut sur la date de fin du tarif (données en-tête)
# INTERCEPTEUR JAVA
- procédure d'unicité
# SSIS
- jobs de planification au niveau de l'instance de sql_server
==> Jobs avec SSIS au nombre de 4
==> Etapes: sert à chainer les tâches
--> pour une étape : renseigne le package à jouer et sa configuration (nom de la base, chemin de dépôt xml...)
Les fichers de properties sont dupliquées et le contenu est modifié
==> Sources SSIS:
==> Connection bureau à distance
-- se connecter sur v03s018805
==> Accèder au contenu des packages:
--
# PRC promos
On peut ajouter des PRCs promos uniquement sur des tarifs de type Promo et donc sur des lignes tarifaires existente en promo.
Règle de détermination des prix promos : le PRC Promo est déterminé en prenant le prix le plus bas
entre le PRC Standard et le prix promo ===> ???
Création d'un tarif promotionnel:
- récupération des 2 prcs et pris du prc le plus bas : A preciser ???
- Le prix de vente est déterminé à partir du tarif promotionnel le plus bas ==> : A preciser ???
# IMPORT Gamme
Passe par une table de stockage : TBL_LIST_PRODUCT_BUFFER
<file_sep>Select d.idgerep, d.iddeclaration, d.annee, t.typetableau, t.codelettre
from tableau t, declaration d, section s
where d.iddeclaration=s.iddeclaration
and s.idsection = t.idsection
and t.typetableau='champs'
and t.codelettre='H1'
and d.annee=2016;
select d.idgerep, d.annee, d.iddeclaration, t.idtableau, t.codelettre, t.typetableau
from declaration d, section s, tableau t
where d.iddeclaration = s.iddeclaration
and s.idsection = t.idsection
and d.idgerep=2525
and t.codelettre='H1'
and d.annee=2016;
---------------------------------------------------
select distinct(t.typetableau)
from tableau t
where t.codeLettre='H1';
select *
from tableau t
where t.idtableau=4412342;
select count(*)
Select d.idgerep, d.annee, t.typetableau, t.codelettre
select count(*)
from tableau t, declaration d, section s
where d.iddeclaration=s.iddeclaration
and s.idsection = t.idsection
and t.typetableau='champs'
and t.codelettre='H1'
and d.annee=2015;
select *
from exploitant e
where e.idgerep=1807;
select *
from declaration d
where d.idgerep=1807 and d.annee=2016;
select d.idgerep, d.annee, d.iddeclaration, t.idtableau, t.codelettre, t.typetableau
from declaration d, section s, tableau t
where d.iddeclaration = s.iddeclaration
and s.idsection = t.idsection
and t.idtableau = 4412342
and d.annee=2016;
select *
from Tableaumodele tm
where tm.codeLettre='H1';
Select *
from declarationmodele d
where d.annee=2016;
select *
from sectionmodele s
where s.iddeclaration=130002;
select *
from tableaumodele t
where t.idsection=130008;
select *
from partiemodele p
where p.idsection=130008; --//==> partie = 13003
select *
from tableaumodele t
where t.idpartie=130001;
<file_sep>select u.Cd_Active_Directory_User, u.Is_Active, u.Is_Super_User,
uo.Id_Commercial_Organization, co.Cd_Commercial_Organization
from TBL_USER_COMMERCIAL_ORGANIZATION uo
join TBL_USER u on u.Id_User = uo.Id_User
join TBL_COMMERCIAL_ORGANIZATION co ON co.Id_Commercial_Organization = uo.Id_Commercial_Organization
where u.Cd_Active_Directory_User = 'grouault';
<file_sep>/*-- FOREACH --*/
//callback est appelé avec trois arguments :
//- la valeur de l'élément
//- l'index de l'élément
//- le tableau utilisé
arr.forEach(callback);
arr.forEach(callback, thisArg);
// Afficher le contenu d'un tableau
function logArrayElements(element, index, array) {
console.log("a[" + index + "] = " + element);
}
[2, 5, , 9].forEach(logArrayElements);
// logs:
// a[0] = 2
// a[1] = 5
// a[3] = 9
<file_sep>SELECT dos.NUMERO_DOSSIER as 'N°Dossier', str.LIBELLE_COURT as 'Chambre', aud.DATE as 'Date d''audience'
FROM AUDIENCE aud
INNER JOIN STRUCTURE str ON str.STR_ID = aud.STR_ID
AND str.TYPE_STRUCTURE IS NULL
INNER JOIN MISE_AU_ROLE mro ON aud.AUD_ID = mro.aud_id
INNER JOIN Dossier dos ON dos.dos_id = mro.dos_id
WHERE
SI_REPORT=0
AND aud.DATE >= '01/01/2016'
AND aud.DATE <= '30/06/2016'
<file_sep>-- Dossier Cdpi pour lesquelles une décision est rendue
SELECT dos.NUMERO_DOSSIER as 'N°Dossier', str.LIBELLE_COURT as 'Chambre', dos.DATE_CREATION as 'date d''enregistrement'
FROM DOSSIER dos
INNER JOIN TYPE_REQUETE tyr ON tyr.TYR_ID = dos.TYR_ID
INNER JOIN STRUCTURE str ON (str.STR_ID = dos.STR_ID
OR str.STR_ID = dos.STR_ID_INITIALE) AND str.TYPE_STRUCTURE IS NULL
WHERE tyr.TYR_CD NOT IN ('REPRI', 'REPAP', 'RECER')
AND dos.STA_CD NOT IN ('SUPPR')
AND EXISTS
--Pour chaque dossier CDPI on cherche si il y a une decision pendant la période d'analyse
(SELECT 1
FROM
(SELECT ord.TOR_ID,
ord.ORD_ID,
ord.STR_ID,
pie.DATE_CREATION
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
WHERE pie.DOS_ID = dos.DOS_ID
UNION ALL
SELECT ord.TOR_ID,
ord.ORD_ID,
ord.STR_ID,
pie.DATE_CREATION
FROM ORD_DOS_LIE odl
INNER JOIN ORDONNANCE ord ON ord.ORD_ID = odl.ORD_ID
INNER JOIN PIECE pie ON pie.PIE_ID = ord.PIE_ID
WHERE odl.DOS_ID = dos.DOS_ID
) AS orp
INNER JOIN TYPE_ORDONNANCE tor ON tor.TOR_ID = orp.TOR_ID
AND tor.TOR_CD IN ('TORR9','TORR5','DECIS','RECER')
WHERE orp.STR_ID = str.STR_ID
AND orp.DATE_CREATION >= '01/01/2014'
AND orp.DATE_CREATION <= '31/12/2014'
)
<file_sep># projects
Info projet
<file_sep>
$scope.supprimerDocument = function (idDocument) {
console.log("suppression du document " + idDocument);
interventionService
.supprimerDocument(
$scope.interventionDetail.id, idDocument)
.then(
function (resp) { // success
if (resp.status != 200) {
var error = errResp.data;
$scope.documentError('Erreur lors de la suppression du document : '
+ error.message);
} else {
$scope.documentSuccess('Document supprimé avec succès');
$scope.refreshIntervention();
}
},
function (errResp) {
var error = errResp.data;
$scope.documentError('Erreur lors de la suppression du document : '
+ error.message);
});
};
<file_sep>-- ==============
-- <NAME>
-- ==============
SELECT
CONCAT(dossierCdpi.NUMERO_DOSSIER,
-- dossier lie QPC
stuff(
(Select ('+' + dosQPC.NUMERO_DOSSIER)
from piece pie
INNER JOIN ORDONNANCE ordDosQpc on ordDosQpc.PIE_ID = pie.PIE_ID
INNER JOIN DOSSIER dosQPC on dosQPC.DOS_ID = pie.DOS_ID
where dosQPC.DOS_ID_FOND_QPC = dossierCdpi.DOS_ID
AND ordDosQpc.SI_QPC = 'true'
AND ordDosQpc.QPC_REGLEE_AVEC_AFFAIRE_PR = 'true'
for xml path ('')
),1,1,'+'),
-- dossier lie par instruction commune
stuff(
(Select ('+' + dosLieCommun.NUMERO_DOSSIER)
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
for xml path ('')
),1,1,'+')
) as 'dossier cdpi',
str.LIBELLE_COURT,
CONCAT(FORMAT(dossierCdpi.DATE_ENREGISTREMENT, 'dd/MM/yyyy'),
-- dossier lie QPC
stuff(
(Select ('+' + FORMAT(dosQPC.DATE_ENREGISTREMENT, 'dd/MM/yyyy'))
from piece pie
INNER JOIN ORDONNANCE ordDosQpc on ordDosQpc.PIE_ID = pie.PIE_ID
INNER JOIN DOSSIER dosQPC on dosQPC.DOS_ID = pie.DOS_ID
where dosQPC.DOS_ID_FOND_QPC = dossierCdpi.DOS_ID
AND ordDosQpc.SI_QPC = 'true'
AND ordDosQpc.QPC_REGLEE_AVEC_AFFAIRE_PR = 'true'
order by dosQPC.NUMERO_DOSSIER desc
for xml path ('')
),1,1,'+'),
-- dossier lie par instruction commune
stuff(
(Select ('+' + FORMAT(dosLieCommun.DATE_ENREGISTREMENT, 'dd/MM/yyyy'))
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
order by dosLieCommun.NUMERO_DOSSIER desc
for xml path ('')
),1,1,'+')
) as 'dateEnregistrement',
tor.LIBELLE,
pie.DATE_CREATION,
dossierDn.NUMERO_DOSSIER as 'dossier Dn'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
INNER JOIN DOSSIER dossierDn ON dossierDn.ORD_ID_LIE = ord.ORD_ID
INNER JOIN TYPE_REQUETE tyr ON tyr.tyr_id = dossierDn.tyr_id
INNER JOIN DOSSIER dossierCdpi ON dossierCdpi.DOS_ID=dossierDn.DOS_ID_LIE
WHERE
tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false'
OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND tyr.TYR_CD in ('APPEL')
-------------------------------------------------------
SELECT
dossierCdpi.NUMERO_DOSSIER as 'dossier cdpi',
str.LIBELLE_COURT,
dossierCdpi.DATE_ENREGISTREMENT as dateEnregistrement,
tor.LIBELLE,
pie.DATE_CREATION,
dossierDn.NUMERO_DOSSIER as 'dossier Dn'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
INNER JOIN DOSSIER dossierDn ON dossierDn.ORD_ID_LIE = ord.ORD_ID
INNER JOIN TYPE_REQUETE tyr ON tyr.tyr_id = dossierDn.tyr_id
INNER JOIN DOSSIER dossierCdpi ON dossierCdpi.DOS_ID=dossierDn.DOS_ID_LIE
--LEFT JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
--LEFT JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE
tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false'
OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND tyr.TYR_CD in ('APPEL')
-- AND dossierCdpi.NUMERO_DOSSIER='1252'
AND dossierCdpi.NUMERO_DOSSIER='C.2012.3182'
---------------------------------------------------------------
--
-- Nombre d'appels sur les décisions de première instance prise.
--
SELECT
CONCAT(dossierCdpi.NUMERO_DOSSIER,
stuff(
(Select CONCAT('#', dosLieCommun.NUMERO_DOSSIER)
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
ORDER BY dosLieCommun.NUMERO_DOSSIER DESC
for xml path ('')),1,1,'#'
)
)as 'COL_TEXTE_1',
str.LIBELLE_COURT AS 'COL_TEXTE_2',
CONCAT(FORMAT(dossierCdpi.DATE_ENREGISTREMENT,'dd-MM-yyyy'),
stuff(
(Select CONCAT('#', FORMAT(dosLieCommun.DATE_ENREGISTREMENT,'dd-MM-yyyy'))
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
ORDER BY dosLieCommun.NUMERO_DOSSIER DESC
for xml path ('')),1,1,'#'
)
) as 'COL_DATE_1',
tor.LIBELLE as 'COL_TEXTE_3',
FORMAT(pie.DATE_CREATION,'dd-MM-yyyy') as 'COL_DATE_2',
dossierDn.NUMERO_DOSSIER as 'COL_TEXTE_4'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
INNER JOIN DOSSIER dossierDn ON dossierDn.ORD_ID_LIE = ord.ORD_ID
INNER JOIN TYPE_REQUETE tyr ON tyr.tyr_id = dossierDn.tyr_id
INNER JOIN DOSSIER dossierCdpi ON dossierCdpi.DOS_ID=dossierDn.DOS_ID_LIE
WHERE
tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false'
OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND tyr.TYR_CD in ('APPEL')
------------------------------------------------------------------------------------------
SELECT
CONCAT(dossierCdpi.NUMERO_DOSSIER,
stuff(
(Select CONCAT('#', dosLieCommun.NUMERO_DOSSIER)
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
ORDER BY dosLieCommun.NUMERO_DOSSIER DESC
for xml path ('')),1,1,'#'
)
)as 'dossier cdpi',
str.LIBELLE_COURT,
CONCAT(FORMAT(dossierCdpi.DATE_ENREGISTREMENT,'dd-MM-yyyy'),
stuff(
(Select CONCAT('#', FORMAT(dosLieCommun.DATE_ENREGISTREMENT,'dd-MM-yyyy'))
FROM ORDONNANCE ordonnance
INNER JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
INNER JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE ordonnance.ORD_ID = ord.ORD_ID
ORDER BY (dosLieCommun.NUMERO_DOSSIER) DESC
for xml path ('')),1,1,'#'
)
) as dateEnregistrement,
tor.LIBELLE,
pie.DATE_CREATION,
dossierDn.NUMERO_DOSSIER as 'dossier Dn'
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
INNER JOIN DOSSIER dossierDn ON dossierDn.ORD_ID_LIE = ord.ORD_ID
INNER JOIN TYPE_REQUETE tyr ON tyr.tyr_id = dossierDn.tyr_id
INNER JOIN DOSSIER dossierCdpi ON dossierCdpi.DOS_ID=dossierDn.DOS_ID_LIE
--LEFT JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
--LEFT JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE
tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false'
OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND tyr.TYR_CD in ('APPEL')
-- AND dossierCdpi.NUMERO_DOSSIER='1252'
AND dossierCdpi.NUMERO_DOSSIER='C.2012.3182'
---------------------------------------------------------------
SELECT CONCAT('#', dossierCdpi.NUMERO_DOSSIER) as 'dossier cdpi', str.LIBELLE_COURT, dossierCdpi.DATE_ENREGISTREMENT, tor.LIBELLE, pie.DATE_CREATION,
dossierDn.NUMERO_DOSSIER as 'dossier Dn', dosLieCommun.NUMERO_DOSSIER as 'dossier lie', dosLieCommun.DATE_ENREGISTREMENT
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
INNER JOIN DOSSIER dossierDn ON dossierDn.ORD_ID_LIE = ord.ORD_ID
INNER JOIN TYPE_REQUETE tyr ON tyr.tyr_id = dossierDn.tyr_id
INNER JOIN DOSSIER dossierCdpi ON dossierCdpi.DOS_ID=dossierDn.DOS_ID_LIE
LEFT JOIN ORD_DOS_LIE odl on odl.ORD_ID=ord.ORD_ID
LEFT JOIN DOSSIER dosLieCommun on dosLieCommun.DOS_ID = odl.DOS_ID
WHERE
tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false'
OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND tyr.TYR_CD in ('APPEL')
-- AND dossierCdpi.NUMERO_DOSSIER='1252'
AND dossierCdpi.NUMERO_DOSSIER='C.2012.3182'
ORDER BY dosLieCommun.NUMERO_DOSSIER DESC
-------------------------------
SELECT ord.TOR_ID, ord.ORD_ID, ord.STR_ID,
ord.QPC_REGLEE_AVEC_AFFAIRE_PR, pie.DATE_CREATION, dos.DOS_ID, dos.DOS_ID_LIE
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
INNER JOIN TYPE_ORDONNANCE tor ON ord.TOR_ID = tor.TOR_ID
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
INNER JOIN DOSSIER dos ON ord.ORD_ID = dos.ORD_ID_LIE
INNER JOIN TYPE_REQUETE tyr ON tyr.tyr_id = dos.tyr_id
WHERE
tor.TOR_CD IN ('TORR9','TORR5','RECER','DECIS')
AND str.TYPE_STRUCTURE IS NULL
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR='false'
OR ord.QPC_REGLEE_AVEC_AFFAIRE_PR IS NULL)
AND tyr.TYR_CD in ('APPEL')
Select *
from dossier d
where d.NUMERO_DOSSIER='11852';
select d.NUMERO_DOSSIER, d.DOS_ID_LIE
from Dossier d
where d.NUMERO_DOSSIER='11852';
<file_sep>INSERT INTO utilisateur(identifiant,displayName, actif) VALUES ('grouault','grouault',1);
INSERT INTO autorisation (role, dateCreation, dateModification, dateValidation, utilisateurCreation, utilisateurModification, utilisateurValidation, utilisateur_identifiant)
VALUES ('ADMINDSI','2017-06-14 12:18:14.7600000',NULL,NULL, 'grouault',NULL,'grouault','grouault');
<file_sep>// access dom element with selector
var element = document.querySelector('#todoListe');
element.style.visibility = 'hidden';
element.style.visibility = 'visible';
<file_sep>--
-- NOUVELLE VERSION
-- Delta entre date d'affichage et date d'enregistrement de la requête
--
With icdpi_delai_jug_ord as
(
SELECT ord.TOR_ID,
ord.ORD_ID,
ord.STR_ID,
pie.DOS_ID,
req.REQ_ID,
typReq.TYR_CD,
ord.QPC_REGLEE_AVEC_AFFAIRE_PR,
pie.DATE_CREATION as dateAffichageDecision, --date d'affichage d'une ord/dec
req.DATE_ENREGISTREMENT as dateEnregistrementRequete, -- date enregistrement requete
DATEDIFF(dd, req.DATE_ENREGISTREMENT, pie.DATE_CREATION)+1 as diff,
dos.NUMERO_DOSSIER,
dos.DATE_ENREGISTREMENT as dosDateEnregistrement,
tor.TOR_CD as ordType
FROM ORDONNANCE ord
join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
join PIECE pie on pie.PIE_ID = ord.PIE_ID
join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
-- requete
join ORD_REQ ordReq on ordReq.ORD_ID = ord.ORD_ID
join REQUETE req on req.REQ_ID = ordReq.REQ_ID
join TYPE_REQUETE typReq on typReq.TYR_ID = req.TYR_ID
WHERE
tor.TOR_CD IN ( 'TORR9',
'TORR5',
'RECER')
AND dos.TDO_CD = 'APPEL'
AND dos.STA_CD <> 'SUPPR'
AND ord.TYPE_CREATEUR = 'DN'
<%if (dtoCritere.getDateDebut() != null ){ %>
AND pie.date_creation >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null ){ %>
AND pie.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<% } %>
)
SELECT case when AVG(cast(diff as float)) is null then 0 else AVG(cast(diff as float)) end
FROM
(SELECT MAX(diff) as diff, PIE_ID from icdpi_delai_jug_ord
group by PIE_ID) delais
--
-- delai moyen de jugement par ordonnance par la CDN
--
With i_cdn_delai_jug_ord as (
SELECT ord.TOR_ID,
ord.ORD_ID,
ord.STR_ID,
ord.QPC_REGLEE_AVEC_AFFAIRE_PR,
pie.DATE_CREATION, -- date d'affichage d'une ord/dec
dos.DATE_ENREGISTREMENT,
pie.DOS_ID,
case when ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 1 then pie2.PIE_ID else pie.PIE_ID end as PIE_ID,
dos.NUMERO_DOSSIER,
DATEDIFF(dd,dos.DATE_ENREGISTREMENT,pie.DATE_CREATION) + 1 as diff
FROM ORDONNANCE ord
inner join TYPE_ORDONNANCE tor on ord.TOR_ID = tor.TOR_ID
inner join PIECE pie on pie.PIE_ID = ord.PIE_ID
inner join DOSSIER dos on dos.DOS_ID = pie.DOS_ID
INNER JOIN STRUCTURE str ON ord.str_id = str.str_id
LEFT JOIN DOSSIER dos2 on dos2.dos_id = dos.DOS_ID_FOND_QPC
LEFT JOIN PIECE pie2 on pie2.DOS_ID = dos2.DOS_ID
WHERE
tor.TOR_CD IN ( 'TORR9',
'TORR5',
'RECER')
AND (ord.QPC_REGLEE_AVEC_AFFAIRE_PR is null or ord.QPC_REGLEE_AVEC_AFFAIRE_PR = 0)
AND dos.TDO_CD = 'APPEL'
AND dos.STA_CD <> 'SUPPR'
AND ord.TYPE_CREATEUR = 'DN'
-- DATE
AND pie.DATE_CREATION >= convert(datetime,'01/01/14',3)
AND pie.DATE_CREATION <= convert(datetime,'16/12/16',3)
)
SELECT case when AVG(diff) is null then 0 else AVG(diff) end
FROM
(SELECT MAX(diff) as diff, PIE_ID from i_cdn_delai_jug_ord
group by PIE_ID) delais
<file_sep>-- DELETE
delete
from dossier
where dos_id = 9;
delete
from ECHEANCE_ALERTE
where ECH_ID=15;
delete
from HISTORIQUE_DOSSIER
where DOS_ID=9;
delete
from HISTORISATION_STATUT_DOSSIER
where DOS_ID=9;
<file_sep># urls
##
http://plnkr.co/edit/DgE5eGGmGebQfWunhqqv?p=preview
# Ajout des fichiers
0- créer la directive : /module/button-rc.js
1- ajouter le fichier de script dans le fichier : index.html
<script src="js/module/button-rc.js"></script>
2- modifier le fichier app.js
Ajouter le module en chargement : 'auroraApp.button-rc'
<file_sep>CREATE SCHEMA `manageo` DEFAULT CHARACTER SET utf8;
CREATE USER 'manageo'@'localhost' IDENTIFIED BY 'manageo';
GRANT USAGE ON * . * TO 'manageo'@'localhost' IDENTIFIED BY 'manageo';
GRANT ALL PRIVILEGES ON `manageo` . * TO 'manageo'@'localhost';
CREATE TABLE `Autorisation` (
`role` varchar(10) NOT NULL,
`dateCreation` datetime DEFAULT NULL,
`dateModification` datetime DEFAULT NULL,
`utilisateurCreation` varchar(75) DEFAULT NULL,
`utilisateurModification` varchar(75) DEFAULT NULL,
`utilisateur_identifiant` varchar(75) NOT NULL,
PRIMARY KEY (`role`,`utilisateur_identifiant`),
KEY `FK_Autorisation_Utilisateur` (`utilisateur_identifiant`),
CONSTRAINT `FK_Autorisation_Utilisateur` FOREIGN KEY (`utilisateur_identifiant`) REFERENCES `Utilisateur` (`identifiant`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `Utilisateur` (
`identifiant` varchar(75) NOT NULL,
`actif` bit(1) NOT NULL,
`displayName` varchar(255) DEFAULT NULL,
`division_code` varchar(4) DEFAULT NULL,
`departement` varchar(255) DEFAULT NULL,
`mail` varchar(255) DEFAULT NULL,
`nom` varchar(255) DEFAULT NULL,
`prenom` varchar(255) DEFAULT NULL,
PRIMARY KEY (`identifiant`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `Autorisation`;
CREATE TABLE `Autorisation` (
`role` varchar(10) NOT NULL,
`dateCreation` datetime DEFAULT NULL,
`dateModification` datetime DEFAULT NULL,
`dateValidation` datetime DEFAULT NULL,
`utilisateurCreation` varchar(75) DEFAULT NULL,
`utilisateurModification` varchar(75) DEFAULT NULL,
`utilisateur_identifiant` varchar(75) NOT NULL,
`utilisateurValidation` varchar(75) NOT NULL,
PRIMARY KEY (`role`,`utilisateur_identifiant`),
KEY `FK_Autorisation_Utilisateur` (`utilisateur_identifiant`),
CONSTRAINT `FK_Autorisation_Utilisateur` FOREIGN KEY (`utilisateur_identifiant`) REFERENCES `Utilisateur` (`identifiant`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `OrganisationCommerciale`;
CREATE TABLE `OrganisationCommerciale` (
`id` bigint(20) NOT NULL,
`code` varchar(75) NOT NULL,
`designation` varchar(75) NOT NULL,
`dateCreation` datetime DEFAULT NULL,
`dateModification` datetime DEFAULT NULL,
`dateValidation` datetime DEFAULT NULL,
`utilisateurCreation` varchar(75) DEFAULT NULL,
`utilisateurModification` varchar(75) DEFAULT NULL,
`utilisateurValidation` varchar(75) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `TraceUtilisateur`;
CREATE TABLE `TraceUtilisateur` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`cible` varchar(255) DEFAULT NULL,
`commentaire` varchar(255) DEFAULT NULL,
`date` datetime DEFAULT NULL,
`identifiant` varchar(75) NOT NULL,
`trace` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `I_TraceUtilisateur_date` (`date`)
) ENGINE=InnoDB AUTO_INCREMENT=234 DEFAULT CHARSET=latin1;
<file_sep>--
-- Nombre de dossier Jugés CDPI
-- Dossier Cdpi pour lesquelles une décision est rendue
SELECT dos.NUMERO_DOSSIER as 'COL_TEXTE_1', str.LIBELLE_COURT as 'COL_TEXTE_2', dos.DATE_CREATION as 'COL_DATE_1'
FROM DOSSIER dos
INNER JOIN TYPE_REQUETE tyr ON tyr.TYR_ID = dos.TYR_ID
INNER JOIN STRUCTURE str ON (str.STR_ID = dos.STR_ID
OR str.STR_ID = dos.STR_ID_INITIALE) AND str.TYPE_STRUCTURE IS NULL
WHERE tyr.TYR_CD NOT IN ('REPRI', 'REPAP', 'RECER')
AND dos.STA_CD NOT IN ('SUPPR')
AND EXISTS
--Pour chaque dossier CDPI on cherche si il y a une decision pendant la période d'analyse
(SELECT 1
FROM
(SELECT ord.TOR_ID,
ord.ORD_ID,
ord.STR_ID,
pie.DATE_CREATION
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
WHERE pie.DOS_ID = dos.DOS_ID
UNION ALL
SELECT ord.TOR_ID,
ord.ORD_ID,
ord.STR_ID,
pie.DATE_CREATION
FROM ORD_DOS_LIE odl
INNER JOIN ORDONNANCE ord ON ord.ORD_ID = odl.ORD_ID
INNER JOIN PIECE pie ON pie.PIE_ID = ord.PIE_ID
WHERE odl.DOS_ID = dos.DOS_ID
) AS orp
INNER JOIN TYPE_ORDONNANCE tor ON tor.TOR_ID = orp.TOR_ID
AND tor.TOR_CD IN ('TORR9','TORR5','DECIS','RECER')
WHERE orp.STR_ID = str.STR_ID
<%if (dtoCritere.getDateDebut() != null){ %>
AND orp.DATE_CREATION >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null ){ %>
AND orp.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<% } %>
)
<file_sep>select *
from QUALITE_ACTEUR q;
select *
from CIVILITE c;
select top 1000 *
from ACTEUR_DOSSIER ad;
select *
from dossier d
where d.DOS_ID=118923 or d.DOS_ID=118925;
select *
from DOSSIER d
where d.TDO_CD = 'APPEL' and d.NUMERO_DOSSIER like '%qpc%'
-- ===========================================
-- peres ==> fils
-- ===========================================
-- peres ==> fils
-- dosJC considere comme pere : on recherche les dossiers lies 'fils'
select dossierJcAsPere.DOS_ID as 'dossier père', dossierFils.DOS_ID as 'dossier fils', dossierCdpi.DOS_ID as 'Dossier CDPI'
from Dossier dossierJcAsPere
join DOSSIER dossierFils on dossierFils.DOS_ID_PARENT_INSTRUCTION_COMM=dossierJcAsPere.DOS_ID
join DOSSIER dossierCdpi on dossierCdpi.DOS_ID=dossierFils.DOS_ID_LIE
--where dossierJcAsPere.DOS_ID=118923;
-- ===========================================
-- fils ==> père
-- ===========================================
-- fils ==> père
-- dosJC considere comme fils : on recherche les dossiers lies 'pere'
select dossierJcAsFils.DOS_ID as 'Dossier Fils', dossierPere.DOS_ID as 'Dossier Père', dossierCdpi.DOS_ID as 'Dossier CDPI'
from DOSSIER dossierJcAsFils
join Dossier dossierPere on dossierPere.DOS_ID = dossierJcAsFils.DOS_ID_PARENT_INSTRUCTION_COMM
join Dossier dossierCdpi on dossierCdpi.DOS_ID = dossierPere.DOS_ID_LIE
--where dossierJcAsFils.DOS_ID=118925
<file_sep> --
-- Nombre d'affaires jugées par ordonnance.
--
SELECT dos.NUMERO_DOSSIER as 'COL_TEXTE_1', str.LIBELLE_COURT as 'COL_TEXTE_2', dos.DATE_ENREGISTREMENT as 'COL_DATE_1'
FROM (
-- dossiers jugés
SELECT dos.DOS_ID
FROM DOSSIER dos
INNER JOIN TYPE_REQUETE tyr ON tyr.TYR_ID = dos.TYR_ID
INNER JOIN STRUCTURE str ON (str.STR_ID = dos.STR_ID OR str.STR_ID = dos.STR_ID_INITIALE) AND str.TYPE_STRUCTURE IS NULL
WHERE tyr.TYR_CD NOT IN ('REPRI', 'REPAP', 'RECER')
AND dos.STA_CD NOT IN ('SUPPR')
AND EXISTS (
SELECT 1
FROM
(SELECT ord.TOR_ID, ord.ORD_ID, ord.STR_ID, pie.DATE_CREATION
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
WHERE pie.DOS_ID = dos.DOS_ID
UNION ALL
SELECT ord.TOR_ID, ord.ORD_ID, ord.STR_ID, pie.DATE_CREATION
FROM ORD_DOS_LIE odl
INNER JOIN ORDONNANCE ord ON ord.ORD_ID = odl.ORD_ID
INNER JOIN PIECE pie ON pie.PIE_ID = ord.PIE_ID WHERE odl.DOS_ID = dos.DOS_ID ) AS orp
INNER JOIN TYPE_ORDONNANCE tor ON tor.TOR_ID = orp.TOR_ID
AND tor.TOR_CD IN ('TORR9',
'TORR5',
'DECIS',
'RECER')
WHERE orp.STR_ID = str.STR_ID
<%if (dtoCritere.getDateDebut() != null ){ %>
AND orp.DATE_CREATION >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null ){ %>
AND orp.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<% } %>
)
EXCEPT
-- dossiers jugés par décision (qui ont au moins une décision)
SELECT dos.DOS_ID
FROM DOSSIER dos
INNER JOIN TYPE_REQUETE tyr ON tyr.TYR_ID = dos.TYR_ID
INNER JOIN STRUCTURE str ON (str.STR_ID = dos.STR_ID OR str.STR_ID = dos.STR_ID_INITIALE) AND str.TYPE_STRUCTURE IS NULL
WHERE tyr.TYR_CD NOT IN ('REPRI', 'REPAP', 'RECER')
AND dos.STA_CD NOT IN ('SUPPR')
AND EXISTS (
SELECT 1
FROM
(SELECT ord.TOR_ID, ord.ORD_ID, ord.STR_ID, pie.DATE_CREATION
FROM PIECE pie
INNER JOIN ORDONNANCE ord ON ord.PIE_ID = pie.PIE_ID
WHERE pie.DOS_ID = dos.DOS_ID
UNION ALL
SELECT ord.TOR_ID, ord.ORD_ID, ord.STR_ID, pie.DATE_CREATION
FROM ORD_DOS_LIE odl
INNER JOIN ORDONNANCE ord ON ord.ORD_ID = odl.ORD_ID
INNER JOIN PIECE pie ON pie.PIE_ID = ord.PIE_ID WHERE odl.DOS_ID = dos.DOS_ID ) AS orp
INNER JOIN TYPE_ORDONNANCE tor ON tor.TOR_ID = orp.TOR_ID
AND tor.TOR_CD IN ('DECIS')
WHERE orp.STR_ID = str.STR_ID
<%if (dtoCritere.getDateDebut() != null ){ %>
AND orp.DATE_CREATION >= #DTO_CRITERE.DATE_DEBUT#
<% } %>
<%if (dtoCritere.getDateFin() != null ){ %>
AND orp.DATE_CREATION <= #DTO_CRITERE.DATE_FIN#
<% } %>
)
) as t1
INNER JOIN DOSSIER dos on dos.DOS_ID = t1.DOS_ID
INNER JOIN STRUCTURE str on str.STR_ID = dos.STR_ID
<file_sep>select mlp1.valeurtextemoyen as NatureAppareil, mlp2.valeurtextemoyen as Precision
from declaration d, section s, tableau t, ligne l, mesureligneperso mlp1, mesureligneperso mlp2
where d.iddeclaration = s.iddeclaration
and s.libelle='Déclaration des émissions dans l\'air'
and t.idsection = s.idsection
and t.codelettre = 'H1'
and t.idtableau = l.idtableau
and l.idligne = mlp1.idvariable
and mlp1.idligne = mlp2.idligne
and mlp1.idvariable = 130624
and mlp2.idvariable = 130636
and d.annee = 2016;
select mlp1.valeurtextemoyen as NatureAppareil, mlp2.valeurtextemoyen as Precision
from declaration d, section s, tableau t, ligne l, mesureligneperso mlp1, mesureligneperso mlp2
where d.iddeclaration = s.iddeclaration
and s.libelle like '%air%'
and t.idsection = s.idsection
and t.codelettre = 'H1'
and t.idtableau = l.idtableau
and l.idligne = mlp1.idligne
and mlp1.idligne = mlp2.idligne
and mlp1.idvariable = 130624
and mlp2.idvariable = 130636
and d.annee = 2016;
--
-- Requête de sélection des équipements saisies avec le champ obligatoir en 2016
--
select mlp1.valeurtextemoyen as NatureAppareil, mlp2.valeurtextemoyen as Precision
from declaration d, section s, tableau t, ligne l, mesureligneperso mlp1, mesureligneperso mlp2
where d.iddeclaration = s.iddeclaration
and s.idsection = t.idsection
and t.idtableau = l.idtableau
and l.idligne = mlp1.idligne
and mlp1.idligne = mlp2.idligne
and mlp1.idvariable = 130624
and mlp2.idvariable = 130636
and d.annee = 2016
select *
from tableau t LEFT JOIN mesurechamp m
on m.idtableau = t.idtableau
WHERE t.idtableau=3984291;
select m.idchamp, m.valeurtextemoyen
from tableau t LEFT JOIN mesurechamp m
on m.idtableau = t.idtableau
WHERE t.idtableau=3984291
and m.idchamp=120240;
select t.idtableau, t.codelettre, m.idchamp, m.valeurtextemoyen, m2.valeurtextemoyen
from tableau t, mesurechamp m, mesurechamp m2
where t.idtableau=3984291
and m.idtableau = t.idtableau
and m.idchamp=120240
and m.idtableau = m2.idtableau
and m2.idchamp = 120244
select count(*)
from mesurechamp m
where m.idchamp=120240;
select count(*)
from champmodele c
where c.idchamp=120241
select *
from champmodele c
where c.libelle like '%Préci%'
-- ---------------------------------
select d.idgerep , d.iddeclaration, t.idtableau, t.codelettre, m.idchamp, m.valeurtextemoyen
from declaration d, section s, tableau t, mesurechamp m
where d.iddeclaration = s.iddeclaration
and s.idsection = t.idsection
and t.idtableau = m.idtableau
and m.idchamp=120240
and d.annee=2015;
--
-- Requête de sélection des équipements saisies sans
-- valeur pour le champ Précision.
-- Année 2015
--
SELECT d.idgerep , d.iddeclaration, t.idtableau, t.codelettre, m.idchamp, m.valeurtextemoyen
FROM declaration d,
section s,
tableau t,
mesurechamp m
WHERE d.iddeclaration = s.iddeclaration
AND s.idsection = t.idsection
AND t.idtableau = m.idtableau
AND m.idchamp = 120240
AND d.annee = 2015
AND m.valeurtextemoyen IN ('autre(s) équipement(s)','séchoir(s)','cabine(s) de peinture','réacteur(s)')
AND d.iddeclaration NOT IN (
SELECT d.iddeclaration
FROM declaration d,
section s,
tableau t,
mesurechamp m,
mesurechamp m1
WHERE d.iddeclaration = s.iddeclaration
AND s.idsection = t.idsection
AND t.idtableau = m.idtableau
AND m.valeurtextemoyen IN ('autre(s) équipement(s)','séchoir(s)','cabine(s) de peinture','réacteur(s)')
AND m.idchamp = 120240
AND m.idtableau = m1.idtableau
AND m1.idchamp = 120241
AND d.annee = 2015);
-------------------------------------
-- Declaration 2015 avec appareil et precision renseigner
select d.idgerep , d.iddeclaration, t.idtableau, t.codelettre, m.idchamp, m.valeurtextemoyen as appareil, m1.valeurtextemoyen as precision
from declaration d, section s, tableau t, mesurechamp m, mesurechamp m1
where d.iddeclaration = s.iddeclaration
and s.idsection = t.idsection
and t.idtableau = m.idtableau
and m.idchamp=120240
and m.idtableau = m1.idtableau
and m1.idchamp = 120241
and d.annee=2015;
---------------------------------------
-- Comptabilisation des déclaration de tous les appareils 2015
-- avec précision
select count(*)
from declaration d, section s, tableau t, mesurechamp m, mesurechamp m1
where d.iddeclaration = s.iddeclaration
and s.idsection = t.idsection
and t.idtableau = m.idtableau
and m.idchamp=120240
and m.idtableau = m1.idtableau
and m1.idchamp = 120241
and d.annee=2015;
-----------------------------------------
-- Comptabilisation des déclarations 2015
-- de tous les appareils (avec et sans précision)
select count(*)
from declaration d, section s, tableau t, mesurechamp m
where d.iddeclaration = s.iddeclaration
and s.idsection = t.idsection
and t.idtableau = m.idtableau
and m.idchamp=120240
and d.annee=2015;
| ad649b8787279b3856f62633a5c632b179821c7a | [
"SQL",
"JavaScript",
"Markdown",
"Java",
"Text"
] | 49 | SQL | grouault/projects | 27d2c4d4c40444b2a2afd7a251c49f5635a3707b | 5e78b0ed773c5cea2a5fca0864a1bb2141032d14 |
refs/heads/master | <file_sep>
<file_sep>import React, { Component } from 'react';
import mapboxgl, { Layer, Feature } from "react-mapbox-gl";
class Map extends Component{
constructor(props){
super(props);
this.state={
loaded: false
};
}
componentDidMount(){
mapboxgl.accessToken = '<KEY>';
var map = new mapboxgl.Map({
container: this.refs.map,
style: 'mapbox://styles/mapbox/light-v9',
center: this.props.latLong,
zoom: 12
});
this.map = map;
this.setState({ loaded: true });
}
componentDidUpdate() {
var latLong = this.props.latLong;
this.map = map;
var map = map.panTo(this.props.latLong, {
zoom: 12,
duration: 500
});
}
render() {
return(
<div className="Map" id="map" data-loaded={this.state.loaded} ref="map">
</div>
);
}
}
export default Map;<file_sep><file_sep>'use strict';
const express = require('express');
const routes = require('./routes');
const app = express();
app.use('/pokefight', routes);
app.listen(3000, () => {
console.log('Server started at 3000 and the pokefight game started');
});<file_sep>/* var data = {
title: 'ReactJS Social Share',
author: 'Srivatsa',
image: 'https://www.mercedes-benz.com/wp-content/uploads/sites/3/2016/06/01_Mercedes-Benz-Vehicles-AMG-GT-R-1280x686-1280x686.jpg?format=750w',
url: 'https://github.com/Srivatsa2393',
share: [
{
type: 'facebook',
count: 43,
url: 'https://www.facebook.com/sharer/sharer.php?s=100&p[url]=https://github.com/Srivatsa2393'
},
{
type: 'twitter',
count: 7,
url: 'https://twitter.com/intent/tweet?hashtags=react,ui,dev&text=ReactJS%20Daily%20UI%20on%20Codepen&tw_p=tweetbutton&url=https://github.com/Srivatsa2393'
}
]
}; */<file_sep>import React, { Component } from 'react';
import axios from 'axios';
import UI from './UI';
import Map from './Map';
import './App.css';
class Location extends Component {
constructor(props){
super(props);
this.state = {
loaded: false,
city: '',
country: '',
latLong: [-74.258188,40.7053111]
};
}
componentDidMount() {
var that = this;
axios.get("http://ip-api.com/json", function(data){
let city = data.city;
let country = data.country;
let lat = data.lat;
let lon = data.lon;
let latLong = [lat, lon];
this.setState({
city: city,
country: country,
latLong: latLong
});
});
}
render() {
let location = this.state.city + ', ' + this.state.country;
return (
<div className="Location">
<UI status="active" locationName={location}/>
<Map latLong={this.state.latLong} />
</div>
);
}
}
export default Location;
<file_sep>
<file_sep>import React from 'react';
import Name from './Name';
const NamesList = ({ data, filter, favourites, addFavourites }) => {
const input = filter.toLowerCase();
//gather the list of names
const names = data
//filtering the names from that
.filter((person, i) => {
return (
//already favorite and not matching the current search value
favourites.indexOf(person.id) === -1 && !person.name.toLowerCase().indexOf(input)
)
})
//output a name <Name /> component from each name
.map((person, i) => {
return (
<Name
id={person.id}
key={i}
info={person}
handleFavourites={(id) => addFavourites(id)}
/>
)
})
return(
<ul>
{names}
</ul>
);
}
export default NamesList;<file_sep>import React, { Component } from 'react';
import Header from './Header';
import Information from './Information';
import Carousel from './Carousel';
class Product extends Component{
render() {
return(
<div className="Product">
<Header />
<div className="Content">
<Information />
<Carousel />
</div>
</div>
);
}
}
export default Product;<file_sep>
<file_sep>import React, { Component } from 'react';
import Setting from './Setting';
import Filter from './Filter';
import Image from './Image';
class Settings extends Component{
constructor(props){
super(props);
this.state = {
contrast: '100',
hue: '0',
brightness: '100',
saturate: '100',
sepia: 0
};
}
handleChange = (e) => {
//e.preventDefault();
let filter = e.target.id;
let value= e.target.value;
this.setState((prevState, props) => {
prevState[filter] = value;
return prevState;
});
};
updateSettings = (nextFilterState) => {
this.setState(nextFilterState);
}
render() {
return(
<div className="Settings">
<div className="MainWrapper">
<div className="Sidebar">
<div className="Title">Reactgram by Srivatsa</div>
<Setting name="contrast" min={0} max={200} value={this.state.contrast} onChange={this.handleChange}></Setting>
<Setting name="hue" min={-360} max={360} value={this.state.hue} onChange={this.handleChange}></Setting>
<Setting name="brightness" min={0} max={200} value={this.state.brightness} onChange={this.handleChange}></Setting>
<Setting name="saturate" min={0} max={100} value={this.state.saturate} onChange={this.handleChange}></Setting>
<Setting name="sepia" min={0} max={100} value={this.state.sepia} onChange={this.handleChange}></Setting>
</div>
<div className="ImageContainer">
<Filter key="Default" filterFunctions={this.state}>
<Image image={this.props.image}/>
</Filter>
</div>
</div>
<div className="FilterList">
<Filter
key="Noir"
filterFunctions={{'contrast':138, 'hue':0, 'brightness':122, 'saturate':0, 'sepia':0}}
onClick={this.updateSettings}
>
<Image image={this.props.image} />
</Filter>
<Filter
key="Aged"
filterFunctions={{'contrast':94, 'hue':-54, 'brightness':92, 'saturate':100, 'sepia':44}}
onClick={this.updateSettings}
>
<Image image={this.props.image} />
</Filter>
<Filter
key="Whiteout"
filterFunctions={{'contrast':32, 'hue':0, 'brightness':173, 'saturate':0, 'sepia':0}}
onClick={this.updateSettings}
>
<Image image={this.props.image} />
</Filter>
<Filter
key="Vintage"
filterFunctions={{'contrast':164, 'hue':0, 'brightness':47, 'saturate':0, 'sepia':100}}
onClick={this.updateSettings}
>
<Image image={this.props.image} />
</Filter>
</div>
</div>
);
}
}
export default Settings;<file_sep>import React, { Component } from 'react';
class Button extends Component{
render(){
const className = 'fa fa-fw fa-' + this.props.type;
return(
<a
href={this.props.url}
target="_blank"
className="Button"
data-type={this.props.type}
data-shares={this.props.shares}
>
<i className={className}></i>
<span className="text">{this.props.type}</span>
</a>
);
}
};
export default Button;<file_sep>import React, { Component } from 'react';
import Title from './Title';
import LineChart from './LineChart';
import chartData from './data';
class App extends Component {
render() {
return (
<div className="Chart">
<Title title="Views on React Daily UI Items"/>
<LineChart data={chartData}/>
</div>
);
}
}
export default App;
<file_sep>import React, { Component } from 'react';
import Slide from './Slide';
class Slides extends Component{
render() {
return(
<div className="Slides" data-step={this.props.step}>
<div className="Wrapper">
<Slide text="The first step of onboarding, that is a thing." icon="comments-o" />
<Slide text="Second step of onboarding, showing the things." icon="calendar-plus-o" />
<Slide text="Final step of onboarding. Weeee, carousels!" icon="gears" />
</div>
</div>
);
}
}
export default Slides;<file_sep>
<file_sep>import React, { Component } from 'react';
class Footer extends Component{
render() {
return(
<div className="Footer" data-step={this.props.step}>
<div className="Button Button--prev" onClick={this.props.decreaseStep}>
<i className="fa fa-fw fa-chevron-left" />
</div>
<div className="Dots" data-step={this.props.step}>
<div className="Dot" />
<div className="Dot" />
<div className="Dot" />
</div>
<div className="Button Button--next" onClick={this.props.increaseStep}>
<i className="fa fa-fw fa-chevron-right" />
</div>
</div>
);
}
}
export default Footer;<file_sep>night

day

<file_sep>
<file_sep>import React, { Component } from 'react';
import Toggle from './Toggle'
import './App.css';
class Switch extends Component {
constructor(props){
super(props);
this.state={
time: 'night'
};
this.handleClick = this.handleClick.bind(this);
}
handleClick(){
if(this.state.time === 'night'){
this.setState({ time: 'day' });
}else{
this.setState({ time: 'night' });
}
}
render() {
return (
<div className="Switch" data-time={this.state.time}>
<Toggle onClick={this.handleClick} time={this.state.time}/>
</div>
);
}
}
export default Switch;
<file_sep>export default [
{
id: 1,
name: 'Sign Up',
value: 5343
},
{
id: 2,
name: 'Checkout',
value: 1685
},
{
id: 3,
name: 'Landing Page',
value: 686
},
{
id: 4,
name: 'Calculator',
value: 2741
},
{
id: 5,
name: 'App Icon',
value: 190
},
{
id: 6,
name: 'User Profile',
value: 2566
},
{
id: 7,
name: 'Settings',
value: 2272
},
{
id: 8,
name: '404',
value: 187
},
{
id: 9,
name: 'Music Player',
value: 165
},
{
id: 10,
name: 'Social Share',
value: 1533
},
{
id: 11,
name: 'Flash Message',
value: 143
},
{
id: 12,
name: 'Single Product',
value: 1688
},
{
id: 13,
name: 'Direct Messaging',
value: 2113
},
{
id: 14,
name: 'Timer',
value: 3450
},
{
id: 15,
name: 'On/Off Switch',
value: 1407
},
{
id: 16,
name: 'Overlay / Popup',
value: 1236
},
{
id: 17,
name: 'Email Receipt',
value: 55
}
];<file_sep><!DOCTYPE html>
<html>
<head>
<title>CSS grid layout</title>
<style>
.wrapper{
display: grid;
grid-template-columns: 70% 30%;
/*
grid-column-gap: 1em;
grid-row-gap: 1em;
*/
grid-gap: 1em;
}
.wrapper > div{
background: #eee;
padding: 1em;
}
.wrapper > div:nth-child(odd){
background: #ddd;
}
</style>
</head>
<body>
<div class="wrapper">
<div>
Lorem ipsum dolor sit, amet consectetur adipisicing elit.
Asperiores nemo dolores maxime eaque tempore enim consequuntur! Omnis voluptates excepturi
expedita officiis nobis ipsam iusto accusamus tenetur? Suscipit odit aliquam vel.
</div>
<div>
Lorem ipsum dolor, sit amet consectetur adipisicing elit.
Omnis quae, aliquam quo at saepe blanditiis quam iusto excepturi incidunt recusandae distinctio,
enim voluptas assumenda dolore delectus et natus rerum minus?
</div>
<div>
Lorem ipsum dolor sit, amet consectetur adipisicing elit.
Asperiores nemo dolores maxime eaque tempore enim consequuntur! Omnis voluptates excepturi
expedita officiis nobis ipsam iusto accusamus tenetur? Suscipit odit aliquam vel.
</div>
<div>
Lorem ipsum dolor, sit amet consectetur adipisicing elit.
Omnis quae, aliquam quo at saepe blanditiis quam iusto excepturi incidunt recusandae distinctio,
enim voluptas assumenda dolore delectus et natus rerum minus?
</div>
</div>
</body>
</html><file_sep>let m = require('./index.js');
m.doStuff();<file_sep><file_sep>import React, { Component } from 'react';
class Graphs extends Component{
render() {
return(
<div className="graphs">
<div className="graph">
<svg width="2600px" height="212px" viewBox="-1 88 2601 212">
<path className="graphSVG" d="M-2.40529818e-13,150 C59,150 195,220 315,218 C435,216 524,152 675,150 C826,148 819,166 1024,167 C1229,168 1312,90 1468,89 C1624,88 1692,151 1822,150 C1952,149 1996.02393,203.893191 2197,203.893191 C2397.97607,203.893191 2509,150 2600,150 C2600,209 2600,300 2600,300 L-2.40529818e-13,300 L-2.40529818e-13,150 Z" id="Shape" stroke="none" fill="#FF4700" fill-rule="evenodd"></path>
</svg>
<svg width="2600px" height="212px" viewBox="-1 88 2601 212">
<path className="graphSVG" d="M-2.40529818e-13,150 C59,150 195,220 315,218 C435,216 524,152 675,150 C826,148 819,166 1024,167 C1229,168 1312,90 1468,89 C1624,88 1692,151 1822,150 C1952,149 1996.02393,203.893191 2197,203.893191 C2397.97607,203.893191 2509,150 2600,150 C2600,209 2600,300 2600,300 L-2.40529818e-13,300 L-2.40529818e-13,150 Z" id="Shape" stroke="none" fill="#FF4700" fill-rule="evenodd"></path>
</svg>
</div>
</div>
)
}
}
export default Graphs;<file_sep>import React from 'react';
import ReactDOM from 'react-dom';
import './css/index.css';
import Location from './Location';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<Location />, document.getElementById('app'));
registerServiceWorker();
<file_sep>import React, { Component } from 'react';
class Order extends Component{
render() {
var total = parseInt(this.props.price) + parseInt(this.props.shipping);
return(
<div>
<h3>Order Details</h3>
<div className="Order">
<div className="OrderPreview">
<a href={this.props.link}>
<img src={this.props.image} alt={this.props.title}/>
</a>
</div>
<div className="OrderDetails">
<div className="Title">{this.props.title}</div>
<div className="Size">{this.props.size}</div>
<div className="Price">Price: {this.props.price} {this.props.currency}</div>
<div className="Shipping">Shipping: {this.props.shipping} {this.props.currency}</div>
<div className="Total"><strong>Total: {total} {this.props.currency}</strong></div>
</div>
</div>
</div>
);
}
}
export default Order;<file_sep>import React, { Component } from 'react';
class Carousel extends Component{
constructor(props){
super(props);
this.state = {
currentImage: 0
};
this.handleClick = this.handleClick.bind(this);
}
handleClick(event){
const imageNumber = event.target.id.replace('image-', '');
this.setState({ currentImage: imageNumber });
}
render() {
return(
<div className="Images" data-image={this.state.currentImage}>
<div className="Dots">
<div className="Dot" id="image-0" onClick={this.handleClick}></div>
<div className="Dot" id="image-1" onClick={this.handleClick}></div>
<div className="Dot" id="image-2" onClick={this.handleClick}></div>
<div className="Dot" id="image-3" onClick={this.handleClick}></div>
<div className="Dot" id="image-4" onClick={this.handleClick}></div>
<div className="Dot" id="image-5" onClick={this.handleClick}></div>
</div>
<div className="wrapper">
<div className="Image">
<div className="BGText"> M <sup>O</sup> <sup>F</sup>A<sup>R</sup>AH</div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/557257/01.png" alt="" />
</div>
<div className="Image">
<div className="BGText">
<sup>Z</sup> <sub>O</sub> O<br /> M
</div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/557257/02.png" alt="" />
</div>
<div className="Image">
<div className="BGText">
PEG<br />ASU
</div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/557257/03.png" alt="" />
</div>
<div className="Image">
<div className="BGText">
3<br /> 3
</div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/557257/04.png" alt="" />
</div>
<div className="Image">
<div className="BGText">
<sub>S</sub> P<br />R <sub>I</sub> NT
</div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/557257/05.png" alt="" />
</div>
<div className="Image">
<div className="BGText">
R <sub>U</sub><br /> N
</div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/557257/06.png" alt="" />
</div>
</div>
</div>
);
}
}
export default Carousel;<file_sep>let doStuff = function () {
//does stuff
}
module.exports = {
doStuff: doStuff
}
const http = require('http');
//create a server
let server = http.createServer((req, res) => {
//Executed once per http request
});
server.listen(3000, 'localhost', () => {
console.log('Server is listening...')
})
const http = require('http');
let server = http.createServer();
server.on('request', (req, res) => {
//Executed once per http request, event handler is invoked whenever a request event has been received
})
//HTTP request object
const http = require('http');
let server = http.createServer((req, res) => {
//reterive url, http method, http headers
let url = req.url;
let method = req.method;
let headers = req.headers;
console.log('URL:' , url);
console.log('HTTP method', method);
console.log('Headers', headers);
res.end('pong');
});
server.listen(3000, 'localhost', () => {
console.log('Server is listening');
});
//HTTP request object
let server = http.createServer((req, res) => {
let body = [];
req.on('data', chunk => {
body.push(chunk);
}).on('end', () => {
body = Buffer.concat(body).toString();
console.log('BODY', body);
});
res.send('pong');
})
//Express framework
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello World!')
res.send(req.params);
})
//Express framework middleware
const express = require('express');
const router = express.Router();
let clicks = [];
router.use('/:name', (req, res, next) => {
if(req.params.name !== 'clicks') {
clicks.push(req.params.name);
}
console.log('We have these hotel clicks: ' + clicks);
next();
})
//GET route
router.get('/:name', (req, res) => {
res.send('You requested hotel' + req.params.name);
})<file_sep>/*F1) Build a Reddit-style voting closure (10%)
Fill the functions/upvote.js file with a closure that lets users upvote under these two constraints:
voters have a certain amount of karma that they can spend on upvotes
voters cannot upvote too quickly, i.e., not within 5 seconds after a previous upvote
The following code is already given to you:
F2) Extend the Reddit-style voting closure (10%)
Based on the previous task (F1), please fill the functions/upvote2.js file with a closure implementation that adds the following feature:
voters can recharge their karma with a recharge(number) method.
The following code is already given to you:*/
function up(karma){
var votingTime = undefined;
return {
vote: function(upvote){
if(votingTime != undefined){
var newVotingTime = (Date.now() - votingTime)/ 100;
if(newVotingTime <= 5){
console.log('you are try to upvote too quickly. please try after some time');
return;
}
}
if((karma - upvote) < 0){
console.log(`Not enough karma: ${karma}`);
return;
}
karma = karma - upvote;
votingTime = Date.now();
console.log(`remaining karma is: ${karma}, upvote is : ${upvote}`);
},
recharge: function(number){
karma += number;
console.log(`${number} recharged, Total karma now is ${karma}`)
}
}
}
let voter1 = up(100);
voter1.vote(90); // upvote: 90, karma left: 10
voter1.recharge(20); // 20 recharged. Total karma now: 30
// call after 5 sec
setTimeout(function () { voter1.vote(15); }, 5000); // upvote: 15, karma left: 15<file_sep>import React, { Component } from 'react';
import Order from './Order';
import Returns from './Returns';
class Content extends Component{
render() {
return(
<div className="Content">
<div className="wrapper">
<h2>{this.props.title}</h2>
<p>{this.props.body}</p>
<Order
title="Vatten"
size="A1 (841 x 594 mm)"
image="http://static1.squarespace.com/static/55acc005e4b098e615cd80e2/57c48747725e254fbeba117c/57c5304a9f745671dd496603/1472540751420/mock.jpg?format=1000w"
currency="SEK" price="799"
shipping="79"
link="https://static.pexels.com/photos/34950/pexels-photo.jpg"
/>
<Returns />
</div>
</div>
);
}
}
export default Content;<file_sep>import React, { Component } from 'react';
import ChartItem from './ChartItem';
class LineChart extends Component{
render() {
// Load all data points
// Treat highest as 100%
// Scale others as percentages of the highest value
// Render
let highPoint = this.props.data.reduce((prev, cur) => {
console.log(prev);
if(cur.value > prev.value) {
return cur;
}else{
return prev;
}
});
let chartItems = this.props.data.map((dataPoint, i) => {
let percent = (dataPoint.value / highPoint.value) * 100 + '%';
return <ChartItem value={percent} name={dataPoint.name} amount={dataPoint.value} />
});
return(
<div className="LineChart">
{chartItems}
</div>
);
}
}
export default LineChart;<file_sep>
<file_sep>import React, { Component } from 'react';
import Header from './Header';
import HeroImage from './HeroImage';
import Content from './Content';
class Email extends Component {
render() {
return (
<div className="Email">
<Header text="Your order" />
<HeroImage url="http://static1.squarespace.com/static/55acc005e4b098e615cd80e2/5777cee5b8a79b6f0197ecba/57ae12a7e6f2e1c9bc4787d0/1471025851733/IMG_5246.jpg?format=2500w"/>
<Content
title="Thanks for ordering a print!"
body="It's super cool that you bought something from me, and you love my work, thanks! :) I usually dispatch orders within 7 days of purchase, so you'll have a nice shiny new print soon."
/>
</div>
);
}
}
export default Email;
<file_sep>// Cat.prototype = {
// speak: function () {
// return this.meow;
// }
// };
// LoudCat.prototype = {
// shout: function () {
// return this.meow.toUpperCase() + '!!';
// },
// speak: function () {
// if (this.loud) {
// return this.shout();
// } else {
// return this.meow;
// }
// }
// };
/* Object creation (10%)
Take a look at file objects/object-literal.js where a Cat and a LoudCat object are created.
Please re-write the code using the object constructor pattern in lieu of the object literal pattern.
*/
//Object literal style notation
'use strict';
function Cat(meow){
this.meow = meow;
}
Cat.prototype.speak = function () {
return this.meow;
}
Cat.prototype.constructor = Cat;
function LoudCat(loud, meow) {
Cat.call(this, meow);
this.loud = loud;
}
LoudCat.prototype.shout = function () {
return this.meow.toUpperCase() + '!!';
}
LoudCat.prototype.speak = function () {
if (this.loud) {
return this.shout();
} else {
return this.meow;
}
}
LoudCat.prototype.constructor = LoudCat;
let loudCat = new LoudCat(true, 'meoww');
console.log(loudCat.speak());
loudCat.loud = false;
console.log(loudCat.speak());<file_sep>import React, { Component } from 'react';
import Button from './Button';
class Buttons extends Component{
render() {
const buttons = this.props.data.share.map((button, i) => {
return <Button type={button.type} shares={button.count} url={button.url} />
});
return(
<div className="Buttons">
{buttons}
</div>
);
}
}
export default Buttons;<file_sep>React Analytics Chart

<file_sep>import React, { Component } from 'react';
class UI extends Component{
constructor(props){
super(props);
this.state={
loaded: false
};
}
componentDidMount(){
this.setState({ loaded: true });
}
render() {
return(
<div className="UI" data-loaded={this.state.loaded}>
<div className="Status">
Status:
<strong>{this.props.status}</strong>
</div>
<div className="LocationText">
Location:
<strong>{this.props.locationName}</strong>
</div>
<div className="Blip">
</div>
</div>
);
}
}
export default UI;<file_sep>import React, { Component } from 'react';
import Image from './Image';
import Buttons from './Buttons';
import './App.css';
class App extends Component {
constructor(props){
super(props);
this.state={
data: {
title: 'ReactJS Social Share',
author: 'Srivatsa',
image: 'https://www.mercedes-benz.com/wp-content/uploads/sites/3/2016/06/01_Mercedes-Benz-Vehicles-AMG-GT-R-1280x686-1280x686.jpg?format=750w',
url: 'https://github.com/Srivatsa2393',
share: [
{
type: 'facebook',
count: 43,
url: 'https://www.facebook.com/sharer/sharer.php?s=100&p[url]=https://github.com/Srivatsa2393'
},
{
type: 'twitter',
count: 7,
url: 'https://twitter.com/intent/tweet?hashtags=react,ui,dev&text=ReactJS%20Daily%20UI%20on%20Codepen&tw_p=tweetbutton&url=https://github.com/Srivatsa2393'
}
]
}
};
}
render() {
return (
<div className="App">
<Image
title={this.state.data.title}
author={this.state.data.author}
image={this.state.data.image}
/>
<Buttons data={this.state.data} />
</div>
);
}
}
export default App;
<file_sep>/*Array map and reduce methods (15%)
Compute an array with words and their "weighted word count".
In the context of this exercise, weighted word count is defined as: Sum of
(word occurrences in a doc multiplied with the weight of the doc)
There are different ways to accomplish this task.
Please follow the instructions in the given code structure and complete the missing pieces in file arrays/mapreduce.js:*/
// The document array contains nested [text,weight] arrays.
const documents = [
['Hello world', 3],
['Hello foo', 1],
['foo bar foo', 5],
];
// Use Array.map() to produce this intermediary result:
// [ [ 3, [ 'Hello', 'world' ] ],
// [ 1, [ 'Hello', 'foo' ] ],
// [ 5, [ 'foo', 'bar', 'foo' ] ] ]
let wordArray = documents.map(word => {
return [word[1], word[0].split(' ')];
}); // TODO
// Use Array.map() to transform the previous array into this:
// [ [ [ 'Hello', 3 ], [ 'world', 3 ] ],
// [ [ 'Hello', 1 ], [ 'foo', 1 ] ],
// [ [ 'foo', 5 ], [ 'bar', 5 ], [ 'foo', 5 ] ] ]
let wordMap = wordArray.map((word) => {
return word[1].map((subArr) => {
return [subArr, word[0]];
})
}); // TODO
// Flatten the array that the last step produced by using Array.reduce()
// and Array.concat()
// The resulting array should look like this:
// [ [ 'Hello', 3 ],
// [ 'world', 3 ],
// [ 'Hello', 1 ],
// [ 'foo', 1 ],
// [ 'foo', 5 ],
// [ 'bar', 5 ],
// [ 'foo', 5 ] ]
let flatWordMap = wordMap.reduce((prev, curr) => {
return prev.concat(curr)
},[]); // TODO
// Use Array.reduce() to produce this final result:
// { Hello: 4, world: 3, foo: 11, bar: 5 }
let weightedWordCount = flatWordMap.reduce((prev, curr) => {
return prev;
},{}); // TODO
console.log(weightedWordCount);<file_sep>import React, { Component } from 'react';
import Search from './components/Search';
import NamesList from './components/NamesList';
import ShortList from './components/ShortList';
class App extends Component {
constructor(props){
super(props);
this.state = {
filterText: '',
favourites: []
};
}
//update the filterText when user types
filterUpdate(value){
this.setState({ filterText: value });
}
//add the favourite name from the id to favorites array
addFavourites(id){
const newSet = this.state.favourites.concat([id]);
this.setState({ favourites: newSet });
}
//removre from id from the favourites array
deleteFavourites(id){
const { favourites } = this.state
const newList = [
...favourites.slice(0, id),
...favourites.slice(id + 1)
]
this.setState({ favourites: newList });
}
render() {
const hasSearch = this.state.filterText.length > 0;
return (
<div>
<header>
<Search
filterVal={this.state.filterText}
filterUpdate={this.filterUpdate.bind(this)}
/>
</header>
<main>
<ShortList
data={this.props.data}
favourites={this.state.favourites}
deleteFavourites={this.deleteFavourites.bind(this)}
/>
<NamesList
data={this.props.data}
filter={this.state.filterText}
favourites={this.state.favourites}
addFavourites={this.addFavourites.bind(this)}
/>
{/* Show only if user has typed in search. To reset the input field we pass an empty value to the filter update method */}
{ hasSearch &&
<button
onClick={this.filterUpdate.bind(this, '')}>
Clear Search
</button>
}
<footer className="credit">
Source for obtaining the list of names of babies:
<a href="https://www.yahoo.com/parenting/atticus-tops-baby-names-2015-124073377716.html" target="_blank">
Top Baby Names in 2017
</a>
</footer>
</main>
</div>
);
}
}
export default App;
<file_sep>
<file_sep><file_sep>import React, { Component } from 'react';
import Person from './Person';
class List extends Component{
sortArray(){
return this.props.people.sort(this.compareArray);
}
compareArray(a,b){
if(a.score < b.score){
return 1;
}else if(a.score > b.score){
return -1;
}else{
return 0;
}
}
render() {
let peopleList = this.sortArray();
let people = peopleList.map((person, i) => {
return <Person key= {i} name={person.name} image={person.image} score={person.score}/>
})
return(
<ul>
{people}
</ul>
);
}
}
export default List;<file_sep>'use strict';
const fs = require('fs');
//Entering the file path as first argument
//eg. node copy.js to /path/to/dummy.txt
let filePath = process.argv[2];
//create a readable stream from filePath
let readable = fs.createReadStream(filePath, 'utf-8');
//create a writeable stream from filePath that creates a new file with original filePath plus ending -copy
let writeable = fs.createWriteStream(filePath.replace('.', '-copy'));
//copying the content from filePath to filePath-copy
readable.on('end', () => {
writeable.end();
});
readable.on('data', () => {
writeable.write(data, 'utf-8');
});
writeable.on('finish', () => {
console.log('Copy the file finished');
});
function errorOccured (error) {
console.log(error);
}
writeable.on('error', errorOccured);
readable.on('error', errorOccured);
<file_sep>import React, { Component } from 'react';
class Person extends Component{
render() {
return(
<li className="Person">
<div className="Image" style={{ backgroundImage: 'url(' + this.props.image + ')'}}></div>
<div className="Name">{this.props.name}</div>
<div className="Score">{this.props.score}</div>
</li>
);
}
}
export default Person;<file_sep>/*Handling command line arguments (10%)
Write a program nodejs/sum.js that calculates the sum of all command line arguments that are passed in
when starting the program.
For example:
$ node sum.js 1 2 3
6*/
//process.argv is an array containing the command line arguments.
//The first element will be node, the second element will be the name of the JavaScript file.
//The next elements will be any additional command line arguments.
'use strict'
let sum = 0;
for(var i = 2; i< process.argv.length; i++) {
sum = sum + Number(process.argv[i]);
}
console.log(sum);
//or
let sum = 0;
process.argv.slice(2).forEach((value, index, array) => {
if(!isNaN(value)) {
sum = sum + parseFloat(value);
}
})
<file_sep>import React, { Component } from 'react';
import Slides from './Slides';
import Footer from './Footer';
import './App.css';
class App extends Component {
constructor(props){
super(props);
this.state={
step: 1
};
}
increaseStep(){
var step = this.state.step;
step++;
this.setState({ step: step });
}
decreaseStep(){
var step = this.state.step;
step--;
this.setState({ step: step });
}
render() {
return (
<div className="App">
<div className="Background" data-step={this.state.step}>
<Slides step={this.state.step} />
<Footer increaseStep={this.increaseStep} decreaseStep={this.decreaseStep} step={this.state.step}/>
</div>
</div>
);
}
}
export default App;
<file_sep>/*Please complete the code in nodejs/index.js so that the nodejs/index.html file
is served as a response to the following request:
GET request
URL path /foo
If the method or path does not match,
return an HTTP response with status code 404 and show the user an error message.*/
const fs = require('fs');
const http = require('http');
const PATH = __dirname + '/index.html';
//Create a http server
let server = http.createServer((req, res) => {
let url = req.url;
let method = req.method;
console.log(`${method} ${url}`);
if (method === 'GET' && url === '/foo') {
fs.readFile(PATH, (err, data) => {
res.writeHead(200, { 'Content-Type': 'text/html' });
res.write(data);
res.end();
});
}else {
res.statusCode = 404;
res.write(`<h1>${method} ${url} not implemented.</h1>`);
}
});
server.listen(3000, 'localhost', () => {
console.log('Server is listening');
})<file_sep>Leaderboard App
<file_sep>import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App message="I'm Srivatsa 24 years old and supports the Arsenal FC"/>, document.getElementById('root'));
registerServiceWorker();
<file_sep>import React, { Component } from 'react';
class Filter extends Component{
getFilterCSSStyles = (functions) => {
let filterString = '';
for(let filter in functions){
if(functions.hasOwnProperty(filter)){
switch(filter){
case 'hue':
filterString+= 'hue-rotate(' + functions[filter] + 'deg) '; break;
default:
filterString += filter + '(' + functions[filter] + '%) '
}
}
}
return filterString;
}
render() {
let filterstring = this.getFilterCSSStyles(this.props.filterFunctions);
return(
<div
className="filter"
style={{width: '100%', height: '100%', filter: filterstring}}
onClick={() => {this.props.onClick(this.props.filterFunctions)}}
>
{this.props.children}
</div>
);
}
}
Filter.propTypes = {
onClick: React.PropTypes.func,
filterFunctions: React.PropTypes.shape({
contrast: React.PropTypes.number,
hue: React.PropTypes.number,
brightness: React.PropTypes.number,
saturate: React.PropTypes.number,
sepia: React.PropTypes.number
})
};
export default Filter;<file_sep><file_sep>
<file_sep>/*Please complete the code in nodejs/booking.js so that the following program works.
In the example shown below, you start the program via node booking.js and then input Picard, hit ENTER, and so on.
You leave the program by entering exit.*/
/*$ node booking.js
Picard
Worf
show
Bookings: [ 'Picard', 'Worf' ]
exit*/
'use strict'
const events = require('events');
let em = new events.EventEmitter();
let bookings = [];
function performBooking(newBooking) {
bookings.push(newBooking);
}
//TODO-attach an event handler (callback) that listens for booking events
em.on('booking', performBooking);
//standard input and output streams also use events
process.stdin.on('readable', () => {
let input = process.stdin.read();
if(input !== null) {
let result = input.toString().trim();
if(result == 'show') {
console.log('Bookings', bookings);
}else if(result == 'exit') {
process.exit(0);
}else{
//emit a new event
em.emit('booking', result);
}
}
});<file_sep>import React, { Component } from 'react';
class Image extends Component{
render() {
return(
<div
className="Image"
style={{backgroundImage: 'url(' + this.props.image + ')'}}
>
<div className="content">
<h1>{this.props.title}</h1>
<h2>{this.props.author}</h2>
</div>
</div>
);
}
}
export default Image; | 7a5eba2c83bcf01da524645958b0f84a6d393ef3 | [
"Markdown",
"JavaScript",
"HTML"
] | 55 | Markdown | Srivatsa2393/React-Mini-projects | a56d98d9ff14c7e7958d11b678a1b77141193a46 | fa1de7177c3b5e95e27677840d2a67cd261de50c |
refs/heads/main | <repo_name>earlyev/fizzbuzz<file_sep>/fizzbuzz.py
print("hiya")<file_sep>/README.md
# fizzbuzz_
A fizz buzz program in python
| 54af2f34f522772b870ddb3b156b72c817194da1 | [
"Markdown",
"Python"
] | 2 | Python | earlyev/fizzbuzz | d717af5f7c7f0c85926150127b03eca43955e4d2 | 3428f74867b6426a2f0b9714d4ba2407e5e8afe8 |
refs/heads/master | <repo_name>vitor-fernandes/EstruturaDeDadosII<file_sep>/README.md
# EstruturaDeDados II
Códigos de algumas questões que foram passadas na disciplina de Estrutura de Dados II
<file_sep>/esmeralda.py
dicionario = {}
stringConhecida = input("").upper()
stringCifrada = input("").upper()
msgCifrada = input("").upper()
msgDecifrada = ""
for c in range(len(stringCifrada)):
dicionario.update({stringCifrada[c] : stringConhecida[c]})
for c in range(len(msgCifrada)):
if(msgCifrada[c] not in dicionario):
msgDecifrada += '.'
else:
msgDecifrada += dicionario[msgCifrada[c]]
print(msgDecifrada)
| ff15b207b014fee3016f9855f2871011ac14bd44 | [
"Markdown",
"Python"
] | 2 | Markdown | vitor-fernandes/EstruturaDeDadosII | 55af34e95cf0936220b667681d87c497f9dd0261 | 7b4de3340621c900ec82f4172b789f62cf3e83d3 |
refs/heads/master | <file_sep>package pl.echomil.monitor;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import pl.echomil.components.Monitorable;
import pl.echomil.components.StatusStorage;
@Aspect
@Component
public class AopMonitor {
@Autowired
private StatusStorage statusStorage;
@Before("@annotation(pl.echomil.annotations.MonitorNormalThings)")
public void beforeAdvice(JoinPoint joinPoint) {
Object aThis = joinPoint.getThis();
Monitorable target = (Monitorable) joinPoint.getThis();
System.out.println("Aspect: Before something normal");
System.out.println("Aspect: cllient: " + target.getClassKey());
statusStorage.incrementNormalCounter();
}
@AfterThrowing(pointcut = "commonPointcut()", throwing = "e")
public void thrownAdvice(JoinPoint joinPoint, Exception e) {
System.out.println("Aspect: AfterThrowing");
System.out.println("Aspect: I see what u did there! Exception: " + e.toString());
statusStorage.incrementStupidCounter();
}
@Around("@annotation(pl.echomil.annotations.MonitorLongThings)")
public void aroundAdvice(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
long start = System.currentTimeMillis();
proceedingJoinPoint.proceed();
long end = System.currentTimeMillis();
System.out.println("Aspect: I measured your time = " + (end - start));
}
@Pointcut("@annotation(pl.echomil.annotations.MonitorExceptions)")
public void commonPointcut() {
}
}
<file_sep>package pl.echomil.components;
import org.springframework.stereotype.Service;
import pl.echomil.annotations.MonitorExceptions;
import pl.echomil.annotations.MonitorLongThings;
import pl.echomil.annotations.MonitorNormalThings;
@Service
public class SampleClient implements Monitorable {
@MonitorNormalThings
public void doSmthNormal() {
System.out.println("Client: Smth normal");
}
@MonitorExceptions
public void doSmthStupid() throws Exception {
System.out.println("Client: Smth stupid");
throw new IllegalStateException();
}
@MonitorExceptions
public void doSmthMoreStupid() throws Exception {
System.out.println("Client: Smth stupid");
throw new Exception();
}
@MonitorLongThings
public void doSmthLong() {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
@MonitorLongThings
@MonitorExceptions
public void doSmthLongAndStupid() throws Exception {
try {
Thread.sleep(1000);
throw new Exception();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public void doSmthAndDontMonitor() {
System.out.println("Client: Smth to not to monitor");
}
@Override
public String getClassKey() {
return "SAMPLE_CLIENT";
}
}
<file_sep>package pl.echomil.annotations;
public @interface MonitorLongThings {
}
<file_sep>package pl.echomil.annotations;
public @interface MonitorNormalThings {
}
<file_sep>package pl.echomil.annotations;
public @interface MonitorExceptions {
}
| 90a000018ce3ceb9afded2a5172f9a3fb83ab6d6 | [
"Java"
] | 5 | Java | Mieloch/AOP_POC | 6dd6ab036f9942ce9ddaf972309fb7724234a25a | d75b7252ca6959406a4ead1d676a78cf43f6e3e5 |
refs/heads/master | <repo_name>sda0/php_microservice<file_sep>/includes/Sda/Book.php
<?php
namespace Sda;
class Book{
private $file;
private $title;
private $text;
private $wordsrank = [];
private $wordscount = 0;
private function load(){
if(empty($this->text)) {
$delim = " \n\t,.!?:;";
$this->title = $this->file->getFilename();
$this->text = file_get_contents( $this->file->getRealPath() );
$tok = strtok($this->text, $delim );
while ($tok !== false) {
$this->wordscount++;
@ $this->wordsrank[$tok] = 1 + $this->wordsrank[$tok];
$tok = strtok($delim);
}
}
}
public function __construct(string $filepath){
$this->file = new \SplFileInfo($filepath);
if( ! $this->file->isReadable()){
throw new Exception("File $filepath is not found or is not readable");
}
$this->load();
}
public function getWordsrank(){
return $this->wordsrank;
}
public function getTitle(){
return $this->title;
}
public function getWordsCount(){
return $this->wordscount;
}
}<file_sep>/README.md
# php_microservice
установить redis 3.1.0
$ yum install redis
установить inotify, phpredis:
$ pecl install inotify
$ pecl install redis
Клонировать и инсталлировать приложение:
$ git clone https://sda0@github.com/sda0/php_microservice.git
$ php composer.phar install
Запустить все скрипты приложения в фон: воркер, вотчер и веб для api
$ php -f worker.php &
$ php -f watcher.php &
$ php -S localhost:8000 -t public &
Директория для книг: books
Для тестирования вызвать загрузку 60 книг:
$ php -f generator.php
Если я ничего не забыл то запросы ниже дадут статистику:
http://localhost:8000/words
http://localhost:8000/books/list
http://localhost:8000/books/count
http://localhost:8000/book/1
http://localhost:8000/book/2
Основная логика приложения в файлах
https://github.com/sda0/php_microservice/blob/master/includes/Sda/BooksLibrary.php
https://github.com/sda0/php_microservice/blob/master/includes/Sda/Book.php
https://github.com/sda0/php_microservice/blob/master/includes/Sda/Queue.php
https://github.com/sda0/php_microservice/blob/master/includes/Sda/SingletonTrait.php
https://github.com/sda0/php_microservice/blob/master/routes/web.php
https://github.com/sda0/php_microservice/blob/master/generator.php
https://github.com/sda0/php_microservice/blob/master/watcher.php
https://github.com/sda0/php_microservice/blob/master/worker.php
<file_sep>/app/Http/Controllers/ExampleController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Redis;
class ExampleController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
//
}
//
public function total()
{
$wer = Redis::get('wer');
Redis::set('wer','wer');
return response()->json(['name' => 'Abigail', 'state' => 'CA', 'wer'=>$wer]);
}
}
<file_sep>/routes/web.php
<?php
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Redis;
/*
*/
$app->get('/', function () use ($app) {
return $app->version();
});
//Количество книг в библиотеке
$app->get('books/count', function () {
return response()->json( Redis::get('books:count') );
});
//Список книг в библиотеке
$app->get('books/list', function () {
return response()->json( Redis::lrange('books:list',0,-1) );
});
//Частота вхождения слова во всех книгах.
$app->get('words/{word}', function ($word) {
return response()->json( Redis::zrevrank('word',$word) );
});
//Частота вхождения слова в определенной книге.
$app->get('book/{book}/{word}', function ($book,$word) {
return response()->json( Redis::zrevrank('book:'.$book.'.txt',$word) );
});
//Общее количество слов во всех книгах.
$app->get('words', function () {
return response()->json( Redis::get('words') );
});
//Общее количество слов в определенной книге.
$app->get('book/{book}', function ($book) {
return response()->json( Redis::get('words:'.$book.'.txt') );
});
//$app->get('post', ['uses' => 'ExampleController@total']);
<file_sep>/watcher.php
<?php
require 'vendor/autoload.php';
$queue = Sda\Queue::getInstance();
$loop = React\EventLoop\Factory::create();
$inotify = new MKraemer\ReactInotify\Inotify($loop);
$inotify->add(__DIR__.'/books', IN_CLOSE_WRITE | IN_DELETE | IN_MOVED_FROM | IN_MOVED_TO );
$bookpush = function ($path) use (&$queue) {
$book = (object) [ 'action'=>'push', 'path' => $path ];
$queue->msg_send( $book );
};
$bookpull = function ($path) use (&$queue) {
$book = (object) [ 'action'=>'pull', 'path' => $path ];
$queue->msg_send( $book );
};
$inotify->on(IN_CLOSE_WRITE, $bookpush );
$inotify->on(IN_MOVED_TO, $bookpush );
$inotify->on(IN_DELETE, $bookpull );
$inotify->on(IN_MOVED_FROM, $bookpull );
$loop->run();
<file_sep>/worker.php
<?php
require 'vendor/autoload.php';
$app = require __DIR__.'/bootstrap/app.php';
$worker = Sda\Queue::getInstance();
$library = Sda\BooksLibrary::getInstance();
$run = function ($book) use ($library) {
echo "Message from queue: ";
$pid = pcntl_fork();
switch($pid) {
case -1:
trigger_error('Не удалось породить дочерний процесс для '.$path,E_USER_WARNING);
case 0:
echo "{$book->action} {$book->path}\n";
$library->{$book->action}($book->path);
break;
default:
break;
}
};
$worker->msg_receive($run);<file_sep>/includes/Sda/Queue.php
<?php
namespace Sda;
/**
* Обертка для System V сообщений в PHP, использует шаблон синглтон и генератор для обхода очереди сообщений
* @author <NAME> <<EMAIL>>
* @example client.php Пример клиента
* @example worker.php Пример сервера
*/
class Queue
{
use SingletonTrait;
/** @var int ID очереди */
const QUEUE = 21671;
/** @var int Владелец очереди user id */
const UID = 10073;
/** @var int Владелец очереди group id */
const GID = 505;
/** @var int Крайние 9 бит, 438 - полный доступ, 384 - только владелец и рут */
const MODE = 384;
/** @var int Нотификация msg_type */
const TYPE_NOTIFY = 3;
/** @var int Входящий запрос msg_type */
const TYPE_REQUEST = 1;
/** @var int Исходящий ответ msg_type */
const TYPE_RESPONSE = 2;
/** @var resource|null Ссылка на очередь */
private $queue = null;
/** @var int|string Крайняя ошибка */
public $errorcode = 0;
/**
* Инициализация очереди и прав доступа к ней, описание прав есть в хидере <msgctl.h>
* @return resource
*/
protected function msg_get_queue()
{
if (!is_resource($this->queue)) {
$this->queue = msg_get_queue(self::QUEUE);
msg_set_queue($this->queue, array('msg_perm.uid' => self::UID, 'msg_perm.gid' => self::GID, 'msg_perm.mode' => self::MODE));
}
return $this->queue;
}
/**
* Функция-генератор для обхода очереди сообщений
* @return yield
*/
public function responses()
{
$msg_type = null;
$msg = null;
$max_msg_size = 512;
$stat = msg_stat_queue($this->queue);
while ($stat['msg_qnum']-- > 0 && msg_receive($this->queue, self::TYPE_RESPONSE, $msg_type, $max_msg_size, $msg)) {
yield $msg;
$msg_type = null;
$msg = null;
}
}
/**
* Обработчик сообщения для наследования класса. Переопределить при необходимости в наследниках.
* @param var $msg
* @return void
*/
protected function run( $msg )
{
return;
}
/**
* @todo Включить деструктор, если нужно убивать очередь
* @todo Проверить
*/
public function __destruct()
{
if (false && is_resource($this->queue)) {
msg_remove_queue($this->queue);
}
}
/**
* Функция ожидает получение сообщения и вызывает callback функцию-обработчик
* @param int $desiredmsgtype Какой тип сообщения слушаем
* @param function $callback Выполняем эту функцию при получении сообщения
* @return type
*/
public function msg_receive($callback = null, int $desiredmsgtype = self::TYPE_NOTIFY)
{
$this->msg_get_queue();
$msg_type = null;
$msg = null;
$max_msg_size = 512;
while (msg_receive($this->queue, $desiredmsgtype, $msg_type, $max_msg_size, $msg)) {
/** Обработка при наследовании */
$this->run($msg);
/** Обработка при замыкании */
$callback($msg);
$msg_type = null;
$msg = null;
}
}
/**
* Отправить сообщение в очередь
* @param int $msgtype Тип сообщения
* @param type $message Сообщение
* @param bool|bool $serialize Сериализиировать или нет
* @param bool|bool $blocking Блокировать если сообщение более 512 байт
* @return type
*/
public function msg_send($message, int $msgtype = self::TYPE_NOTIFY, bool $serialize = true, bool $blocking = true)
{
$this->msg_get_queue();
return msg_send($this->queue, $msgtype, $message, $serialize, $blocking, $this->errorcode);
}
/**
* Возвращает статистику использования очереди,
* @return Array Массив со статистикой
*/
public function msg_stat_queue()
{
return msg_stat_queue($this->queue);
}
}<file_sep>/includes/Sda/BooksLibrary.php
<?php
namespace Sda;
use Illuminate\Support\Facades\Redis as Redis;
class BooksLibrary {
use SingletonTrait;
function push(string $bookfilepath){
$book = new Book($bookfilepath);
$title = $book->getTitle();
$words = $book->getWordsRank();
$wordscount = $book->getWordsCount();
//Количество книг в библиотеке
Redis::incr("books:count");
//Список книг в библиотеке
Redis::rpush("books:list",$title);
//Общее количество слов во всех книгах.
Redis::incrby("words",(int)$wordscount);
//Общее количество слов в определенной книге.
Redis::set("words:$title",(int)$wordscount);
/*
//Частота вхождения слова в определенной книге.
foreach ($words as $word => $score) {
Redis::command('zadd', ["book:$title", (int)$score, (string)$word]);
}
//Частота вхождения слова во всех книгах.
foreach($words as $word => $score)
Redis::zincrby("word",$word,$score);
*/
}
function pull(string $bookfilepath){
$title = basename($bookfilepath);
//$words = $book->getWordsRank();
$wordscount = Redis::get("words:$title");
//Количество книг в библиотеке
Redis::decr("books:count");
//Список книг в библиотеке
Redis::lrem("books:list",0,$title);
//Общее количество слов во всех книгах.
Redis::decrby("words",(int)$wordscount);
//Общее количество слов в определенной книге.
Redis::del("words:$title");
/*
//Частота вхождения слова в определенной книге.
foreach ($words as $word => $score) {
Redis::command('zadd', ["book:$title", (int)$score, (string)$word]);
}
//Частота вхождения слова во всех книгах.
foreach($words as $word => $score)
Redis::zincrby("word",$word,$score);
*/
}
}<file_sep>/generator.php
<?php
require 'vendor/autoload.php';
$filename = 'words.txt';
$loop = React\EventLoop\Factory::create();
$loop->addPeriodicTimer(0.1, function ($timer) use ($filename) {
static $counter=1;
$resultfile = 'books/'.$counter.'.txt';
$process = new React\ChildProcess\Process('RAND=$(($RANDOM%80+80)); for((i=1;i<=$RAND;i+=1)); do sed "${RANDOM}q;d" '.$filename.'; done >| '.$resultfile);
$process->start($timer->getLoop());
echo "$counter.txt wrote".PHP_EOL;
if(++$counter>60) die();
});
$loop->run();
| b886353c73248cad220b49d6738a35c005e1c61e | [
"Markdown",
"PHP"
] | 9 | PHP | sda0/php_microservice | eb49cceeecd0cc3c44e43ebeb46e5da98349af62 | 8e5dc9dd34cb276c5ecf1ac0805deab93ba67153 |
refs/heads/master | <file_sep>from impacket.examples.ntlmrelayx.servers.httprelayserver import HTTPRelayServer
from impacket.examples.ntlmrelayx.servers.smbrelayserver import SMBRelayServer
from impacket.examples.ntlmrelayx.servers.wcfrelayserver import WCFRelayServer
<file_sep>#!/usr/bin/env python
#
# SECUREAUTH LABS. Copyright 2021 SecureAuth Corporation. All rights reserved.
#
# This software is provided under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# Description:
# This script is an alternative to smbpasswd tool for changing Windows
# passwords over SMB (MSRPC-SAMR) remotely from Linux with a single shot to
# SamrUnicodeChangePasswordUser2 function (Opnum 55).
#
# Author:
# <NAME> (@snovvcrash)
#
# Example:
# python smbpasswd.py 'j.doe'<EMAIL>
# python smbpasswd.py 'j.doe:Pass<PASSWORD>!'@10.10.13.37 -newpass '<PASSWORD>!'
#
# References:
# https://github.com/samba-team/samba/blob/master/source3/utils/smbpasswd.c
# https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-samr/acb3204a-da8b-478e-9139-1ea589edb880
import sys
from getpass import getpass
from argparse import ArgumentParser
from impacket.dcerpc.v5 import transport, samr
from impacket import version
def connect(host_name_or_ip):
rpctransport = transport.SMBTransport(host_name_or_ip, filename=r'\samr')
if hasattr(rpctransport, 'set_credentials'):
rpctransport.set_credentials(username='', password='', domain='', lmhash='', nthash='', aesKey='') # null session
dce = rpctransport.get_dce_rpc()
dce.connect()
dce.bind(samr.MSRPC_UUID_SAMR)
return dce
def hSamrUnicodeChangePasswordUser2(username, currpass, newpass, target):
dce = connect(target)
try:
resp = samr.hSamrUnicodeChangePasswordUser2(dce, '\x00', username, currpass, newpass)
except Exception as e:
if 'STATUS_WRONG_PASSWORD' in str(e):
print('[-] Current SMB password is not correct.')
elif 'STATUS_PASSWORD_RESTRICTION' in str(e):
print('[-] Some password update rule has been violated. For example, the password may not meet length criteria.')
else:
raise e
else:
if resp['ErrorCode'] == 0:
print('[+] Password was changed successfully.')
else:
print('[?] Non-zero return code, something weird happened.')
resp.dump()
def parse_target(target):
try:
userpass, hostname_or_ip = target.rsplit('@', 1)
except ValueError:
print('Wrong target string format. For more information run with --help option.')
sys.exit(1)
try:
username, currpass = userpass.split(':', 1)
except ValueError:
username = userpass
currpass = getpass('Current SMB password: ')
return (username, currpass, hostname_or_ip)
if __name__ == '__main__':
print (version.BANNER)
parser = ArgumentParser()
parser.add_argument('target', help='<username[:currpass]>@<target_hostname_or_IP_address>')
parser.add_argument('-newpass', default=None, help='new SMB password')
args = parser.parse_args()
username, currpass, hostname_or_ip = parse_target(args.target)
if args.newpass is None:
newpass = getpass('New SMB password: ')
if newpass != getpass('Retype new SMB password: '):
print('Password does not match, try again.')
sys.exit(2)
else:
newpass = args.newpass
hSamrUnicodeChangePasswordUser2(username, currpass, newpass, hostname_or_ip)
| 15e68813a5a6117b0f9d3efe441fefdd93bb4302 | [
"Python"
] | 2 | Python | skelsec/impacket | c9e8199909e51b0a6c358cf2a1e113b5a7c7ba47 | 538060c81fa9c51f20a199ff89ea4e4f7dd62f84 |
refs/heads/master | <repo_name>melon21/LCA_web101_melinda_marino<file_sep>/myPortfolio/src/nasa.html
<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<title>nasa</title>
<link rel="stylesheet" href="../src/styles/nasa.css">
<link href="https://fonts.googleapis.com/css?family=Francois+One&display=swap" rel="stylesheet">
</head>
<body>
<main>
<h1>NASA</h1>
</main>
<section>
<article class="thing">
<h3>Social Media</h3>
<p>Twitter-@nasa</p>
<p>Facebook-fb.com/nasa</p>
<p>Instagram-@nasa<p>
<p>Youtube-youtube.com/nasa</p>
</article>
<article class="things">
<h3>Ofice Info</h3>
<p>Public Comunications Office </p>
<p> NASA Headquaters</p>
<p>300 E. Street SW.Sweet 5R30</p>
<p>Washington, DC 20546</p>
<p>(202) 358-0001 (Office)</p>
<p>(202) 358-4338 (Fax)</p>
</article>
<article class="what">
<h3>Contact Us</h3>
<form>
Name<br>
<input type="text" name="Name"><br>
Message<br>
<input type="text" name="Message">
</form>
<button>SEND</button>
</article>
</section>
</body>
</html><file_sep>/README.md
# LCA_web101_melinda_marino
LCA portfolio!
<file_sep>/myPortfolio/src/scripts/geolocate.js
if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(handle_success,handle_errors);
function handle_success(position){
alert('Latitude: ' + position.coords.latitude + '\n Longitude: ' + position.coords.latitude);
}
function handle_errors(err) {
switch(err.code)
{
case err.PERMISSION_DENIED: alert("User refused to share geolocation data");
break;
case err.POSITION_UNAVAILABLE: alert("Current position is unavailable");
break;
case err.TIMEOUT: alert("Timed out");
break;
default: alert("Unknown error");
break;
}
}
} | 9709e2b339405af056f6a6eaaa3c64dc80099bbc | [
"Markdown",
"JavaScript",
"HTML"
] | 3 | HTML | melon21/LCA_web101_melinda_marino | 73551803f2b2f8cf1dcfb4962003bbcc75fd6862 | 9aa4fc5606a25a32d8c202414ac4b6b54005e860 |
refs/heads/master | <file_sep>import React from "react";
import Link from "gatsby-link";
import meImg from "./../assets/me.jpg";
import { rhythm } from "../utils/typography";
export default ({ children }) => (
<div
style={{
borderTop: "4px solid orangered"
}}
>
<div
style={{
marginLeft: "auto",
marginRight: "auto",
maxWidth: rhythm(24),
padding: `${rhythm(2)} ${rhythm(0.75)}`,
paddingBottom: `${rhythm(1)}`
}}
>
{children()}
</div>
<div>
<img
style={{
margin: 0,
display: "block",
border: "4px solid darkorange"
}}
src={meImg}
/>
</div>
</div>
);
<file_sep>import React from "react";
import Link from "gatsby-link";
import get from "lodash/get";
import Helmet from "react-helmet";
import { rhythm, scale } from "../utils/typography";
class BlogIndex extends React.Component {
render() {
const siteTitle = get(this, "props.data.site.siteMetadata.title");
const siteDesc = get(this, "props.data.site.siteMetadata.description");
const posts = get(this, "props.data.allMarkdownRemark.edges") || [];
return (
<div>
<Helmet title={siteTitle} />
<header>
<h1 style={{ marginBottom: rhythm(0.5), color: "orangered" }}>
{siteTitle}
</h1>
<p>{siteDesc}</p>
</header>
<main>
{posts.map(({ node }) => {
const title = get(node, "frontmatter.title") || node.fields.slug;
return (
<article key={node.fields.slug}>
<h2
style={{
marginBottom: rhythm(0.75)
}}
>
<Link style={{ color: "darkorange" }} to={node.fields.slug}>
{title}
</Link>
</h2>
<p dangerouslySetInnerHTML={{ __html: node.excerpt }} />
</article>
);
})}
</main>
</div>
);
}
}
export default BlogIndex;
export const pageQuery = graphql`
query IndexQuery {
site {
siteMetadata {
title
description
}
}
allMarkdownRemark(
sort: { fields: [frontmatter___date], order: DESC }
filter: { fields: { postType: { eq: "posts" } } }
limit: 1000
) {
edges {
node {
excerpt
fields {
slug
}
frontmatter {
title
}
}
}
}
}
`;
<file_sep>import React from "react";
import { rhythm } from "../utils/typography";
export default ({ color }) => (
<hr
style={{
backgroundColor: color ? color : "orangered",
width: rhythm(3),
height: "4px",
margin: `${rhythm(2)} auto`
}}
/>
);
<file_sep>---
title: Litt om passord og hvorfor et passord-håndteringsprogram er løsningen.
date: 2018-05-31
---
Passord er noe hærk!
Ønsker du kun løsning? Klikk deg videre til [1Password](https://1password.com/) og følg deres instruksjoner. Gjør du det vil du automatisk få gode passordrutiner.
# Gode passord rutiner
1. Velg sterke passord.
2. Bruk unike passord.
3. Er det ekstra viktig, skru på to-faktor autentisering.
Punktene over resulterer i at du burde bruke et passord-håndteringsprogram som [1Password](https://1password.com/) eller en notatbok alla [My password journal](http://amzn.to/2DZSDEX).
## 1. Sterke passord
Lange relativt enkle passord "brimful-pr<PASSWORD>-buck<PASSWORD>-<PASSWORD>", er bedre enn korte komplekse passord "<PASSWORD>" ("Let it go" med erstatninger for e, i og o).
"Men vent nå litt. På jobben er det maks 12 tegn og det må være minst 1 tall og et spesialtegn" tenker du kansje. Dem om det! Ekspertene er uenig og [tegneseriestripen fra xkcd](https://xkcd.com/936/) forklarer hvorfor.

## 2. Unike passord
Ikke bruk samme passord flere steder.
Når en av tjeneste du bruker blir "eid", og innloggingsdetaljene dine ligger til salgs på the dark web, er det fint å vite at kjøperen ikke kan komme seg videre inn i andre tjenester du bruker.
Innloggingsdetaljer lekkes oftere enn man skulle tro. Ved jevne mellomrom dukker det opp "jeg er blitt hacket" oppdateringer på Facebook. Lekking av innloggingsdetaljer fra en annen tjeneste er nok ofte grunnen.

Sjekk om din bruker har vært del i en, eller flere, av de store internasjonale skandalene på [Have I've been pawned](https://haveibeenpwned.com/).

Det kan også være en gode idé å si ja takk til "Notify me when I get pawned". Tjenesten leveres av den anerkjente sikkerhetseksperten <NAME>.
## 3. To faktor autentisering.
To faktor autentisering (2FA) kommer i flere varianter. Det kan være komplekse løsninger som BankId; noe så enkelt som en sms med en kode eller et ark du har fått tilsendt i posten med koder.
Det skal et mye mer sofistikert, og rettet angrep, for at noen får tak i passordet ditt OG mobilen din (eller arket du har hjemme i skuffen) enn kun passordet.
To faktor autentisering kan være litt irriterende. Men er absolutt verdt å skru på for viktige tjenester.
Et sted du burde skru på to faktor autentisering, nå med en gang, er e-post kontoen din. Utestenging fra egen e-post konto vil medføre <NAME>. I tillegg vil en person med tilgang til e-post kontoen din raskt få kontroll over dine kontoer hos andre tjenester.
* [Sku på 2FA hos Gmail](https://support.google.com/accounts/answer/185839)
* [Skru på 2FA hos Outlook.com/Hotmail](https://support.microsoft.com/en-in/help/12408/microsoft-account-about-two-step-verification)
## 4. Passord-håndteringsprogram
I realiteten betyr alt dette at du burde skaffe deg et passord-håndteringsprogram. Jeg anbefaler [1Password](https://1password.com/).
Mange spør meg "Men er 1Password sikkert da?". Ingenting på internett er 100% sikkert, men 1Passwords leverbrød er sikkerhet. Derfor er de sikrere enn de fleste tjenestene du har konto hos. I tillegg er det så uendelig mye bedre enn at du prøver å huske et stort antall unike og gode passord oppi hodet ditt.
Som sikkerhetsekspert <NAME> skriver på sin blogg: [Password managers don't have to be perfect, they just have to be better than not having one](https://www.troyhunt.com/password-managers-dont-have-to-be-perfect-they-just-have-to-be-better-than-not-having-one/).
Der slår han også et slag for den analoge versjonen, en notatblokk med nedskrevne passord. Ikke så dumt som du kanskje ville trodd.
<file_sep>---
title: "Takk"
---
Tusen takk for at du sendte en tilbakemelding!

<file_sep>---
title: "Glasur i en kopp"
date: 2015-12-05
---
Godtesugen? Men huset er tomt for godteri? Lag glasur!

Er du som meg har noe du nesten alltids litt kakao og melis liggende bakerst i skapet. Ikke bry deg så mye om best før datoen.
<ul>
<li>Bland en del mer melis enn kakao med litt lunket smør og en skvett sterk kaffe.</li>
<li>Spis med skje rett fra koppen/skålen/bollen.</li>
</ul>
Dette har vært redningen for meg mange mange flere ganger enn jeg egentlig ønsker å innrømme.
Husker spesielt godt en kveld som student i Trondheim med Eksperter i team rapport-innspurt. Vi hadde av en eller annen merkelig grunn ikke Internett. Men hvis jeg lå på gulvet i et hjørnet av gangen kunne jeg snylte på naboen i etasjen under. Så der lå jeg med laptopen, en bolle med glasur og satte sammen rapport for harde livet.

<file_sep>import React from "react";
import Helmet from "react-helmet";
import Link from "gatsby-link";
import get from "lodash/get";
import { rhythm, scale } from "../utils/typography";
import SpacerLine from "../components/SpacerLine";
class PageTemplate extends React.Component {
render() {
const post = this.props.data.markdownRemark;
const siteTitle = get(this.props, "data.site.siteMetadata.title");
return (
<div>
<Helmet title={`${post.frontmatter.title} | ${siteTitle}`} />
<header
style={{
position: "absolute",
marginTop: rhythm(-2),
color: "darkorange"
}}
>
<Link to="/">{siteTitle}</Link>
</header>
<article>
<h1>{post.frontmatter.title}</h1>
<div dangerouslySetInnerHTML={{ __html: post.html }} />
</article>
<SpacerLine />
</div>
);
}
}
export default PageTemplate;
export const pageQuery = graphql`
query PageBySlug($slug: String!) {
site {
siteMetadata {
title
}
}
markdownRemark(fields: { slug: { eq: $slug } }) {
id
html
frontmatter {
title
}
}
}
`;
<file_sep>module.exports = {
siteMetadata: {
title: "Orangebloggen",
author: "<NAME>",
description:
"En blogg om livet (mitt) og teknologi (jeg bruker), pluss en rant i ny og ne.",
siteUrl: "https://orangebloggen.no",
feedbackFormLabels: {
title: "Hei, se her!",
message:
"På denne siden er det ingen storebror (ingen cookies, ingen analyseverktøy, nadanix) som ser deg. Derfor er det fint om du melder fra i skjema under om du syntes artikkelen var nyttig (eller ei).",
name: "Navn",
email: "E-post",
textarea: "Beskjed",
newsletter: "Jeg ønsker å få nyhetsbrev når det kommer nytt innhold",
submit: "Send"
},
some: [
{
label: "Twitter",
url: "https://twitter.com/raae"
},
{
label: "Instagram",
url: "https://instagram.com/benedicteraae"
},
{
label: "LinkedIn",
url: "https://www.linkedin.com/in/benedicteraae/"
}
]
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/posts`,
name: "posts"
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/pages`,
name: "pages"
}
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
linkImagesToOriginal: false,
showCaptions: true,
maxWidth: 675
}
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`
}
},
"gatsby-remark-prismjs",
"gatsby-remark-copy-linked-files",
"gatsby-remark-smartypants"
]
}
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-feed`,
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
{
resolve: "gatsby-plugin-typography",
options: {
pathToConfigModule: "src/utils/typography"
}
}
]
};
<file_sep>import React from "react";
import { rhythm } from "../utils/typography";
export default ({ slug, labels }) => {
return (
<form
name={`post-${slug}`}
action="/takk"
method="post"
data-netlify="true"
style={{
marginBottom: rhythm(2.5)
}}
>
<input type="hidden" name="form-name" value={`post-${slug}`} />
<h1>{labels.title}</h1>
<p>{labels.message}</p>
<p>
<label>
{labels.name} <input type="text" name="name" />
</label>
</p>
<p>
<label>
{labels.email} <input type="text" name="email" />
</label>
</p>
<p>
<label>
{labels.textarea} <textarea name="feedback" />
</label>
</p>
<p>
<label>
<input name="newsletter" type="checkbox" />{" "}
<span>{labels.newsletter}</span>
</label>
</p>
<p>
<button type="submit">{labels.submit}</button>
</p>
</form>
);
};
<file_sep>---
title: Hei LO, mammaen min kan mer om IT enn dere
date: 2016-12-05
---
PS. Denne ranten ble skrevet i starten av desember 2016.
--
LO er ute med en ny vervekampanje.
Etter å ha fått trykket denne på meg i tide og utide siden før helgen har irritasjonen bygget seg såpass opp at jeg nå begår en bloggpost.
Det er så kjipt å måtte være kjerringa som ikke forstår humoren, men vet du hva. Jeg driter i om du synes jeg er kjip. For vi, både Norge og store dele av den vestlige verden, har et seriøst problem. Siden slutten av 80-tallet har kvinner nesten forsvunnet fra it-bransjen og da hjelper det ikke at LO spiller på de klassiske stereotypene. Alene er denne annonsen kanskje morsom, men sammen med alle de andre små dryppene om at IT ikke er for jenter renner det over.




Jeg har med årene innsett at det kanskje ikke bare bare var min egen frie vilje og interesser som gjorde at jeg endte opp på Datateknikk-studiet med en 4-6 andre jenter og ca 120 gutter i 2003. Mammaen min har nemlig jobbet i IT bransjen siden slutten av 80-tallet og dermed fikk jeg liksom ikke med meg at dette ikke var noe for meg.
Og en ting er sikkert LO, <a href="https://www.linkedin.com/in/viraae"><NAME></a> kan mye mer om it enn hen som har laget og hen som har godkjent denne reklamen. Jeg ønsker jo her å skrive "hipster-fyren fra et spenstig reklamebyrå" og "han eldre fyren som selvfølgelig er leder", for jeg liker også å kose meg med stereotyper, men ikke i noe jeg regner med er en landsdekkende reklamekampanje fra Norges største arbeidstakerorganisasjon.
Skal det først spilles på stereotyper er det så sinnsykt mye morsommere å bryte dem. Ta gjerne en titt på tv-serien "<NAME>" for inspirasjon. Jeg ble selv tatt på sengen da det viste seg at entreprenøren var en kvinne. Det var et spark i baken, og jeg håper det hjelper meg bryte slik forventinger i fremtiden.
Er du interesser i lære med om kvinner + it anbefaler jeg boken <a href="https://www.amazon.com/Unlocking-Clubhouse-Women-Computing-Press/dp/0262632691">Unlocking the clubhouse</a>, store deler av bloggen til <a href="http://www.laurenbacon.com/what-men-and-everyone-really-can-do-to-support-gender-equity-in-tech/">Lauren Bacon</a> og artikkelen <a href="http://www.resume.se/nyheter/artiklar/2016/11/24/sa-gick-det-till-nar-kvinnorna-slutade-programmera/">Reklamen fick kvinnor att överge it-branschen</a>.
| 611626757a58fe73e8c8a885cf96745d9fae19ef | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | raae/orangebloggen | d22debca60844fb675fa43dd8abd94265016d636 | a615d4ad086e92592d5359c7174e50f46114fb30 |
refs/heads/master | <file_sep><?php
$boxes = '<div class="square" id="00" style="clear: both;"></div>';
for ($i = 1; $i <= 7; $i++) {
$boxes = $boxes."<div class='square' id='0".$i."'></div>";
}
echo $boxes;
$boxes = '<div class="square" id="10" style="clear: both;"></div>';
for ($i = 1; $i <= 7; $i++) {
$boxes = $boxes."<div class='square' id='1".$i."'></div>";
}
echo $boxes;
$boxes = '<div class="square" id="20" style="clear: both;"></div>';
for ($i = 1; $i <= 7; $i++) {
$boxes = $boxes."<div class='square' id='2".$i."'></div>";
}
echo $boxes;
$boxes = '<div class="square" id="30" style="clear: both;"></div>';
for ($i = 1; $i <= 7; $i++) {
$boxes = $boxes."<div class='square' id='3".$i."'></div>";
}
echo $boxes;
$boxes = '<div class="square" id="40" style="clear: both;"></div>';
for ($i = 1; $i <= 7; $i++) {
$boxes = $boxes."<div class='square' id='4".$i."'></div>";
}
echo $boxes;
$boxes = '<div class="square" id="50" style="clear: both;"></div>';
for ($i = 1; $i <= 7; $i++) {
$boxes = $boxes."<div class='square' id='5".$i."'></div>";
}
echo $boxes;
$boxes = '<div class="square" id="60" style="clear: both;"></div>';
for ($i = 1; $i <= 7; $i++) {
$boxes = $boxes."<div class='square' id='6".$i."'></div>";
}
echo $boxes;
$boxes = '<div class="square" id="70" style="clear: both;"></div>';
for ($i = 1; $i <= 7; $i++) {
$boxes = $boxes."<div class='square' id='7".$i."'></div>";
}
echo $boxes;
?><file_sep><!DOCTYPE html>
<html>
<div id="title"><h1>DUCKS OF A DIFFERENT COLOUR</h1></div>
<div id="frame">
<div id="board">
<div id="game_board">
<?php include 'squares.php'; ?>
</div>
<div>
<br>
<div id="message" style="clear: both;"> </div>
<br>
<!-- Set buttons for starting and hiding -->
<div id="buttons">
<input type='button' id='restart' value='START OVER'>
<input type='button' id='suit' value='GET SUITED!'>
<input type='button' id='start_timer' value='START TIMER'>
</div>
</div>
</div>
<div id='stats'>
<div id='defense' style='font-size:13px;'>
<div><h3>Limey! These ducks are having a party!</h3>
It's one of those new parties you've been hearing about: ducks arrive
in their own clothes, and then at the party, they change!</div>
<div>These ducks have strict rules:
every 2 seconds, ducks must change clothes. Problem is, some are too
lazy to change every 2 seconds.<br>
As chaperone of the duck party, it is your sworn duty to kick out
rule-breakers. If you see a duck wearing the same color outfit
two turns in a row, click him (or her) out!</div><br>
<div>Be careful not to click on a duck who obeyed the rules though. There's a
strict five strike policy, after which, you'll be <em>fired.</em></div><br>
<div>Click <strong>GET SUITED!</strong> to get all the ducks dressed up!
Then click START TIMER to start catching cheaters.</div><br>
<div>See how quickly you can catch them all cheating! <em>Everyone cheats eventually...</em></div><br>
</div>
<div id="duck_number">How many ducks are still hanging out at the party?</div><div id='ducks_left'></div>
<br>
<div style="font-size: 28px;">PARTY TIMER: <span id="party_timer"></span></div>
</div>
<div style="clear: both;"> </div>
<div id="endform" style="display: none;">
<div>
<div style="text-align:center; font-size: 24px;">HOW DID YOU DO?</div><br>
<form id="end_form">
<label for='ducks'>Ducks left</label>
<input type='text' id='duckies' name='ducks_left' maxlength="2">
<label for='strikes'>Strikes</label>
<input type='text' id='strikies' name='strikes' maxlength="1">
<label for='time'>Party Timer</label>
<input type='text' id='timies' name='time_elapsed' maxlength="3">
<label for='initials'>Your Initials</label>
<input type='text' id='inities' name='initials' maxlength="3">
<input type='submit' value='POST UP!'>
</form>
</div>
<div id="end_results"> </div>
</div>
<div id="posting">
<br>
<h1>RECENT PARTIES</h1>
<div id="post_reel"><br>
<?php foreach($games as $game): ?>
<div style="font-size: 24px; text-transform:uppercase;"><?=$game['initials']?></div>
<?php $game_time = Time::display($game['created']);?>
<span id="game_time"><?php echo $game_time;?></span><br>
<span id="ducksleft"><strong>Ducks left: <?=$game['ducks_left']?></strong>
Time: <?=$game['time_elapsed']?></span>
Strikes: <?=$game['strikes']?>
<br><br>
<?php endforeach; ?>
</div>
</div>
</div>
</html><file_sep>var options = {
type: 'POST',
url: '/users/p_post/',
beforeSubmit: function() {
$('#end_results').html('Posting... Results...');
},
success: function(response) {
$('#end_results').html('Now everyone will know how you did.');
$('#post_reel').prepend(response);
$('#endform').delay(2000).fadeToggle();
pend_post = "FALSE";
}
};
$('form').ajaxForm(options);<file_sep><!DOCTYPE html>
<html>
<head>
<title><?php if(isset($title)) echo $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- CSS/JS common to whole app -->
<link rel="stylesheet" href="/css/master.css" type="text/css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<!-- Controller Specific JS/CSS -->
<?php if(isset($client_files_head)) echo $client_files_head; ?>
</head>
<body>
<div id='menu'>
<NAME>
</div>
<br>
<?php if(isset($content)) echo $content; ?>
<?php if(isset($client_files_body)) echo $client_files_body; ?>
</body>
</html><file_sep>var options = {
type: 'POST',
url: '/users/p_signup/',
beforeSubmit: function() {
$('#reg_results').html('Logging... In...');
},
success: function(response) {
$('#reg_results').html('You are logged in.');
}
};
$('form').ajaxForm(options);<file_sep><?php
class users_controller extends base_controller {
public function __construct() {
parent::__construct();
}
public function p_loadreel() {
}
} # end of the class<file_sep>pr4.rubburduck.biz
==================
Project Four -- Ducks of a Different Color
<file_sep><?php
class index_controller extends base_controller {
/*-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------*/
public function __construct() {
parent::__construct();
}
/*-------------------------------------------------------------------------------------------------
Accessed via http://localhost/index/index/
-------------------------------------------------------------------------------------------------*/
public function index() {
# Any method that loads a view will commonly start with this
# First, set the content of the template with a view file
$this->template->content = View::instance('v_index_index');
# Now set the <title> tag
$this->template->title = "Ducks of a Different Colour";
# CSS/JS includes
$client_files_head = Array(
"/css/ducks.css"
);
$this->template->client_files_head = Utils::load_client_files($client_files_head);
$client_files_body = Array(
"http://code.jquery.com/jquery-1.9.1.js",
"http://code.jquery.com/ui/1.10.3/jquery-ui.js",
"/js/jquery.form.js",
// "/js/users_register.js",
"/js/jquery.timer.js",
"/js/default.js",
"/js/game_post.js"
);
$this->template->client_files_body = Utils::load_client_files($client_files_body);
$q = 'SELECT
created,
ducks_left,
time_elapsed,
strikes,
initials
FROM games
ORDER BY created DESC
LIMIT 10';
$games = DB::instance(DB_NAME)->select_rows($q);
$this->template->content->games = $games;
# Render the view
echo $this->template;
} # End of method
public function p_signup() {
#set up the data
$_POST['created'] = Time::now();
$_POST['token'] = $POST['email'].Utils::generate_random_string();
DB::instance(DB_NAME)->insert('users',$_POST);
}
public function p_update() {
$q = 'SELECT
created,
ducks_left,
time_elapsed,
strikes,
initials
FROM games
ORDER BY created DESC
LIMIT 5';
$games = DB::instance(DB_NAME)->select_rows($q);
$this->template->content->games = $games;
}
} # End of class
<file_sep><?php
class users_controller extends base_controller {
public function __construct() {
parent::__construct();
}
public function index() {
Router::redirect('/users/profile');
}
public function p_post() {
#set up the data
$_POST['created'] = Time::now();
if ($_POST['strikes'] > 3) {
$_POST['strikes'] = 3;
}
DB::instance(DB_NAME)->insert('games',$_POST);
// beginning of section I'm adding in to see if it will work
$crtd = $_POST['created'];
$crtd = Time::display($crtd);
$dkslft = $_POST['ducks_left'];
$tmlpsd = $_POST['time_elapsed'];
$strks = $_POST['strikes'];
$intls = $_POST['initials'];
$q = 'SELECT
created,
ducks_left,
time_elapsed,
strikes
FROM games
ORDER BY created DESC
LIMIT 1';
$games = DB::instance(DB_NAME)->select_rows($q);
$new_div = "<br><div style='font-size: 24px; text-transform:uppercase;''>".$intls."</div>
<span id='game_time'>".$crtd."</span><br>
<span id='ducksleft'><strong>Ducks left: ".$dkslft.
" </strong>Time: ".$tmlpsd."</span> Strikes: ".$strks."<br>";
// this is the end of the section I mean
echo $new_div;
}
/*
public function signup($error = NULL) {
# Set up the view
$this->template->content = View::instance('v_users_signup');
$this->template->title = "Sign Up";
$client_files_body = Array(
"/js/jquery.form.js",
"/js/users_register.js"
);
$this->template->client_files_body = Utils::load_client_files($client_files_body);
if($error) {
$this->template->error_msg = "All fields are required";
};
# Render the view
echo $this->template;
}
public function p_signup() {
#set up the data
$_POST['created'] = Time::now();
$_POST['token'] = $POST['email'].Utils::generate_random_string();
DB::instance(DB_NAME)->insert('users',$_POST);
echo "Your post was added";
}
public function login($error = NULL) {
# Set up the view
$this->template->content = View::instance('v_users_login');
if($error) {
$this->template->error_msg = "All fields are required";
}
# Render the view
echo $this->template;
}
public function p_login() {
if(!$_POST['email'])
{
Router::redirect('/users/login/error');
}
elseif (!$_POST['password']) {
Router::redirect('/users/login/error');
}
$_POST['password'] = <PASSWORD>(PASSWORD_SALT.$_POST['password']);
#commented out, because echoing is interfering with setcookie
// echo "<pre>";
// print_r($_POST);
// echo "</pre>";
$qry = 'SELECT token
FROM users
WHERE email = "'.$_POST['email'].'"
AND password = "'.$_POST['password'].'"';
// echo $qry1;
$token = DB::instance(DB_NAME)->select_field($qry);
# commented out, because echoing is interfering with setcookie
// echo 'token = '.$token;
// echo '<br>';
#success
if($token) {
setcookie('token',$token,strtotime('+1 year'),'/');
}
#failure
else {
echo "<br>You are a failure. Stay out.<br><br>
Or why not <a href='/users/login'>try again!</a>";
}
$qry = 'SELECT first_name
FROM users
WHERE email = "'.$_POST['email'].'"
AND password = "'.$_POST['password'].'"';
$first_name = DB::instance(DB_NAME)->select_field($qry);
Router::redirect('/users/profile/'.$first_name);
}
public function logout() {
$new_token = sha1(TOKEN_SALT.$this->user->email.Utils::generate_random_string());
$data = Array('token' => $new_token);
DB::instance(DB_NAME)->update('users', $data, 'WHERE user_id ='. $this->user->user_id);
setcookie('token', '', strtotime('-1 year'), '/');
Router::redirect('/');
}
public function profile($user_name = NULL) {
// # Create a new View instance
// # Do *not* include .php with the view name
// $view = View::instance('v_users_profile');
# verify the user
if (!$this->user) {
# trying to sneak in without being logged in, route to homepage
Router::redirect('/');
// die('Not getting in that way! <br> <a href="/users/login">Log in</a>');
}
if (!$user_name) {
$q = 'SELECT first_name
FROM users
WHERE users.user_id = '.$this->user->user_id;
$name = DB::instance(DB_NAME)->select_field($q);
# to reroute to profile of user
Router::redirect('/users/profile/'.$name);
# if the page dies instead of rerouting
// die('Not getting in that way! <br> <a href="/users/profile/'.$name.'">Log in</a>');
}
# Set up the View
$this->template->content = View::instance('v_users_profile');
# Pass the data to the View
$this->template->content->user_name = $user_name;
# Set the title
$this->template->title = $user_name."'s Profile";
# Set Client files Head
$client_files_head = Array(
'/css/profile.css',
'/css/master.css'
); # end of array
$this->template->client_files_head = Utils::load_client_files($client_files_head);
# Set Client files Body
$client_files_body = Array(
'/js/profile.js'
); # end of array
$this->template->client_files_body = Utils::load_client_files($client_files_body);
#get info for listing posts from database
$q = 'SELECT
posts.content,
posts.created,
posts.user_id,
posts.post_id,
users.first_name,
users.last_name
FROM posts
INNER JOIN users
ON posts.user_id = users.user_id
WHERE posts.user_id = '.$this->user->user_id;
$posts = DB::instance(DB_NAME)->select_rows($q);
$this->template->content->posts = $posts;
# Display the View
echo $this->template;
}
*/
} # end of the class | 45b135e96b4cb9c77fcc6a224d165fbd1bc88d8b | [
"JavaScript",
"Markdown",
"PHP"
] | 9 | PHP | foxcroft/pr4.rubburduck.biz | 4a09dfe3de36b13faee11c2c148a516945bc961a | 771697d2fae29f25254d5ad3ed77e430079ec222 |
refs/heads/main | <file_sep># GRIP: THE SPARKS FOUNDATION
## NAME: <NAME>
## TASK 1: Creating a basic banking system.
## OPERATIONS:
### 1. View all as well as one single customer details.
### 2. Transfer money.
### 3. Transfer history.
## FRONT-END LANGUAGES:
### HTML, CSS, BOOTSTRAP, JAVASCRIPT.
## BACK-END LANGUAGE:
### PHP
## DATABASED USED:
### MySQL
<file_sep><html>
<head>
<title>ONLINE BANKING SYSTEM</title>
<link rel="stylesheet" type="text/css" href="nav.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<?php
include 'navbar.php';
?>
<div class="view">
<p>CUSTOMER DETAILS</p>
</div>
<div class="container my-4">
<?php
$conn = mysqli_connect('localhost','root','join','website');
if(isset($_GET['id'])){
$cust_id=$_GET['id'];
$get_customers="SELECT * FROM customer WHERE customer_id='$cust_id'";
$run_customers=mysqli_query($conn, $get_customers);
while($row_customers=mysqli_fetch_array($run_customers)){
$cust_id=$row_customers['customer_id'];
$cust_name=$row_customers['customer_name'];
$cust_email=$row_customers['customer_email'];
$cust_balance=$row_customers['balance'];
echo"
<br><br>
<table class='table table-bordered' style='text-align: center; font-size: 20px;' >
<tr>
<th scope='col'>Customer ID</th>
<td>$cust_id</td>
</tr>
<tr>
<th scope='col'>Customer Name</th>
<td>$cust_name</td>
</tr>
<tr>
<th scope='col'>Customer Email</th>
<td>$cust_email</td>
</tr>
<tr>
<th scope='col'>Customer Balance</th>
<td>$cust_balance</td>
</tr>
</table>
<div class='row'>
<div class='col-sm-3'></div>
<div class='col-12 col-sm-2'>
<a href='viewuser.php' style='margin-left: 50px;text-decoration: none;'class='btn btn-success' role='button'>Back to the customers list</a>
</div>
<div class='col-12 col-sm-3 '>
<a href='transferpage.php?id=$cust_id' style='margin-left:100px;text-decoration: none;'class='btn btn-danger' role='button'>Transfer Money</a>
</div>
</div>
";
}
}
?>
</div>
<br /><br /><br />
<?php
include 'footer.php';
?>
</body>
</html><file_sep><html>
<head>
<title>ONLINE BANKING SYSTEM</title>
<link rel="stylesheet" type="text/css" href="nav.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<?php
include 'navbar.php';
?>
<div class="view">
<p>CUSTOMER LIST</p>
</div>
<?php
$conn = mysqli_connect('localhost','root','join','website');
if(isset($_GET['del'])){
$del_Id = $_GET['del'];
$delete = "DELETE FROM customer WHERE customer_id='$del_Id'";
$run_delete = mysqli_query($conn, $delete);
if($run_delete === true){
echo "User data deleted successfully!!";
}
else{
echo "User deletion failed! Please try again after some time";
}
}
?>
<br />
<br />
<table class="table table-bordered">
<thead>
<tr>
<th>CUSTOMER ID</th>
<th>CUSTOMER NAME</th>
<th>CUSTOMER EMAIL</th>
<th>CRRENT BALANCE</th>
<th>ACTION</th>
<th>ACTION</th>
</tr>
</thead>
<tbody>
<?php
$conn = mysqli_connect('localhost','root','join','website');
$select = "SELECT *FROM customer";
$run = mysqli_query($conn, $select);
while($row_user=mysqli_fetch_array($run)){
$user_id = $row_user['customer_id'];
$user_name = $row_user['customer_name'];
$user_email = $row_user['customer_email'];
$user_balance = $row_user['balance'];
?>
<tr>
<td><?php echo $user_id;?></td>
<td><?php echo $user_name;?></td>
<td><?php echo $user_email;?></td>
<td><?php echo $user_balance;?></td>
<td><a class="btn" href="userdetails.php?id=<?php echo $user_id;?>">VIEW</a></td>
<td><a class="btn btn-danger" href="viewuser.php?del=<?php echo $user_id;?>">DELETE</a></td>
</tr>
<?php }
?>
</tbody>
</table>
<?php
include 'footer.php';
?>
</body>
</html><file_sep><html>
<head>
<title>ONLINE BANKING SYSTEM</title>
<link rel="stylesheet" type="text/css" href="main.css" />
<link rel="stylesheet" type="text/css" href="nav.css" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<?php
include 'navbar.php';
?>
<div class="container">
<img src="home.jpg" alt="Notebook"style="width:100%;">
<div class="content">
<p>Welcome to the sparks bank!</p>
</div>
</div>
<section class="latest">
<div class="heading">
<h1 >Our services</h1 >
<p>Safe transactions in one click!</p>
</div>
<div class="latest-container">
<div class="latest-box">
<a href="viewuser.php"><img src="user.png" /></a>
<div class="latest-b-text">
<p>
VIEW USERS
</p>
</div>
</div>
<div class="latest-box">
<a href="transaction.php"><img src="transaction.jpg" /></a>
<div class="latest-b-text">
<p>
TRANSACTION
</p>
</div>
</div>
<div class="latest-box">
<a href="transactionhistory.php"><img src="transactionhistory.png" /></a>
<div class="latest-b-text">
<p>
TRANSACTION HISTORY
</p>
</div>
</div>
</div>
</section>
<section class="white-sec" id="features">
<div class="row">
<div class="feature-box col-lg-4">
<i class="fa fa-check-circle fa-4x"></i>
<h3 class="feature-tilte">Safe transactions</h3>
</div>
<div class="feature-box col-lg-4">
<i class="fa fa-bullseye fa-4x"></i>
<h3 class="feature-tilte">Easy to Use</h3>
</div>
<div class="feature-box col-lg-4">
<i class="fa fa-heart fa-4x"></i>
<h3 class="feature-tilte">Guaranteed to work.</h3>
</div>
</div>
</section>
<?php
include 'footer.php';
?>
</body>
</html>
<file_sep><?php
$conn = mysqli_connect('localhost','root','join','website');
if(isset($_POST['submit'])){
$from = $_GET['id'];
$to = $_POST['to'];
$amount = $_POST['amount'];
$transfer_msg = $_POST['remark'];
$sql = "SELECT * FROM customer WHERE customer_id = $from";
$query = mysqli_query($conn, $sql);
$sql1 = mysqli_fetch_array($query);
$sql = "SELECT * FROM customer WHERE customer_id = $to";
$query = mysqli_query($conn, $sql);
$sql2 = mysqli_fetch_array($query);
if(($amount)<0){
echo "<script type='text/javascript'>";
echo "alert('Sorry! Negative values cannot be transfered')";
echo "</script>";
}
else if(($amount)>$sql1['balance']){
echo "<script type='text/javascript'>";
echo "alert('Insufficient balance!')";
echo "</script>";
}
else if($amount == 0){
echo "<script type='text/javascript'>";
echo "alert('Zero values cannot be trasnfered!')";
echo "</script>";
}
else{
$newbalance = $sql1['balance'] - $amount;
$sql = "UPDATE customer set balance = $newbalance WHERE customer_id = $from";
mysqli_query($conn, $sql);
$newbalance = $sql2['balance'] + $amount;
$sql = "UPDATE customer set balance = $newbalance WHERE customer_id = $to";
mysqli_query($conn, $sql);
$sender = $sql1['customer_name'];
$receiver = $sql2['customer_name'];
$sql = "INSERT INTO transaction(sender, receiver, balance, remark) values ('$sender', '$receiver', '$amount', '$transfer_msg')";
$query=mysqli_query($conn, $sql);
if($query){
echo "<script> alert('Hurray! Transaction successful');
window.location='transactionhistory.php';
</script>";
}
$newbalance = 0;
$amount = 0;
}
}
?>
<html>
<head>
<title>ONLINE BANKING SYSTEM</title>
<link rel="stylesheet" type="text/css" href="nav.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<?php
include 'navbar.php';
?>
<div class="view">
<p>TRANSFER PAGE</p>
</div>
<br />
<br />
<?php
$conn = mysqli_connect('localhost','root','join','website');
$cid = $_GET['id'];
$sql = "SELECT * FROM customer WHERE customer_id='$cid'";
$result=mysqli_query($conn, $sql);
if(!$result){
echo "Error : ". $sql. "<br>".mysqli_error($conn);
}
$rows = mysqli_fetch_assoc($result);
?>
<form method="post" name="tcredit" class="tabletext">
<br />
<div>
<table class="table table-striped table-condensed table-bordered">
<tr>
<th>CUSTOMER ID</th>
<th>CUSTOMER NAME</th>
<th>CUSTOMER EMAIL</th>
<th>CURRENT BALANCE</th>
</tr>
<tr>
<td><?php echo $rows['customer_id']?></td>
<td><?php echo $rows['customer_name']?></td>
<td><?php echo $rows['customer_email']?></td>
<td><?php echo $rows['balance']?></td>
</tr>
</table>
</div>
<br /><br /><br />
<label>TRANSFER TO:</label>
<select name="to" class="form-control" required>
<option value=" " disabled selected> choose</option>
<?php
$conn = mysqli_connect('localhost', 'root', 'join', 'website');
$cid = $_GET['id'];
$sql = "SELECT * FROM customer WHERE customer_id!=$cid";
$result = mysqli_query($conn, $sql);
if(!$result){
echo "Error : ". $sql. "<br>".mysqli_error($conn);
}
while($rows = mysqli_fetch_assoc($result)){
?>
<option class="table" value="<?php echo $rows['customer_id'];?>">
<?php echo $rows['customer_name'];?>(Balance: <?php echo $rows['balance'];?>)
</option>
<?php
}
?>
</select>
<br>
<br>
<label>Amount:</label>
<input type="number" class="form-control" name="amount" required>
<br><br>
<label for="transfer_msg">Remark:</label>
<input type="text" class="form-control" name="remark" required />
<br /><br />
<div class="text-center" >
<button class="btn mt-3" name="submit" type="submit" id="myBtn">Transfer</button>
<a href='viewuser.php' style='text-decoration: none'; class='btn res res1' role='button'>Cancel Transfer</a>
</div>
</form>
<br /><br /><br />
<?php
include 'footer.php';
?>
</body>
</html><file_sep><html>
<head>
<title>ONLINE BANKING SYSTEM</title>
<link rel="stylesheet" type="text/css" href="main.css" />
<link rel="stylesheet" type="text/css" href="nav.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<?php
include 'navbar.php';
?>
<div class="view">
<p>TRANSFER STATEMENT</p>
</div>
<br />
<br />
<table class="table table-bordered">
<thead>
<tr>
<th>SENDER NAME</th>
<th>RECEIVER NAME</th>
<th>AMOUNT TRANSFERED</th>
<th>REMARK</th>
<th>TRANSFER DATE AND TIME</th>
</tr>
</thead>
<tbody>
<?php
$conn = mysqli_connect('localhost','root','join','website');
$select = "SELECT *FROM transaction";
$run = mysqli_query($conn, $select);
while($row_user=mysqli_fetch_array($run)){
?>
<tr>
<td><?php echo $row_user['sender'];?></td>
<td><?php echo $row_user['receiver'];?></td>
<td><?php echo $row_user['balance'];?></td>
<td><?php echo $row_user['remark'];?></td>
<td><?php echo $row_user['transfer_date'];?></td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
include 'footer.php';
?>
</body>
</html>
| 1d819470c39c368aa1945be6d870ce2d6b8cbcf8 | [
"Markdown",
"PHP"
] | 6 | Markdown | nehaadawadkar2203/Basic-banking-system | 9c2bd35ab1632f99ebe360a7f96f1eed91f69ca6 | a0fd7253e52d015297ab64230536e251e6f5df14 |
refs/heads/master | <file_sep>var component = require('./component.js');
component(); | dfeeb78ec6522ff6da98e55fe5e0ce9ed71b252e | [
"JavaScript"
] | 1 | JavaScript | tammylights/newblog | 4ce0599763b018c8c21ea56200162960cc9367a9 | 1d10c5a072461536b534c7d1e5551ec5d638da9c |
refs/heads/master | <file_sep>function create() {
const events = {};
let on = (name, callBack) => {
//should throw an error if no callback is passed
if(callBack === undefined){
throw "No callBack passed";
}
if(!events[name]){
events[name] = [callBack];
}
//should NOT register the same listener more than once
else if(!events[name].includes(callBack)){
events[name].push(callBack);
}
//should return a method which unregisters the passed listener
return () => {
if(events[name] && events[name].includes(callBack)){
events[name].splice(events[name].indexOf(callBack), 1);
}
}
}
//should unregister a specific event listener
let off = (name, callBack) => {
//should not throw if event doesn't exist
if(events[name] && events[name].includes(callBack)){
events[name].splice(events[name].indexOf(callBack), 1);
}
}
let emit = (name, data = undefined) => {
//should do nothing if event has no callbacks
if(events[name]){
//should emit an event and execute all listeners callbacks
for(callBack of events[name]){
//should pass event `type` to all callbacks
if(data === undefined){
data = {"type" : name}
}
//should pass event data, as the second argument, to all callbacks
callBack(data)
}
}
}
let once = () => {
}
let race = function(){
}
return {
on,
off,
emit,
once,
race,
events
};
}
module.exports = { create }
<file_sep># JS-exercise-event-emitter
Exercício de event emitter em Javascript usando TDD
Esse é um exercício de uma entrevista técnica de emprego para vaga de Engenheiro de Software. Então você pode utilizá-la para treinar seus conhecimentos antes de uma entrevista javascript.
Para fazer o exercício você terá que instalar o Yarn em sua máquina e estar levemente familiarizado com o desenvolvimento de software orientado a testes (TDD).
Baixe a pasta “exercise-event-emitter-master” e tente solucioná-lo antes de ver a resposta.
Procure se focar mais em solucionar o problema do que em eficiência.
Lembre-se: Sempre há mais de uma maneira de se chegar na resposta correta. E o mais importante se divirta!
# Event Emitter
The goal of this exercise is to create an event emitter which can listen, unlisten and emit events.
The main module exports an object with a `create` method which act as a factory and should return a new event emitter every time it is called. The implementation of the emitter itself is up to you.
<!-- @import "[TOC]" {cmd="toc" depthFrom=2 depthTo=6 orderedList=false} -->
<!-- code_chunk_output -->
- [Running tests](#running-tests)
- [Example](#example)
- [Documentation](#documentation)
- [Creating a new Emitter](#creating-a-new-emitter)
- [Methods](#methods)
- [on](#on)
- [off](#off)
- [emit](#emit)
- [once](#once)
- [race](#race)
<!-- /code_chunk_output -->
## Running tests
By executing the _package.json_ `test` script, a `jest` process will start and re-run the test suite after every file change you made.
---
## Example
```js
import Emitter from './emitter.js'
const emitter = Emitter.create()
const handleMyEvent = () => {
console.log('Hello!')
}
// Registers the callback `handleMyEvent` to be called when we call emitter.emit passing `myEvent` as parameter
emitter.on('myEvent', handleMyEvent)
// This will call the `handleMyEvent` function
emitter.emit('myEvent')
// Will print "Hello!"
// Unregisters the callback `handleMyEvent`
emitter.off('myEvent', handleMyEvent)
// No function will be called since `myEvent` does not have any callbacks assigned to it anymore
emitter.emit('myEvent')
```
## Documentation
### Creating a new Emitter
```js
const EventEmitter = require('...')
// Return a new event emitter
const emitter = EventEmitter.create()
```
### Methods
#### on
> `on(event: string, callback: function): function`
Registers a `callback` that runs when `event` is emitted.
**Example**:
```js
emitter.on('click', () => {
console.log('Click!')
})
// register a new listener for the 'click' event
```
It returns a method which unregisters the listener:
**Example**:
```js
const cancel = emitter.on('click', () => {
console.log('Click!')
})
cancel()
// unregister the click listener
```
---
#### off
> `off(event: string, callback: function)`
Unregisters a `callback` from the `event` callback list.
**Example**:
```js
const callback = () => {
console.log('Click!')
}
// register the listener
emitter.on('click', callback)
// unregister the listener
emitter.off('click', callback)
```
---
#### emit
> `emit(event: string, data: object)`
Execute all callbacks registered for `event` passing `data` as a parameter.
**Example**:
```js
emitter.on('click', () => console.log('Click 1'))
emitter.on('click', () => console.log('Click 2'))
emitter.on('click', () => console.log('Click 3'))
emitter.emit('click')
// Prints:
// Click 1
// Click 2
// Click 3
```
Every listener callback receives a `data` object which contains the `type` of the event and any other property passed on `.emit()`:
**Example**:
```js
emitter.on('loaded', e => console.log(e))
emitter.emit('loaded', { foo: 'potato' })
// Prints:
// { type: 'loaded', foo: 'potato' }
```
---
#### once
> `once(event: string, callback: function): function`
Registers a `callback` tha runs only once when `event` is emitted.
**Example**:
```js
emitter.once('click', () => console.log('Single click!'))
emitter.emit('click')
emitter.emit('click')
// Prints 'Single click!' only once
```
---
#### race
> `race(Array<[event: string, callback: function]>): function`
Receives a list of `[event, callback]` and when any of the passed events is emitted, it unregisters all of them.
**Example**:
```js
emitter.race([
['success', () => console.log('Success!')],
['failure', () => console.log('Failure :(')],
])
emitter.emit('success') // Prints 'Success!', `success` and `failure` are unregistered.
emitter.emit('failure') // nothing happens
```
| a8d412e369c8f324d773ebf2a2a91d3103f0959f | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | srmeneses/JS-exercise-event-emitter | 728875b0b8625e10569ae69dadff65e1507aa89e | 493ba169bba0e79eb318c5a7a8bfec9598cfa078 |
refs/heads/main | <file_sep>
// funcion para activar el login
function login() {
document.getElementById('login').style.display = 'block';
document.getElementById('login').style.textAlign = 'center';
document.getElementById('login').style.position = 'absolute';
document.getElementById('login').style.zIndex = '1';
console.log('funciona');
}
// funcion validacion
function validarLogin() {
let user = document.forms["login"]["user"].value;
if(user == "") {
alert('Ingresa tu usuario');
return false;
} else if (user.length<=6) {
alert("Escribe tu usuario completo")
}
let password = document.forms['login']['password'].value;
if(password == "") {
alert('Ingresa tu contraseña');
return false;
} else if( password.length<=6) {
alert("Ingresa mas de 6 caracteres");
}
}<file_sep># Oldemo.com
Oldemo is a web interface built to study and refresh knowledge in Frontend Developer related technologies. It was designed taking into account semantics, CSS styling and added dynamism in the cards, login, register and consumption of an API to exemplify.
Oldemo is projected as an app that helps adults to learn about technology. Translates Old Age, Development and Motivation.
## Installation
1. Clone this project
2. Go to the project folder ( cd Oldemo.com)
3. When you enter the folder, click on the html file (it shows you by default the browser to open the project).
4. If you want to open through the terminal while in the Oldemo.com folder install Live server: <code>npm install -g live-server</code>
5. When it is installed, enter the command <code>live-server</code> in your terminal and it should open the project visually.
## Demo
https://jshc27.github.io/Oldemo.com/
## License
The MIT license (MIT)
## Contributions
I invite you to contribute to this project by improving the visual aspects or functionality and loading in the browser.
## More information
:point_right: https://www.npmjs.com/package/live-server
| 07c0c2d596fa3015967da3e79d8693adb69d4205 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | jshc27/Oldemo.com | 5d26f5b9420959fef1dc1e9b681de9e5a0c978a7 | 6e934ca70d84d07335fcaa65ed50354749f79045 |
refs/heads/master | <repo_name>deepak-likes-code/Expense-Tracker<file_sep>/src/components/AddTransaction.js
import { useState } from 'react'
const AddTransaction = ({ onAdd }) => {
const [item, setItem] = useState('')
const [amount, setAmount] = useState(0)
const [spent, setIncome] = useState(false)
const onSubmit = (e) => {
e.preventDefault();
if (!item) {
alert('Please add text')
return
}
onAdd({ item, amount, spent });
setItem('')
setAmount(0)
setIncome(false)
}
return (
<div className="text-start mt-2 mx-3">
<p className='mb-2 p-2 border-bottom'>Add Transaction</p>
<form onSubmit={onSubmit}>
<div className="form-group">
<label >Item</label>
<input type="text" value={item} onChange={(e) => setItem(e.target.value)} class="form-control mb-3" placeholder='item'></input>
</div>
<div className="form-group mb-3">
<label >Amount</label>
<input type="number" value={amount} onChange={(e) => setAmount(parseInt(e.target.value))} class="form-control" placeholder='Amount'></input>
</div>
<div className="form-check mb-4">
<label class="form-check-label" >Income</label>
<input checked={spent} value={spent} onChange={(e) => setIncome(e.currentTarget.checked)} class="form-check-input" type="checkbox" ></input>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
)
}
export default AddTransaction
<file_sep>/src/components/MoneySplit.js
import React from 'react'
const MoneySplit = ({ totalEarned, totalSpent }) => {
return (
<div className="d-flex flex-row card justify-content-around align-items-center">
<h5 style={{ color: 'red' }}> Spent: {totalSpent}</h5>
|
<h5 style={{ color: 'green' }}>Earnings: {totalEarned}</h5>
</div>
)
}
export default MoneySplit
<file_sep>/src/components/Header.js
import { useContext } from 'react'
import MoneySplit from './MoneySplit'
const Header = ({ total }) => {
const { balance, totalSpent, totalEarned } = total()
const color = () => balance > 0 ? { color: 'green' } : { color: 'red' }
return (
<div>
<h1 className='mb-3'>Expense Tracker</h1>
<h4 className='mb-3'>Your Balance:
<span style={color()}>${balance}</span></h4>
<MoneySplit totalEarned={totalEarned} totalSpent={totalSpent} />
</div>
)
}
export default Header | e3abe0fdb79018510913e76aee4496450d935202 | [
"JavaScript"
] | 3 | JavaScript | deepak-likes-code/Expense-Tracker | 0b25e4fc7bdaef96e92d53e28710873270f1803d | ea560c9a51754cf977bc33b6065842a94e3a7878 |
refs/heads/master | <repo_name>Huan2018/fastrack<file_sep>/ros/src/fastrack/include/fastrack/dynamics/quadrotor_decoupled_6d_rel_planar_dubins_3d.h
/*
* Copyright (c) 2017, The Regents of the University of California (Regents).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* Please contact the author(s) of this library if you have any questions.
* Authors: <NAME> ( <EMAIL> )
*/
///////////////////////////////////////////////////////////////////////////////
//
// Defines the relative dynamics between a 6D decoupled quadrotor model and a
// 3D planar Dubins model.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef FASTRACK_DYNAMICS_QUADROTOR_DECOUPLED_6D_REL_PLANAR_DUBINS_3D_H
#define FASTRACK_DYNAMICS_QUADROTOR_DECOUPLED_6D_REL_PLANAR_DUBINS_3D_H
#include <fastrack/control/quadrotor_control.h>
#include <fastrack/dynamics/dynamics.h>
#include <fastrack/state/planar_dubins_3d.h>
#include <fastrack/state/position_velocity.h>
#include <fastrack/state/position_velocity_rel_planar_dubins_3d.h>
#include <math.h>
namespace fastrack {
namespace dynamics {
using control::QuadrotorControl;
using state::PlanarDubins3D;
using state::PositionVelocity;
using state::PositionVelocityRelPlanarDubins3D;
class QuadrotorDecoupled6DRelPlanarDubins3D
: public RelativeDynamics<PositionVelocity, QuadrotorControl,
PlanarDubins3D, double> {
public:
~QuadrotorDecoupled6DRelPlanarDubins3D() {}
explicit QuadrotorDecoupled6DRelPlanarDubins3D()
: RelativeDynamics<PositionVelocity, QuadrotorControl, PlanarDubins3D,
double>() {}
// Derived classes must be able to give the time derivative of relative state
// as a function of current state and control of each system.
inline std::unique_ptr<RelativeState<PositionVelocity, PlanarDubins3D>>
Evaluate(const PositionVelocity &tracker_x, const QuadrotorControl &tracker_u,
const PlanarDubins3D &planner_x, const double &planner_u) const {
// Compute relative state.
const PositionVelocityRelPlanarDubins3D relative_x(tracker_x, planner_x);
// TODO(@jaime): Check these calculations.
// Relative distance derivative.
distance_dot =
relative_x.TangentVelocity() * std::cos(relative_x.Bearing()) +
relative_x.NormalVelocity() * std::sin(relative_x.Bearing());
// Relative bearing derivative.
bearing_dot =
-planner_u -
relative_x.TangentVelocity() * std::sin(relative_x.Bearing()) +
relative_x.NormalVelocity() * std::cos(relative_x.Bearing());
// Relative tangent and normal velocity derivatives.
// NOTE! Must rotate roll/pitch into planner frame.
const double c = std::cos(planner_x.Theta());
const double s = std::sin(planner_x.Theta());
tangent_velocity_dot = tracker_u.pitch * c - tracker_u.roll * s +
planner_u * relative_x.TangentVelocity();
normal_velocity_dot = -tracker_u.pitch * s - tracker_u.roll * c -
planner_u * relative_x.TangentVelocity();
return std::unique_ptr<PositionVelocityRelPlanarDubins3D>(
new PositionVelocityRelPlanarDubins3D() distance_dot, bearing_dot,
tangent_velocity_dot, normal_velocity_dot));
}
// Derived classes must be able to compute an optimal control given
// the gradient of the value function at the relative state specified
// by the given system states, provided abstract control bounds.
inline QuadrotorControl OptimalControl(
const PositionVelocity &tracker_x, const PlanarDubins3D &planner_x,
const RelativeState<PositionVelocity, PlanarDubins3D> &value_gradient,
const QuadrotorControlBoundCylinder &tracker_u_bound,
const ScalarBoundInterval &planner_u_bound) const {
// TODO(@dfk, @jaime): figure this part out.
}
}; //\class QuadrotorDecoupledPlanarDubins
} // namespace dynamics
} // namespace fastrack
#endif
<file_sep>/README.md
# [FaSTrack](https://hjreachability.github.io/fastrack/)
[](https://travis-ci.org/HJReachability/fastrack)
[](LICENSE)
[FaSTrack](https://hjreachability.github.io/fastrack/) (Fast and Safe Tracking): fast planning methods with slower, reachability-based safety guarantees for online safe trajectory planning. Auto-generated documentation may be found [here](https://hjreachability.github.io/fastrack/doc/html).
## Repository organization
All code in this repository is written in the Robot Operating System (ROS) framework, and as such is broken up into atomic packages that implement specific functionality. The `ros/` directory is the root workspace, and individual packages live inside the `ros/src/` directory.
## Usage
First, make sure you have ROS installed on your system. The project was developed in Jade, but it should be compatible with anything past Hydro. Please let us know if you have any compatibility issues.
The core `fastrack`, `fastrack_msgs`, and `fastrack_srvs` have no significant external dependencies other than those listed below. However, the `fastrack_crazyflie_demos` package depends upon the [crazyflie_clean](https://github.com/dfridovi/crazyflie_clean) repository, which contains drivers and utilities for the HSL's Crazyflie 2.0 testbed.
Other dependencies:
* [Gtest](https://github.com/google/googletest) -- Google's C++ unit testing library
* [Eigen](https://eigen.tuxfamily.org) -- a header-only linear algebra library for C++
* [OMPL](http://ompl.kavrakilab.org) -- an open C++ library for motion planning (recommend v1.2.1 to avoid g++5 dependency)
* [MATIO](https://github.com/tbeu/matio) -- an open C library for MATLAB MAT file I/O
* [FLANN](http://www.cs.ubc.ca/research/flann/) -- an open source library for fast (approximate) nearest neighbors
To build the entire workspace, you must begin by building and sourcing the `crazyflie_clean` repository. Instructions may be found in that project's README. Once you have done that, open a terminal window and navigate to the `ros/` directory. Then run:
```
catkin_make
```
If you only wish to build the `fastrack` core packages (_not_ `fastrack_crazyflie_demos`) then you may instead run:
```
catkin_make --pkg=fastrack
```
Every time you open a new terminal, you'll have to tell ROS how to find this package. Do this by running the following command from the `ros/` directory:
```
source devel/setup.bash
```
To run unit tests, type:
```
catkin_make run_tests
```
## C++ reference materials
We attempt to adhere to the philosophy put forward in the [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html). Our code is written _for the reader, not the writer_. We write comments liberally and use inheritance whenever it makes sense.
A few tips, tricks, and customs that you'll find throughout our code:
* Lines of code are no longer than 80 characters.
* The names of all member variables of a class end with an underscore, e.g. `foo_`.
* When iterating through a vector, we name the index something like `ii` instead of just `i`. This makes it super easy to find and replace the iterator later.
* We use the `const` specifier whenever possible.
* We try to include optional guard statements with meaningful debug messages wherever possible. These may be toggled on/off with the `ENABLE_DEBUG_MESSAGES` cmake option.
* Whenever it makes sense, we write unit tests for self-contained functionality and integration tests for dependent functions and classes. These are stored in the `test/` directory.
<file_sep>/compile.sh
#!/bin/bash
# Build workspace.
cd ros
catkin_make -j4 || { echo 'Build failed.'; exit 1; }
# Run tests.
catkin_make run_tests || { echo 'Unit tests failed.'; exit 1; }
# Build docs.
cd ..
rm -rf doc/
rosdoc_lite ros/src/fastrack
<file_sep>/ros/src/fastrack/include/fastrack/control/vector_bound_box.h
/*
* Copyright (c) 2018, The Regents of the University of California (Regents).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* Please contact the author(s) of this library if you have any questions.
* Authors: <NAME> ( <EMAIL> )
*/
///////////////////////////////////////////////////////////////////////////////
//
// Class to specify a box constraint on a vector-valued control variable.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef FASTRACK_CONTROL_VECTOR_BOUND_BOX_H
#define FASTRACK_CONTROL_VECTOR_BOUND_BOX_H
#include <fastrack/control/control_bound.h>
#include <fastrack/control/scalar_bound_interval.h>
namespace fastrack {
namespace control {
class VectorBoundBox : public ControlBound<VectorXd> {
public:
~VectorBoundBox() {}
explicit VectorBoundBox(const VectorXd &min, const VectorXd &max)
: ControlBound(), min_(min), max_(max) {
if (min_.size() != max_.size())
throw std::runtime_error("Inconsistent bound dimensions.");
}
// Accessors.
inline const VectorXd &Min() const { return min_; }
inline const VectorXd &Max() const { return max_; }
// Derived classes must be able to check whether a query is inside the bound.
inline bool Contains(const VectorXd &query) const {
if (min_.size() != query.size()) {
ROS_ERROR("VectorBoundBox: incorrect query dimension.");
return false;
}
for (size_t ii = 0; ii < min_.size(); ii++) {
if (min_(ii) > query(ii) || query(ii) > max_(ii))
return false;
}
return true;
}
// Derived classes must be able to compute the projection of a vector
// (represented as the templated type) onto the surface of the bound.
// NOTE: We will treat this vector as emanating from the natural origin
// of the bound so that it constitutes a meaningful direction with respect
// to that origin.
inline VectorXd ProjectToSurface(const VectorXd &query) const {
if (min_.size() != query.size()) {
ROS_ERROR("VectorBoundBox: incorrect query dimension.");
return VectorXd::Zero(min_.size());
}
VectorXd projection(min_.size());
for (size_t ii = 0; ii < min_.size(); ii++)
projection(ii) = (query(ii) >= 0.0) ? max_(ii) : min_(ii);
return projection;
}
private:
// Lower and upper bounds..
const VectorXd min_, max_;
}; //\class ControlBound
} // namespace control
} // namespace fastrack
#endif
<file_sep>/ros/src/fastrack/include/fastrack/bound/box.h
/*
* Copyright (c) 2018, The Regents of the University of California (Regents).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* Please contact the author(s) of this library if you have any questions.
* Authors: <NAME> ( <EMAIL> )
*/
///////////////////////////////////////////////////////////////////////////////
//
// Box for tracking error bound. This will arise when dynamics decouple into
// 1D subsystems. Boxes are defined only by their size in each dimension.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef FASTRACK_BOUND_BOX_H
#define FASTRACK_BOUND_BOX_H
#include <fastrack/bound/tracking_bound.h>
#include <fastrack/utils/types.h>
#include <fastrack_srvs/TrackingBoundBox.h>
#include <fastrack_srvs/TrackingBoundBoxResponse.h>
namespace fastrack {
namespace bound {
struct Box : public TrackingBound<fastrack_srvs::TrackingBoundBox::Response> {
// Size in each dimension.
double x;
double y;
double z;
// Constructors and destructor.
~Box() {}
explicit Box()
: TrackingBound() {}
explicit Box(double xsize, double ysize, double zsize)
: TrackingBound(),
x(xsize), y(ysize), z(zsize) {}
// Convert from service response type SR.
inline void FromRos(const fastrack_srvs::TrackingBoundBox::Response& res) {
x = res.x; y = res.y; z = res.z;
}
// Convert to service response.
inline fastrack_srvs::TrackingBoundBox::Response ToRos() const {
fastrack_srvs::TrackingBoundBox::Response res;
res.x = x; res.y = y; res.z = z;
return res;
}
// Visualize.
inline void Visualize(const ros::Publisher& pub, const std::string& frame) const {
visualization_msgs::Marker m;
m.ns = "bound";
m.header.frame_id = frame;
m.header.stamp = ros::Time::now();
m.id = 0;
m.type = visualization_msgs::Marker::CUBE;
m.action = visualization_msgs::Marker::ADD;
m.color.a = 0.3;
m.color.r = 0.5;
m.color.g = 0.1;
m.color.b = 0.5;
m.scale.x = 2.0 * x;
m.scale.y = 2.0 * y;
m.scale.z = 2.0 * z;
pub.publish(m);
}
}; //\struct Box
} //\namespace bound
} //\namespace fastrack
#endif
<file_sep>/ros/src/fastrack/include/fastrack/control/scalar_bound_interval.h
/*
* Copyright (c) 2018, The Regents of the University of California (Regents).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* Please contact the author(s) of this library if you have any questions.
* Authors: <NAME> ( <EMAIL> )
*/
///////////////////////////////////////////////////////////////////////////////
//
// Class to specify an interval constraint on a scalar control variable.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef FASTRACK_CONTROL_SCALAR_BOUND_INTERVAL_H
#define FASTRACK_CONTROL_SCALAR_BOUND_INTERVAL_H
#include <fastrack/control/control_bound.h>
namespace fastrack {
namespace control {
class ScalarBoundInterval : public ControlBound<double> {
public:
~ScalarBoundInterval() {}
explicit ScalarBoundInterval(double min, double max)
: ControlBound(), min_(min), max_(max) {}
// Derived classes must be able to check whether a query is inside the bound.
inline bool Contains(const double &query) const {
return min_ <= query && query <= max_;
}
// Derived classes must be able to compute the projection of a vector
// (represented as the templated type) onto the surface of the bound.
// NOTE: We will treat this vector as emanating from the natural origin
// of the bound so that it constitutes a meaningful direction with respect
// to that origin.
inline double ProjectToSurface(const double &query) const {
return (query >= 0.0) ? max_ : min_;
}
private:
// Min and max interval values.
const double min_, max_;
}; //\class ControlBound
} // namespace control
} // namespace fastrack
#endif
<file_sep>/ros/src/fastrack/include/fastrack/planning/graph_dynamic_planner.h
/*
* Copyright (c) 2018, The Regents of the University of California (Regents).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* Please contact the author(s) of this library if you have any questions.
* Authors: <NAME> ( <EMAIL> )
* <NAME> ( <EMAIL> )
*/
///////////////////////////////////////////////////////////////////////////////
//
// Base class for all graph-based dynamic planners. These planners are all
// guaranteed to generate recursively feasible trajectories constructed
// using sampling-based logic.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef FASTRACK_PLANNING_GRAPH_DYNAMIC_PLANNER_H
#define FASTRACK_PLANNING_GRAPH_DYNAMIC_PLANNER_H
#include <fastrack/planning/planner.h>
#include <fastrack/planning/searchable_set.h>
#include <fastrack/trajectory/trajectory.h>
#include <fastrack/utils/types.h>
namespace fastrack {
namespace planning {
using dynamics::Dynamics;
template<typename S, typename E,
typename D, typename SD, typename B, typename SB>
class GraphDynamicPlanner : public Planner< S, E, D, SD, B, SB > {
public:
virtual ~GraphDynamicPlanner() {}
protected:
explicit GraphDynamicPlanner()
: Planner<S, E, D, SD, B, SB>() {}
// Load parameters.
virtual bool LoadParameters(const ros::NodeHandle& n);
// Plan a trajectory from the given start to goal states starting
// at the given time.
Trajectory<S> Plan(const S& start, const S& goal, double start_time=0.0) const;
// Recursive version of Plan() that plans outbound and return trajectories.
// High level recursive feasibility logic is here. Keep track of the
// graph of explored states, a set of goal states, the start time,
// whether or not this is an outbound or return trip, and whether
// or not to extract a trajectory at the end (if not, returns an empty one.)
Trajectory<S> RecursivePlan(SearchableSet< Node<S>, S >& graph,
const SearchableSet< Node<S>, S >& goals,
double start_time,
bool outbound,
const ros::Time& initial_call_time) const;
// Generate a sub-plan that connects two states and is dynamically feasible
// (but not necessarily recursively feasible).
virtual Trajectory<S> SubPlan(
const S& start, const S& goal, double start_time=0.0) const = 0;
// Cost functional. Defaults to time, but can be overridden.
virtual double Cost(const Trajectory<S>& traj) const { return traj.Duration(); }
// Extract a trajectory from goal node to start node if one exists.
// Returns empty trajectory if none exists.
Trajectory<S> ExtractTrajectory(const Node<S>::ConstPtr& start,
const Node<S>::ConstPtr& goal) const;
// Update cost to come, time, and all traj_to_child times recursively.
void UpdateDescendants(const Node<S>::Ptr& node,
const Node<S>::ConstPtr& start) const;
// Member variables.
size_t num_neighbors_;
double search_radius_;
// Node in implicit planning graph, templated on state type.
// NOTE! To avoid memory leaks, Nodes are constructed using a static
// factory method that returns a shared pointer.
template<typename S>
struct Node<S> {
// Member variables.
S state;
double time = constants::kInfinity;
double cost_to_come = constants::kInfinity;
bool is_viable = false;
Node<S>::ConstPtr best_parent = nullptr;
std::vector< Node<S>::Ptr > children;
std::vector< Trajectory<S> > trajs_to_children;
// Typedefs.
typedef std::shared_ptr< Node<S> > Ptr;
typedef std::shared_ptr< const Node<S> > ConstPtr;
// Factory methods.
static Node<S>::Ptr Create();
static Node<S>::Ptr Create(
const S& state,
double time,
double cost_to_come,
bool is_viable,
const Node<S>::Ptr& best_parent,
const std::vector< Node<S>::Ptr >& children,
const std::vector< Trajectory<S> >& trajs_to_children);
private:
explicit Node<S>() {}
explicit Node<S>(const S& state,
double time,
double cost_to_come,
bool is_viable,
const Node<S>::Ptr& best_parent,
const std::vector< Node<S>::Ptr >& children,
const std::vector< Trajectory<S> >& trajs_to_children)
: this->state(state),
this->time(time),
this->cost_to_come(cost_to_come),
this->is_viable(is_viable),
this->best_parent(best_parent),
this->children(children),
this->trajs_to_children(trajs_to_children) {}
}; //\struct Node<S>
// Implementation of static factory methods for constructing a Node.
template<typename S>
Node<S>::Ptr Node<S>::Create() { return Node<S>::Ptr(new Node<S>()); }
template<typename S>
Node<S>::Ptr Node<S>::
Create(const S& state,
bool is_viable,
double time,
double cost_to_come,
const Node<S>::Ptr& best_parent,
const std::vector< Node<S>::Ptr >& children,
const std::vector< Trajectory<S> >& trajs_to_children) {
return Node<S>::Ptr(new Node<S>(state,
time,
cost_to_come,
is_viable,
best_parent,
children,
trajs_to_children));
}
}; //\class GraphDynamicPlanner
// ----------------------------- IMPLEMENTATION ----------------------------- //
// Plan a trajectory from the given start to goal states starting
// at the given time.
template<typename S, typename E,
typename D, typename SD, typename B, typename SB>
Trajectory<S> GraphDynamicPlanner<S, E, D, SD, B, SB>::
Plan(const S& start, const S& goal, double start_time=0.0) const {
// Keep track of initial time.
const ros::Time initial_call_time = ros::Time::now();
// Set up start and goal nodes.
Node<S>::Ptr start_node;
start_node->state = start;
start_node->time = start_time;
start_node->cost_to_come = 0.0;
start_node->is_viable = true;
Node<S>::Ptr goal_node;
goal_node->state = goal;
goal_node->time = constants::kInfinity;
goal_node->cost_to_come = constants::kInfinity;
goal_node->is_viable = true;
// Generate trajectory.
const Trajectory<S> traj =
RecursivePlan(SearchableSet< Node<S>, S >(start_node),
SearchableSet< Node<S>, S >(goal_node),
start_time, true, initial_call_time);
// Wait around if we finish early.
const double elapsed_time = (ros::Time::now() - initial_call_time).toSec();
if (elapsed_time < max_runtime_)
ros::Duration(max_runtime_ - elapsed_time).sleep();
return traj;
}
// Recursive version of Plan() that plans outbound and return trajectories.
// High level recursive feasibility logic is here.
template<typename S, typename E,
typename D, typename SD, typename B, typename SB>
Trajectory<S> GraphDynamicPlanner<S, E, D, SD, B, SB>::
RecursivePlan(SearchableSet< Node<S>, S >& graph,
const SearchableSet< Node<S>, S >& goals,
double start_time,
bool outbound,
const ros::Time& initial_call_time) const {
// Loop until we run out of time.
while ((ros::Time::now() - initial_call_time).toSec() < max_runtime_) {
// (1) Sample a new point.
const S sample = S::Sample(lower, upper);
// (2) Get k nearest neighbors.
const std::vector< Node<S>::Ptr > neighbors =
graph.KnnSearch(sample, num_neighbors_);
Node<S>::Ptr parent = nullptr;
for (const auto& neighbor : neighbors) {
// Reject this neighbor if it's too close to the sample.
if ((neighbor->state.ToVector() - sample.ToVector()).norm() <
constants::kEpsilon)
continue;
// (3) Plan a sub-path from this neighbor to sampled state.
const Trajectory<S> sub_plan =
SubPlan(neighbor->state, sample, neighbor->time);
if (sub_plan.Size() > 0) {
parent = neighhor;
// Add to graph.
Node<S>::Ptr sample_node = Node<S>::Create();
sample_node->state = sample;
sample_node->time = parent->time + sub_plan.Duration();
sample_node->cost_to_come = parent->cost_to_come + Cost(sub_plan);
sample_node->is_viable = false;
sample_node->best_parent = parent;
sample_node->children = {};
sample_node->trajs_to_children = {};
// Update parent.
parent->children.push_back(sample_node);
parent->trajs_to_children.push_back(sub_plan);
break;
}
}
// Sample a new point if there was no good way to get here.
if (parent == nullptr)
continue;
// (4) Connect to one of the k nearest goal states if possible.
std::vector< Node<S>::Ptr > neighboring_goals =
goals.RadiusSearch(sample, search_radius_);
Node<S>::Ptr child = nullptr;
for (const auto& goal : neighboring_goals) {
// Check if this is a viable node.
if (!goal->is_viable)
continue;
// Try to connect.
const Trajectory<S> sub_plan =
SubPlan(sample, goal->state, sample_node->time);
// Upon success, set child to point to goal and update sample node to
// include child node and corresponding trajectory.
if (sub_plan.Size() > 0) {
child = goal;
// Update sample node to point to child.
sample_node->children.push_back(child);
sample_node->trajs_to_children.push_back(sub_plan);
break;
}
}
if (child == nullptr) {
// (5) If outbound, make a recursive call.
if (outbound)
const Trajectory<S> ignore =
RecursivePlan(graph, graph, sample_node->time,
false, initial_call_time);
} else {
// Reached the goal. Update goal to ensure it always has the
// best parent.
if (child->best_parent == nullptr ||
child->best_parent->cost_to_come > sample_node->cost_to_come) {
// I'm yo daddy.
child->best_parent = sample_node;
// Breath first search to update time / cost to come.
UpdateDescendants(sample_node);
}
// Make sure all ancestors are viable.
// NOTE! Worst parents are not going to get updated.
Node<S>::Ptr parent = sample_node;
while (parent != nullptr && !parent->is_viable) {
parent->is_viable = true;
parent = parent->best_parent;
}
// Extract trajectory. Always walk backward from the initial node of the
// goal set to that of the start set.
// Else, return a dummy trajectory since it will be ignored anyway.
if (outbound)
return ExtractTrajectory(graph.InitialNode(), goals.InitialNode())
else
return Trajectory<S>();
}
}
// Ran out of time.
ROS_ERROR("%s: Planner ran out of time.", name_.c_str());
// Don't return a trajectory if not outbound.
if (!outbound)
return Trajectory<S>();
// Return a viable loop if we found one.
const Node<S>::ConstPtr start = graph.InitialNode();
if (start->best_parent == nullptr) {
ROS_ERROR("%s: No viable loops available.", name_.c_str());
return Trajectory<S>();
}
ROS_INFO("%s: Found a viable loop.", name_.c_str());
return ExtractTrajectory(start, start);
}
// Extract a trajectory from goal node to start node if one exists.
// Returns empty trajectory if none exists.
template<typename S, typename E,
typename D, typename SD, typename B, typename SB>
Trajectory<S> GraphDynamicPlanner<S, E, D, SD, B, SB>::
ExtractTrajectory(const Node<S>::ConstPtr& start,
const Node<S>::ConstPtr& goal) const {
// Accumulate trajectories in a list.
std::list< Trajectory<S> > trajs;
Node<S>::Ptr node = goal;
while (node != start || (node == start && trajs.size() == 0)) {
const Node<S>::Ptr parent = node->best_parent;
if (parent == nullptr) {
ROS_ERROR("%s: Parent was null.", name_.c_str());
break;
}
// Find node as child of parent.
// NOTE! Could avoid this by replacing parallel std::vectors
// an std::unordered_map.
for (size_t ii = 0; ii < parent->children.size(); ii++) {
if (parent->children[ii] == node) {
trajs.push_front(parent->trajs_to_children[ii]);
break;
}
if (ii == parent->children.size() - 1)
ROS_ERROR("%s: Parent/child inconsistency.", name_.c_str());
}
}
// Concatenate into a single trajectory.
return Trajectory<S>(trajs);
}
// Load parameters.
template<typename S, typename E,
typename D, typename SD, typename B, typename SB>
bool GraphDynamicPlanner<S, E, D, SD, B, SB>::
LoadParameters(const ros::NodeHandle& n) {
if (!Planner<S, E, D, SD, B, SB>::LoadParameters(n))
return false;
ros::NodeHandle nl(n);
// Search parameters.
int k;
if (!nl.getParam("planner/search_radius", search_radius_)) return false;
if (!nl.getParam("planner/num_neighbors", k)) return false;
num_neighbors_ = static_cast<size_t>(k);
return true;
}
// Update cost to come, time, and all traj_to_child times recursively.
template<typename S, typename E,
typename D, typename SD, typename B, typename SB>
void GraphDynamicPlanner<S, E, D, SD, B, SB>::
UpdateDescendants(const Node<S>::Ptr& node,
const Node<S>::ConstPtr& start) const {
// Run breadth-first search.
// Initialize a queue with 'node' inside.
std::list< Node<S>::Ptr > queue = { node };
while (queue.size() > 0) {
// Pop oldest node.
const Node<S>::Ptr current_node = queue.front();
queue.pop_front();
// Skip this one if it's the start node.
if (current_node == start)
continue;
for (size_t ii = 0; ii < current_node->children.size(); ii++) {
const Node<S>::Ptr child = current_node->children[ii];
// Push child onto the queue.
queue.push_back(child);
// Update trajectory to child.
// NOTE! This could be removed since trajectory timing is adjusted
// again upon concatenation and extraction.
current_node->trajs_to_children[ii].ResetFirstTime(current_node->time);
// Maybe update child's best parent to be the current node.
// If so, also update time and cost to come.
if (child->best_parent != nullptr ||
child->best_parent->cost_to_come > current_node->cost_to_come) {
child->best_parent = current_node;
child->time = current_node->time +
current_node->trajs_to_children[ii].Duration();
child->cost_to_come = current_node->cost_to_come +
Cost(current_node->trajs_to_children[ii]);
}
}
}
}
} //\namespace planning
} //\namespace fastrack
#endif
| fe766a42e081243d593aab5bf0fad27922e82f57 | [
"Markdown",
"C++",
"Shell"
] | 7 | C++ | Huan2018/fastrack | 2802a6fea82071beb82ced603cbce9b85930683e | 0bfce38e5d80b448249a0ff8c376e3a7c1c93a51 |
refs/heads/master | <repo_name>rws-github/manifest-tool<file_sep>/docker/inspect_test.go
package docker
import "testing"
func TestValidateName(t *testing.T) {
var crctnames = []struct {
a string
}{
{"localhost:5000/hello-world"},
{"myregistrydomain:5000/java"},
{"docker.io/debian"},
}
var wrngnames = []struct {
b string
}{
{"localhost:5000,hello-world"},
{"myregistrydomain:5000&java"},
{"docker.io@busybox"},
}
for _, i := range crctnames {
res := validateName(i.a)
if res != nil {
t.Errorf("%s is an invalid name: %s", i.a, res)
}
}
for _, j := range wrngnames {
res := validateName(j.b)
if res == nil {
t.Errorf("%s is an invalid name", j.b)
}
}
}
| 10b32fbd56fc2e3ddf17e3873539d5ff2357fbb0 | [
"Go"
] | 1 | Go | rws-github/manifest-tool | 7fdb3d4d49f05a8c2989c123b0dfd751942d35cb | a91a35bf9cca10faac5e05dcc91f8380a7390c0f |
refs/heads/master | <repo_name>GZH123456/161115_React_Project<file_sep>/src/components/mobile_news_detail.jsx
import React, {Component} from 'react'
import {BackTop} from 'antd'
import axios from 'axios'
import NewsComments from './news_comments'
class MobileNewsDetail extends Component {
constructor (props) {
super(props)
this.state = {
news: ''
}
}
componentWillMount () {
const {news_id} = this.props.params
const url = `http://newsapi.gugujiankong.com/Handler.ashx?action=getnewsitem&uniquekey=${news_id}`
axios.get(url)
.then(response => {
const news = response.data
this.setState({news})
})
}
render () {
const {news} = this.state
return (
<div>
<div className="mobileDetailsContainer" dangerouslySetInnerHTML={{__html:news.pagecontent}}></div>
<hr/>
<NewsComments newsId={this.props.params.news_id}/>
<BackTop/>
</div>
)
}
}
export default MobileNewsDetail<file_sep>/src/components/news_footer.jsx
import React from 'react'
import {Row, Col } from 'antd'
function NewsFooter() {
return(
<footer>
<Row>
<Col span={24} className='footer'>
© 2016 ReactNews. All Rights Reserved.
</Col>
</Row>
</footer>
)
}
export default NewsFooter<file_sep>/src/components/mobile_news_container.jsx
import React, {Component} from 'react'
import {Tabs, Carousel} from 'antd'
const TabPane = Tabs.TabPane
import carousel_1 from '../images/carousel_1.jpg'
import carousel_2 from '../images/carousel_2.jpg'
import carousel_3 from '../images/carousel_3.jpg'
import carousel_4 from '../images/carousel_4.jpg'
import MobileNewsBlock from './mobile_news_block'
class MobileNewsContainer extends Component {
render () {
return (
<Tabs >
<TabPane tab="头条" key="1">
<div style={{width:'100%'}}>
<Carousel autoplay infinite>
<div><img src={carousel_1} alt="1"/></div>
<div><img src={carousel_2} alt="2"/></div>
<div><img src={carousel_3} alt="3"/></div>
<div><img src={carousel_4} alt="4"/></div>
</Carousel>
</div>
<MobileNewsBlock type="top" count={20}/>
</TabPane>
<TabPane tab="社会" key="2">
<MobileNewsBlock type="shehui" count={20}/>
</TabPane>
<TabPane tab="国内" key="3">
<MobileNewsBlock type="guonei" count={20}/>
</TabPane>
<TabPane tab="国际" key="4">
<MobileNewsBlock type="guoji" count={20}/>
</TabPane>
<TabPane tab="娱乐" key="5">
<MobileNewsBlock type="yule" count={20}/>
</TabPane>
<TabPane tab="体育" key="6">
<MobileNewsBlock type="tiyu" count={20}/>
</TabPane>
<TabPane tab="科技" key="7">
<MobileNewsBlock type="keji" count={20}/>
</TabPane>
<TabPane tab="时尚" key="8">
<MobileNewsBlock type="shishang" count={20}/>
</TabPane>
</Tabs>
)
}
}
export default MobileNewsContainer<file_sep>/src/components/mobile_news_header.jsx
import React , {Component} from 'react'
//从ant 引入相关的组件
import {
Icon,
Button,
Modal,
Tabs,
Form,
Input,
message
} from 'antd'
//引入Link
import {Link} from 'react-router'
//引入axios
import aixos from 'axios'
const TabPane = Tabs.TabPane
const FormItem = Form.Item
//引入图片
import logo from '../images/logo.png'
class MobileNewsHeader extends Component {
constructor (props) {
super(props)
//定义初始化数据
this.state = {
username: null,
userId: null,
modalVisible: false,
logoutVisable:'visible',
}
}
//当再次进入页面的时候,读取localStorage的信息
componentWillMount = () => {
//读取保存的数据
const userId = localStorage.userId
const username = localStorage.username
if(userId) {
//更新状态
this.setState({userId, username})
}
}
// 定义更新 modalVisible状态的函数
setModalVisible = (modalVisible) => {
this.setState({modalVisible})
}
// 定义处理处理提交(登录/注册)的函数 isRegister接收到的值用来判断是登录还是注册
handleSubmit = (isRegister, event) => {
//阻止表单的默认行为
event.preventDefault()
//收集输入的数据,准备url getFieldsValue(): 得到所有输入的数据
const {username, password, r_userName, r_password, r_confirmPassword} = this.props.form.getFieldsValue()
const action = isRegister?'register' :'login'
const url = `http://newsapi.gugujiankong.com/Handler.ashx?action=${action}&username=${username}&password=${password}&r_userName=${r_userName}&r_password=${r_password}&r_confirmPassword=${r_confirmPassword}`
aixos.get(url)
.then(response => {
const result = response.data
if(isRegister){
message.success('注册成功')
}else {
if(!result){
message.error('登录失败')
}else{
message.success('登录成功')
this.setState({
userId: result.UserId,
username:result.NickUserName,
logoutVisable:'visible'
})
//再把信息写到localStorage中去
localStorage.userId = result.UserId
localStorage.username = result.NickUserName
}
}
// 更新modalVisible 的 状态
this.setState({
modalVisible: false
})
})
}
//定义处理登出的函数
logout = () => {
localStorage.userId = ''
localStorage.username= ''
this.setState({
username: null,
userId: null,
logoutVisable: 'none'
})
message.success('您已退出')
}
render () {
// 取出state 中的数据
const {username, modalVisible, logoutVisable} = this.state
//从this.props.form 中解构 getFieldDecorator
const {getFieldDecorator} = this.props.form
const userItem = username
?(
<span style={{display:logoutVisable}}>
<Link to="/user_center">
<Icon type="inbox" />
</Link>
<Link to="/">
<Icon type="logout" onClick={this.logout}/>
</Link>
</span>
)
:(
<Icon type="setting" onClick={this.setModalVisible.bind(this, true)}/>
)
return (
<div id="mobileheader">
<Link to="/">
<header>
<a href="/">
<img src={logo} alt="logo"/>
<span>ReactNews</span>
</a>
{userItem}
</header>
</Link>
{/*模态框*/}
<Modal title="用户中心" visible={modalVisible}
okText="关闭" cancelText="取消"
/*当点击关闭和取消的时候,更新modalVisible为 false */
onOk={this.setModalVisible.bind(this, false)}
onCancel={this.setModalVisible.bind(this, false)}
wrapClassName="vertical-center-modal">
{/*当选项卡切换的时候,清楚输入框的数据*/}
<Tabs type="card" onChange={() =>this.props.form.resetFields()}>
<TabPane tab='登录' key="1">
<Form onSubmit={this.handleSubmit.bind(this, false)}>
<FormItem label='账户'>
{getFieldDecorator('username')(
<Input placeholder="请输入账号"/>
)}
</FormItem>
<FormItem label='密码'>
{getFieldDecorator('password')(
<Input type="<PASSWORD>" placeholder="<PASSWORD>"/>
)}
</FormItem>
{ /*给函数指定一个实参,用来标记是的登录还是注册*/}
<Button type='primary' htmlType='submit' >登录</Button>
</Form>
</TabPane>
<TabPane tab='注册' key="2">
<Form onSubmit={this.handleSubmit.bind(this, true)}>
<FormItem label='账户'>
{getFieldDecorator('r_userName')(
<Input placeholder="请输入账号"/>
)}
</FormItem>
<FormItem label='密码'>
{getFieldDecorator('r_password')(
<Input type="<PASSWORD>" placeholder="请输入密码"/>
)}
</FormItem>
<FormItem label='确认密码'>
{getFieldDecorator('r_confirmPassword')(
<Input type="password" placeholder="请再次输入密码"/>
)}
</FormItem>
<Button type='primary' htmlType='submit'>注册</Button>
</Form>
</TabPane >
</Tabs>
</Modal>
</div>
)
}
}
export default Form.create()(MobileNewsHeader) //向外暴露的是包含NewsHeader 的 Form 可以的到对象 this.props.form
| bf35027a7b6d6d0a60e90b6e720803ab636c74c7 | [
"JavaScript"
] | 4 | JavaScript | GZH123456/161115_React_Project | 8f640a1a61f026414e7d7a726cdb50974f724b8b | dcedf4865d474948461e22268ac9d9a9e79bb1c5 |
refs/heads/master | <file_sep>/* page 46
swap.c
*/
void swap(int *a,int *b)
{
int c = *a;
*a = *b;
*b = c;
}
<file_sep># gdb_study
GDB study source
document from:
http://blog.csdn.net/haoel/article/details/2879
| cbc1ba783531fa417fdeb73e67ff8bfd6d31b002 | [
"Markdown",
"C"
] | 2 | C | fanxiangchao/gdb_study | 87306a374f5e76e6653f95dcdd91b021a6da2c26 | ac36004155125d29e5cabd290475f20482d95a4c |
refs/heads/master | <file_sep>varnish_plugins = %w[
varnish_backend_traffic
varnish_expunge
varnish_hit_rate
varnish_memory_usage
varnish_objects
varnish_request_rate
varnish_threads
varnish_transfer_rates
varnish_uptime
]
varnish_plugins.each do |plugin_name|
munin_plugin 'varnish_' do
plugin plugin_name
create_file true
end
end
<file_sep>## 1.0.4 (2012-04-09)
* Add nginx, memcached, varnish, and mongo recipes that install plugins.
## 1.0.3 (2012-03-15)
* Change vhost to a location instead: /munin, so that munin and nagios
can live on the same box together
## 1.0.2
* Opscode version<file_sep>package "libcache-memcached-perl"
munin_plugin 'memcached_' do
plugin 'memcached_bytes'
create_file true
end
munin_plugin 'memcached_' do
plugin 'memcached_counters'
create_file true
end
munin_plugin 'memcached_' do
plugin 'memcached_rates'
create_file true
end
# Check for existence of memcached attributes
if node[:memcached].nil?
Chef::Log.info "No memcached attributes found, using default values"
ip, port = "0.0.0.0", "11211"
else
ip = node[:memcached][:listen] || "0.0.0.0"
port = node[:memcached][:port] || "11211"
end
Chef::Log.info "Configuring memcached plugins to connect at #{ip}:#{port}"
# These memcached munin plugins pull ip and port data from the name of the
# symbolic link of the plugin
ip_and_port = ( "%s_%s" % [ ip, port ] ).gsub(/\./, '_')
munin_plugin "memcached_hits_" do
plugin "memcached_hits_#{ip_and_port}"
create_file true
end
munin_plugin "memcached_requests_" do
plugin "memcached_requests_#{ip_and_port}"
create_file true
end
munin_plugin "memcached_responsetime_" do
plugin "memcached_responsetime_#{ip_and_port}"
create_file true
end
<file_sep>%w[nginx_combined nginx_request nginx_status nginx_memory].each do |plugin|
munin_plugin plugin do
create_file true
end
end
<file_sep>%w[
mongo_btree
mongo_conn
mongo_lock
mongo_mem
mongo_ops
].each do |plugin_name|
munin_plugin plugin_name do
create_file true
end
end | c0de8770657fc7f6ebf7139f1c7f8cb7c1dadcdc | [
"Markdown",
"Ruby"
] | 5 | Ruby | AKQACookbooks/munin | 51b8f3b740803822829cf680623c853fec4e4aac | 4c55e3b246b2c3c136a23d1d4f931975e846cab7 |
refs/heads/master | <file_sep>let synth;
let two;
let keyHeight;
let keyWidth;
//Changs with screen size
let rowsInScreen = 5;
/**
*Row object queue.
*/
let rows = [];
let rowQueue;
score = 0;
let scoreText;
let minMaxScore = 0;
const NOTES = ['C', 'D', 'E', 'F#', 'G', 'A', 'B'];
const KEYS_PER_ROW = 4;
const KEY_PRESSED_FILL = '#546E7A';
const KEY_EMPTY_FILL = '#FFFFFF';
const KEY_ACTIVE_FILL = '#333333'
let start = function() {
const makeRow = (y) => {
//puts the key n times keyHeight from the top. Because y position is measured in the center,
//so half the height is added.
const keyX = (n) => {
return (n * keyWidth) + (keyWidth / 2);
}
// nth - 1 row of screen + half the height of the key.
let rowY = (y - 1) * keyHeight + (.5 * keyHeight);
let keys = [];
for (let i = 0; i < KEYS_PER_ROW; i++) {
keys.push(two.makeRectangle(keyX(i), rowY, keyWidth, keyHeight));
}
let group = two.makeGroup(keys);
group.stroke = '#B0BEC5';
group.fill = KEY_EMPTY_FILL;
group.linewidth = 2;
return group;
}
score = 0;
rowQueue = [];
rows = [];
two.clear();
// add an extra row to appear offscreen
for (let i = 0; i < rowsInScreen + 1; i++) {
rows.push(makeRow(i));
}
const TEXT_POSITION_Y = 100;
scoreText = new Two.Text(0, two.width / 2, TEXT_POSITION_Y, {
size: 100,
fill: '#fff',
stroke: '#000',
linewidth: 4
});
two.add(scoreText);
two.play();
}
let gameLoop = function() {
const moveRow = function(row, rowNumber) {
const INITIAL_SPEED = 5;
let deltaY = INITIAL_SPEED + score / 10;
//the original position of the row.
let initiallDistanceToOrigin = -1 * rowNumber * keyHeight;
let rowY = row.getBoundingClientRect().bottom - keyHeight;
row.translation.set(row.translation.x, row.translation.y + deltaY);
if (rowY + deltaY >= two.height) {
/**
*substract what was left at the bottom to deltaY, so that it doesn't overlap with
* the next row when relocationg at the top.
*/
let distanceToBottom = two.height - rowY;
row.translation.set(row.translation.x, initiallDistanceToOrigin + (deltaY - distanceToBottom));
for (let i = 0; i < row.children.length; i++)
row.children[i].fill = KEY_EMPTY_FILL;
row.children[Math.floor(Math.random() * (KEYS_PER_ROW))].fill = KEY_ACTIVE_FILL;
rowQueue.push(row);
}
}
for (let i = 0; i < rows.length; i++) {
moveRow(rows[i], i);
}
if (rowQueue.length > rowsInScreen + 1) {
rowQueue = []; //avoid unintentional sounds
two.pause();
}
}
let checkRow = function(keyIndex) {
if (!rowQueue[0] || !rowQueue[0].children)
return;
let key = rowQueue[0].children[keyIndex];
if (key.fill === KEY_ACTIVE_FILL) {
// [note] + [octave]
let note = NOTES[Math.floor(Math.random() * (6))] + (Math.floor(Math.random() * (4)) + 3);
synth.triggerAttackRelease(note, "8n");
scoreText.value = ++score;
key.fill = KEY_PRESSED_FILL;
rowQueue.shift();
}
}
//todo: mover esto a un sola sola funcion con bind y unbind.
let keyWasReleased = true;
document.addEventListener('keydown', function(e) {
if (!keyWasReleased)
return;
var keys = {
'65': 0,
'83': 1,
'68': 2,
'70': 3
}
checkRow(keys[e.keyCode]);
keyWasReleased = false;
});
window.addEventListener('keyup', function(e) {
keyWasReleased = true;
});
(function(document) {
//TODO: Pasar todo a esto y hacer de la logica del juego un archivo aparte
let app = document.querySelector('#app');
app.tap = function(e) {
const stage = document
.querySelector('#stage')
.getBoundingClientRect();
if (e.clientX < stage.left || e.clientX > stage.right)
return;
let screenSector = Math.floor((e.clientX - stage.left) / (two.width / KEYS_PER_ROW));
checkRow(screenSector);
}
app.pushScore = function() {
let scoreEntry = {
name: app.$.nameInput.value || ':D',
score: score
}
firebase.database().ref('/score').push(scoreEntry).then(_ => {
start();
});
}
app.addEventListener('dom-change', function() {
const stage = document.querySelector('#stage');
const card = document.querySelector('#card');
stage.addEventListener('click', app.tap);
let maxScore;
synth = new Tone.PolySynth().toMaster();
two = new Two({
width: stage.offsetWidth,
height: stage.offsetHeight
}).appendTo(document.querySelector('#stage'))
.bind('update', gameLoop)
.bind('pause', () => {
app.isTop = score > minMaxScore;
app.$.card.show();
});
if (stage.offsetHeight < 600)
rowsInScreen = 4;
keyWidth = two.width / KEYS_PER_ROW;
keyHeight = two.height / rowsInScreen;
start();
firebase.database().ref('/score')
.orderByChild('score')
.limitToLast(3).on('value', function(snap) {
let scores = [];
snap.forEach((child) => {
scores.push(child.val());
});
for (let i = 1; i <= scores.length; i++) {
document.querySelector('#n' + i).innerHTML =
(scores[scores.length - i].score) +
' ' +
(scores[scores.length - i].name);
}
if (scores[0].score)
minMaxScore = scores[0].score;
});
app.$.card.addEventListener('cancel', app.pushScore);
});
})(document);
<file_sep>###p-tiles
PianoTiles inspired game.
Made with Two.js, Tone.js and Hammer.js
| 09dae542c2ee7656fdfb49e89baf363ad3bf710b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | salvador-barboza/p-tiles | 332d93da769b49e1daa0c61bc17f3ad64366c69c | b1c8ba4c869fd7a1bcf0e1bb28d7b5f6dbb2290a |
refs/heads/master | <file_sep># wdio-coherent-reporter
A WebdriverIO plugin. Outputs success and failure information for suites and tests, which may be running in parallel, on a per-suite basis, at the completion of the suite.
```
Magic number computer, running on chrome
✓ can add two numbers (10ms)
✓ can subtract two numbers (9ms)
✓ can multiply two numbers (12ms)
Magic number computer, running on firefox
✓ can add two numbers (10ms)
✖ can subtract two numbers (3096ms)
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timeout._onTimeout (~/Projects/magicComputer/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1812:23)
at tryOnTimeout (timers.js:224:11)
at Timer.listOnTimeout (timers.js:198:5)
✓ can multiply two numbers (13ms)
```
`wdio-coherent-reporter` is compatible with [WDIO](https://github.com/webdriverio/webdriverio) version 4.
## Installation
The easiest way is to keep wdio-coherent-reporter as a devDependency in your package.json.
```
{
"devDependencies": {
"wdio-coherent-reporter": "~1.0.1"
}
}
```
You can simple do it by:
```
npm install wdio-coherent-reporter --save-dev
```
Instructions on how to install WebdriverIO can be found [here](http://webdriver.io/guide/getstarted/install.html).
## Usage
`wdio-coherent-reporter` builds on top of ideas presented in the standard [`wdio-spec-reporter`](https://github.com/webdriverio/wdio-spec-reporter) plugin, by also allowing a test writer to write messages which will be written to the console inline with suite and test progress messages. The test writer can send an object with a property `event` set to `coherent:message`, with a property `message`, and this will be reported after the test name, and before the completion message.
```
describe('Magic number computer', function() {
it('can add two numbers', function() {
const a = 3;
const b = 4;
process.send({ event: 'coherent:message', message: 'About to add two numbers...', currentSuite, currentTest });
expect(computer.add(a, b)).toBe(7);
});
});
```
```
Magic number computer, running on chrome
About to add two numbers...
✓ can add two numbers (10ms)
```
The `currentSuite` and `currentTest` objects must be provided in order for `wdio-coherent-reporter` to know which suite and test to write the message to. These objects are broadcast by the `wdio-jasmine-framework` via the `suite:start`, `test:start` events; the `suite:end` and `test:end` events can be used to know when these are completed. The test writer may listen for these events:
```
process.on('suite:start', function(suite) {
currentSuite = suite[0];
});
process.on('test:start', function(test) {
currentTest = test[0];
});
process.on('test:end', function(test) {
currentTest = null;
});
process.on('suite:end', function(runner) {
currentSuite = null;
});
```
The `wdio-coherent-reporter` can be configured with a custom formatter method, to augment the output. The method must be supplied in a `coherentReporterOpts` object in `wdio.conf.js`:
```
exports.config = {
// ...
// Make sure you have the wdio adapter package for the specific framework installed
// before running any tests.
framework: 'jasmine',
//
// Test reporter for stdout.
// The following are supported: dot (default), spec, and xunit
// see also: http://webdriver.io/guide/testrunner/reporters.html
reporters: ['coherent'],
//
// Options to be pass to wdio-coherent-reporter.
coherentReporterOpts: {
formatMessage: function(event) {
return `${event.datestamp} ${event.level}: ${event.message}`;
}
},
// ...
};
```
When the `formatMessage` method is provided, the call to `process.send` may include other properties, which can be used in the method body to create a custom log string:
```
describe('Magic number computer', function() {
it('can add two numbers', function() {
const a = 3;
const b = 4;
process.send({ event: 'coherent:message', message: 'About to add two numbers...', currentSuite, currentTest, datastamp: (new Date()).toISOString(), level: 'info' });
expect(computer.add(a, b)).toBe(7);
});
});
```
```
Magic number computer, running on chrome
2016-07-05T19:03:51.321Z info: About to add two numbers...
✓ can add two numbers (10ms)
```
This rapidly becomes unweildy for common use across tests, so a logging class might be introduced for some of the heavy lifting:
```
import { red, yellow, cyan, bold } from 'chalk';
let currentSuite = null,
currentTest = null;
process.on('suite:start', (suite) => {
currentSuite = suite[0];
});
process.on('test:start', (test) => {
currentTest = test[0];
});
process.on('test:end', (test) => {
currentTest = null;
});
process.on('suite:end', (runner) => {
currentSuite = null;
});
export function info(message) {
logAtLevel('info', message);
}
export function failure(message) {
logAtLevel('error', message);
}
function logAtLevel(level, args) {
const m = {
event: 'coherent:message',
datestamp: new Date().toTimeString(),
currentSuite,
currentTest,
level,
message
};
process.send(m);
}
```
```
import { info } from 'logger.js';
describe('Magic number computer', function() {
it('can add two numbers', function() {
const a = 3;
const b = 4;
info('About to add two numbers...');
expect(computer.add(a, b)).toBe(7);
});
});
```
<file_sep>import events from 'events';
/**
* Initialize a new `Coherent` test reporter.
*
* @param {Runner} runner
* @api public
*/
class CoherentReporter extends events.EventEmitter {
constructor (baseReporter, config, options = {}) {
super();
this.baseReporter = baseReporter;
this.failSymbol = this.baseReporter.color('fail', this.baseReporter.symbols.err);
this.okSymbol = this.baseReporter.color('checkmark', this.baseReporter.symbols.ok);
const { epilogue } = this.baseReporter;
if (config && config.coherentReporterOpts) {
this.formatMessage = config.coherentReporterOpts.formatMessage || this._format;
}
this.outOfBandMessages = {};
this.on('coherent:message', function() {
const event = arguments[0];
const { currentSuite, currentTest } = event;
const msg = this.formatMessage(event);
if (!!currentSuite) {
const suiteId = currentSuite.cid;
const suiteMessages = this.outOfBandMessages[suiteId];
if (!!currentTest) {
suiteMessages.testsStarted = true;
let testMessages = suiteMessages.testMessages[currentTest.title];
if (!testMessages) {
testMessages = [];
suiteMessages.testMessages[currentTest.title] = testMessages;
}
testMessages.push(msg);
} else {
if (suiteMessages.testsStarted) {
// There is no current test, and they had already started, so
suiteMessages.afterMessages.push(msg);
} else {
// No tests have been started...
suiteMessages.beforeMessages.push(msg);
}
}
}
});
this.on('suite:start', function (suite) {
this.outOfBandMessages[suite.cid] = {
beforeMessages: [],
testMessages: {},
testsStarted: false,
afterMessages: []
};
});
this.on('suite:end', function (suite) {
this._reportSuite(suite.cid);
});
}
_format(event) {
return event.message;
}
_color(colorName, s) {
return this.baseReporter.color(colorName, s);
}
_reportSuite(suiteId) {
const stats = this.baseReporter.stats;
const runner = stats.runners[suiteId];
const { capabilities, specs } = runner;
const browserName = this._color('bright yellow', capabilities.browserName);
if (specs === undefined) {
console.log(`No specs for runner on ${browserName}`);
console.log();
return;
}
for (let spec of this._hashIterate(specs)) {
const { suites } = spec;
if (suites === undefined || 0 === suites.length) {
continue;
}
for (let suite of this._hashIterate(suites)) {
const { tests, title } = suite;
const suiteTitle = this._color('suite', title);
if (tests === undefined || tests.length === 0) {
console.log(`${suiteTitle}, running on ${browserName} has no tests.`);
continue;
}
console.log(`${suiteTitle}, running on ${browserName}.`);
const suiteMessages = this.outOfBandMessages[suiteId];
if (suiteMessages && suiteMessages.beforeMessages) {
for (let index in suiteMessages.beforeMessages) {
console.log(' ' + suiteMessages.beforeMessages[index]);
}
}
for (let test of this._hashIterate(tests)) {
const testMessages = suiteMessages && suiteMessages.testMessages[test.title] || [];
for (let index in testMessages) {
console.log(' ' + testMessages[index]);
}
switch (test.state) {
case 'fail':
console.log(this._color('fail', ` ${this.baseReporter.symbols.err} ${test.title} (${stats._duration}ms)`));
console.log(this._color('error stack', ` ${test.error.stack}`));
break;
case 'success':
console.log(this._color('pass', ` ${this.baseReporter.symbols.okSymbol} ${test.title} (${stats._duration}ms)`));
break;
case '':
case 'pending':
// There is no state -- this test is probably pending.
console.log(this._color('pending', ` - ${test.title}`));
break;
default:
console.log(`Unknown state '${test.state}'; test: ${JSON.stringify(test)}`);
break;
}
}
if (suiteMessages && suiteMessages.afterMessages) {
for (let index in suiteMessages.afterMessages) {
console.log(' ' + suiteMessages.afterMessages[index]);
}
}
console.log();
}
}
}
*_hashIterate(hash) {
for (let key of Object.keys(hash)) {
yield hash[key];
}
}
}
export default CoherentReporter
| 2ffbe8c69852e841626a72de57953bafdde8122f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | object88/wdio-coherent-reporter | ee052ea031b6ab55f7d386b2d122acc83683db89 | 18ed8ef592889437b1785b2962dd12218a06be29 |
refs/heads/master | <repo_name>jamestierney/redux-toggler<file_sep>/readme.md
# Redux toggler
A Redux implementation for simple React and React Native toggle animations.
## Installation
```npm install --save redux-toggler```
## Usage
### Step 1
Add the redux-toggler reducer to your reducers. You will only have to do this once, no matter how many times your app uses toggler.
```
import { combineReducers } from 'redux'
import { togglerReducer as toggler } from 'redux-toggler'
export default combineReducers({
// All your other reducers here
toggler,
})
```
### Step 2
Decorate your component with toggler(). This will provide your component with props which you can use to animate your components.
```
import React, { Component, TouchableHighlight, View, Text } from 'react-native'
import { toggler } from 'redux-toggler'
const Demo = (props) => {
const maxHeight = 80
const height = maxHeight * props.toggler.percent / 100
return (
<View style={{top: 20}}>
<TouchableHighlight onPress={props.toggle}>
<Text>Toggle</Text>
</TouchableHighlight>
<View style={{overflow: 'hidden', backgroundColor:'#bca', height }}>
<Text>Panel content</Text>
</View>
</View>
)
}
export default toggler('demo')(Demo)
```
Note: the key provided as the first argument to toggler is the unique key for this toggle animation.
You can share the information with other components by using the same key.
## Props available
* toggle() - action to start a toggle animation process. If a toggle action is in progress, it will reverse the direction.
* toggleOpen() - action to open the toggler
* toggleClose() - action to close the toggler
* toggleSetOpen() - open the toggler without animating
* toggleSetClosed() - close the toggler without animating
* toggler - object containing:
* toggleState - ['OPEN', 'CLOSED', 'OPENING', 'CLOSING']
* percent - number between 0 and 100 which you can use to create your animations
## Example

```
import React, { Component, TouchableWithoutFeedback, Image, View, Text, StyleSheet } from 'react-native'
import { toggler } from 'redux-toggler'
const demoToggler = toggler('demo') // partially apply function to 'demo' key
const MAX_HEIGHT = 280
const getHeight = (percent) => MAX_HEIGHT * percent / 100
const getRotation = (percent, state) => {
const rotation = percent / 100 * 180
if (state && state == 'CLOSING') return 360 - rotation
return rotation
}
const ToggleButton = demoToggler((props) => {
const { percent, toggleState } = props.toggler
const style = {
transform: [{rotateZ: getRotation(percent, toggleState) + 'deg'}]
}
return (
<TouchableWithoutFeedback onPress={props.toggle}>
<Image
style={[styles.icon, style]}
source={require('./chevron-down.png')}
/>
</TouchableWithoutFeedback>
)
})
const Panel = demoToggler((props) => {
const { percent } = props.toggler
const height = getHeight(percent)
const style = {
// height,
opacity: percent / 100,
top: height - MAX_HEIGHT + 63,
}
const paragraphs = [
"Lorem ipsum dolor sit amet, eam liber euripidis aliquando ei. Nam oratio tollit corrumpit et, justo possim conceptam eu mel, at his debet doming prompta. Id quaeque ornatus ius. Possit officiis nec an, cu natum epicurei gubergren duo. Suscipit adolescens instructior sed id."",
"Ex cibo numquam per, mea eu decore percipit. Eum soluta option id, rebum lucilius est ex. Eum an possim reprehendunt, est clita gubergren vulputate cu, voluptatibus definitiones sed eu. Duo recteque persequeris id, at his denique omnesque appetere. Pri no saperet persequeris consequuntur. Duo posse platonem dissentiet ei, vim te reque melius conclusionemque."",
];
return (
<View style={[styles.panel, style]}>
{paragraphs.map((content, i) => <Text key={i} style={styles.paragraph}>{content}</Text>)}
</View>
)
})
const NavBar = (props) => {
return (
<View style={styles.container}>
<Panel />
<View style={styles.header}>
<Text style={styles.title}>Demo</Text>
<View style={styles.buttonContainer}>
<ToggleButton />
</View>
</View>
</View>
)
}
export default NavBar
const styles = StyleSheet.create({
container: {
position: 'absolute',
top: 0,
right: 0,
left: 0,
height: 62,
},
header: {
backgroundColor: '#EFEFF2',
paddingTop: 20,
top: 0,
height: 64,
right: 0,
left: 0,
borderBottomWidth: 1,
borderBottomColor: '#aaa',
position: 'absolute',
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
},
title: {
textAlign: 'center',
marginTop: 10,
fontSize: 18,
fontWeight: '500',
color: '#0A0A0A',
position: 'absolute',
top: 20,
left: 0,
right: 0,
},
buttonContainer: {
flex: 1,
alignItems: 'flex-end',
},
icon: {
margin: 5,
},
panel: {
top: 63,
backgroundColor: '#bca',
alignSelf: 'stretch',
overflow: 'hidden',
},
paragraph: {
padding: 10,
},
})
```
## Triggering actions outside of a component
You can trigger actions by importing the { togglerActions } object.
As these are not automatically decorated using the toggler() function,
you need to specify the key as the first argument to every action.
This example triggers toggleClose() within a redux-thunk action:
```
import { togglerActions } from 'redux-toggler'
export const refresh = () => {
return (dispatch, getState) => {
// do some other actions
dispatch(togglerActions.toggleClose('filters'))
}
}
```
<file_sep>/src/constants/toggleStates.js
export const OPEN = 'OPEN'
export const CLOSED = 'CLOSED'
export const OPENING = 'OPENING'
export const CLOSING = 'CLOSING'
<file_sep>/src/constants/actionTypes.js
export const TOGGLER_INIT = 'TOGGLER_INIT'
export const TOGGLER_SET_STATE = 'TOGGLER_SET_STATE'
export const TOGGLER_SET_PERCENT_OPEN = 'TOGGLER_SET_PERCENT_OPEN'
<file_sep>/src/toggler.js
import React, { Component } from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import * as toggleActions from './actions'
import * as states from './constants/toggleStates'
const defaultState = {
toggleState: states.CLOSED,
percent: 0,
}
export default toggler = (key, config) => {
const actions = {
toggleInit: toggleActions.toggleInit.bind(null, key),
toggle: toggleActions.toggle.bind(null, key),
toggleOpen: toggleActions.toggleOpen.bind(null, key),
toggleClose: toggleActions.toggleClose.bind(null, key),
toggleSetOpen: toggleActions.toggleSetOpen.bind(null, key),
toggleSetClosed: toggleActions.toggleSetClosed.bind(null, key),
}
return (WrappedComponent) => {
class Wrapper extends Component {
componentWillMount() {
this.props.toggleInit(key, config)
}
render() {
return (
<WrappedComponent
{...this.props}
/>
)
}
}
return connect(({toggler}) => {
return { toggler: toggler[key] ? toggler[key] : defaultState }
},
(dispatch) => {
return (bindActionCreators(actions, dispatch))
})(Wrapper)
}
}
<file_sep>/src/actions.js
import {
TOGGLER_INIT,
TOGGLER_SET_STATE,
TOGGLER_SET_PERCENT_OPEN,
} from './constants/actionTypes'
import {
OPEN,
CLOSED,
OPENING,
CLOSING,
} from './constants/toggleStates'
const init = (key, config) => {
return { type: TOGGLER_INIT, key, config }
}
const setState = (key, value) => {
return { type: TOGGLER_SET_STATE, key, value }
}
const setPercentOpen = (key, value) => {
return { type: TOGGLER_SET_PERCENT_OPEN, key, value }
}
const toggleInit = (key, config) => {
return (dispatch, getState) => {
const toggler = getState().toggler
if (toggler[key]) return
return dispatch(init(key, config))
}
}
// TODO: handle custom duration and complex animation types
const tick = (key) => {
return (dispatch, getState) => {
const { toggleState, percent } = getState().toggler[key]
switch (toggleState) {
case OPENING:
if (percent < 100) {
dispatch(setPercentOpen(key, percent + 10))
setTimeout(() => dispatch(tick(key)), 5)
} else {
dispatch(setPercentOpen(key, 100))
dispatch(setState(key, OPEN))
}
break
case CLOSING:
if (percent > 0) {
dispatch(setPercentOpen(key, percent - 10))
setTimeout(() => dispatch(tick(key)), 5)
} else {
dispatch(setPercentOpen(key, 0))
dispatch(setState(key, CLOSED))
}
break
}
}
}
const toggleOpen = (key) => {
return (dispatch, getState) => {
dispatch(setState(key, OPENING))
dispatch(tick(key))
}
}
const toggleClose = (key) => {
return (dispatch, getState) => {
dispatch(setState(key, CLOSING))
dispatch(tick(key))
}
}
const toggleSetOpen = (key) => {
return (dispatch, getState) => {
dispatch(setState(key, OPEN))
dispatch(setPercentOpen(key, 100))
}
}
const toggleSetClosed = (key) => {
return (dispatch, getState) => {
dispatch(setState(key, CLOSED))
dispatch(setPercentOpen(key, 0))
}
}
const toggle = (key) => {
return (dispatch, getState) => {
const { toggleState } = getState().toggler[key]
switch (toggleState) {
case OPEN:
case OPENING:
dispatch(toggleClose(key))
break
case CLOSED:
case CLOSING:
dispatch(toggleOpen(key))
break
}
}
}
export {
toggleInit,
toggle,
toggleOpen,
toggleClose,
toggleSetOpen,
toggleSetClosed,
}
<file_sep>/index.js
import toggler from './src/toggler'
import togglerReducer from './src/reducer'
import * as togglerActions from './src/actions'
export {
toggler,
togglerReducer,
togglerActions,
}
| 2977116f98ea214ab304601765cf526ab581c364 | [
"Markdown",
"JavaScript"
] | 6 | Markdown | jamestierney/redux-toggler | a030db7942bd1d49e342c5e3e1989b06e85ec0b2 | 4b35ec9a1ae39b4e406401e26efc8d63977a6830 |
refs/heads/master | <repo_name>brint/apispy<file_sep>/setup.py
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Tool to monitor API',
'author': '<NAME>',
'author_email': '<EMAIL>',
'version': '0.0.0',
'install_requires': ['nose'],
'packages': ['apispy'],
'scripts': [],
'name': 'apispy',
'install_requires': ['python-novaclient']
}
setup(**config)
<file_sep>/apispy/flavors.py
import datetime
class Flavors:
""" Snapshot of flavors at a point time """
def __init__(self):
self.timestamp = datetime.timestamp()
self.flavors = {}
def flavors(self):
return self.flavors
def timestamp(self):
return self.timestamp
<file_sep>/README.md
Little utility to monitor an API for changes. Handy for watching Cloud
providers to watch for changes with Images or Flavors.
<file_sep>/apispy/images.py
import datetime
class Images:
""" Snapshot of images at a point time """
def __init__(self):
self.timestamp = datetime.timestamp()
self.images = {}
def images(self):
return self.images
def timestamp(self):
return self.timestamp
<file_sep>/apispy/clouds/openstack.py
from novaclient.v1_1 import client
class OpenStack:
def __init__(self, user, password, tenant, auth_url, region):
self.auth_url = auth_url
self.password = <PASSWORD>
self.region = region
self.tenant = tenant
self.user = user
self.client = client.Client(user, password, tenant, auth_url,
region_name=region)
self.flavors = []
self.images = []
self.keypairs = []
self.networks = []
self.servers = []
self.volumes = []
# Things to pull from the OpenStack object
def auth_url(self):
return self.auth_url
def client(self):
return self.client
def region(self):
return self.region
def tenant(self):
return self.tenant
def user(self):
return self.user
# Things to pull from the API
def get_flavors(self):
self.flavors = _to_dict(self.client.flavors.list())
return self.flavors
def get_images(self):
self.images = _to_dict(self.client.images.list())
return self.images
def get_keypairs(self):
self.keypairs = _to_dict(self.client.keypairs.list(), "keypair")
return self.keypairs
def get_networks(self):
self.networks = _to_dict(self.client.networks.list())
return self.networks
def get_servers(self):
self.servers = _to_dict(self.client.servers.list())
return self.servers
def get_volumes(self):
self.volumes = _to_dict(self.client.volumes.list())
return self.volumes
def _to_dict(values, key=None):
v = []
for value in values:
if key:
v.append(value.to_dict()[key])
else:
v.append(value.to_dict())
return v
| 4b5f2c5f1d9105c55d081056b7da924c38a8eddf | [
"Markdown",
"Python"
] | 5 | Python | brint/apispy | 5254f83f9a768d6247722413db5667565470ad4a | 1834639fcfd6b1d84309d230debeda2843ad29f5 |
refs/heads/master | <repo_name>andy-y-li/tunnel<file_sep>/client.h
#ifndef CLIENT_H
#define CLIENT_H
#include <pthread.h>
#define FREE_CONNECT_TIME 60
struct client_param {
int p1;
int p2;
int pid;
char remote_ip[128];
};
pthread_t start_client(struct client_param* cp);
#endif
<file_sep>/socket_comm.c
#include "socket_comm.h"
#ifndef SOL_TCP
#define SOL_TCP 6
#endif
#ifndef TCP_KEEPIDLE
#define TCP_KEEPIDLE 4 /* Start keeplives after this period */
#endif
void
sp_nonblocking(int fd) {
int flag = fcntl(fd, F_GETFL, 0);
if (-1 == flag) {
return;
}
fcntl(fd, F_SETFL, flag | O_NONBLOCK);
}
void
set_keep_alive(int fd) {
//set keep alive
int keepAlive = 1; // 开启keepalive属性
int keepIdle = 60; // 如该连接在60秒内没有任何数据往来,则进行探测
int keepInterval = 5; // 探测时发包的时间间隔为5 秒
int keepCount = 3; // 探测尝试的次数.如果第1次探测包就收到响应了,则后2次的不再发.
setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (void *)&keepAlive, sizeof(keepAlive));
setsockopt(fd, SOL_TCP, TCP_KEEPIDLE, (void*)&keepIdle, sizeof(keepIdle));
setsockopt(fd, SOL_TCP, TCP_KEEPINTVL, (void *)&keepInterval, sizeof(keepInterval));
setsockopt(fd, SOL_TCP, TCP_KEEPCNT, (void *)&keepCount, sizeof(keepCount));
}
<file_sep>/buffer.c
#include "tunnel.h"
#include "buffer.h"
#include <assert.h>
struct ring_buffer*
alloc_ring_buffer(int len) {
struct ring_buffer* rb = (struct ring_buffer*)malloc(sizeof(*rb));
memset(rb, 0, sizeof(*rb));
rb->data_ptr = (char *)malloc(len);
rb->max_len = len;
return rb;
}
void
free_ring_buffer(struct ring_buffer* rb) {
free(rb->data_ptr);
free(rb);
}
char*
get_ring_buffer_write_ptr(struct ring_buffer* rb, int* max_len) {
int read_pos = rb->read_pos;
if (rb->write_pos < read_pos) {
read_pos -= 2 * rb->max_len;
}
assert(rb->write_pos >= read_pos);
if (rb->write_pos - read_pos == rb->max_len) {
return NULL;
}
int w_idx = rb->write_pos % rb->max_len;
int r_idx = read_pos % rb->max_len;
if (w_idx >= r_idx) {
*max_len = rb->max_len - w_idx;
}else {
*max_len = r_idx - w_idx;
}
return rb->data_ptr + w_idx;
}
void
move_ring_buffer_write_pos(struct ring_buffer*rb, int len) {
int tmp = rb->write_pos + len;
if (tmp > 3 * rb->max_len && rb->write_pos > rb->read_pos) {
tmp -= 2 * rb->max_len;
}
rb->write_pos = tmp;
}
char*
get_ring_buffer_read_ptr(struct ring_buffer* rb, int* read_len) {
int write_pos = rb->write_pos;
int read_pos = rb->read_pos;
if (write_pos < read_pos) {
read_pos -= 2 * rb->max_len;
}
assert(write_pos >= read_pos);
if (read_pos == write_pos) {
return NULL;
}
int w_idx = write_pos % rb->max_len;
int r_idx = read_pos % rb->max_len;
if (w_idx > r_idx) {
*read_len = w_idx - r_idx;
}else {
*read_len = rb->max_len - r_idx;
}
return rb->data_ptr + read_pos % rb->max_len;
}
void
move_ring_buffer_read_pos(struct ring_buffer*rb, int len) {
// int read_pos = rb->read_pos;
// if (rb->write_pos < read_pos) {
// read_pos -= 2 * rb->max_len;
// }
rb->read_pos += len;
}
int
is_ring_buffer_empty(struct ring_buffer* rb) {
int write_pos = rb->write_pos;
int read_pos = rb->read_pos;
if (write_pos < read_pos) {
read_pos -= 2 * rb->max_len;
}
assert(write_pos >= read_pos);
if (read_pos == write_pos) {
return 1;
}
return 0;
}
void
reset_ring_buffer(struct ring_buffer* rb) {
rb->read_pos = 0;
rb->write_pos = 0;
}
<file_sep>/mem_pool.c
#include "mem_pool.h"
#define TEST int
#define OFFSET_SIZE sizeof(int)
#define OFFSET_NEXT_PTR_SIZE sizeof(void *)
#define OFFSET_PRE_PTR_BEGIN OFFSET_SIZE + OFFSET_NEXT_PTR_SIZE
#define OFFSET_PRE_PTR_SIZE sizeof(void *)
#define MIN_ALLOC_CNT OFFSET_SIZE + OFFSET_NEXT_PTR_SIZE + OFFSET_PRE_PTR_SIZE
struct msg_pool *
create_pool(int max_size) {
struct msg_pool* p = (struct msg_pool*)malloc(sizeof(*p));
memset(p, 0, sizeof(*p));
p->max_size = max_size;
p->free_cnt = max_size;
p->list_cnt = 1;
p->data_ptr = malloc(max_size);
p->free_list = p->data_ptr;
*(TEST*)p->free_list = max_size;
void** next = (void**)((char *)p->data_ptr + OFFSET_SIZE);
*next = NULL;
void** pre = (void**)((char *)p->data_ptr + OFFSET_PRE_PTR_BEGIN);
*pre = NULL;
return p;
}
static struct msg_pool *
msg_pool_expand(struct msg_pool* p) {
assert(p && p->max_size > 0);
while (p->next) {
p = p->next;
}
p->next = create_pool(p->max_size);
return p->next;
}
void *
msg_pool_alloc(struct msg_pool* p, size_t size) {
size_t real_size = size + OFFSET_SIZE;
real_size = real_size < MIN_ALLOC_CNT ? MIN_ALLOC_CNT : real_size;
assert(real_size <= p->max_size);
void* ret = NULL;
if (p->free_cnt >= real_size) {
void* block = p->free_list;
assert(block != NULL);
while (block) {
void* next = *(void **)((char*)block + OFFSET_SIZE);
TEST block_cnt = *(TEST*)block;
assert(block_cnt >= MIN_ALLOC_CNT && block_cnt <= p->max_size);
if (block_cnt < real_size) {
block = next;
continue;
}
if (block_cnt - real_size < MIN_ALLOC_CNT) {
real_size = block_cnt;
}
void **pre_next = NULL;
void *pre_block = *(void **)((char *)block + OFFSET_PRE_PTR_BEGIN);
if (pre_block) {
pre_next = (void **)((char*)pre_block + OFFSET_SIZE);
assert(*pre_next == block);
}
if (0 == block_cnt - real_size) {
if (pre_next && *pre_next) {
*pre_next = next;
}
else {
p->free_list = next;
}
if (next) {
*(void **)((char *)next + OFFSET_PRE_PTR_BEGIN) = pre_block;
}
p->list_cnt -= 1;
}
else {
void *rest_block = (char *)block + real_size;
*(TEST*)rest_block = block_cnt - real_size;
*(void **)((char *)rest_block + OFFSET_PRE_PTR_BEGIN) = pre_block;
*(void **)((char *)rest_block + OFFSET_SIZE) = *(void **)((char *)block + OFFSET_SIZE);
if (next) {
*(void **)((char *)next + OFFSET_PRE_PTR_BEGIN) = rest_block;
}
if (pre_next && *pre_next) {
*pre_next = rest_block;
}
else {
p->free_list = rest_block;
}
}
*(TEST*)block = real_size;
ret = (char*)block + OFFSET_SIZE;
p->free_cnt -= real_size;
return ret;
}
}
if (p->next) {
return msg_pool_alloc(p->next, size);
}
else {
return msg_pool_alloc(msg_pool_expand(p), size);
}
}
static void
msg_pool_delete_one(struct msg_pool* p) {
free(p->data_ptr);
free(p);
}
void
msg_pool_free(struct msg_pool* p, void* ptr, char* freed) {
if (ptr == NULL || p == NULL) return;
*freed = 0;
ptr = (char*)ptr - OFFSET_SIZE;
struct msg_pool *pre_p = p;
while (p != NULL) {
void *max_ptr = (char*)p->data_ptr + p->max_size;
if (ptr >= p->data_ptr && ptr < max_ptr) {
break;
}
pre_p = p;
p = p->next;
}
if (p == NULL) {
fprintf(stderr, "error: call msg_pool free a block not alloc from pool");
return;
}
TEST size = *(TEST*)ptr;
memset((char*)ptr + OFFSET_SIZE, 0, MIN_ALLOC_CNT - OFFSET_SIZE);
assert(size >= MIN_ALLOC_CNT && size <= p->max_size);
void *block = p->free_list;
void *pre_block = NULL;
while (block && block > ptr) {
void* next = *(void **)((char*)block + OFFSET_SIZE);
pre_block = block;
block = next;
}
if (block) {
*(void **)((char *)block + OFFSET_PRE_PTR_BEGIN) = ptr;
}
if (pre_block) {
void **pre_next = (void **)((char*)pre_block + OFFSET_SIZE);
*pre_next = ptr;
}
*(void **)((char *)ptr + OFFSET_PRE_PTR_BEGIN) = pre_block;
*(void **)((char*)ptr + OFFSET_SIZE) = block;
//merge
int merge_cnt = block ? 2 : 1;
void* merge_ptr = block ? block : ptr;
while (merge_cnt > 0 && merge_ptr) {
TEST size = *(TEST*)merge_ptr;
void* pre_ptr = *(void **)((char *)merge_ptr + OFFSET_PRE_PTR_BEGIN);
if ((char *)merge_ptr + size == pre_ptr) {
TEST pre_size = *(TEST*)pre_ptr;
*(TEST*)merge_ptr = size + pre_size;
void* pre_pre_ptr = *(void **)((char *)pre_ptr + OFFSET_PRE_PTR_BEGIN);
*(void **)((char *)merge_ptr + OFFSET_PRE_PTR_BEGIN) = pre_pre_ptr;
if (pre_pre_ptr) {
*(void **)((char*)pre_pre_ptr + OFFSET_SIZE) = merge_ptr;
}
if (pre_ptr == p->free_list) {
p->free_list = merge_ptr;
}
--p->list_cnt;
}
else {
if (p->free_list < merge_ptr) {
p->free_list = merge_ptr;
}
merge_ptr = pre_ptr;
}
--merge_cnt;
}
p->free_cnt += size;
p->list_cnt += 1;
if (p->free_cnt == p->max_size && pre_p != p) {
pre_p->next = p->next;
//delete p
msg_pool_delete_one(p);
*freed = 1;
}
}
void
msg_pool_delete(struct msg_pool *p) {
if (p == NULL) return;
do {
struct msg_pool* next = p->next;
msg_pool_delete_one(p);
p = next;
} while (p != NULL);
}
/*
int
main(int argc, char *argv[]) {
msg_pool *p = create_pool(1024);
void *b1 = msg_pool_alloc(p, 300);
void *b2 = msg_pool_alloc(p , 600);
bool b;
msg_pool_free(p, b1, b);
void *b3 = msg_pool_alloc(p, 96);
void *b4 = msg_pool_alloc(p, 100);
void *b5 = msg_pool_alloc(p, 90);
msg_pool_free(p, b2, b);
msg_pool_free(p, b3, b);
msg_pool_free(p, b4, b);
msg_pool_free(p, b5, b);
int alloced = 0;
int max_alloced = 1024;
void **vec_alloc = (void **)malloc(sizeof(void *) * 1024);
int tmp1 = 0, tmp2 = 0;
while (1) {
srand(time(0));
int r = rand() % 2;
if (r) {
if (alloced >= max_alloced) {
void **tmp = (void **)malloc(sizeof(void *) * max_alloced * 2);
memcpy(tmp, vec_alloc, max_alloced * sizeof(void *));
max_alloced *= 2;
free(vec_alloc);
vec_alloc = tmp;
}
int size = rand() % 1020 + 1;
void* b = msg_pool_alloc(p, size);
vec_alloc[alloced++] = b;
memset(b, 0, size);
tmp1++;
}
else {
if (alloced > 0) {
void *b = vec_alloc[0];
char freed = 0;
msg_pool_free(p, b, &freed);
alloced -= 1;
memmove(vec_alloc, (char*)vec_alloc + sizeof(void *), alloced * sizeof(void *));
if (!freed) {
void *ptr = (char*)b - OFFSET_SIZE;
TEST size = *(TEST*)ptr;
memset((char *)ptr + MIN_ALLOC_CNT, 0, size - MIN_ALLOC_CNT);
}
tmp2++;
}
}
usleep(1);
}
msg_pool_delete(p);
return 0;
}
*/
<file_sep>/server.h
#ifndef SERVER_H
#define SERVER_H
#include <pthread.h>
struct buffer_array;
struct server_param {
int listen_port[2];
int pid;
};
pthread_t start_server(struct server_param* tp);
void accept_info_init();
#endif
<file_sep>/README.md
##转发工具:
c语言写的端口转发工具<br>
主要用来实现访问内网机器,当然也可以作为跳板工具使用。<br>
写这个工具的原因是因为拉了N级运营商的宽带,没有外网ip,人在外面的时候无法访问家里的电脑。。。<br>
端口转发有很多现成的工具,但自己写好玩点<br>
ps:mem_pool.c 这个文件没用到,内存管理的代码是buffer.c<br>
##Usage:
1、首先要有台外网ip的机器<br>
2、在外网机器运行:tunnel -s port1[给内网机器连接的端口] prot2[给客户端连接的端口,比如secureCRT 这种ssh客户端] 如:tunnel -s 2222 3333<br>
3、在内网机器上运行:tunnel -c port1[要连接的本机服务端口,比如家里的ssh服务22端口] prot2[外网机器的监听的端口] 如:tunnel -c 22 2222<br>
4、任意机器连接外网的3333端口,发送的数据都将转发给内网机器22端口上(如secureCRT连接 外网ip:3333)<br>
##INSTALL:
```Bash
g++ -MMD -ggdb -Wall -lpthread -o tunnel buffer.c socket_comm.c client.c server.c tunnel.c
```
##TODO:
```Bash
man accept
RETURN VALUE
On success, these system calls return a non-negative integer that is a descriptor
for the accepted socket. On error, -1 is returned, and errno is set appropriately.
```
1.fd改成0开始。通过man accept文档知道,合法的socket fd应该是从0开始的。。。我的代码fd默认值0,并以此作为初始状态,用来判断某些状态,在某些极端情况会出错。<br>
2.和server建立连接后,server是等待客户端发包后再处理转发,但某些ssh客户端(如xshell)建立连接后在等待服务端返回数据前不发任何包,导致双方互相等待<br>
3.内存管理buffer还可以优化,目前是单buff全分配, 在回环前的时候,极端情况分配出来的内存太小,解决方案是加个最小内存块数,当环尾剩余内存块太小时,直接跳到环头再分配<br>
##我的邮箱:
<EMAIL>
<file_sep>/Makefile
# makefile tool
#
#================================================================
# Copyright (C) 2020 Sangfor Ltd. All rights reserved.
#
# Filename: Makefile
# Author: Andy
# Created: 2020-07-22 09:18:23
# Description:
#
#================================================================
all:
g++ -MMD -ggdb -Wall -lpthread -o tunnel buffer.c socket_comm.c client.c server.c tunnel.c
clean:
rm -rf tunnel.d tunnel tunnel.dSYM
<file_sep>/mem_pool.h
#ifndef MEM_POOL_H
#define MEN_POOL_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
//#include <time.h>
struct msg_pool {
int max_size;
void *data_ptr;
int list_cnt;
void *free_list;
int free_cnt;
struct msg_pool *next;
};
void* msg_pool_alloc(struct msg_pool* p, size_t size);
struct msg_pool* create_pool(int max_size);
void msg_pool_free(struct msg_pool *p, void *ptr, char* freed);
void msg_pool_delete(struct msg_pool *p);
#endif
<file_sep>/server.c
#include "tunnel.h"
#include "server.h"
#include "buffer.h"
#include "socket_comm.h"
#include <assert.h>
#include <unistd.h>
struct server_info
{
int listen_port[2];
int listen_fd[2];
struct client_info client[TOTAL_CONNECTION];
int client_id[TOTAL_CONNECTION];
int client_cnt;
int max_fd;
int id_idx;
struct ring_buffer* wait_closed;
int listen_id;
fd_set fd_rset;
fd_set fd_wset;
};
static int
server_init(const char* host, int port) {
int fd;
int reuse = 1;
struct addrinfo ai_hints;
struct addrinfo *ai_list = NULL;
char portstr[16];
if (host == NULL || host[0] == 0){
host = "0.0.0.0";
}
sprintf(portstr, "%d", port);
memset(&ai_hints, 0, sizeof(ai_hints));
ai_hints.ai_protocol = IPPROTO_TCP;
ai_hints.ai_socktype = SOCK_STREAM;
ai_hints.ai_family = AF_UNSPEC;
int status = getaddrinfo(host, portstr, &ai_hints, &ai_list);
if (status != 0) {
return -1;
}
fd = socket(ai_list->ai_family, ai_list->ai_socktype, 0);
if (fd < 0) {
goto _failed_fd;
}
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (void *)&reuse, sizeof(int)) == -1) {
goto _failed;
}
/*bind*/
status = bind(fd, (struct sockaddr *)ai_list->ai_addr, ai_list->ai_addrlen);
if (status != 0)
goto _failed;
//listen
if (listen(fd, 32) == -1) {
close(fd);
fprintf(stderr, "%s listen port %d failed.\n", get_time(), port);
return -1;
}
freeaddrinfo(ai_list);
sp_nonblocking(fd);
return fd;
_failed:
close(fd);
_failed_fd:
freeaddrinfo(ai_list);
return -1;
}
static int
get_id(struct server_info* s) {
int i, ret = -1;
for (i = s->id_idx; i < s->id_idx + TOTAL_CONNECTION; ++i) {
int idx = i % TOTAL_CONNECTION;
++s->id_idx;
if (s->client[idx].fd == 0) {
ret = i;
break;
}
}
return ret;
}
static void
do_accept(struct server_info* s, int listen_fd) {
union sockaddr_all addr;
socklen_t len = sizeof(addr);
int fd = accept(listen_fd, &addr.s, &len);
if (fd == -1) {
int err = errno;
if (err != EAGAIN) {
fprintf(stderr, "%s accept error: %s.\n", get_time(), strerror(err));
}
return;
}
if (s->client_cnt >= TOTAL_CONNECTION) {
close(fd);
fprintf(stderr, "%s accept error, connection max.............\n", get_time());
return;
}
if (listen_fd == s->listen_fd[0]) {
if (s->listen_id < 0) {
//TODO:可以加个连接缓存,等待下个tunnel上来后,直接连上
close(fd);
fprintf(stderr, "%s accept error, no available connection for now.............\n", get_time());
return;
}
}else {
if (s->listen_id >= 0) {
close(fd);
fprintf(stderr, "%s accept error, tunnel only need one available.............\n", get_time());
return;
}
}
int id = get_id(s);
assert(id != -1);
struct ring_buffer* rb = alloc_ring_buffer(MAX_CLIENT_BUFFER);
struct client_info* nc = s->client + id % TOTAL_CONNECTION;
assert(nc->fd == 0);
nc->id = id;
nc->fd = fd;
nc->buffer = rb;
nc->to_id = -1;
void* sin_addr = (addr.s.sa_family == AF_INET) ? (void*)&addr.v4.sin_addr : (void *)&addr.v6.sin6_addr;
int sin_port = ntohs((addr.s.sa_family == AF_INET) ? addr.v4.sin_port : addr.v6.sin6_port);
static char tmp[128];
if (inet_ntop(addr.s.sa_family, sin_addr, tmp, sizeof(tmp))) {
snprintf(nc->client_ip, sizeof(nc->client_ip), "%s:%d", tmp, sin_port);
}
fprintf(stderr, "%s client %s connected.\n", get_time(), nc->client_ip);
s->client_id[s->client_cnt++] = id;
FD_SET(fd, &s->fd_rset);
if (s->max_fd < fd + 1) {
s->max_fd = fd + 1;//TODO:最大的fd被close后是否要处理下
}
set_keep_alive(fd);
sp_nonblocking(fd);
if (listen_fd == s->listen_fd[0]) {
nc->to_id = s->listen_id;
struct client_info* listen_nc = s->client + nc->to_id % TOTAL_CONNECTION;
assert(listen_nc->fd >= 0 && listen_nc->id == nc->to_id);
listen_nc->to_id = nc->id;
s->listen_id = -1;
}else {
s->listen_id = id;
}
}
static void
do_close(struct server_info* s, struct client_info* c) {
int i;
for (i = 0; i < s->client_cnt; ++i) {
if (s->client_id[i] == c->id) {
memcpy(s->client_id + i, s->client_id + i + 1, (s->client_cnt - i - 1) * sizeof(int));
--s->client_cnt;
break;
}
}
FD_CLR(c->fd, &s->fd_rset);
FD_CLR(c->fd, &s->fd_wset);
close(c->fd);
int idx = c->id % TOTAL_CONNECTION;
assert(&s->client[idx] == c);
if (c->id == s->listen_id) {
s->listen_id = -1;
}
if (c->to_id >= 0 && s->client[c->to_id % TOTAL_CONNECTION].id == c->to_id) {
int len;
char* id_buffer = get_ring_buffer_write_ptr(s->wait_closed, &len);
int id_len = sizeof(int);
assert(id_buffer && len >= id_len);
memcpy(id_buffer, &c->to_id, id_len);
move_ring_buffer_write_pos(s->wait_closed, id_len);
}
c->to_id = -1;
c->id = -1;
c->fd = 0;
free_ring_buffer(c->buffer);
c->buffer = NULL;
fprintf(stderr, "%s client %s disconnect.\n", get_time(), c->client_ip);
memset(c->client_ip, 0, sizeof(c->client_ip));
}
/*
static int
try_write(struct server_info* s, struct client_info* c) {
int len;
char* buffer = get_ring_buffer_read_ptr(c->buffer, &len);
if (!buffer) {
return 0; //empty
}
int n = write(c->fd, buffer, len);
if (n < 0) {
switch (errno) {
case EINTR:
case EAGAIN:
break;
default:
fprintf(stderr, "server: write to (id=%d) error :%s.\n", c->id, strerror(errno));
do_close(s, c);
return -1;
}
}else {
move_ring_buffer_read_pos(c->buffer, n);
}
if (!is_ring_buffer_empty(c->buffer)) {
FD_SET(c->fd, &s->fd_wset);
}
return 1;
}
*/
static int
do_read(struct server_info* s, struct client_info* c) {
int id = c->to_id;
if (id < 0) {
do_close(s, c); //only when client disconnect
return -1;
}
struct client_info* to_c = s->client + id % TOTAL_CONNECTION;
if (to_c->id != id) {
do_close(s, c);
return -1;
}
struct ring_buffer* rb = to_c->buffer;
int len;
char* start_buffer = get_ring_buffer_write_ptr(rb, &len);
if (!start_buffer) {
return 0; //buff fulled
}
int n = (int)read(c->fd, start_buffer, len);
if (n == -1) {
switch (errno) {
case EAGAIN:
fprintf(stderr, "%s read fd error:EAGAIN.\n", get_time());
break;
case EINTR:
break;
default:
fprintf(stderr, "%s server: read (id=%d) error :%s.\n", get_time(), c->id, strerror(errno));
do_close(s, c);
return -1;
}
return 1;
}
if (n == 0) {
do_close(s, c); //normal close
return -1;
}
move_ring_buffer_write_pos(rb, n);
FD_SET(to_c->fd, &s->fd_wset);
if (n == len && !is_ring_buffer_empty(rb)) {
fprintf(stderr, "%s server: read again.\n", get_time());
return do_read(s, c);
}
return 1;
}
static int
do_write(struct server_info* s, struct client_info* c) {
int len;
char* buffer = get_ring_buffer_read_ptr(c->buffer, &len);
if (!buffer) {
return 0;
}
int writed_len = 0;
char need_break = 0;
while (!need_break && writed_len < len) {
int n = write(c->fd, buffer, len - writed_len);
if (n < 0) {
switch (errno) {
case EINTR:
n = 0;
break;
case EAGAIN:
n = 0;
need_break = 1;
break;
default:
need_break = 1;
fprintf(stderr, "%s socket-server: write to (id=%d) error :%s.\n", get_time(), c->id, strerror(errno));
do_close(s, c);
return -1;
}
} else {
writed_len += n;
buffer += n;
}
}
move_ring_buffer_read_pos(c->buffer, writed_len);
if (is_ring_buffer_empty(c->buffer)) {
FD_CLR(c->fd, &s->fd_wset);
} else if (writed_len == len) {
fprintf(stderr, "%s server: write again.\n", get_time());
return do_write(s, c);
}
return 1;
}
static void
pre_check_close(struct server_info* s) {
int len;
char* id_buffer = get_ring_buffer_read_ptr(s->wait_closed, &len);
if (!id_buffer) return;
int id_len = sizeof(int);
assert(len % id_len == 0);
int tmp = len;
while (len > 0) {
int* id = (int*)id_buffer;
int idx = *id % TOTAL_CONNECTION;
id_buffer += id_len;
len -= len;
struct client_info* c = s->client + idx;
if (c->fd > 0) {
if (do_write(s, c) != -1) {
do_close(s, c);
}
}
}
move_ring_buffer_read_pos(s->wait_closed, tmp);
}
static void*
server_thread(void* param) {
struct server_param *tp = (struct server_param*)param;
int fd1 = server_init(NULL, tp->listen_port[0]);
if (fd1 == -1) {
return NULL;
}
int fd2 = server_init(NULL, tp->listen_port[1]);
if (fd2 == -1) {
close(fd1);
return NULL;
}
struct server_info s;
memset(&s, 0, sizeof(s));
s.listen_fd[0] = fd1;
s.listen_fd[1] = fd2;
s.listen_port[0] = tp->listen_port[0];
s.listen_port[1] = tp->listen_port[1];
int tmp_fd = fd1 > fd2 ? fd1: fd2;
tmp_fd = tp->pid > tmp_fd ? tp->pid : tmp_fd;
s.max_fd = tmp_fd + 1;
s.listen_id = -1;
s.wait_closed = alloc_ring_buffer(TOTAL_CONNECTION * sizeof(int));
FD_ZERO(&s.fd_wset);
FD_ZERO(&s.fd_rset);
FD_SET(fd1, &s.fd_rset);
FD_SET(fd2, &s.fd_rset);
FD_SET(tp->pid, &s.fd_rset);
while (1) {
pre_check_close(&s);
fd_set r_set = s.fd_rset;
fd_set w_set = s.fd_wset;
int cnt = select(s.max_fd, &r_set, &w_set, NULL, NULL);
if (cnt == -1) {
fprintf(stderr, "%s select error %s.\n", get_time(), strerror(errno));
continue;
}
if (FD_ISSET(s.listen_fd[1], &r_set)) {
//accept
--cnt;
do_accept(&s, s.listen_fd[1]);
}
if (FD_ISSET(s.listen_fd[0], &r_set)) {
//accept
--cnt;
do_accept(&s, s.listen_fd[0]);
}
int i;
for (i = s.client_cnt - 1; i >= 0 && cnt > 0; --i) {
int id = s.client_id[i] % TOTAL_CONNECTION;
struct client_info* c = &s.client[id];
int fd = c->fd;
assert(fd > 0);
if (FD_ISSET(fd, &r_set)) {
//read
--cnt;
if (do_read(&s, c) == -1) continue;
}
if (FD_ISSET(fd, &w_set)) {
//write
--cnt;
if (do_write(&s, c) == -1) continue;
}
}
if (FD_ISSET(tp->pid, &r_set)) {
//exit
break;
}
}
close(s.listen_fd[0]);
close(s.listen_fd[1]);
//try send the last buffer
fprintf(stderr, "%s ====================SERVER: SEND LAST DATA BEGIN===================.\n", get_time());
int i;
for (i = s.client_cnt - 1; i >= 0; --i) {
int id = s.client_id[i] % TOTAL_CONNECTION;
struct client_info* c = &s.client[id];
int fd = c->fd;
assert(fd > 0);
if (do_write(&s, c) != -1) {
do_close(&s, c);
}
}
fprintf(stderr, "%s ====================SERVER SEND LAST DATA END=====================.\n", get_time());
free_ring_buffer(s.wait_closed);
assert(s.client_cnt == 0);
return NULL;
}
pthread_t
start_server(struct server_param* tp) {
pthread_t pid;
if (pthread_create(&pid, NULL, server_thread, tp)) {
fprintf(stderr, "%s Create server thread failed.\n", get_time());
exit(1);
return 0;
}
return pid;
}
<file_sep>/socket_comm.h
#ifndef SOCKET_COMM_H
#define SOCKET_COMM_H
#include "buffer.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#define SOCKET_CONNECTED 1
#define SOCKET_CONNECTING 2
struct client_info
{
int id;
int fd;
int to_id;
int connect_type;
struct ring_buffer* buffer;
char client_ip[128];
};
union sockaddr_all {
struct sockaddr s; /*normal storage*/
struct sockaddr_in v4; /*ipv4 storage*/
struct sockaddr_in6 v6; /*ipv6 storage*/
};
void sp_nonblocking(int fd);
void set_keep_alive(int fd);
#endif
<file_sep>/tunnel.c
#include "tunnel.h"
#include "server.h"
#include "client.h"
#include "buffer.h"
#include <signal.h>
#include <unistd.h>
static int pid = -1;
static void
set_terminated(int siga) {
int buffer = 1;
write(pid, &buffer, 1);
fprintf(stderr, "%s Receive exit signal,please wait.\n", get_time());
struct sigaction sa;
sa.sa_handler = SIG_IGN;
sigaction(SIGTERM, &sa, 0);
sigaction(SIGINT, &sa, 0);
}
static void
deal_signal() {
struct sigaction sa, oldsa;
sa.sa_handler = SIG_IGN;
sigaction(SIGPIPE, &sa, 0);
sa.sa_handler = set_terminated;
sa.sa_flags = SA_NODEFER;
sigemptyset(&sa.sa_mask);
//kill
sigaction(SIGTERM, &sa, &oldsa);
//ctrl + c
sigaction(SIGINT, &sa, &oldsa);
}
static int
check_port(int port_1, int port_2) {
if (port_1 <= 0 || port_1 > 65535 || port_1 <= 0 || port_2 >= 65535) {
return 0;
}
return 1;
}
char *
get_time() {
//not for mul theread
static char st[50] = { 0 };
time_t tNow = time(NULL);
struct tm* ptm = localtime(&tNow);
strftime(st, 50, "%Y-%m-%d %H:%M:%S", ptm);
return st;
}
static void
do_server(int p1, int p2, int pid) {
struct server_param sp;
sp.listen_port[0] = p1;
sp.listen_port[1] = p2;
sp.pid = pid;
pthread_t tid = start_server(&sp);
pthread_join(tid, NULL);
fprintf(stderr, "%s SERVER EXIT SUCCESS.................\n", get_time());
}
static void
do_client(const char* ip, int p1, int p2, int pid) {
struct client_param cp;
cp.p1 = p1;
cp.p2 = p2;
cp.pid = pid;
strncpy(cp.remote_ip, ip, sizeof(cp.remote_ip));
pthread_t tid = start_client(&cp);
pthread_join(tid, NULL);
fprintf(stderr, "%s CLIENT EXIT SUCCESS.................\n", get_time());
}
static void
error_param_tip() {
fprintf(stderr, "Usage:\n1.transfer -s port1[bind port for ssh server] prot2[bind port for ssh client]\n2.transfer -c remoteIp[remote server ip] port1[connect port to remote server] prot2[connect port to local ssh server]\n");
}
int
main(int argc, char *argv[]) {
//usage:
//-s port1[bind port for ssh server] prot2[bind port for ssh client]
//-c port1[connect port to local ssh server] prot2[connect port to remote server]
if (argc <= 1){
error_param_tip();
return 0;
}
int port_1, port_2;
int fd[2];
if (pipe(fd)) {
fprintf(stderr, "%s create pipe error.................\n", get_time());
return -1;
}
pid = fd[1];
deal_signal();
if (argc == 4){
if (strncmp(argv[1], "-s", 2) == 0){
//do server
port_1 = atoi(argv[2]);
port_2 = atoi(argv[3]);
if (!check_port(port_1, port_2)) {
error_param_tip();
goto __fails;
}
do_server(port_1, port_2, fd[0]);
} else{
goto __fails;
}
} else if (argc == 5) {
if (strncmp(argv[1], "-c", 2) == 0){
// do client
const char* ip = argv[2];
port_1 = atoi(argv[3]);
port_2 = atoi(argv[4]);
if (!check_port(port_1, port_2)) {
error_param_tip();
goto __fails;
}
do_client(ip, port_1, port_2, fd[0]);
} else{
error_param_tip();
}
}
__fails:
close(fd[0]);
close(fd[1]);
return 0;
}
<file_sep>/buffer.h
#ifndef BUFFER_H
#define BUFFER_H
struct ring_buffer
{
char* data_ptr;
int max_len;
volatile int read_pos;
volatile int write_pos;
};
struct ring_buffer* alloc_ring_buffer(int len);
void free_ring_buffer(struct ring_buffer* rb);
char* get_ring_buffer_write_ptr(struct ring_buffer* rb, int* max_len);
void move_ring_buffer_write_pos(struct ring_buffer*rb, int len);
char* get_ring_buffer_read_ptr(struct ring_buffer* rb, int* read_len);
void move_ring_buffer_read_pos(struct ring_buffer*rb, int len);
int is_ring_buffer_empty(struct ring_buffer* rb);
void reset_ring_buffer(struct ring_buffer* rb);
#endif
<file_sep>/tunnel.h
#ifndef TUNNEL_H
#define TUNNEL_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#define MAX_CONNECTION 64
#define TOTAL_CONNECTION 128
#define MAX_CLIENT_BUFFER 65536
char *get_time();
#endif
<file_sep>/client.c
#include "tunnel.h"
#include "client.h"
#include "socket_comm.h"
#include "sys/time.h"
#include <assert.h>
struct client {
char remote_ip[128];
int remote_port;
int ssh_port;
int free_connection;
int id_idx;
struct ring_buffer* wait_closed;
int max_fd;
fd_set fd_rset;
fd_set fd_wset;
int time;
int cnt;
struct client_info all_fds[TOTAL_CONNECTION];
int all_ids[TOTAL_CONNECTION];
};
static int
get_id(struct client* c) {
int i, ret = -1;
for (i = c->id_idx; i < c->id_idx + TOTAL_CONNECTION; ++i) {
int idx = i % TOTAL_CONNECTION;
++c->id_idx;
if (c->all_fds[idx].fd == 0) {
ret = i;
break;
}
}
return ret;
}
static int
connect_to(struct client* c, int ssh_id){
if (c->cnt >= TOTAL_CONNECTION) {
fprintf(stderr, "%s client max connection.....\n", get_time());
return -1;
}
const char* ip;
int port;
if (ssh_id < 0) {
if (c->free_connection > 0) return -1;
struct timeval tv;
gettimeofday(&tv, NULL);
if (tv.tv_sec - c->time < FREE_CONNECT_TIME) {
return -1;
}else {
c->time = tv.tv_sec;
}
ip = c->remote_ip;
port = c->remote_port;
} else {
ip = "0.0.0.0";
port = c->ssh_port;
}
int id;
int idx;
struct client_info* info;
struct ring_buffer* rb;
struct addrinfo hints;
struct addrinfo* res = NULL;
struct addrinfo* ai_ptr = NULL;
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
char portstr[16];
sprintf(portstr, "%d", port);
int status = getaddrinfo(ip, portstr, &hints, &res);
if (status != 0) {
return -1;
}
int sock = -1;
for (ai_ptr = res; ai_ptr != NULL; ai_ptr = ai_ptr->ai_next) {
sock = socket(ai_ptr->ai_family, ai_ptr->ai_socktype, ai_ptr->ai_protocol);
if (sock < 0) {
continue;
}
set_keep_alive(sock);
sp_nonblocking(sock);
status = connect(sock, ai_ptr->ai_addr, ai_ptr->ai_addrlen);
if (status != 0 && errno != EINPROGRESS) {
close(sock);
sock = -1;
continue;
}
break;
}
if (sock < 0) {
goto _failed;
}
id = get_id(c);
assert(id != -1);
idx = id % TOTAL_CONNECTION;
info = &c->all_fds[idx];
info->fd = sock;
info->id = id;
info->to_id = ssh_id;
snprintf(info->client_ip, sizeof(info->client_ip), "%s:%d", ip, port);
rb = alloc_ring_buffer(MAX_CLIENT_BUFFER);
info->buffer = rb;
c->all_ids[c->cnt++] = id;
if (ssh_id < 0) {
c->free_connection += 1;
}
if (status != 0) {
//connect no block, need check after
FD_SET(sock, &c->fd_wset);
info->connect_type = SOCKET_CONNECTING;
}else {
//success
FD_SET(sock, &c->fd_rset);
info->connect_type = SOCKET_CONNECTED;
struct sockaddr* addr = ai_ptr->ai_addr;
void* sin_addr = (ai_ptr->ai_family == AF_INET) ? (void*)&((struct sockaddr_in*)addr)->sin_addr : (void*)&((struct sockaddr_in6*)addr)->sin6_addr;
inet_ntop(ai_ptr->ai_family, sin_addr, info->client_ip, sizeof(info->client_ip));
fprintf(stderr, "%s connected to %s. \n", get_time(), info->client_ip);
}
if (c->max_fd < sock + 1) {
c->max_fd = sock + 1;
}
return id;
_failed:
freeaddrinfo(res);
return -1;
}
static void
do_close(struct client* c, struct client_info* info) {
int i;
for (i = 0; i < c->cnt; ++i) {
if (c->all_ids[i] == info->id) {
memcpy(c->all_ids + i, c->all_ids + i + 1, (c->cnt - i - 1) * sizeof(int));
--c->cnt;
break;
}
}
FD_CLR(info->fd, &c->fd_rset);
FD_CLR(info->fd, &c->fd_wset);
close(info->fd);
if (info->to_id == -1) {
assert(c->free_connection == 1);
c->free_connection = 0;
}
if (info->to_id >= 0 && c->all_fds[info->to_id % TOTAL_CONNECTION].id == info->to_id ) {
int len;
char* id_buffer = get_ring_buffer_write_ptr(c->wait_closed, &len);
int id_len = sizeof(int);
assert(id_buffer && len >= id_len);
memcpy(id_buffer, &info->to_id, id_len);
move_ring_buffer_write_pos(c->wait_closed, id_len);
}
if (info->connect_type == SOCKET_CONNECTED)
{
fprintf(stderr, "%s client disconnect from %s.\n", get_time(), info->client_ip);
}
info->to_id = -1;
info->id = -1;
info->fd = 0;
info->connect_type = 0;
free_ring_buffer(info->buffer);
info->buffer = NULL;
memset(info->client_ip, 0, sizeof(info->client_ip));
}
static int
report_connect(struct client* c, struct client_info* info) {
int error;
socklen_t len = sizeof(error);
int code = getsockopt(info->fd, SOL_SOCKET, SO_ERROR, &error, &len);
if (code != 0 || error != 0) {
//connect fail, close it
fprintf(stderr, "%s client: connect to %s error :%s. \n", get_time(), info->client_ip, strerror(error));
do_close(c, info);
return -1;
}
info->connect_type = SOCKET_CONNECTED;
FD_SET(info->fd, &c->fd_rset);
union sockaddr_all u;
socklen_t slen = sizeof(u);
if (getpeername(info->fd, &u.s, &slen) == 0){
void* sin_addr = (u.s.sa_family == AF_INET) ? (void*)&u.v4.sin_addr : (void*)&u.v6.sin6_addr;
inet_ntop(u.s.sa_family, sin_addr, info->client_ip, sizeof(info->client_ip));
}
fprintf(stderr, "%s connected to %s. \n", get_time(), info->client_ip);
return 0;
}
static int
do_read(struct client* c, struct client_info* info) {
assert(info->connect_type == SOCKET_CONNECTED);
int to_id = info->to_id;
if (to_id < 0) {
to_id = connect_to(c, info->id);
if (to_id == -1) {
do_close(c, info);
return -1;
}
info->to_id = to_id;
c->free_connection -= 1;
c->time = 0;
}
int len;
struct client_info* to_info = &c->all_fds[to_id % TOTAL_CONNECTION];
if (to_info->id != to_id) {
do_close(c, info);
return -1;
}
char* buffer = get_ring_buffer_write_ptr(to_info->buffer, &len);
if (!buffer) {
return 0; //buff fulled
}
int n = (int)read(info->fd, buffer, len);
if (n == -1) {
switch (errno) {
case EAGAIN:
fprintf(stderr, "%s read fd error:EAGAIN.\n", get_time());
break;
case EINTR:
break;
default:
fprintf(stderr, "%s client: read (id=%d) error :%s. \n", get_time(), info->id, strerror(errno));
do_close(c, info);
return -1;
}
return 1;
}
if (n == 0) {
do_close(c, info); //normal close
return -1;
}
move_ring_buffer_write_pos(to_info->buffer, n);
FD_SET(to_info->fd, &c->fd_wset);
if (n == len && !is_ring_buffer_empty(to_info->buffer)) {
fprintf(stderr, "%s client: read again.\n", get_time());
return do_read(c, info);
}
return 1;
}
static int
do_write(struct client* c, struct client_info* info, int wait_closed) {
if (info->connect_type == SOCKET_CONNECTING) {
if (wait_closed) return 0;
if (report_connect(c, info) == -1) {
return -1;
}else if (is_ring_buffer_empty(info->buffer)) {
FD_CLR(info->fd, &c->fd_wset);
}
return 0;
}
int len;
char* buffer = get_ring_buffer_read_ptr(info->buffer, &len);
if (!buffer) {
return 0;
}
int writed_len = 0;
char need_break = 0;
while (!need_break && writed_len < len) {
int n = write(info->fd, buffer, len - writed_len);
if (n < 0) {
switch (errno) {
case EINTR:
n = 0;
break;
case EAGAIN:
n = 0;
need_break = 1;
break;
default:
need_break = 1;
fprintf(stderr, "%s socket-client: write to (id=%d) error :%s.\n", get_time(), info->id, strerror(errno));
do_close(c, info);
return -1;
}
}
else {
writed_len += n;
buffer += n;
}
}
move_ring_buffer_read_pos(info->buffer, writed_len);
if (is_ring_buffer_empty(info->buffer)) {
FD_CLR(info->fd, &c->fd_wset);
} else if (writed_len == len) {
fprintf(stderr, "%s client: write again.\n", get_time());
return do_write(c, info, wait_closed);
}
return 1;
}
static void
pre_check_close(struct client* c) {
int len;
char* id_buffer = get_ring_buffer_read_ptr(c->wait_closed, &len);
if (!id_buffer) return;
int id_len = sizeof(int);
assert(len % id_len == 0);
int tmp = len;
while (len > 0) {
int* id = (int*)id_buffer;
int idx = *id % TOTAL_CONNECTION;
id_buffer += id_len;
len -= len;
struct client_info* info = c->all_fds + idx;
if (info->fd > 0 && info->id == *id) {
if (do_write(c, info, 1) != -1) {
do_close(c, info);
}
}
}
move_ring_buffer_read_pos(c->wait_closed, tmp);
}
static void*
client_thread(void* param) {
struct client_param* cp = (struct client_param*)param;
struct client c;
memset(&c, 0, sizeof(c));
sprintf(c.remote_ip, "%s", cp->remote_ip);
c.remote_port = cp->p1;
c.ssh_port = cp->p2;
c.wait_closed = alloc_ring_buffer(sizeof(int) * TOTAL_CONNECTION);
FD_ZERO(&c.fd_rset);
FD_ZERO(&c.fd_wset);
FD_SET(cp->pid, &c.fd_rset);
c.max_fd = cp->pid + 1;
sp_nonblocking(cp->pid);
while (1) {
pre_check_close(&c);
if (connect_to(&c, -1) == -1 && c.cnt == 0) {
c.max_fd = cp->pid + 1;
int buff = 0;
int n = (int)read(cp->pid, &buff, sizeof(int));
if (n > 0) {
break;
}
sleep(1);
continue;
}
fd_set r_set = c.fd_rset;
fd_set w_set = c.fd_wset;
int cnt = select(c.max_fd, &r_set, &w_set, NULL, NULL);
if (cnt == -1) {
fprintf(stderr, "%s select error: %s.\n", get_time(), strerror(errno));
continue;
}
int i;
for (i = c.cnt - 1; i >= 0 && cnt > 0; --i) {
int id = c.all_ids[i] % TOTAL_CONNECTION;
struct client_info* info = &c.all_fds[id];
assert(c.all_ids[i] == info->id);
int fd = info->fd;
assert(fd > 0);
if (FD_ISSET(fd, &r_set)) {
// read
--cnt;
if (do_read(&c, info) == -1) continue;
}
if (FD_ISSET(fd, &w_set)) {
//write
--cnt;
if (do_write(&c, info, 0) == -1) continue;
}
}
if (FD_ISSET(cp->pid, &r_set)) {
//exit
break;
}
}
fprintf(stderr, "%s ====================CLIENT: SEND LAST DATA BEGIN===================.\n", get_time());
int i;
for (i = c.cnt - 1; i >= 0; --i) {
int id = c.all_ids[i] % TOTAL_CONNECTION;
struct client_info* info = &c.all_fds[id];
assert(c.all_ids[i] == info->id);
if (do_write(&c, info, 1) != -1) {
do_close(&c, info);
}
}
fprintf(stderr, "%s ====================CLIENT: SEND LAST DATA END=====================.\n", get_time());
free_ring_buffer(c.wait_closed);
assert(c.cnt == 0);
return NULL;
}
pthread_t
start_client(struct client_param* cp) {
pthread_t pid;
if (pthread_create(&pid, NULL, client_thread, cp)) {
fprintf(stderr, "%s Create client thread failed.\n", get_time());
exit(1);
return 0;
}
return pid;
}
| a0411a9b8ca2cb4c28b95f4371b55c4845ed654a | [
"Markdown",
"C",
"Makefile"
] | 14 | C | andy-y-li/tunnel | f6845bc7cf47cfdd6438958101c43359a4d568f2 | 536fedd660381aa59f89902f8c873f5b3524b782 |
refs/heads/master | <file_sep># -*- coding:utf-8 -*-
import numpy as np
def itebdForCalculateHessenbergModelGroundStateEnergy(chi,T,deltaT=0.01):
loopTimes=int(T/deltaT)
Gama=np.random.rand(2,chi,2,chi)
Lambda=np.random.rand(2,chi)
H = np.array([[0.25,0,0,0],
[0,-0.25,0.5,0],
[0,0.5,-0.25,0],
[0,0,0,0.25]])
w,v = np.linalg.eig(H)
U=np.dot(np.dot(v,np.diag(np.exp(-deltaT*(w)))),np.transpose(v)) #U=e^{tH}=vwv^\dagger
U=np.reshape(U,(2,2,2,2))
E=0
for i in range(loopTimes):
A=np.mod(i,2)
B=np.mod(i+1,2)
#construct the tensor network
Theta=np.tensordot(np.diag(Lambda[B,:]),Gama[A,...],axes=(1,0))
Theta=np.tensordot(Theta,np.diag(Lambda[A,:]),axes=(2,0))
Theta=np.tensordot(Theta,Gama[B,...],axes=(2,0))
Theta=np.tensordot(Theta,np.diag(Lambda[B,:]),axes=(3,0))
#apply U,contract the tensor network into a single tensor \Theta_{\alpha i j \gamma}
Theta=np.tensordot(Theta,U,axes=((1,2),(0,1)))
#svd
Theta=np.reshape(np.transpose(Theta,(2,0,3,1)),(chi*2,2*chi))#chi,d,d,chi
X,newLambda,Y=np.linalg.svd(Theta)
# print(newLambda)
#contract the Lambda: Truncate the lambda and renormalization
Lambda[A,:]=newLambda[0:chi]/np.sqrt(np.sum(newLambda[0:chi]**2))
# print(np.sum(Lambda[A,]**2))
#construct X,introduce lambda^B back into the network
X=X[0:2*chi,0:chi]
X=np.reshape(X,(2,chi,chi))
X=np.transpose(X,(1,0,2))
Gama[A,...]=np.tensordot(np.diag(Lambda[B,:]**(-1)),X,axes=(1,0))
#construct Y,introduce lambda^B back into the network
Y=Y[0:chi,0:2*chi]
Y=np.reshape(Y,(chi,2,chi))
Gama[B,...]=np.tensordot(Y,np.diag(Lambda[B,:]**(-1)),axes=(2,0))
if(i>=loopTimes-2):
E+=-np.log(np.sum(Theta**2))/(deltaT*2)
# print("loop times:",i,"E =", -np.log(np.sum(Theta**2))/(deltaT*2))
# print("E=",E/2)
return E/2<file_sep># ITEBD计算一维无限长自旋1/2海森堡链
## 一、算法介绍
### 1.1 基本原理
ITEBD(Imaginary Time Evolution Block Decimation)是一种类似幂法(power method)的方法,其基本原理是利用虚时间演化逐步过滤掉高能态(实践过程中,我们利用奇异值分解扔掉奇异值较小的部分),最终只剩下基态。
具体来讲,虚时间演化算符是$e^{-\tau\hat{H}}$,(随机)初始波函数$\Psi_0$可以被表示为
$$
\Psi_0=\sum_i c_i\phi_i
$$
其中${\phi_i}$是本征态。虚时间演化算符作用初始波函数后有:
$$
e^{\tau\hat{H}}\Psi_0=\sum_i c_ie^{-\tau E_i}\phi_i
$$
容易见得,能级越高的态随着虚时间演化会越快的趋于0,最终会只剩下基态。在实际计算过程中,为了避免数值不稳定,每作用一次虚时间演化算符后需要归一化一下波函数,即:
$$
\Psi_{\tau}=\frac{exp(-\tau H)\Psi_0}{||exp(-\tau H)\Psi_0||}
$$
### 1.2 算法介绍
#### 1.2.1对象的构建/选择
在解决问题之前首先需要确定问题的对象,ITEBD算法的对象是张量网络。
1. 将体系波函数表示为MPS(Matrix Product State)形式$^{[1]}$;

2. 由于体系的平移不变性,我们只需要储存如下图A、B两个节点(实际上只需储存$\lambda^A$、$\lambda^B$;$\Gamma^A$、$\Gamma^B$即可),并只需要对这两个“代表“操作即可更新全链;

#### 1.2.2 流程
ITEBD的流程可以用一张图概况如下$^{[1]}$:

重复上述循环多次即可得到近似基态波函数,进而可以计算基态能量。下阐述每一步的具体含义:
1. 将虚时间演化算符$U$作用于张量网络,将其变成单个四阶张量$\Theta_{\alpha ij \gamma}$;
2. 将四阶张量$\Theta_{\alpha ij \gamma}$“脚”两两合并,得到二阶张量$\Theta_{[\alpha i],[j \gamma]}$,并对其进行奇异值分解,保留最大的$\chi$个奇异值,相应的,得到$X_{[\alpha i]\beta}$、$\lambda_{\beta}$和$Y_{\beta[j\gamma]}$;
3. 将二阶张量$X$和$Y$的"脚"分开,得到三阶张量$X_{\alpha i \beta}$、$Y_{\beta j \gamma}$;
4. 将$(\lambda^B)^{-1}$与$X$、$Y$缩并,得到新的$\Gamma^A$和$\Gamma^B$,至此完成一次循环,到达上图$(v)$的状态。
值得注意的是,$U$作用的顺序并不是一直左脚在$\Gamma^A$,右脚在$\Gamma^B$,而是要依次交替(具体会在具体实现中结合代码解释)。
## 二、具体实现
### 2.1 核心代码
核心代码如下:
```python
def itebdForCalculateHessenbergModelGroundStateEnergy(chi,T):
# 参量解释:
# chi:在论文[1]中是Schmidt分解的rank,也可以认为是做奇异值分解后保留的奇异值的个数。
# T: 虚时间演化的总长度。
deltaT=0.01 #这个是每次演化的时间间隔
loopTimes=int(T/deltaT) #T/deltaT是循环的次数
ss
Gama=np.random.rand(2,chi,2,chi) #Gamma,第一个维度是用于区别Gamma^A和Gamma^B的,剩余三个维度如图所示,是它的三个脚
Lambda=np.random.rand(2,chi) #Lambda,第一个维度是区别A和B的,第二个维度储存的是对角元(Gamma是对角的)
H = np.array([[0.25,0,0,0],
[0,-0.25,0.5,0],
[0,0.5,-0.25,0],
[0,0,0,0.25]])
w,v = np.linalg.eig(H)
U=np.dot(np.dot(v,np.diag(np.exp(-deltaT*(w)))),np.transpose(v)) #U=e^{tH}=vwv^\dagger
U=np.reshape(U,(2,2,2,2)) #将U从二阶张量拆成四阶张量(|sigma_1 sigma_2> ->|sigma_1>|sigma_2>)
E=0
# 接下来部分是ITEBD的主要部分,流程大体如上1.2.2所示
for i in range(loopTimes):
# 首先判断目前是奇数次循环还是偶数次循环,相应的确定A、B;实现轮流更新两个基本的平移单元
A=np.mod(i,2)
B=np.mod(i+1,2)
#construct the tensor network
Theta=np.tensordot(np.diag(Lambda[B,:]),Gama[A,:,:,:],axes=(1,0))
Theta=np.tensordot(Theta,np.diag(Lambda[A,:]),axes=(2,0))
Theta=np.tensordot(Theta,Gama[B,:,:,:],axes=(2,0))
Theta=np.tensordot(Theta,np.diag(Lambda[B,:]),axes=(3,0))
#apply U,contract the tensor network into a single tensor \Theta_{\alpha i j \gamma}
Theta=np.tensordot(Theta,U,axes=((1,2),(0,1)))
#svd
Theta=np.reshape(np.transpose(Theta,(2,0,3,1)),(chi*2,2*chi))
X,newLambda,Y=np.linalg.svd(Theta)
# print(newLambda)
#contract the Lambda: Truncate the lambda and renormalization
Lambda[A,:]=newLambda[0:chi]/np.sqrt(np.sum(newLambda[0:chi]**2))
# print(np.sum(Lambda[A,]**2))
#construct X,introduce lambda^B back into the network
X=X[0:2*chi,0:chi]
X=np.reshape(X,(2,chi,chi))
X=np.transpose(X,(1,0,2))
Gama[A,:,:,:]=np.tensordot(np.diag(Lambda[B,:]**(-1)),X,axes=(1,0))
#construct Y,introduce lambda^B back into the network
Y=Y[0:chi,0:2*chi]
Y=np.reshape(Y,(chi,2,chi))
Gama[B,:,:,:]=np.tensordot(Y,np.diag(Lambda[B,:]**(-1)),axes=(2,0))
#判断目前是否是最后两次循环,若是则根据波函数估算能量并记录
if(i>=loopTimes-2):
E+=-np.log(np.sum(Theta**2))/(deltaT*2)
# print("loop times:",i,"E =", -np.log(np.sum(Theta**2))/(deltaT*2))
# print("E=",E/2)
return E/2
```
### 2.2 要点说明
#### 2.2.1 U作用到波函数之后张量“脚”的问题(对应流程图的$(i)-(ii)$)

当使用`Theta=np.tensordot(Theta,U,axes=((1,2),(0,1)))`将$i'$和$j'$缩并掉之后,$\Theta_{\alpha i j \gamma}$变成了$\Theta_{\alpha \gamma i j}$(numpy.tensordot的结果),为了下面svd是把$\alpha$、$i$放在一起,$j$、$\gamma$放在一起,需要先进行一个“转置”,在numpy中,我们使用`np.transpose(Theta,(2,0,3,1))`将$\Theta_{\alpha \gamma i j}$变成了$\Theta_{i \alpha j \gamma}$,紧接着用$np.reshape(...)$将$\Theta_{i \alpha j \gamma}$变成了$\Theta_{[i\alpha][j\gamma]}$,便于下面的奇异值分解。
#### 2.2.2 奇异值分解的处理(对应流程图$(iii)-(iv)$)
$(ii)->(iv)$我们将对$\Theta_{[i\alpha][j\gamma]}$进行奇异值分解,有:
$$
\Theta_{[i\alpha][j\gamma]}=X_{[i\alpha]?}S_?Y_{?[j\gamma]}
$$
截断到$\chi$个最大奇异值,有:
$$
\Theta_{[i\alpha][j\gamma]}=X_{[i\alpha]\beta}S_\beta Y_{\beta[j\gamma]}
$$
现在主要问题是怎么从$X_{[i\alpha]?}$的形式回到X的三阶张量形式,下以$X$为例演示我的方法:

用类似的方法,我们很容易得到$Y$、$\lambda$的变换方式,实现从$(ii)->(iv)$
#### 2.2.3 波函数的归一化
理论上可以证明,体系的波函数可以被表示为MPS的形式,即:
$$
\Psi_{...\sigma_i \sigma_{i+1}\sigma_{i+2}\sigma_{i+3}...=...A^{\sigma_i}\Sigma^AB^{\sigma_{i+1}}\Sigma^B...}
$$
由于$A^{\sigma_{i}}$和$B^{\sigma_{i+1}}$都是left-normalized matrix(i. e. $\sum_{\sigma_l} A^{\sigma_l \dagger}A^{\sigma_l}=I$),只要$\Sigma^i$满足$tr(\Sigma^{i\dagger}\Sigma^i)=1,i=A、B$,便有$\Psi$是归一的。
在实际编程过程中,我们只需让截断后的$\lambda$归一化即可:`Lambda[A,:]=newLambda[0:chi]/np.sqrt(np.sum(newLambda[0:chi]**2))`.
#### 2.2.4 基态能量的估计
估计基态能量的理论依据是$\Theta=e^{-\tau h}\Psi\approx e^{-\tau E_0}\Psi$,由于$\Psi$是归一的,所以有$\Theta^2=e^{-2\tau E_0}\Psi^2=e^{-2\tau E_0}$,即
$$
E_0=-ln(\Theta^2)/(2\tau)
$$
在实践过程中,我们对最后两次循环(分别对应最后的A和B)估算能量,分别记为$E_A$和$E_B$,取$E_{final}=\frac{E_A+E_B}{2}$作为最终的能量。
## 运行结果
linux(测试环境:Deepin 15.11)下运行结果如下图所示($\chi=30;T=200;\Delta T=0.01$):

与理论值$-ln2+\frac{1}{4}\approx-0.44314718055995$相比,误差在$10^{-5}$量级,程序的结果应该是正确的。
### 参考文献
[1] <NAME> . Classical simulation of infinite-size quantum lattice systems in one spatial dimension[J]. Physical Review Letters, 2007.
| 90b050347c495e21d8fb3dd9f9c6df013f0d2d26 | [
"Markdown",
"Python"
] | 2 | Python | chenjl517/simple-itebd | 1ae4d88e2c6e75834668ad3aef53f55a5eb2452f | 49dc40721a235f2f1fced7b419a7a166bcb3ddcd |
refs/heads/main | <file_sep><?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\CategoriaController;
use App\Http\Controllers\ArticuloController;
use App\Http\Controllers\ClienteController;
use App\Http\Controllers\ProveedorController;
use App\Http\Controllers\IngresoController;
use App\Http\Controllers\VentaController;
use App\Http\Controllers\UsuarioController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('auth.login');
});
Route::resource('almacen/categoria',CategoriaController::class)->parameters(['categoria'=>'id']);
Route::resource('almacen/articulo',ArticuloController::class)->parameters(['articulo'=>'id']);
Route::resource('ventas/cliente',ClienteController::class)->parameters(['cliente'=>'id']);
Route::resource('compras/proveedor',ProveedorController::class)->parameters(['proveedor'=>'id']);
Route::resource('compras/ingreso',IngresoController::class)->parameters(['ingreso'=>'id']);
Route::resource('ventas/venta',VentaController::class)->parameters(['venta'=>'id']);
Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
return view('dashboard');
})->name('dashboard');
/*Route::middleware(['auth:sanctum', 'verified'])->get('/auth/login', function () {
return view('auth/login');
})->name('login');*/
Route::resource('seguridad/usuario',UsuarioController::class)->parameters(['usuario'=>'id']);
//Route::get('/{slug?}', 'HomeController@index');<file_sep><?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Articulo extends Model
{
//use HasFactory;
protected $table='articulo';
protected $primaryKey='idarticulo';
public $timestamps=false;//Para agregar 2 culumnas de creación y modificación del registro
protected $fillable=[
'idcategoria',
'codigo',
'nombre',
'stock',
'descripcion',
'imagen',
'estado'
];
protected $guarded=[
];
}
| 4d86df34faa9f663ed7045df6fbcbb577213e92e | [
"PHP"
] | 2 | PHP | ing-mirp/sisVentas | 8ecd26e4e1168adabaa8f354370e2d32b9df6048 | bce11e798a410552d9615e3906ad02fc6f213413 |
refs/heads/main | <repo_name>huiyu-guoji/Aurora<file_sep>/README.md
# Aurora
哈尔滨工业大学(威海)Aurora智能车
在这里记录电控代码的版本及修改者
<file_sep>/main.c
/*********************************************************************************************************************
* @file main
* @author auraro
* @version 查看doc内version文件 版本说明
* @Software IAR 8.3 or MDK 5.24
* @Target core MM32SPIN2XPs
* @date 2020-2-20
********************************************************************************************************************/
#include "headfile.h"
#include "math.h"
// **************************** 宏定义 ****************************
//
// **************************** 宏定义 ****************************
// **************************** 宏定义 ****************************
// **************************** 宏定义 ****************************
#define range_gyro 2000
#define range_acc 8
#define rangeadc 32767
#define time1 0.003
#define pi 3.1415926
#define error 0.2343
// **************************** 变量定义 ****************************
float angler_x=0;
float angler_y=0;
float angler_z=0;
float anglea_x=0;
float anglea_y=0;
float anglea_z=0;
float racc_x;
float racc_y;
float racc_z;
float racc;
float rgyro_x;
float rgyro_y;
float rgyro_z;
// **************************** 变量定义 ****************************
bool interrupt_flag = false;
float angle;
float Q_bias;
float angle_hubu;
// **************************** 代码区域 ****************************
// **************************** 函数声明 ****************************
void kalman_filter (float new_angle,float new_gyro);
float complementary_filter (float new_anglea,float new_gyro,float k);
float jiaquan(float a,float b,float k);
// **************************** 主函数 ****************************
int main(void)
{
board_init(true); // 初始化 debug 输出串口
//此处编写用户代码(例如:外设初始化代码等)
icm20602_init_spi(); // 初始化硬件SPI接口的 ICM20602
tim_interrupt_init(TIM_1, 250, 1);
while(1)
{
get_icm20602_accdata_spi(); // 获取ICM20602的测量数值
get_icm20602_gyro_spi(); // 获取ICM20602的测量数值
// printf("\r\nICM20602 acc data: x-%d, y-%d, z-%d", icm_acc_x, icm_acc_y, icm_acc_z);
// printf("\r\nICM20602 gyro data: x= %d", rgyro_x);
// systick_delay_ms(1000);
//此处编写需要循环执行的代码
rgyro_x=((double)icm_gyro_x/rangeadc)*range_gyro+error; //计算角速度
rgyro_y=((double)icm_gyro_y/rangeadc)*range_gyro+error;
rgyro_z=((double)icm_gyro_z/rangeadc)*range_gyro+error;
// **************************** 加速度计 ****************************
racc_x=((double)icm_acc_x/rangeadc)*range_acc;
racc_y=((double)icm_acc_y/rangeadc)*range_acc;
racc_z=((double)icm_acc_z/rangeadc)*range_acc; //计算分加速度
racc=sqrt(racc_x*racc_x+racc_y*racc_y+racc_z*racc_z);
anglea_x=(float)acos(racc_x/racc)/pi*180-90;
anglea_y=(float)acos(racc_y/racc)/pi*180-90;
anglea_z=(float)acos(racc_z/racc)/pi*180-90;
// **************************** 虚拟示波器****************************
// software_float(angler_x);
// software_2_float(angle_hubu, anglea_x);
float swear[4];
swear[0]=angle;
swear[1]=angle_hubu;
swear[2]=complementary_filter(angle,angle_hubu,0.5);
swear[3]=anglea_x;
software_more_float(4,swear);
// **************************** 中断区域 *****************************
if(interrupt_flag)
{
interrupt_flag=false;
/* angler_x+=(double)(rgyro_x*time1);
angler_y+=(double)(rgyro_y*time1);
angler_z+=(double)(rgyro_z*time1);
*/
kalman_filter(anglea_x,rgyro_y);
angle_hubu=complementary_filter (anglea_x,rgyro_y,0.38);
}
}
}
// **************************** 代码区域 ****************************
//-------------------------------------------------------------------------------------------------------------------
// @brief 卡尔曼滤波
// @param 加速度计测量值 陀螺仪的值
// @return void
//-------------------------------------------------------------------------------------------------------------------
void kalman_filter (float new_angle,float new_gyro)
{
// **************************** 变量定义 ****************************
float Q_angle=0.001;
float Q_gyro=0.003;
float R_angle=0.03;
float dt=0.001;
float p[2][2]={1,1,1,1};
float measure;
extern float angle;
extern float Q_bias;
float ko;
float ki;
int a=1;
// **************************** 代码区域 ****************************
if(a)
{
angle=new_angle;
a=0;
}
angle= angle-Q_bias*dt+new_gyro*dt;//先验估计
p[0][0]=p[0][0]+Q_angle-(p[0][1]-p[1][0])*dt;
p[0][1]=p[0][1]-p[1][1]*dt;
p[1][0]=p[1][0]-p[1][1]*dt;
p[1][1]=p[1][1]+Q_gyro; //协方差矩阵
measure=new_angle;//观测方程
ko=p[0][0]/(p[0][0]+R_angle);
ki=p[1][0]/(p[0][0]+R_angle); //kalman增益
// printf("ko=%f\n",ko);
angle=angle+ko*(new_angle-angle);
Q_bias=Q_bias+ki*(new_angle-angle);
// printf("angle=%f\n",angle);
p[0][0]=p[0][0]-ko*p[0][0];
p[0][1]=p[0][1]-ko*p[0][1];
p[1][0]=p[1][0]-ki*p[1][0];
p[1][1]=p[1][1]-ki*p[1][1]; //更新协方差矩阵
// new_gyro-=Q_bias;
}
//-------------------------------------------------------------------------------------------------------------------
// @brief 互补滤波
// @param 加速度计测量值 陀螺仪的值
// @return float
//-------------------------------------------------------------------------------------------------------------------
float complementary_filter (float new_anglea,float new_gyro,float k)
{
int a=1;
float final_angle;
float temp_angle;
float error_angle=0;
float dt=0.03;
if(a)
{
final_angle=angler_y;
a=0;
temp_angle=angler_y;
}
temp_angle+=(new_gyro+error_angle)*dt;
error_angle=(new_anglea-final_angle)*k;
final_angle=k*new_anglea+(1-k)*temp_angle;
return final_angle;
}
//-------------------------------------------------------------------------------------------------------------------
// @brief 加权函数
// @param 任意值
// @return 最终值
//-------------------------------------------------------------------------------------------------------------------
float jiaquan(float a,float b,float k)
{
float final;
final=k*a+(1-k)*b;
return final;
} | 5f08e6a3c982d8c1166dcc8d96f6833bfe86505a | [
"Markdown",
"C"
] | 2 | Markdown | huiyu-guoji/Aurora | 59a2140a00aa9c9555257cd1c1c4dea437aaef24 | 89d766a39b4bc0c87f853236ab0cc97b697b37ac |
refs/heads/master | <repo_name>heszhang/oa-2<file_sep>/src/cn/oa/app/biz/MessageDao.java
package cn.oa.app.biz;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.type.TypeReference;
import android.app.Activity;
import cn.oa.app.config.Constants;
import cn.oa.app.config.Urls;
import cn.oa.app.entity.BlogsCategoryListEntity;
import cn.oa.app.entity.BlogsMoreResponse;
import cn.oa.app.entity.CallCategoryListEntity;
import cn.oa.app.entity.CallMoreResponse;
import cn.oa.app.entity.CategorysEntity;
import cn.oa.app.entity.NewsCategoryListEntity;
import cn.oa.app.entity.NewsMoreResponse;
import cn.oa.app.entity.WikiMoreResponse;
import cn.oa.app.utils.RequestCacheUtil;
import cn.oa.app.utils.Utility;
public class MessageDao extends BaseDao {
private NewsCategoryListEntity newsCategorys;
private BlogsCategoryListEntity blogsCategorys;
private CallCategoryListEntity callCategorys;
List<CategorysEntity> tabs = new ArrayList<CategorysEntity>();
public MessageDao(Activity activity) {
super(activity);
}
public List<Object> mapperJson(boolean useCache) {
List<Object> topCategorys = new ArrayList<Object>();
tabs.clear();
try {
String resultNews = RequestCacheUtil.getRequestContent(mActivity,
Urls.TOP_NEWS_URL + Utility.getScreenParams(mActivity),
Constants.WebSourceType.Json,
Constants.DBContentType.Content_list, useCache);
NewsMoreResponse newsMoreResponse = mObjectMapper.readValue(
resultNews, new TypeReference<NewsMoreResponse>() {
});
if (newsMoreResponse != null) {
this.newsCategorys = newsMoreResponse.getResponse();
}
String resultBlogs = RequestCacheUtil.getRequestContent(mActivity,
Urls.TOP_BLOG_URL + Utility.getScreenParams(mActivity),
Constants.WebSourceType.Json,
Constants.DBContentType.Content_list, useCache);
BlogsMoreResponse blogsMoreResponse = mObjectMapper.readValue(
resultBlogs, new TypeReference<BlogsMoreResponse>() {
});
if (blogsMoreResponse != null) {
this.blogsCategorys = blogsMoreResponse.getResponse();
}
// String resultCall=RequestCacheUtil.getRequestContent(mActivity,
// Urls.UNREAD_CALL_URL+Utility.getScreenParams(mActivity),
// Constants.WebSourceType.Json,
// Constants.DBContentType.Content_list, useCache);
// CallMoreResponse callMoreResponse=mObjectMapper.readValue(
// resultCall, new TypeReference<CallMoreResponse>() {
// });
//
// if (callMoreResponse != null) {
// this.callCategorys = callMoreResponse.getResponse();
// }
Collections.addAll(topCategorys, newsCategorys, blogsCategorys);
return topCategorys;
} catch (JsonParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (JsonMappingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
public List<CategorysEntity> getCategorys() {
CategorysEntity cate1 = new CategorysEntity();
CategorysEntity cate2 = new CategorysEntity();
cate1.setName("未阅寻呼");
cate2.setName("待办事项");
tabs.add(cate1);
tabs.add(cate2);
return tabs;
}
}
<file_sep>/src/cn/oa/app/entity/CallMoreResponse.java
package cn.oa.app.entity;
public class CallMoreResponse {
private CallCategoryListEntity response;
public CallCategoryListEntity getResponse() {
return response;
}
public void setResponse(CallCategoryListEntity response) {
this.response = response;
}
}
<file_sep>/src/cn/oa/app/entity/CallContentItem.java
package cn.oa.app.entity;
import cn.oa.app.entity.base.BaseContentItem;
public class CallContentItem extends BaseContentItem {
private String department;//部门
private String caller;//发布人
private Boolean isRead;//是否已读
public String getDepartment() {
return department;
}
public void setDepartment(String department) {
this.department = department;
}
public String getCaller() {
return caller;
}
public void setCaller(String caller) {
this.caller = caller;
}
public Boolean getIsRead() {
return isRead;
}
public void setIsRead(Boolean isRead) {
this.isRead = isRead;
}
}<file_sep>/src/cn/oa/app/entity/CallCategoryListEntity.java
package cn.oa.app.entity;
import cn.oa.app.entity.base.BaseContentList;;
public class CallCategoryListEntity extends BaseContentList {
}
| c54f4cb717fa099b972ff4c66b9390a2b09209ec | [
"Java"
] | 4 | Java | heszhang/oa-2 | b2fca3ff4462914c16804df2e47ca63df0dc0935 | 8a67c9c5b60f417900ccbfd7288b18b4b4c56b9c |
refs/heads/main | <file_sep>from types import MethodType
from flask_cors import CORS
from flask import Flask, render_template, request, flash, redirect, jsonify, make_response
import config, csv
from binance.client2 import Client
from decimal import Decimal
app = Flask(__name__)
CORS(app)
app.secret_key=b'<KEY>'
client = Client(config.API_KEY, config.API_SECRET, tld='com')
@app.route('/')
def index():
fbal = client.coinfutures_account_balance()
exchange_info = client.coinfutures_exchange_info()
symbolpack = exchange_info['symbols']
return render_template('index.html', my_balances=fbal, symbols=symbolpack)
@app.route('/buy', methods=['POST'])
def buy():
try:
order = client.coinfutures_create_order(symbol=request.form['symbol'],
side='BUY',
type='MARKET',
quantity=request.form['quantity'])
except Exception as e:
flash(e.message, 'error')
return redirect('/')
@app.route('/sell')
def sell():
return 'Sell'
@app.route('/settings')
def settings():
return 'Settings'
@app.route('/history')
def history():
candles = client.get_historical_klines("BTCUSDT", Client.KLINE_INTERVAL_1HOUR, "1 Jan, 2020")
processedcandles = []
for data in candles:
candle = {
"time": data[0] / 1000,
"open": data[1],
"high": data[2],
"low": data[3],
"close": data[4]
}
processedcandles.append(candle)
return jsonify(processedcandles)
<file_sep>from binance.client2 import Client
import config
import csv
client = Client(config.API_KEY, config.API_SECRET)
candles = client.get_historical_klines("BTCUSDT", Client.KLINE_INTERVAL_1DAY, "1 Jan, 2020")
data = open("1day.csv", "w", newline='' )
candlewriter = csv.writer(data, delimiter=',')
processedcandles = []
for data in candles:
candle = {
data[0] / 1000,
data[1],
data[2],
data[3],
data[4],
data[5],
data[6]
}
processedcandles.append(candle)
for candlestick in processedcandles:
candlewriter.writerow(candlestick)
<file_sep># Binance Bot:
This is my project on a bot that uses Flask to combine front end and backend by using python. The app should display all data of what is happening and any prices and balances neccessary. At this moment the app is only usable with future and coin future accounts. The bot will work by running technical indicators on a chart from lightweight charts made by TradingView that will send signals to binance's API. The bot will only risk 2% of your account balance as the quantity using Isolated margin mode.
To use this bot:
1. Create an API key on binance account by going to API management under profile
2. Open config.py file
3. Place your API key and API secret in folder
4. Run app.py
## Used Languages:
- Python
- HTML
- JS
## Used Libraries
### -Python:
- python-binance
- Flask
### -JS
- lightweight charts from TradingView
## Tasks
### Finished tasks :
- Creating a frontend layout using lightweight charts and html
- Created routes for main page, buy, sell and settings wtih Flask
- Display chart and balance on app main
- Edited and save a new copy of binance.client library as client2 with coin futures included
- Pulls and displays balance on main for coin futures from data endpoint
- Display a settings widget for indicators (only display/No backend) on main
- Display a buy order book with adjustable quantity and symbol dropdown on main
- buy and sell routes combined with binance api and have working backends
- backend pulls all historical 1H data from 1 Jan 2020 until now
- backend logs historical data on /history route
- chart pulls historical data from /history route
- chart pulls new data straight from websocket (1H candlestick data/ BTCUSDT)
- chart updates with new data from websocket
- Style a bit of the HTML content (No css folder yet)
### To do:
- Create a manual way to place and edit indicator on chart
- Create a way to change symbol data that chart displays
- Find a strategy/indicators to place on chart and give signals
- send signal to to bot that will put down 2% of my account balance as quantity for trade
- send order to binance API to execute
- create user data stream to stream events like account balance or order details
- improve the chart over time
- Create css file to style app
- create the same for a USDT futures account
- find solution to run code on cloud 24/7
| 367881c8676c0680642a7d59c197446a739d3eb9 | [
"Markdown",
"Python"
] | 3 | Python | Yaselie/Binance-Bot | c3dbda3bf7aaf9f0ed0cac35c92367288da4cf28 | 30340a6cf5e9c981afd4dc987aac2ea654bf622c |
refs/heads/Master | <file_sep>
/***********************************************************************************************************************
* File Name : ZAC.h
* Version : 1.00
* Device(s) : R5F10RLC
* Tool-Chain : GNURL78 v12.03
* Description : This file contains functions and definitions used in the lcd_panel.c file.
* Creation Date: 10/09/2016
***********************************************************************************************************************/
/***********************************************************************************************************************
Includes <System Includes> , Project Includes
***********************************************************************************************************************/
#include "r_cg_macrodriver.h"
#include "lcd_panel.h"
/***********************************************************************************************************************
Macro Definitions
***********************************************************************************************************************/
#define SMATE_OUT P1.1
#define SMATE_ON P1.2
#define TRUE (1)
#define FALSE (0)
#define ZERO_OUTPUT 0x2000
#define MIN_OUTPUT 0x666
#define MAX_OUTPUT 0x3996
#define MIN_RANGE (ZERO_OUTPUT-MIN_OUTPUT)
#define MAX_RANGE (MAX_OUTPUT-ZERO_OUTPUT)
/***********************************************************************************************************************
Typedef definitions
***********************************************************************************************************************/
/***********************************************************************************************************************
Global functions
***********************************************************************************************************************/
void ZacInit(void);
void ReadSensor (void);
uint16_t getSmateSensor (uint16_t *temp_value16);
void ZacWireWait(void);
<file_sep>/***********************************************************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.
* No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
* applicable laws, including copyright laws.
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIESREGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY
* LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT,
* INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR
* ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
* Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability
* of this software. By using this software, you agree to the additional terms and conditions found by accessing the
* following link:
* http://www.renesas.com/disclaimer
*
* Copyright (C) 2012, 2016 Renesas Electronics Corporation. All rights reserved.
***********************************************************************************************************************/
/***********************************************************************************************************************
* File Name : r_main.c
* Version : CodeGenerator for RL78/L12 V2.03.03.03 [07 Mar 2016]
* Device(s) : R5F10RLC
* Tool-Chain : CA78K0R
* Description : This file implements main function.
* Creation Date: 2016/11/18
***********************************************************************************************************************/
/***********************************************************************************************************************
Pragma directive
***********************************************************************************************************************/
/* Start user code for pragma. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
/***********************************************************************************************************************
Includes
***********************************************************************************************************************/
#include "r_cg_macrodriver.h"
#include "r_cg_cgc.h"
#include "r_cg_port.h"
#include "r_cg_intc.h"
#include "r_cg_adc.h"
#include "r_cg_timer.h"
#include "r_cg_rtc.h"
#include "r_cg_lcd.h"
/* Start user code for include. Do not edit comment generated here */
#include "lcd_panel.h"
#include "pfdl.h"
/* End user code. Do not edit comment generated here */
#include "r_cg_userdefine.h"
/***********************************************************************************************************************
Global variables and functions
***********************************************************************************************************************/
/* Start user code for global. Do not edit comment generated here */
volatile unsigned short g_sw1_period = 0u,g_sw2_period = 0u;
uint8_t g_sw1_pressed =0,g_sw1_hold=0,g_sw2_pressed=0,g_sw2_hold=0,g_sw3_pressed=0,g_sw3_hold=0;
extern uint8_t g_sw1_enable_sample,g_sw2_enable_sample ;
extern void FlashMemoryAccess (void);
char *res = "99.7";
float f_k;
// int8_t g_buffer[12] = "80.9";
/* End user code. Do not edit comment generated here */
void R_MAIN_UserInit(void);
/***********************************************************************************************************************
* Function Name: main
* Description : This function implements main function.
* Arguments : None
* Return Value : None
***********************************************************************************************************************/
void main(void)
{
R_MAIN_UserInit();
/* Start user code. Do not edit comment generated here */
/* Initialize the LCD panel */
R_INTC3_Start();
STOP();
R_TAU0_Channel0_Start();
R_TAU0_Channel1_Start();
R_TAU0_Channel2_Start();
R_INTC0_Start();
R_INTC4_Start();
R_RTC_Start();
R_ADC_Start();
Init_Display_Panel();
//GTC_DISPLAY();
while (1U)
{
if (g_sw1_pressed)
{
g_sw1_pressed =0;
P13.0=~P13.0;
}
if (g_sw1_hold) /* SW1 hold */
{
g_sw1_hold =0;
P2.1=~P2.1;
}
//P12.5=~P12.5;;
}
/* End user code. Do not edit comment generated here */
}
/***********************************************************************************************************************
* Function Name: R_MAIN_UserInit
* Description : This function adds user code before implementing main function.
* Arguments : None
* Return Value : None
***********************************************************************************************************************/
void R_MAIN_UserInit(void)
{
/* Start user code. Do not edit comment generated here */
//FlashMemoryAccess(); //Benson
EI();
/* End user code. Do not edit comment generated here */
}
/* Start user code for adding. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
<file_sep>
/***********************************************************************************************************************
* File Name : ZAC.c
* Version : 1.00
* Device(s) : ALL Series
* Tool-Chain : GNURL78 v12.03
* Description : This file contains the ZAC wire driver.
* Creation Date: 10/09/2016
***********************************************************************************************************************/
/***********************************************************************************************************************
Includes
***********************************************************************************************************************/
#include "r_cg_macrodriver.h"
#include "ZAC.h"
/***********************************************************************************************************************
Global Variables & Defined Constants
***********************************************************************************************************************/
/* Declare a variable for A/D results */
volatile uint16_t g_adc_result = 0;
/* Global buffer array for storing the ADC result integer to string conversion */
volatile uint8_t g_lcd_buffer[4] = "xxx";
/***********************************************************************************************************************
User Program Code
***********************************************************************************************************************/
/***********************************************************************************************************************
* Function Name : ZacInit
* Description : ZACwire interface initialization
* Arguments : NA
*
* Return Value : NA
***********************************************************************************************************************/
void ZacInit(void)
{
SMATE_ON=0;
SMATE_OUT=0;
}
/***********************************************************************************************************************
* Function Name : getSmateSensor
* Description :
* Arguments :
*
* Return Value :
***********************************************************************************************************************/
uint16_t getSmateSensor (uint16_t *temp_value16)
{
uint16_t temp_value1 = 0,temp_value2 = 0,Temperature;
uint8_t i,parity;
SMATE_ON = 1;
P1 &= 0xfd;
PM1 |= 0x02;
ZacWireWait(); // wait for stabilization
ZacWireWait();
while (SMATE_OUT); // wait until start bit starts
// wait, TStrobe
while (!SMATE_OUT);
// first data byte
// read 8 data bits and 1 parity bit
for (i = 0; i < 9; i++)
{
while (SMATE_OUT); // wait for falling edge
ZacWireWait();
if (SMATE_OUT)
temp_value1 |= 1 << (8-i); // get the bit
else
while (!SMATE_OUT); // wait until line comes high again
}
// second byte
while (SMATE_OUT);
// wait, TStrobe
while (!SMATE_OUT);
// read 8 data bits and 1 parity bit
for (i = 0; i < 9; i++)
{
while (SMATE_OUT); // wait for falling edge
ZacWireWait();
if (SMATE_OUT)
temp_value2 |= 1 << (8-i); // get the bit
else
while (!SMATE_OUT); // wait until line comes high again
}
P1 |= 0x02;
PM1 &= 0xfd;
SMATE_ON=0; // switch CHIPCAP off
// check parity for byte 1
parity = 0;
for (i = 0; i < 9; i++)
if (temp_value1 & (1 << i))
parity++;
if (parity % 2)
return FALSE;
// check parity for byte 2
parity = 0;
for (i = 0; i < 9; i++)
if (temp_value2 & (1 << i))
parity++;
if (parity % 2)
return FALSE;
temp_value1 >>= 1; // delete parity bit
temp_value2 >>= 1; // delete parity bit
Temperature = (temp_value1 << 8) | temp_value2;
*temp_value16 = Temperature;
return TRUE; // parity is OK
}
/***********************************************************************************************************************
* Function Name : ZacWireWait
* Description :
* Arguments :
*
* Return Value : 180us wait
***********************************************************************************************************************/
void ZacWireWait(void)
{
unsigned int DelayTime;
for(DelayTime = 0;DelayTime<600;DelayTime++)
NOP();
}
<file_sep>/***********************************************************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.
* No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
* applicable laws, including copyright laws.
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIESREGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY
* LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT,
* INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR
* ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
* Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability
* of this software. By using this software, you agree to the additional terms and conditions found by accessing the
* following link:
* http://www.renesas.com/disclaimer
*
* Copyright (C) 2012, 2016 Renesas Electronics Corporation. All rights reserved.
***********************************************************************************************************************/
/***********************************************************************************************************************
* File Name : r_cg_timer_user.c
* Version : CodeGenerator for RL78/L12 V2.03.03.03 [07 Mar 2016]
* Device(s) : R5F10RLC
* Tool-Chain : CA78K0R
* Description : This file implements device driver for TAU module.
* Creation Date: 2016/11/18
***********************************************************************************************************************/
/***********************************************************************************************************************
Pragma directive
***********************************************************************************************************************/
#pragma interrupt INTTM00 r_tau0_channel0_interrupt
#pragma interrupt INTTM01 r_tau0_channel1_interrupt
#pragma interrupt INTTM02 r_tau0_channel2_interrupt
/* Start user code for pragma. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
/***********************************************************************************************************************
Includes
***********************************************************************************************************************/
#include "r_cg_macrodriver.h"
#include "r_cg_timer.h"
/* Start user code for include. Do not edit comment generated here */
#include "lcd_panel.h"
#include "r_cg_adc.h"
/* End user code. Do not edit comment generated here */
#include "r_cg_userdefine.h"
/***********************************************************************************************************************
Global variables and functions
***********************************************************************************************************************/
/* Start user code for global. Do not edit comment generated here */
/* String to be scrolled across the star-burst segments.
Leave at least one space following the last alphabetic/numeric character in the string*/
char g_scroll_data[SCROLL_LINES][SCROLL_BUFF_SIZE] =
{
" YRPB RL78/L12 Demo ",
" <NAME> ",
"1234567890abcdefghi"
};
/* Pointer used to specify the start address of buffer
arrays containing data to be scrolled on the LCD panel */
char * g_scroll_data_pointer = g_scroll_data[0];
/* Holds statuses for enabling/disabling text scrolling on the LCD panel */
uint8_t g_enable_scroll = 0u;
uint8_t g_sw1_enable_sample = 0u,g_sw2_enable_sample = 0u;
volatile uint8_t g_sw=0;
extern uint8_t g_sw1_hold,g_sw2_hold;
/* End user code. Do not edit comment generated here */
/***********************************************************************************************************************
* Function Name: r_tau0_channel0_interrupt
* Description : This function is INTTM00 interrupt service routine.
* Arguments : None
* Return Value : None
***********************************************************************************************************************/
__interrupt static void r_tau0_channel0_interrupt(void)
{
/* Start user code. Do not edit comment generated here */
/* 500ms */
if (g_sw == 1 )
{
Symbol_Map(LCD_HEAT_ON);
g_sw=0;
}
else
{
Symbol_Map(LCD_HEAT_OFF);
g_sw=1;
}
/* End user code. Do not edit comment generated here */
}
/***********************************************************************************************************************
* Function Name: r_tau0_channel1_interrupt
* Description : This function is INTTM01 interrupt service routine.
* Arguments : None
* Return Value : None
***********************************************************************************************************************/
__interrupt static void r_tau0_channel1_interrupt(void)
{
/* Start user code. Do not edit comment generated here */
/* Declare count variables */
/* 200ms */
static uint8_t i = 0;
static uint8_t j = 0;
uint8_t u_k;
float f_k;
char res[5];
/* Update the LCD every second timer interrupt */
if (1u == i++)
{
/* Display the text on the LCD panel.
Casting to ensure correct data type */
//Display_Panel_String(g_scroll_data_pointer);
/* Reset the count */
i = 0;
/* Increment the address */
g_scroll_data_pointer++;
}
/* Check if the NULL character has been encountered */
if (0u == *g_scroll_data_pointer)
{
/* Copy the start address of the text to be scrolled */
g_scroll_data_pointer = g_scroll_data[j];
/* Reset the counter after all scroll sentences have been displayed */
if (SCROLL_LINES == ++j)
{
j = 0;
}
/* Stop scrolling? */
if (FINITE_SCROLL & g_enable_scroll)
{
/* Disable scrolling */
g_enable_scroll &= ~ENABLE_SCROLL;
}
}
R_ADC_Get_Result_8bit(&u_k);
f_k = 25.0 + (1.05 - 0.005664 * ((float) u_k))/3.6;
ftoa(f_k, res);
Display_Panel_String(res);
/* Clear the interrupt flag */
//Benson TMIF00 = 0x0;
/* End user code. Do not edit comment generated here */
}
/***********************************************************************************************************************
* Function Name: r_tau0_channel2_interrupt
* Description : This function is INTTM02 interrupt service routine.
* Arguments : None
* Return Value : None
***********************************************************************************************************************/
__interrupt static void r_tau0_channel2_interrupt(void)
{
/* Start user code. Do not edit comment generated here */
/* 100ms*/
if (g_sw1_enable_sample)
g_sw1_period ++;
else
g_sw1_period =0;
if (g_sw2_enable_sample)
g_sw2_period ++;
else
g_sw2_period =0;
if (g_sw1_period >=5)
{
g_sw1_hold = 1;
g_sw1_enable_sample =0;
}
/* End user code. Do not edit comment generated here */
}
/* Start user code for adding. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
<file_sep>/***********************************************************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authorized. This
* software is owned by Renesas Electronics Corporation and is protected under
* all applicable laws, including copyright laws.
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
* Renesas reserves the right, without notice, to make changes to this software
* and to discontinue the availability of this software. By using this software,
* you agree to the additional terms and conditions found by accessing the
* following link:
* http://www.renesas.com/disclaimer
*
* Copyright (C) 2012 Renesas Electronics Corporation. All rights reserved.
***********************************************************************************************************************/
/***********************************************************************************************************************
* File Name : lcd_panel.c
* Version : 1.00
* Device(s) : R5F10RLC
* Tool-Chain : GNURL78 v12.03
* Description : This file contains the LCD panel driver.
* Creation Date: 21/01/2013
***********************************************************************************************************************/
/***********************************************************************************************************************
Includes
***********************************************************************************************************************/
#include "r_cg_macrodriver.h"
#include "r_cg_lcd.h"
#include "lcd_panel.h"
/***********************************************************************************************************************
Global Variables & Defined Constants
***********************************************************************************************************************/
/* Declare Array Maps for writing to section A, the middle line of the LCD panel */
LCDMAP SECTA_map[20];
/* Function prototype for initializing Section A glyph maps */
static void Init_SectA_Maps (void);
/***********************************************************************************************************************
User Program Code
***********************************************************************************************************************/
/***********************************************************************************************************************
* Function Name : Validate_Input
* Description : Takes any char and validates the input for the Update_Display
* function. Capitalizes all letters, and re-maps symbols. Outputs
* to a variable specified by the pointer parameter passed.
* Arguments : uint8_t input
* to be validated
* uint8_t * output
* pointer to output buffer
* Return Value : uint16_t
* 0: Unsupported Character
* 1: Number (or space)
* 2: Letter A-F
* 3: Letter G-Z
* 4: Supported Symbol
***********************************************************************************************************************/
uint16_t Validate_Input (const uint8_t input, uint8_t * const output)
{
/* Is space or Carriage Return? */
if ((' ' == input) || (0x0D == input))
{
*output = 0x29u;
return 1u;
}
/* Is Number? */
else if ((input < 0x3Au) && (input > 0x2Fu))
{
/* Convert from ASCII.
Casting to ensure use of correct data type.*/
*output = (uint8_t)(input - 0x30);
return 1u;
}
/* Is Upper-case Alpha A-F ? */
else if ((input < 0x47u) && (input > 0x40u))
{
/* Convert from ASCII.
Casting to ensure use of correct data type.*/
*output = (uint8_t)(input - 0x33);
return 2u;
}
/* Is Lower-case Alpha A-F */
else if ((input < 0x67u) && (input > 0x60u))
{
/* Shift Case & Convert from ASCII.
Casting to ensure use of correct data type.*/
*output = (uint8_t)(input - 0x53u);
return 2u;
}
/* Is Upper-case Alpha L ? */
else if (input == 0x4Cu)
{
/* Convert from ASCII.
Casting to ensure use of correct data type.*/
*output = (uint8_t)(input - 0x42u);
return 2u;
}
/* IsLower-case Alpha L? */
else if (input == 0x6Cu)
{
/* Convert from ASCII.
Casting to ensure use of correct data type.*/
*output = (uint8_t)(input - 0x62u);
return 2u;
}
/* Is Symbol? */
else
{
/* Check input against supported symbols */
switch (input)
{
case 0x2Bu:
{
/* Is Plus */
*output = 0x0Au;
}
break;
case 0x2Du:
{
/* Is Minus */
*output = 0x0Bu;
}
break;
case 0x2Fu:
{
/* Is Forward Slash */
*output = 0x0Cu;
}
break;
case 0x5Cu:
{
/* Is Back Slash */
*output = 0x0Du;
}
break;
case 0x2Eu:
{
/* Is full stop */
*output = 0x2Eu;
}
break;
case 0x3Au:
{
/* Is colon */
*output = 0x3Au;
}
break;
case 0x2Au:
{
/* Is asterisk */
*output = 0x28u;
}
break;
default:
{
/* Unsupported Character, do nothing */
return 0u;
}
break;
}
/* The character received is supported */
return 4u;
}
}
/***********************************************************************************************************************
* End of function Validate_Input
***********************************************************************************************************************/
/***********************************************************************************************************************
* Function Name: SECTA_Glyph_Map
* Description : Takes a validated char input and maps the character to a
* segment pattern, to be displayed on Section A (mid-section) of the LCD panel.
* Arguments : const uint8_t glyph - character to be displayed,
* uint16_t digit - digit position of character
* Return Value : none
***********************************************************************************************************************/
void SECTA_Glyph_Map (uint8_t const glyph, uint16_t const digit)
{
/* Declare the first pointer for mapping the character to the segments */
volatile uint8_t * PinPtr1 = PDL_NO_PTR;
/* Declare the second pointer for mapping the character to the segments */
volatile uint8_t * PinPtr2 = PDL_NO_PTR;
/* Set Pointers to Correct Segments */
switch(digit)
{
/* First Digit */
case CASE_0:
{
/* Assignment the segment register address to the pointers */
PinPtr1 = &SEG12_DEF;
PinPtr2 = &SEG11_DEF;
}
break;
/* Second Digit */
case CASE_1:
{
/* Assignment the segment register address to the pointers */
PinPtr1 = &SEG14_DEF;
PinPtr2 = &SEG13_DEF;
}
break;
/* Decimal Point */
case CASE_2:
{
/* Assignment the segment register address to the pointers */
PinPtr1 = &SEG15_DEF;
PinPtr2 = PDL_NO_PTR;
}
break;
/* Third Digit */
case CASE_3:
{
/* Assignment the segment register address to the pointers */
PinPtr1 = &SEG16_DEF;
PinPtr2 = &SEG15_DEF;
}
break;
default:
{
/* Do nothing */
}
break;
}
/* Bit Mask Segments */
*PinPtr1 &= 0xF0u; //Clear all Right-side segment contents
*PinPtr2 &= 0xF8u; //clear all left-side segment contents
/* Decimal point? */
if (2u == digit)
{
if ('.' == glyph)
{
/* Turn on Decimal Point */
*PinPtr1 |= 0x08u;
}
else
{
/* Turn off Decimal Point */
*PinPtr1 &= 0xF7u;
}
}
else if (GLYPH_CHECK != glyph)
{
/* Digit-Segment Mapping */
*PinPtr1 |= SECTA_map[glyph].NIBBLE.TWO;
*PinPtr2 |= SECTA_map[glyph].NIBBLE.ONE;
}
else
{
/* Do nothing */
}
}
/***********************************************************************************************************************
End of function SECTA_Glyph_Map
***********************************************************************************************************************/
/***********************************************************************************************************************
* Function Name : Symbol_Map
* Description : Takes a symbol code and turns on/off LCD Panel Symbols. The
* first digit should be which symbol to control (see symbols
* listed below)
* The second should be either a 1 or a 0.
* (1 - Turn on, 0 - Turn Off)
* 1 - Heat 5 - mmHg 9 - Degrees F
* 2 - Fan 6 - Volts A - Alarm
* 3 - Zone 7 - Heart B - AM
* 4 - mg/ml 8 - Degrees C C - PM
* For example '61' would turn on the Volts symbol and
* C0 would turn off the PM symbol.
* Arguments : int16_t input - symbol to be controlled
* Return Value : uint8_t
* 0 - valid input
1 - invalid input
***********************************************************************************************************************/
uint8_t Symbol_Map (uint16_t const input )
{
/* Declare a status variable */
uint8_t status = 0;
/* Select the case based on the input selection. */
switch(input)
{
case LCD_HEAT_ON:
{
SEG28_DEF |= 0x01u;
}
break;
case LCD_HEAT_OFF:
{
SEG28_DEF &= 0xFEu;
}
break;
case LCD_FAN_ON:
{
SEG34_DEF |= 0x01u;
}
break;
case LCD_FAN_OFF:
{
SEG34_DEF &= 0xFEu;
}
break;
case LCD_ZONE_ON:
{
SEG33_DEF |= 0x01u;
}
break;
case LCD_ZONE_OFF:
{
SEG33_DEF &= 0xFEu;
}
break;
case LCD_VOLTS_ON:
{
SEG32_DEF |= 0x01u;
}
break;
case LCD_VOLTS_OFF:
{
SEG32_DEF &= 0xFEu;
}
break;
case LCD_HEART_ON:
{
SEG31_DEF |= 0x01u;
}
break;
case LCD_HEART_OFF:
{
SEG31_DEF &= 0xFEu;
}
break;
case LCD_DEGREESC_ON:
{
SEG17_DEF |= 0x04u;
}
break;
case LCD_DEGREESC_OFF:
{
SEG17_DEF &= 0xFBu;
}
break;
case LCD_DEGREESF_ON:
{
SEG17_DEF |= 0x08u;
}
break;
case LCD_DEGREESF_OFF:
{
SEG17_DEF &= 0xF7u;
}
break;
case LCD_ALARM_ON:
{
SEG19_DEF |= 0x02u;
}
break;
case LCD_ALARM_OFF:
{
SEG19_DEF &= 0xFDu;
}
break;
case LCD_ALARM_ON_1:
{
SEG19_DEF |= 0x02u;
}
break;
case LCD_ALARM_OFF_1:
{
SEG19_DEF &= 0xFDu;
}
break;
case LCD_AM_ON:
{
SEG19_DEF |= 0x01u;
}
break;
case LCD_AM_OFF:
{
SEG19_DEF &= 0xFEu;
}
break;
case LCD_AM_ON_1:
{
SEG19_DEF |= 0x01u;
}
break;
case LCD_AM_OFF_1:
{
SEG28_DEF &= 0xFEu;
}
break;
case LCD_PM_ON:
{
SEG17_DEF |= 0x02u;
}
break;
case LCD_PM_OFF:
{
SEG17_DEF &= 0xFDu;
}
break;
case LCD_PM_ON_1:
{
SEG17_DEF |= 0x02u;
}
break;
case LCD_PM_OFF_1:
{
SEG17_DEF &= 0xFDu;
}
break;
case LCD_COOL_ON:
{
SEG30_DEF |= 0x01u;
}
break;
case LCD_COOL_OFF:
{
SEG30_DEF &= 0xF0u;
}
break;
default:
{
/* Bad Selection - Do Nothing */
status = 1u;
}
break;
}
/* Return the status */
return status;
}
/***********************************************************************************************************************
End of function Symbol_Map
***********************************************************************************************************************/
/***********************************************************************************************************************
* Function Name : Init_Display_Panel
* Description : Calls functions in order to prepare the LCD Panel for use
* Arguments : None
* Return Value : None
***********************************************************************************************************************/
void Init_Display_Panel (void)
{
/* Load up Segment Maps */
Init_Maps();
Clear_Display();
/* Enable the LCD */
R_LCD_Start();
/* Enable the voltage boost circuit */
R_LCD_Set_VoltageOn();
}
/***********************************************************************************************************************
End of function Init_Display_Panel
***********************************************************************************************************************/
/***********************************************************************************************************************
* Function Name : Clear_Display
* Description : Clears all the segment data registers, thereby clearing the screen by the next LCD frame duration.
* Arguments : none
* Return Value : none
***********************************************************************************************************************/
void Clear_Display (void)
{
/* Declare a loop count variable */
uint8_t i;
/* Initialize pointer to start of registers */
volatile uint8_t * RegPtr = &SEG1_DEF;
/* Execute the instructions in the loop 40 times */
for (i = 0; i < 40;i++)
{
/* Write 0 to the register being pointed to.*/
*RegPtr = 0u;
/* Increment the pointer */
RegPtr++;
}
}
/***********************************************************************************************************************
End of function Clear_Display
***********************************************************************************************************************/
/***********************************************************************************************************************
* Function Name : Init_Maps
* Description : Initializes the glyph-segment maps used to display letters, symbols and numbers.
* Arguments : none
* Return Value : none
***********************************************************************************************************************/
void Init_Maps (void)
{
/* Initialize section A maps */
Init_SectA_Maps();
}
/***********************************************************************************************************************
End of function Init_Maps
***********************************************************************************************************************/
/***********************************************************************************************************************
* Function Name : Init_SectA_Maps
* Description : Initializes Sect A maps.
* Arguments : none
* Return Value : none
***********************************************************************************************************************/
void Init_SectA_Maps (void)
{
/* Section A maps START */
/* 0 */
SECTA_map[0x0].WORD = 0x00F5u;
/* 1 */
SECTA_map[0x1].WORD = 0x0060u;
/* 2 */
SECTA_map[0x2].WORD = 0x00B6u;
/* 3 */
SECTA_map[0x3].WORD = 0x00F2u;
/* 4 */
SECTA_map[0x4].WORD = 0x0063u;
/* 5 */
SECTA_map[0x5].WORD = 0x00D3u;
/* 6 */
SECTA_map[0x6].WORD = 0x00D7u;
/* 7 */
SECTA_map[0x7].WORD = 0x0070u;
/* 8 */
SECTA_map[0x8].WORD = 0x00F7u;
/* 9 */
SECTA_map[0x9].WORD = 0x00F3u;
/* L */
SECTA_map[0xA].WORD = 0x0085u;
/* A */
SECTA_map[0xE].WORD = 0x0077u;
/* B */
SECTA_map[0xF].WORD = 0x00C7u;
/* C */
SECTA_map[0x10].WORD = 0x0095u;
/* D */
SECTA_map[0x11].WORD = 0x00E6u;
/* E */
SECTA_map[0x12].WORD = 0x0097u;
/* F */
SECTA_map[0x13].WORD = 0x0017u;
}
/***********************************************************************************************************************
End of function Init_SectA_Maps
***********************************************************************************************************************/
/***********************************************************************************************************************
Function Name : SECTD_Glyph_Map
Description : Takes a number input, and sets the level of the battery indicator (section D)
Argument : uint8_t level - Indicator Level (char)
* uint8_t bat_outline - Turns on or off the battery outline
Return Values : None
***********************************************************************************************************************/
void SECTD_Glyph_Map (uint8_t const level, uint8_t const bat_outline)
{
/* Turn off all levels */
SEG18_DEF &= 0xF0u;
/* Select the case based on the input level */
switch (level)
{
case LEVEL_0:
{
/* Battery Outline & 0 Level */
SEG18_DEF |= 0x00u;
}
break;
case LEVEL_1:
{
/* Battery Outline & 1 Level */
SEG18_DEF |= 0x08u;
}
break;
case LEVEL_2:
{
/* Battery Outline & 2 Levels */
SEG18_DEF |= 0x0Cu;
}
break;
case LEVEL_3:
{
/* Battery Outline & 3 Levels */
SEG18_DEF |= 0x0Eu;
}
break;
case LEVEL_4:
{
/* All Levels On */
SEG18_DEF |= 0x0Fu;
}
break;
default:
{
/* Bad Selection */
}
break;
}
/* Check if the battery outline is required */
if (BATTERY_OUTLINE_OFF == bat_outline)
{
/* Turn off the battery outline */
SEG17_DEF &= ~(0x01);
}
else
{
/* Turn on the battery outline */
SEG17_DEF |= 0x01;
}
}
/***********************************************************************************************************************
End of function SECTD_Glyph_Map
***********************************************************************************************************************/
/***********************************************************************************************************************
* Function Name : Display_Panel_String
* Description This function writes to line 1, line 2 or 3 of the LCD. You need to use the defines LCD_LINE1,
LCD_LINE2 and LCD_LINE3 in order to specify the starting position.
* Arguments : (const char *) string - pointer to data to be written to display (up to 8 chars).
* Return Value : None
***********************************************************************************************************************/
void Display_Panel_String (char * const string)
{
/* Declare variable to hold the output data */
uint8_t output_buf = 0u;
/* Declare a variable flag to hold the input validation result */
uint16_t flag = 0u;
/* Declare a loop count variable */
uint16_t i = 0u;
/* Display input onto LCD.Castings used to ensure correct data types in assignments and passing on of arguments */
for (i = 0u; i < 5u; i++)
{
/* Validate Input.Casting used to ensure correct data type is used. */
uint8_t cc;
cc = string[i];
flag = Validate_Input((uint8_t)string[i], &output_buf);
/* Is Number? */
if ((1u == flag) || (2u == flag) || (4u == flag))
{
if ((i > 1) && ('.' != string[2]))
{
/* Map Glyph to Segment Pattern */
SECTA_Glyph_Map(output_buf, (i+1u));
}
else
{
/* Map Glyph to Segment Pattern */
SECTA_Glyph_Map(output_buf, i);
}
}
}
}
/***********************************************************************************************************************
End of function Display_Panel_String
***********************************************************************************************************************/
/***********************************************************************************************************************
* Function Name : Display_Panel_Delay
* Description : Delay routine for LCD or any other devices.
* Arguments :(uint32_t) units - time in, approximately, microseconds
* Return Value : None
***********************************************************************************************************************/
void Display_Panel_Delay (uint32_t units)
{
/* Declare a delay count */
uint32_t counter = units * PANEL_DELAY_TIMING;
/* Decrement the counter until it reaches 0 */
while (counter--)
{
/* Do nothing */
}
}
/***********************************************************************************************************************
End of function Display_Panel_Delay
************************************************************************************************************************/
/***********************************************************************************************************************
* Function Name: LCD_OFF
* Description : This function turns off all LCD segments.
* Arguments : None
* Return Value : None
***********************************************************************************************************************/
void LCD_OFF (void)
{
SEG0 = 0x00;
SEG1 = 0x00;
SEG2 = 0x00;
SEG3 = 0x00;
SEG4 = 0x00;
SEG5 = 0x00;
SEG6 = 0x00;
SEG7 = 0x00;
SEG8 = 0x00;
SEG9 = 0x00;
SEG10 = 0x00;
SEG11 = 0x00;
SEG12 = 0x00;
SEG13 = 0x00;
SEG14 = 0x00;
SEG15 = 0x00;
SEG16 = 0x00;
SEG19 = 0x00;
SEG20 = 0x00;
SEG21 = 0x00;
SEG22 = 0x00;
SEG23 = 0x00;
SEG24 = 0x00;
SEG25 = 0x00;
SEG26 = 0x00;
SEG27 = 0x00;
SEG28 = 0x00;
SEG31 = 0x00;
SEG32 = 0x00;
SEG33 = 0x00;
SEG34 = 0x00;
SEG35 = 0x00;
SEG36 = 0x00;
SEG37 = 0x00;
SEG38 = 0x00;
}
/***********************************************************************************************************************
End of function LCD_OFF
************************************************************************************************************************/
/***********************************************************************************************************************
* Function Name: LCD_ON
* Description : This function turns on all LCD segments.
* Arguments : None
* Return Value : None
***********************************************************************************************************************/
void LCD_ON (void)
{
SEG0 = 0x0f;
SEG1 = 0x0f;
SEG2 = 0x0f;
SEG3 = 0x0f;
SEG4 = 0x0f;
SEG5 = 0x0f;
SEG6 = 0x0f;
SEG7 = 0x0f;
SEG8 = 0x0f;
SEG9 = 0x0f;
/* Renesas symbol is always off */
SEG10 = 0x07;
SEG11 = 0x0f;
SEG12 = 0x0f;
SEG13 = 0x0f;
SEG14 = 0x0f;
SEG15 = 0x0f;
SEG16 = 0x0f;
SEG19 = 0x0f;
SEG20 = 0x0f;
SEG21 = 0x0f;
SEG22 = 0x0f;
SEG23 = 0x0f;
SEG24 = 0x0f;
SEG25 = 0x0f;
SEG26 = 0x0f;
SEG27 = 0x0f;
/* The first 7-segment of the digital clock is turned off */
SEG28 = 0x01;
SEG31 = 0x0f;
SEG32 = 0x0f;
SEG33 = 0x0f;
SEG34 = 0x0f;
SEG35 = 0x0f;
SEG36 = 0x0f;
/* Turn off T12 */
SEG37 = 0x0e;
/* Turn off T11 */
SEG38 = 0x0e;
}
/***********************************************************************************************************************
End of function LCD_ON
************************************************************************************************************************/
/***********************************************************************************************************************
* Function Name: GTC_DISPLAY
* Description : This function display GTC
* Arguments : None
* Return Value : None
***********************************************************************************************************************/
void GTC_DISPLAY (void)
{
uint8_t weekno,secno,minno,hourno;
//int8_t g_lcd_buffer[12] = "12:34:78\.9";
int8_t g_lcd_buffer[12] = "78.9";
Symbol_Map(LCD_FAN_ON);
Symbol_Map(LCD_ZONE_ON);
Symbol_Map(LCD_VOLTS_ON);
Symbol_Map(LCD_HEART_ON);
Symbol_Map(LCD_DEGREESC_ON);
Symbol_Map(LCD_DEGREESF_ON);
Symbol_Map(LCD_ALARM_ON);
Symbol_Map(LCD_ALARM_ON_1);
Symbol_Map(LCD_AM_ON);
Symbol_Map(LCD_AM_ON_1);
Symbol_Map(LCD_PM_ON);
Symbol_Map(LCD_PM_ON_1);
Symbol_Map(LCD_COOL_ON);
SECTD_Glyph_Map(BATT_LEVEL_2, BATTERY_OUTLINE_ON);
/* Update the time on the LCD panel. Casting to ensure use of correct data type.*/
Display_Panel_String(g_lcd_buffer);
}
/***********************************************************************************************************************
* Function Name: ftoa
* Description : This function convert float number to string.
* Input Arguments: float n
* Return Value : char *res
***********************************************************************************************************************/
char ftoa(float n, char *res)
{
// Extract integer part
uint16_t ipart = (uint16_t)n;
// Extract floating part
uint16_t int_fpart = (uint16_t)( (n*10.0) - (float)(ipart* 10));
// convert integer part to string
if ((ipart < 10) && (n >= 0.0)) sprintf(res," %d.%d",ipart,int_fpart);
else if ((ipart >= 10) && (ipart < 100)) sprintf(res,"%d.%d",ipart,int_fpart);
else if ((ipart >= 100) && (ipart <= 103)) sprintf(res,"%d",ipart,int_fpart);
else if ((n < 0.0) || (ipart > 103)) sprintf(res,"---");
}
| 268102eafa2528988d1cf97317a93cd6956ce5fb | [
"C"
] | 5 | C | bensonwutw/Sample-LED- | a679060a549f328c6f41089d26c53b4721a1c760 | dc8793df28cdb07e9ec464de776097e504c99c59 |
refs/heads/main | <file_sep>//var nome = "<NAME>";
//var idade = 29;
//var frase = "Japão é o melhor time do mundo!";
//alert("Bem vindo " + nome);
//alert(nome + " tem " + idade + " anos.");
//console.log(frase.replace("Japão", "Brasil"));
//console.log(frase.toUpperCase());
//Trabalhando com array
//var lista = ["maça", "pêra", "laranja"];
//lista.push("uva");
//lista.pop();
//console.log(lista);
//console.log(lista[2]);
//alert(lista[2]);
//console.log(lista.length);
//console.log(lista.reverse());
//console.log(lista.toString());
//console.log(lista.toString()[0]);
//console.log(lista.join(" x "));
//Trabalhando com dicionário.
/*var fruta = {nome:"maça", cor:"vermelha"}
console.log(fruta);
console.log(fruta.nome);
alert(fruta.cor);*/
/*var frutas = [
{ nome: "maça", cor: "vermelha" },
{ nome: "pêra", cor: "verde" },
{ nome: "abacaxi", cor: "amarelo" }
];
console.log(frutas);
alert(frutas[1].nome);*/
//estrura de controles
/*var idade = prompt("Qual é a sua idade?");
if (idade => 18) {
alert("Maior de idade");
} else {
alert("Menor de idade!")
};*/
/*var count = 0;
while (count < 5) {
console.log(count);
count ++;
};*/
/*var count;
for (count = 0; count <= 5; count++) {
alert(count);
};
*/
//trabalhando com datas
var d = new Date();
//alert(d);
alert(d.getDate());<file_sep># aula_javascript
Introdução ao javascript, curso da Digital Innovation One.
| 71722de5b695391b20b5c82241bbbc5af762e7d6 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | RodrigoGomesS/aula_javascript | b344c82ae6ff57f55f1960542efa76c7dd56f67b | 69829cd2655526e1278564130736d3bb99cec480 |
refs/heads/master | <repo_name>ilyapuchka/Dip<file_sep>/Sources/RuntimeArguments.swift
//
// Dip
//
// Copyright (c) 2015 <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
// MARK: - Register/resolve dependencies with runtime arguments
extension DependencyContainer {
// MARK: 1 Runtime Argument
/**
Register factory that accepts one runtime argumentof type `Arg1`. You can use up to six runtime arguments.
- note: You can have several factories with different number or types of arguments registered for same type,
optionally associated with some tags. When container resolves that type it matches the type,
__number__, __types__ and __order__ of runtime arguments and optional tag that you pass to `resolve(tag:withArguments:)` method.
- parameters:
- tag: The arbitrary tag to associate this factory with. Pass `nil` to associate with any tag. Default value is `nil`.
- scope: The scope to use for this component. Default value is `.Prototype`.
- factory: The factory to register.
- seealso: `registerFactory(tag:scope:factory:)`
*/
public func register<T, Arg1>(tag tag: DependencyTagConvertible? = nil, _ scope: ComponentScope = .Prototype, factory: (Arg1) throws -> T) -> DefinitionOf<T, (Arg1) throws -> T> {
return registerFactory(tag: tag, scope: scope, factory: factory, numberOfArguments: 1) { container, tag in try factory(try container.resolve(tag: tag)) }
}
/**
Resolve a dependency using one runtime argument.
- note: When resolving type container will first try to use definition that matches types of arguments that you pass to resolve method. If it fails or no such definition is found container will try to _auto-wire_ component. For that it will iterate through all the definitions registered for that type which factories accept any number of runtime arguments and are tagged with the same tag, passed to `resolve` method, or with no tag. Container will try to use these definitions to resolve a component one by one until one of them succeeds, starting with tagged definitions in order of decreasing their's factories number of arguments.
- parameters:
- tag: The arbitrary tag to lookup registered definition.
- arg1: The first argument to pass to the definition's factory.
- throws: `DipError.DefinitionNotFound`, `DipError.AutoInjectionFailed`, `DipError.AmbiguousDefinitions`
- returns: An instance of type `T`.
- seealso: `register(tag:_:factory:)`, `resolve(tag:builder:)`
*/
public func resolve<T, Arg1>(tag tag: DependencyTagConvertible? = nil, withArguments arg1: Arg1) throws -> T {
return try resolve(tag: tag) { (factory: (Arg1) throws -> T) in try factory(arg1) }
}
// MARK: 2 Runtime Arguments
/// - seealso: `register(tag:scope:factory:)`
public func register<T, Arg1, Arg2>(tag tag: DependencyTagConvertible? = nil, _ scope: ComponentScope = .Prototype, factory: (Arg1, Arg2) throws -> T) -> DefinitionOf<T, (Arg1, Arg2) throws -> T> {
return registerFactory(tag: tag, scope: scope, factory: factory, numberOfArguments: 2) { container, tag in try factory(try container.resolve(tag: tag), try container.resolve(tag: tag)) }
}
/// - seealso: `resolve(tag:_:)`
public func resolve<T, Arg1, Arg2>(tag tag: DependencyTagConvertible? = nil, withArguments arg1: Arg1, _ arg2: Arg2) throws -> T {
return try resolve(tag: tag) { (factory: (Arg1, Arg2) throws -> T) in try factory(arg1, arg2) }
}
// MARK: 3 Runtime Arguments
/// - seealso: `register(tag:scope:factory:)`
public func register<T, Arg1, Arg2, Arg3>(tag tag: DependencyTagConvertible? = nil, _ scope: ComponentScope = .Prototype, factory: (Arg1, Arg2, Arg3) throws -> T) -> DefinitionOf<T, (Arg1, Arg2, Arg3) throws -> T> {
return registerFactory(tag: tag, scope: scope, factory: factory, numberOfArguments: 3) { container, tag in try factory(try container.resolve(tag: tag), try container.resolve(), try container.resolve(tag: tag)) }
}
/// - seealso: `resolve(tag:withArguments:)`
public func resolve<T, Arg1, Arg2, Arg3>(tag tag: DependencyTagConvertible? = nil, withArguments arg1: Arg1, _ arg2: Arg2, _ arg3: Arg3) throws -> T {
return try resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3) throws -> T) in try factory(arg1, arg2, arg3) }
}
// MARK: 4 Runtime Arguments
/// - seealso: `register(tag:scope:factory:)`
public func register<T, Arg1, Arg2, Arg3, Arg4>(tag tag: DependencyTagConvertible? = nil, _ scope: ComponentScope = .Prototype, factory: (Arg1, Arg2, Arg3, Arg4) throws -> T) -> DefinitionOf<T, (Arg1, Arg2, Arg3, Arg4) throws -> T> {
return registerFactory(tag: tag, scope: scope, factory: factory, numberOfArguments: 4) { container, tag in try factory(try container.resolve(tag: tag), try container.resolve(tag: tag), try container.resolve(tag: tag), try container.resolve(tag: tag)) }
}
/// - seealso: `resolve(tag:withArguments:)`
public func resolve<T, Arg1, Arg2, Arg3, Arg4>(tag tag: DependencyTagConvertible? = nil, withArguments arg1: Arg1, _ arg2: Arg2, _ arg3: Arg3, _ arg4: Arg4) throws -> T {
return try resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3, Arg4) throws -> T) in try factory(arg1, arg2, arg3, arg4) }
}
// MARK: 5 Runtime Arguments
/// - seealso: `register(tag:scope:factory:)`
public func register<T, Arg1, Arg2, Arg3, Arg4, Arg5>(tag tag: DependencyTagConvertible? = nil, _ scope: ComponentScope = .Prototype, factory: (Arg1, Arg2, Arg3, Arg4, Arg5) throws -> T) -> DefinitionOf<T, (Arg1, Arg2, Arg3, Arg4, Arg5) throws -> T> {
return registerFactory(tag: tag, scope: scope, factory: factory, numberOfArguments: 5) { container, tag in try factory(try container.resolve(tag: tag), try container.resolve(tag: tag), try container.resolve(tag: tag), try container.resolve(tag: tag), try container.resolve(tag: tag)) }
}
/// - seealso: `resolve(tag:withArguments:)`
public func resolve<T, Arg1, Arg2, Arg3, Arg4, Arg5>(tag tag: DependencyTagConvertible? = nil, withArguments arg1: Arg1, _ arg2: Arg2, _ arg3: Arg3, _ arg4: Arg4, _ arg5: Arg5) throws -> T {
return try resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3, Arg4, Arg5) throws -> T) in try factory(arg1, arg2, arg3, arg4, arg5) }
}
// MARK: 6 Runtime Arguments
/// - seealso: `register(tag:scope:factory:)`
public func register<T, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6>(tag tag: DependencyTagConvertible? = nil, _ scope: ComponentScope = .Prototype, factory: (Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) throws -> T) -> DefinitionOf<T, (Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) throws -> T> {
return registerFactory(tag: tag, scope: scope, factory: factory, numberOfArguments: 6) { container, tag in try factory(try container.resolve(tag: tag), try container.resolve(tag: tag), try container.resolve(tag: tag), try container.resolve(tag: tag), try container.resolve(tag: tag), try container.resolve(tag: tag)) }
}
/// - seealso: `resolve(tag:withArguments:)`
public func resolve<T, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6>(tag tag: DependencyTagConvertible? = nil, withArguments arg1: Arg1, _ arg2: Arg2, _ arg3: Arg3, _ arg4: Arg4, _ arg5: Arg5, _ arg6: Arg6) throws -> T {
return try resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) throws -> T) in try factory(arg1, arg2, arg3, arg4, arg5, arg6) }
}
}
<file_sep>/README.md
# Dip
[](https://travis-ci.org/AliSoftware/Dip)
[](http://cocoapods.org/pods/Dip)
[](https://github.com/Carthage/Carthage)
[](http://cocoapods.org/pods/Dip)
[](http://cocoapods.org/pods/Dip)
[](https://developer.apple.com/swift)
[](https://developer.apple.com/swift)

_Photo courtesy of [www.kevinandamanda.com](http://www.kevinandamanda.com/recipes/appetizer/homemade-soft-cinnamon-sugar-pretzel-bites-with-salted-caramel-dipping-sauce.html)_
## Introduction
`Dip` is a simple **Dependency Injection Container**.
It's aimed to be as simple as possible yet provide rich functionality usual for DI containers on other platforms. It's inspired by `.NET`'s [Unity Container](https://msdn.microsoft.com/library/ff647202.aspx) and other DI containers.
* You start by creating `let dc = DependencyContainer()` and **register all your dependencies, by associating a `protocol` to a `factory`**.
* Then you can call `dc.resolve()` to **resolve a `protocol` into an instance of a concrete type** using that `DependencyContainer`.
This allows you to define the real, concrete types only in one place ([e.g. like this in your app](SampleApp/DipSampleApp/DependencyContainers.swift#L22-L27), and [resetting it in your `setUp` for each Unit Tests](SampleApp/Tests/SWAPIPersonProviderTests.swift#L17-L21)) and then [only work with `protocols` in your code](SampleApp/DipSampleApp/Providers/SWAPIStarshipProvider.swift#L12) (which only define an API contract), without worrying about the real implementation.
> You can easily use Dip along with Storyboards and Nibs - checkout [Dip-UI](https://github.com/AliSoftware/Dip-UI) extensions.
## Advantages of DI and loose coupling
* Define clear API contracts before even thinking about implementation, and make your code loosly coupled with the real implementation.
* Easily switch between implementations — as long as they respect the same API contact (the `protocol`), making your app modular and scalable.
* Greatly improve testability, as you can register a real instance in your app but a fake instance in your tests dedicated for testing / mocking the fonctionnality
* Enable parallel development in your team. You and your teammates can work independently on different parts of the app after you agree on the interfaces.
* As a bonus get rid of those `sharedInstances` and avoid the singleton pattern at all costs.
If you want to know more about Dependency Injection in general we recomend you to read ["Dependency Injection in .Net"](https://www.manning.com/books/dependency-injection-in-dot-net) by <NAME>. Dip was inspired particularly by implementations of some DI containers for .Net platform and shares core principles described in that book (even if you are not familiar with .Net platform the prenciples described in that book are platform agnostic).
## Installation
Since version 4.3.1 Dip is built with Swift 2.2. The lates version built with Swift 2.1 is 4.3.0.
Dip is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod "Dip"
```
If you use _Carthage_ add this line to your Cartfile:
```
github "AliSoftware/Dip"
```
If you use [_Swift Package Manager_](https://swift.org/package-manager/) add Dip as dependency to you `Package.swift`:
```
let package = Package(
name: "MyPackage",
dependencies: [
.Package(url: "https://github.com/AliSoftware/Dip.git", "4.4.0")
]
)
```
## Running tests
On OSX you can run tests from Xcode. On Linux you need to have Swift Package Manager installed and use it to build test executable:
```
cd Dip/DipTests
swift build
./.build/debug/DipTests
```
## Playground
Dip comes with a **Playground** to introduce you to Inversion of Control, Dependency Injection, and how to use Dip in practice.
To play with it, [open `Dip.xcworkspace`](Dip/Dip.xcworkspace), then click on the `DipPlayground` entry in Xcode's Project Navigator and let it be your guide.
_Note: Do not open the `DipPlayground.playground` file directly, as it needs to be part of the workspace to access the Dip framework so that the demo code it contains can work._
The next paragraphs give you an overview of the Usage of _Dip_ directly, but if you're new to Dependency Injection, the Playground is probably a better start.
## Usage
### Register instance factories
First, create a `DependencyContainer` and use it to register instance factories with protocols, using those methods:
* `register() { … as SomeType }` will register provided factory with a given type.
* if you want to register an concrete implementation for some abstraction (protocol) you need **cast the instance to that protocol type** (e.g. `register { PlistUsersProvider() as UsersListProviderType }`).
* if you want just to register concrete type in container you may not need a type cast
Typically, to register your dependencies as early as possible in your app life-cycle, you will declare a `let dip: DependencyContainer = { … }()` somewhere, most likely in your `AppDelegate`. In unit tests you may configure container in each test method specifically and then reset it in `tearDown()`.
### Resolve dependencies
* `try resolve() as SomeType` will return a new instance matching the requested type (protocol or concrete type).
* `resolve()` is a generic method so you need to explicitly specify the return type (using `as` or explicitly providing type of a variable that will hold the resulting value) so that Swift's type inference knows which type you're trying to resolve.
```swift
container.register { ServiceImp() as Service }
let service = try! container.resolve() as Service
```
Ususally you will use _abstractions_ for your dependencies, but container can also resolve concrete types, if you register them. You can use that in cases where abstraction is not really required.
```swift
container.register { ServiceImp() }
let service: ServiceImp = try! container.resolve()
```
### Scopes
Dip provides four _scopes_ that you can use to register dependencies:
* The `.Prototype` scope will make the `DependencyContainer` resolve your type as __a new instance every time__ you call `resolve`. It's a default scope.
* The `.ObjectGraph` scope is like `.Prototype` scope but it will make the `DependencyContainer` to reuse resolved instances during one call to `resolve` method. When this call returns all resolved insances will be discarded and next call to `resolve` will produce new instances. This scope _must_ be used to properly resolve circular dependencies.
* The `.Singleton` and `.EagerSingleton` scopes will make the `DependencyContainer` retain the instance once resolved the first time, and reuse it in the next calls to `resolve` during the container lifetime.
You specify scope when you register dependency like that:
```swift
container.register() { ServiceImp() as Service } //.Prototype is a default
container.register(.ObjectGraph) { ServiceImp() as Service }
container.register(.Singleton) { ServiceImp() as Service }
```
### Using block-based initialization
When calling the initializer of `DependencyContainer()`, you can pass a block that will be called right after the initialization. This allows you to have a nice syntax to do all your `register(…)` calls in there, instead of having to do them separately.
It may not seem to provide much, but it gets very useful, because instead of having to do setup the container like this:
```swift
let dip: DependencyContainer = {
let dip = DependencyContainer()
dip.register { ProductionEnvironment(analytics: true) as EnvironmentType }
dip.register { WebService() as WebServiceAPI }
return dip
}()
```
you can instead write this exact equivalent code, which is more compact, and indent better in Xcode (as the final closing brack is properly aligned):
```swift
let dip = DependencyContainer { dip in
dip.register { ProductionEnvironment(analytics: true) as EnvironmentType }
dip.register { WebService() as WebServiceAPI }
}
```
### Using tags to associate various factories to one type
* If you give a `tag` in the parameter to `register()`, it will associate that instance or factory with this tag, which can be used later during `resolve` (see below).
* `resolve(tag: tag)` will try to find a factory that match both the requested protocol _and_ the tag. If it doesn't find any, it will fallback to the factory that only match the requested type.
* The tags can be `StringLiteralType` or `IntegerLiteralType`. That said you can use plain strings or integers as tags.
```swift
enum WebService: String {
case Production
case Development
var tag: DependencyContainer.Tag { return DependencyContainer.Tag.String(self.rawValue) }
}
let wsDependencies = DependencyContainer() { dip in
dip.register(tag: WebService.Production.tag) { URLSessionNetworkLayer(baseURL: "http://prod.myapi.com/api/")! as NetworkLayer }
dip.register(tag: WebService.Development.tag) { URLSessionNetworkLayer(baseURL: "http://dev.myapi.com/api/")! as NetworkLayer }
}
let networkLayer = try! dip.resolve(tag: WebService.PersonWS.tag) as NetworkLayer
```
### Runtime arguments
You can register factories that accept up to six arguments. When you resolve dependency you can pass those arguments to `resolve()` method and they will be passed to the factory. Note that _number_, _types_ and _order_ of parameters matters (see _Runtime arguments_ page of the Playground).
```swift
let webServices = DependencyContainer() { webServices in
webServices.register { (url: NSURL, port: Int) in WebServiceImp1(url, port: port) as WebServiceAPI }
}
let service = try! webServices.resolve(withArguments: NSURL(string: "http://example.url")!, 80) as WebServiceAPI
```
Though Dip provides support for up to six runtime arguments out of the box you can extend that.
### Circular dependencies
_Dip_ supports circular dependencies. For that you need to register your components with `ObjectGraph` scope and use `resolveDependencies` method of `DefinitionOf` returned by `register` method like this:
```swift
container.register(.ObjectGraph) {
ClientImp(server: try container.resolve() as Server) as Client
}
container.register(.ObjectGraph) { ServerImp() as Server }
.resolveDependencies { container, server in
server.client = try container.resolve() as Client
}
```
More information about circular dependencies you can find in the Playground.
### Auto-wiring
When you use constructor injection to inject dependencies in your component auto-wiring enables you to resolve it just with one call to `resolve` method without carying about how to resolve all constructor arguments - container will resolve them for you.
```swift
class PresenterImp: Presenter {
init(view: ViewOutput, interactor: Interactor, router: Router) { ... }
...
}
container.register { RouterImp() as Router }
container.register { View() as ViewOutput }
container.register { InteractorImp() as Interactor }
container.register { PresenterImp(view: $0, interactor: $1, router: $2) as Presenter }
let presenter = try! container.resolve() as Presenter
```
### Auto-injection
Auto-injection lets your resolve all property dependencies of the instance resolved by container with just one call, also allowing a simpler syntax to register circular dependencies.
```swift
protocol Server {
weak var client: Client? { get }
}
protocol Client: class {
var server: Server? { get }
}
class ServerImp: Server {
private var injectedClient = InjectedWeak<Client>()
var client: Client? { return injectedClient.value }
}
class ClientImp: Client {
private var injectedServer = Injected<Server>()
var server: Server? { get { return injectedServer.value} }
}
container.register(.ObjectGraph) { ServerImp() as Server }
container.register(.ObjectGraph) { ClientImp() as Client }
let client = try! container.resolve() as Client
```
You can find more use cases for auto-injection in the Playground available in this repository.
> Tip: You can use either `Injected<T>` and `InjectedWeak<T>` wrappers provided by Dip, or your own wrappers (even plain `Box<T>`) that conform to `AutoInjectedPropertyBox` protocol.
### Thread safety
`DependencyContainer` is thread safe, you can register and resolve components from different threads.
Still we encourage you to register components in the main thread early in the application lifecycle to prevent race conditions
when you try to resolve component from one thread while it was not yet registered in container by another thread.
### Errors
The resolve operation has a potential to fail because you can use the wrong type, factory or a wrong tag. For that reason Dip throws a `DipError` if it fails to resolve a type. Thus when calling `resolve` you need to use a `try` operator.
There are very rare use cases when your application can recover from this kind of error. In most of the cases you can use `try!` to cause an exception at runtime if error was thrown or `try?` if a dependency is optional. This way `try!` serves as an additional mark for developers that resolution can fail.
Dip also provides helpful descriptions for errors that can occur when you call `resolve`. See the source code documentation to know more about that.
### Concrete Example
Let's say you have some view model that depends on some data provider and web service:
```swift
struct WebService {
let env: EnvironmentType
init(env: EnvironmentType) {
self.env = env
}
func sendRequest(path: String, …) {
// … use stuff like env.baseURL here
}
}
struct SomeViewModel {
let ws: WebServiceType
let friendsProvider: FriendsProviderType
init(friendsProvider: FriendsProviderType, webService: WebServiceType) {
self.friendsProvider = friendsProvider
self.ws = webService
}
func foo() {
ws.someMethodDeclaredOnWebServiceType()
let friends = friendsProvider.someFriendsProviderTypeMethod()
print("friends: \(friends)")
}
}
```
As you can see we have few layers of dependencies here. All of them together represent _dependency graph_.
To be able to resolve this graph with Dip we need to make it aware of those types.
For that we register the dependencies somewhere early in app life cycle (most likely in AppDelegate):
```swift
let dip: DependencyContainer = {
let dip = DependencyContainer()
let enableAnalytics = … //i.e. read the setting from plist
dip.register(.Singleton) { ProductionEnvironment(analytics: enableAnalytics) as EnvironmentType }
dip.register(.Singleton) { WebService(env: try dip.resolve()) as WebServiceType }
dip.register() { userName in DummyFriendsProvider(user: name) as FriendsProviderType }
dip.register(tag: "me") { (_: String) in PlistFriendsProvider(plist: "myfriends") as FriendsProviderType }
dip.register() { userName in
let webService = try dip.resolve() as WebServiceType
let friendsProvider = try dip.resolve(tag: userName, withArguments: userName) as
return SomeViewModel(friendsProvider: freindsProvider, webService: webService)
}
return dip
}
```
> Do the same in your Unit Tests target & test cases, but obviously with different _implementations_ (test doubles) registered.
Then to resolve the graph use `dip.resolve()`, like this:
```swift
let viewModel = try! dip.resolve(withArguments: userName) as SomeViewModel
//now you can use view model or pass it to it's consumer
```
This way with just one call to `resolve()` you will have the whole graph of your dependencies resolved and ready to use:
* environmet will be resolved as a singleton instance of `ProductionEnvironment` with enabled analitycs;
* `ws` will be resolved as a singleton instance of `WebService` and will have it's `env` property set to `ProductionEnvironment`, already resolved (and reatined) by container.
* `friendsProvider` will be resolved as a new instance each time you create a view model, which will be an instance created via
`PlistFriendsProvider(plist: "myfriends")` if `userName` is `me` and created via `DummyFriendsProvider(userName)` for any other
`userName` value (because `resolve(tag: userName, withArguments: userName)` will fallback to `resolve(tag: nil, withArguments: userName)` in that case, using
the instance factory which was registered without a tag, but will pass `userName` as an argument).
* view model will be created using `init(friendsProvider:webService:)` with `friendsProvider` and `webService` that have been
already resolved by container.
When running your Unit tests target, it may be resolved with other instances, depending on how you registered your dependencies in your Test Case.
> Try to constrain calls to `resolve()` method to one place and try to use one call to `resolve()` to instantiate the whole graph of the dependencies.
The same should be applied to dependencies registration - it should be performed with one call and should be done in one place.
Don't scatter calls to container all around your code. Using `resolve` inside your implementations will be equal to creating dependencies directly and is actually against DI. Moreover it will drag the dependency on Dip everywhere and will make requirements of your types implicit instead of explicit.
Instead you should combine use of container with DI patterns like _Constructor Injection_ and _Property Injection_. Any DI container is just a tool, not a goal.
You should aplly DI patterns in your code first and only then think about using DI container as a tool to make dependencies management easier.
You will find some other advices on how to use the container in the Playground.
We hope that after reading this README and going through the Playground you will admit the benifits of DI and loose coupling that it enables whether you use Dip or not.
### Complete Example Project
In addition to this Usage overview and to the aforementioned playground, you can also find a complete example in the `SampleApp/DipSampleApp` project provided in this repository.
This sample project is a bit more complex, but closer to real-world applications (even if this sample is all about StarWars!),
by declaring protocols like `NetworkLayer` which can be resolved to a `URLSessionNetworkLayer` in the real app, but to a dummy
network layer returning fixture data during the Unit Tests.
This sample uses the Star Wars API provided by swapi.co to fetch Star Wars characters and starships info and display them in TableViews.
## Credits
This library has been created by [**<NAME>**](<EMAIL>).
I'd also like to thank [**<NAME>**](https://twitter.com/ilyapuchka) for his big contribution to it, as he added a lot of great features to it.
**Dip** is available under the **MIT license**. See the `LICENSE` file for more info.
The animated GIF at the top of this `README.md` is from [this recipe](http://www.kevinandamanda.com/recipes/appetizer/homemade-soft-cinnamon-sugar-pretzel-bites-with-salted-caramel-dipping-sauce.html) on the yummy blog of [Kevin & Amanda](http://www.kevinandamanda.com/recipes/). Go try the recipe!
The image used as the SampleApp LaunchScreen and Icon is from [Matthew Hine](https://commons.wikimedia.org/wiki/File:Chocolate_con_churros_-_San_Ginés,_Madrid.jpg) and is under _CC-by-2.0_.
<file_sep>/Dip/DipTests/Package.swift
import PackageDescription
let package = Package(
name: "DipTests",
dependencies: [
.Package(url: "../../../Dip", majorVersion: 4, minor: 2),
]
)
<file_sep>/Sources/Definition.swift
//
// Dip
//
// Copyright (c) 2015 <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
///A key used to store definitons in a container.
public struct DefinitionKey : Hashable, CustomStringConvertible {
public let protocolType: Any.Type
public let factoryType: Any.Type
public let associatedTag: DependencyContainer.Tag?
init(protocolType: Any.Type, factoryType: Any.Type, associatedTag: DependencyContainer.Tag? = nil) {
self.protocolType = protocolType
self.factoryType = factoryType
self.associatedTag = associatedTag
}
public var hashValue: Int {
return "\(protocolType)-\(factoryType)-\(associatedTag)".hashValue
}
public var description: String {
return "type: \(protocolType), factory: \(factoryType), tag: \(associatedTag.desc)"
}
}
/// Check two definition keys on equality by comparing their `protocolType`, `factoryType` and `associatedTag` properties.
public func ==(lhs: DefinitionKey, rhs: DefinitionKey) -> Bool {
return
lhs.protocolType == rhs.protocolType &&
lhs.factoryType == rhs.factoryType &&
lhs.associatedTag == rhs.associatedTag
}
///Component scope defines a strategy used by the `DependencyContainer` to manage resolved instances life cycle.
public enum ComponentScope {
/**
A new instance will be created every time it's resolved.
This is a default strategy. Use this strategy when you don't want instances to be shared
between different consumers (i.e. if it is not thread safe).
**Example**:
```
container.register { ServiceImp() as Service }
container.register {
ServiceConsumerImp(
service1: try container.resolve() as Service
service2: try container.resolve() as Service
) as ServiceConsumer
}
let consumer = container.resolve() as ServiceConsumer
consumer.service1 !== consumer.service2 //true
```
*/
case Prototype
/**
Instance resolved with the same definition will be reused until topmost `resolve(tag:)` method returns.
When you resolve the same object graph again the container will create new instances.
Use this strategy if you want different object in objects graph to share the same instance.
- warning: Make sure this component is thread safe or accessed always from the same thread.
**Example**:
```
container.register(.ObjectGraph) { ServiceImp() as Service }
container.register {
ServiceConsumerImp(
service1: try container.resolve() as Service
service2: try container.resolve() as Service
) as ServiceConsumer
}
let consumer1 = container.resolve() as ServiceConsumer
let consumer2 = container.resolve() as ServiceConsumer
consumer1.service1 === consumer1.service2 //true
consumer2.service1 === consumer2.service2 //true
consumer1.service1 !== consumer2.service1 //true
```
*/
case ObjectGraph
/**
Resolved instance will be retained by the container and always reused.
Do not mix this life cycle with _singleton pattern_.
Instance will be not shared between different containers.
- warning: Make sure this component is thread safe or accessed always from the same thread.
- note: When you override or remove definition from the container an instance
that was resolved with this definition will be released. When you reset
the container it will release all singleton instances.
**Example**:
```
container.register(.Singleton) { ServiceImp() as Service }
container.register {
ServiceConsumerImp(
service1: try container.resolve() as Service
service2: try container.resolve() as Service
) as ServiceConsumer
}
let consumer1 = container.resolve() as ServiceConsumer
let consumer2 = container.resolve() as ServiceConsumer
consumer1.service1 === consumer1.service2 //true
consumer2.service1 === consumer2.service2 //true
consumer1.service1 === consumer2.service1 //true
```
*/
case Singleton
/**
The same scope as `Singleton`, but instance will be created when container is bootstrapped.
*/
case EagerSingleton
}
/**
`DefinitionOf<T, F>` describes how instances of type `T` should be created when this type is resolved by the `DependencyContainer`.
- `T` is the type of the instance to resolve
- `F` is the type of the factory that will create an instance of T.
For example `DefinitionOf<Service, (String) -> Service>` is the type of definition that will create an instance of type `Service` using factory that accepts `String` argument.
*/
public final class DefinitionOf<T, F>: Definition {
/**
Set the block that will be used to resolve dependencies of the instance.
This block will be called before `resolve(tag:)` returns. It can be set only once.
- parameter block: The block to use to resolve dependencies of the instance.
- returns: modified definition
- note: To resolve circular dependencies at least one of them should use this block
to resolve its dependencies. Otherwise the application will enter an infinite loop and crash.
**Example**
```swift
container.register { ClientImp(service: try container.resolve() as Service) as Client }
container.register { ServiceImp() as Service }
.resolveDependencies { container, service in
service.client = try container.resolve() as Client
}
```
*/
public func resolveDependencies(block: (DependencyContainer, T) throws -> ()) -> DefinitionOf<T, F> {
guard resolveDependenciesBlock == nil else {
fatalError("You can not change resolveDependencies block after it was set.")
}
self.resolveDependenciesBlock = block
return self
}
/// Calls `resolveDependencies` block if it was set.
func resolveDependenciesOf(resolvedInstance: Any, withContainer container: DependencyContainer) throws {
guard let resolvedInstance = resolvedInstance as? T else { return }
try self.resolveDependenciesBlock?(container, resolvedInstance)
}
let factory: F
private(set) var scope: ComponentScope = .Prototype
private(set) var resolveDependenciesBlock: ((DependencyContainer, T) throws -> ())?
public init(scope: ComponentScope, factory: F) {
self.factory = factory
self.scope = scope
}
private var _resolvedInstance: T?
//Auto-wiring helpers
private(set) var autoWiringFactory: ((DependencyContainer, DependencyContainer.Tag?) throws -> T)?
private(set) var numberOfArguments: Int = 0
convenience init(scope: ComponentScope, factory: F, autoWiringFactory: (DependencyContainer, DependencyContainer.Tag?) throws -> T, numberOfArguments: Int) {
self.init(scope: scope, factory: factory)
self.autoWiringFactory = autoWiringFactory
self.numberOfArguments = numberOfArguments
}
}
///Dummy protocol to store definitions for different types in collection
public protocol Definition: class { }
protocol _Definition: Definition {
var scope: ComponentScope { get }
var _autoWiringFactory: ((DependencyContainer, DependencyContainer.Tag?) throws -> Any)? { get }
var _factory: Any { get }
var numberOfArguments: Int { get }
func resolveDependenciesOf(resolvedInstance: Any, withContainer container: DependencyContainer) throws
}
extension _Definition {
func supportsAutoWiring() -> Bool {
return _autoWiringFactory != nil && numberOfArguments > 0
}
}
extension DefinitionOf: _Definition {
var _resolveDependenciesBlock: ((DependencyContainer, Any) throws -> ())? {
return resolveDependenciesBlock.map({ block in { try block($0, $1 as! T) } })
}
var _autoWiringFactory: ((DependencyContainer, DependencyContainer.Tag?) throws -> Any)? {
return autoWiringFactory.map({ factory in { try factory($0.0, $0.1)} })
}
var _factory: Any {
return factory
}
}
extension DefinitionOf: CustomStringConvertible {
public var description: String {
return "type: \(T.self), factory: \(F.self), scope: \(scope)"
}
}
<file_sep>/SampleApp/DipSampleApp/Cells/PersonCell.swift
//
// UserCell.swift
// Dip
//
// Created by <NAME> on 10/09/2015.
// Copyright © 2015 AliSoftware. All rights reserved.
//
import UIKit
final class PersonCell : UITableViewCell, FillableCell {
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var genderImageView: UIImageView!
@IBOutlet weak var heightLabel: UILabel!
@IBOutlet weak var massLabel: UILabel!
@IBOutlet weak var hairLabel: UILabel!
@IBOutlet weak var eyesLabel: UILabel!
let heightFormatter: NSLengthFormatter = {
let f = NSLengthFormatter()
f.forPersonHeightUse = true
return f
}()
let massFormatter: NSMassFormatter = {
let f = NSMassFormatter()
f.forPersonMassUse = true
return f
}()
func fillWithObject(person: Person) {
nameLabel.text = person.name
genderImageView.image = person.gender.flatMap { UIImage(named: $0.rawValue) }
heightLabel.text = heightFormatter.stringFromValue(Double(person.height), unit: .Centimeter)
massLabel.text = massFormatter.stringFromValue(Double(person.mass), unit: .Kilogram)
hairLabel.text = person.hairColor
eyesLabel.text = person.eyeColor
}
}
<file_sep>/Dip.podspec
Pod::Spec.new do |s|
s.name = "Dip"
s.version = "4.4.0"
s.summary = "A simple Dependency Resolver: Dependency Injection using Protocol resolution."
s.description = <<-DESC
Dip is a Swift framework to manage your Dependencies between your classes
in your app using Dependency Injection.
It's aimed to be very simple to use while improving testability
of your app by allowing you to get rid of those sharedInstances and instead
inject values based on protocol resolution.
Define your API using a protocol, then ask Dip to resolve this protocol into
an instance dynamically in your classes. Then your App and your Tests can be
configured to resolve the protocol using a different instance or class so this
improve testability by decoupling the API and the concrete class used to implement it.
DESC
s.homepage = "https://github.com/AliSoftware/Dip"
s.license = 'MIT'
s.authors = { "<NAME>" => "<EMAIL>", "<NAME>" => "<EMAIL>" }
s.source = { :git => "https://github.com/AliSoftware/Dip.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/aligatr'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.requires_arc = true
s.source_files = 'Sources/**/*.swift'
end
<file_sep>/SampleApp/DipSampleApp/Providers/URLSessionNetworkLayer.swift
//
// URLSessionNetworkLayer.swift
// Dip
//
// Created by <NAME> on 10/10/2015.
// Copyright © 2015 AliSoftware. All rights reserved.
//
import Foundation
///NetworkLayer implementation on top of NSURLSession
struct URLSessionNetworkLayer : NetworkLayer {
let baseURL: NSURL
let session: NSURLSession
let responseQueue: dispatch_queue_t
init?(baseURL: String, session: NSURLSession = .sharedSession(), responseQueue: dispatch_queue_t = dispatch_get_main_queue()) {
guard let url = NSURL(string: baseURL) else { return nil }
self.init(baseURL: url, session: session)
}
init(baseURL: NSURL, session: NSURLSession = .sharedSession(), responseQueue: dispatch_queue_t = dispatch_get_main_queue()) {
self.baseURL = baseURL
self.session = session
self.responseQueue = responseQueue
}
func request(path: String, completion: NetworkResponse -> Void) {
let url = self.baseURL.URLByAppendingPathComponent(path)
let task = session.dataTaskWithURL(url) { data, response, error in
if let data = data, let response = response as? NSHTTPURLResponse {
dispatch_async(self.responseQueue) {
completion(NetworkResponse.Success(data, response))
}
}
else {
let err = error ?? NSError(domain: NSURLErrorDomain, code: NSURLError.Unknown.rawValue, userInfo: nil)
dispatch_async(self.responseQueue) {
completion(NetworkResponse.Error(err))
}
}
}
task.resume()
}
}
<file_sep>/SampleApp/Tests/NetworkMock.swift
//
// NetworkMock.swift
// Dip
//
// Created by <NAME> on 11/10/2015.
// Copyright © 2015 AliSoftware. All rights reserved.
//
import Foundation
import Dip
var wsDependencies = DependencyContainer()
// MARK: - Mock object used for tests
struct NetworkMock : NetworkLayer {
let fakeData: NSData?
init(json: AnyObject) {
do {
fakeData = try NSJSONSerialization.dataWithJSONObject(json, options: [])
} catch {
fakeData = nil
}
}
func request(path: String, completion: NetworkResponse -> Void) {
let fakeURL = NSURL(string: "stub://")!.URLByAppendingPathComponent(path)
if let data = fakeData {
let response = NSHTTPURLResponse(URL: fakeURL, statusCode: 200, HTTPVersion: "1.1", headerFields:nil)!
completion(.Success(data, response))
} else {
let response = NSHTTPURLResponse(URL: fakeURL, statusCode: 204, HTTPVersion: "1.1", headerFields:nil)!
completion(.Success(NSData(), response))
}
}
}
<file_sep>/Dip/DipTests/Sources/main.swift
import XCTest
XCTMain([
DipTests(),
DefinitionTests(),
RuntimeArgumentsTests(),
ComponentScopeTests(),
AutoInjectionTests(),
ThreadSafetyTests(),
AutoWiringTests()
])
<file_sep>/Sources/Dip.swift
//
// Dip
//
// Copyright (c) 2015 <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
/**
`DependencyContainer` allows you to do _Dependency Injection_
by associating abstractions to concrete implementations.
*/
public final class DependencyContainer {
/**
Use a tag in case you need to register multiple factories fo the same type,
to differentiate them. Tags can be either String or Int, to your convenience.
- seealso: `DependencyTagConvertible`
*/
public enum Tag: Equatable {
case String(StringLiteralType)
case Int(IntegerLiteralType)
}
var definitions = [DefinitionKey : Definition]()
let resolvedInstances = ResolvedInstances()
let lock = RecursiveLock()
private(set) var bootstrapped = false
private var bootstrapQueue: [() throws -> ()] = []
/**
Designated initializer for a DependencyContainer
- parameter configBlock: A configuration block in which you typically put all you `register` calls.
- note: The `configBlock` is simply called at the end of the `init` to let you configure everything.
It is only present for convenience to have a cleaner syntax when declaring and initializing
your `DependencyContainer` instances.
- returns: A new DependencyContainer.
*/
public init(@noescape configBlock: (DependencyContainer->()) = { _ in }) {
configBlock(self)
}
/**
Call this method to complete container setup. After container is bootstrapped
you can not add or remove definitions. Trying to do so will cause runtime exception.
You can completely reset container, after reset you can bootstrap it again.
During bootsrap container will instantiate components registered with `EagerSingleton` scope.
- throws: `DipError` if failed to instantiate any component
*/
public func bootstrap() throws {
try threadSafe {
bootstrapped = true
try bootstrapQueue.forEach({ try $0() })
bootstrapQueue.removeAll()
}
}
private func threadSafe<T>(@noescape closure: () throws -> T) rethrows -> T {
lock.lock()
defer {
lock.unlock()
}
return try closure()
}
}
// MARK: - Registering definitions
extension DependencyContainer {
/**
Register factory for type `T` and associate it with an optional tag.
- parameters:
- tag: The arbitrary tag to associate this factory with. Pass `nil` to associate with any tag. Default value is `nil`.
- scope: The scope to use for instance created by the factory.
- factory: The factory to register.
- returns: A registered definition.
- note: You should cast the factory return type to the protocol you want to register it for
(unless you want to register concrete type).
**Example**:
```swift
container.register { ServiceImp() as Service }
container.register(tag: "service") { ServiceImp() as Service }
container.register(.ObjectGraph) { ServiceImp() as Service }
container.register { ClientImp(service: try! container.resolve() as Service) as Client }
```
*/
public func register<T>(tag tag: Tag? = nil, _ scope: ComponentScope = .Prototype, factory: () throws -> T) -> DefinitionOf<T, () throws -> T> {
let definition = DefinitionOf<T, () throws -> T>(scope: scope, factory: factory)
register(definition, forTag: tag)
return definition
}
/**
Register generic factory associated with an optional tag.
- parameters:
- tag: The arbitrary tag to associate this factory with. Pass `nil` to associate with any tag. Default value is `nil`.
- scope: The scope to use for instance created by the factory.
- factory: The factory to register.
- returns: A registered definition.
- note: You _should not_ call this method directly, instead call any of other `register` methods.
You _should_ use this method only to register dependency with more runtime arguments
than _Dip_ supports (currently it's up to six) like in the following example:
```swift
public func register<T, Arg1, Arg2, Arg3, ...>(tag: Tag? = nil, scope: ComponentScope = .Prototype, factory: (Arg1, Arg2, Arg3, ...) throws -> T) -> DefinitionOf<T, (Arg1, Arg2, Arg3, ...) throws -> T> {
return registerFactory(tag: tag, scope: scope, factory: factory)
}
```
Though before you do so you should probably review your design and try to reduce number of depnedencies.
*/
@available(*, deprecated=4.3.0, message="Use registerFactory(tag:scope:factory:numberOfArguments:autoWiringFactory:) instead.")
public func registerFactory<T, F>(tag tag: DependencyTagConvertible? = nil, scope: ComponentScope, factory: F) -> DefinitionOf<T, F> {
let definition = DefinitionOf<T, F>(scope: scope, factory: factory)
register(definition, forTag: tag)
return definition
}
/**
Register generic factory and auto-wiring factory and associate it with an optional tag.
- parameters:
- tag: The arbitrary tag to associate this factory with. Pass `nil` to associate with any tag. Default value is `nil`.
- scope: The scope to use for instance created by the factory.
- factory: The factory to register.
- numberOfArguments: The number of factory arguments. Will be used on auto-wiring to sort definitions.
- autoWiringFactory: The factory to be used on auto-wiring to resolve component.
- returns: A registered definition.
- note: You _should not_ call this method directly, instead call any of other `register` methods.
You _should_ use this method only to register dependency with more runtime arguments
than _Dip_ supports (currently it's up to six) like in the following example:
```swift
public func register<T, Arg1, Arg2, Arg3, ...>(tag: Tag? = nil, scope: ComponentScope = .Prototype, factory: (Arg1, Arg2, Arg3, ...) throws -> T) -> DefinitionOf<T, (Arg1, Arg2, Arg3, ...) throws -> T> {
return registerFactory(tag: tag, scope: scope, factory: factory, numberOfArguments: ...) { container, tag in
try factory(try container.resolve(tag: tag), ...)
}
}
```
Though before you do so you should probably review your design and try to reduce number of depnedencies.
*/
public func registerFactory<T, F>(tag tag: DependencyTagConvertible? = nil, scope: ComponentScope, factory: F, numberOfArguments: Int, autoWiringFactory: (DependencyContainer, Tag?) throws -> T) -> DefinitionOf<T, F> {
let definition = DefinitionOf<T, F>(scope: scope, factory: factory, autoWiringFactory: autoWiringFactory, numberOfArguments: numberOfArguments)
register(definition, forTag: tag)
return definition
}
/**
Register definiton in the container and associate it with an optional tag.
Will override already registered definition for the same type and factory, associated with the same tag.
- parameters:
- tag: The arbitrary tag to associate this definition with. Pass `nil` to associate with any tag. Default value is `nil`.
- definition: The definition to register in the container.
*/
public func register<T, F>(definition: DefinitionOf<T, F>, forTag tag: DependencyTagConvertible? = nil) {
let key = DefinitionKey(protocolType: T.self, factoryType: F.self, associatedTag: tag?.dependencyTag)
register(definition, forKey: key)
if case .EagerSingleton = definition.scope {
bootstrapQueue.append({ let _ = try self.resolve(tag: tag) as T })
}
}
func register(definition: _Definition, forKey key: DefinitionKey) {
precondition(!bootstrapped, "You can not modify container's definitions after it was bootstrapped.")
threadSafe {
definitions[key] = definition
resolvedInstances.singletons[key] = nil
}
}
}
// MARK: - Resolve dependencies
extension DependencyContainer {
/**
Resolve a an instance of type `T`.
If no matching definition was registered with provided `tag`,
container will lookup definition associated with `nil` tag.
- parameter tag: The arbitrary tag to use to lookup definition.
- throws: `DipError.DefinitionNotFound`, `DipError.AutoInjectionFailed`, `DipError.AmbiguousDefinitions`
- returns: An instance of type `T`.
- seealso: `register(tag:_:factory:)`
**Example**:
```swift
let service = try! container.resolve() as Service
let service = try! container.resolve(tag: "service") as Service
let service: Service = try! container.resolve()
```
*/
public func resolve<T>(tag tag: DependencyTagConvertible? = nil) throws -> T {
return try resolve(tag: tag) { (factory: () throws -> T) in try factory() }
}
/**
Resolve an instance of type `T` using generic builder closure that accepts generic factory and returns created instance.
- parameters:
- tag: The arbitrary tag to use to lookup definition.
- builder: Generic closure that accepts generic factory and returns inctance created by that factory.
- throws: `DipError.DefinitionNotFound`, `DipError.AutoInjectionFailed`, `DipError.AmbiguousDefinitions`
- returns: An instance of type `T`.
- note: You _should not_ call this method directly, instead call any of other
`resolve(tag:)` or `resolve(tag:withArguments:)` methods.
You _should_ use this method only to resolve dependency with more runtime arguments than
_Dip_ supports (currently it's up to six) like in the following example:
```swift
public func resolve<T, Arg1, Arg2, Arg3, ...>(tag tag: Tag? = nil, _ arg1: Arg1, _ arg2: Arg2, _ arg3: Arg3, ...) throws -> T {
return try resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3, ...) -> T) in factory(arg1, arg2, arg3, ...) }
}
```
Though before you do so you should probably review your design and try to reduce the number of dependencies.
*/
public func resolve<T, F>(tag tag: DependencyTagConvertible? = nil, builder: F throws -> T) throws -> T {
let key = DefinitionKey(protocolType: T.self, factoryType: F.self, associatedTag: tag?.dependencyTag)
do {
//first we try to find defintion that exactly matches parameters
return try _resolveKey(key, builder: { definition throws -> T in
guard let factory = definition._factory as? F else {
throw DipError.DefinitionNotFound(key: key)
}
return try builder(factory)
})
}
catch {
switch error {
case let DipError.DefinitionNotFound(errorKey) where key == errorKey:
//then if no definition found we try atuo-wiring
return try threadSafe {
guard let resolved: T = try _resolveByAutoWiring(key) else {
throw error
}
return resolved
}
default:
throw error
}
}
}
/// Lookup definition by the key and use it to resolve instance. Fallback to the key with `nil` tag.
func _resolveKey<T>(key: DefinitionKey, builder: _Definition throws -> T) throws -> T {
return try threadSafe {
let nilTagKey = key.associatedTag.map { _ in DefinitionKey(protocolType: T.self, factoryType: key.factoryType, associatedTag: nil) }
guard let definition = (self.definitions[key] ?? self.definitions[nilTagKey]) as? _Definition else {
throw DipError.DefinitionNotFound(key: key)
}
return try self._resolveDefinition(definition, usingKey: key, builder: builder)
}
}
/// Actually resolve dependency.
private func _resolveDefinition<T>(definition: _Definition, usingKey key: DefinitionKey, builder: _Definition throws -> T) rethrows -> T {
return try resolvedInstances.resolve {
if let previouslyResolved: T = resolvedInstances.previouslyResolvedInstance(forKey: key, inScope: definition.scope) {
return previouslyResolved
}
else {
let resolvedInstance = try builder(definition)
//when builder calls factory it will in turn resolve sub-dependencies (if there are any)
//when it returns instance that we try to resolve here can be already resolved
//so we return it, throwing away instance created by previous call to builder
if let previouslyResolved: T = resolvedInstances.previouslyResolvedInstance(forKey: key, inScope: definition.scope) {
return previouslyResolved
}
resolvedInstances.storeResolvedInstance(resolvedInstance, forKey: key, inScope: definition.scope)
try definition.resolveDependenciesOf(resolvedInstance, withContainer: self)
try autoInjectProperties(resolvedInstance)
return resolvedInstance
}
}
}
///Pool to hold instances, created during call to `resolve()`.
///Before `resolve()` returns pool is drained.
class ResolvedInstances {
var resolvedInstances = [DefinitionKey: Any]()
var singletons = [DefinitionKey: Any]()
var resolvableInstances = [Resolvable]()
func storeResolvedInstance<T>(instance: T, forKey key: DefinitionKey, inScope scope: ComponentScope) {
switch scope {
case .Singleton, .EagerSingleton: singletons[key] = instance
case .ObjectGraph: resolvedInstances[key] = instance
case .Prototype: break
}
if let resolvable = instance as? Resolvable {
resolvableInstances.append(resolvable)
}
}
func previouslyResolvedInstance<T>(forKey key: DefinitionKey, inScope scope: ComponentScope) -> T? {
switch scope {
case .Singleton, .EagerSingleton: return singletons[key] as? T
case .ObjectGraph: return resolvedInstances[key] as? T
case .Prototype: return nil
}
}
private var depth: Int = 0
func resolve<T>(@noescape block: () throws ->T) rethrows -> T {
depth = depth + 1
defer {
depth = depth - 1
if depth == 0 {
// We call didResolveDependencies only at this point
// because this is a point when dependencies graph is complete.
for resolvedInstance in resolvableInstances.reverse() {
resolvedInstance.didResolveDependencies()
}
resolvedInstances.removeAll()
resolvableInstances.removeAll()
}
}
let resolved = try block()
return resolved
}
}
}
// MARK: - Removing definitions
extension DependencyContainer {
/**
Removes definition registered in the container.
- parameters:
- tag: The tag used to register definition.
- definition: The definition to remove
*/
public func remove<T, F>(definition: DefinitionOf<T, F>, forTag tag: DependencyTagConvertible? = nil) {
let key = DefinitionKey(protocolType: T.self, factoryType: F.self, associatedTag: tag?.dependencyTag)
remove(definitionForKey: key)
}
func remove(definitionForKey key: DefinitionKey) {
precondition(!bootstrapped, "You can not modify container's definitions after it was bootstrapped.")
threadSafe {
definitions[key] = nil
resolvedInstances.singletons[key] = nil
}
}
/**
Removes all definitions registered in the container.
*/
public func reset() {
threadSafe {
definitions.removeAll()
resolvedInstances.singletons.removeAll()
bootstrapped = false
}
}
}
extension DependencyContainer: CustomStringConvertible {
public var description: String {
return "Definitions: \(definitions.count)\n" + definitions.map({ "\($0.0)" }).joinWithSeparator("\n")
}
}
//MARK: - Resolvable
/// Conform to this protocol when you need to have a callback when all the dependencies are injected.
public protocol Resolvable {
/// This method is called by the container when all dependencies of the instance are resolved.
func didResolveDependencies()
}
//MARK: - DependencyTagConvertible
/// Implement this protocol of your type if you want to use its instances as `DependencyContainer`'s tags.
/// `DependencyContainer.Tag`, `String`, `Int` and any `RawRepresentable` with `RawType` of `String` or `Int` by default confrom to this protocol.
public protocol DependencyTagConvertible {
var dependencyTag: DependencyContainer.Tag { get }
}
extension DependencyContainer.Tag: DependencyTagConvertible {
public var dependencyTag: DependencyContainer.Tag {
return self
}
}
extension String: DependencyTagConvertible {
public var dependencyTag: DependencyContainer.Tag {
return .String(self)
}
}
extension Int: DependencyTagConvertible {
public var dependencyTag: DependencyContainer.Tag {
return .Int(self)
}
}
extension DependencyTagConvertible where Self: RawRepresentable, Self.RawValue == Int {
public var dependencyTag: DependencyContainer.Tag {
return .Int(rawValue)
}
}
extension DependencyTagConvertible where Self: RawRepresentable, Self.RawValue == String {
public var dependencyTag: DependencyContainer.Tag {
return .String(rawValue)
}
}
extension DependencyContainer.Tag: StringLiteralConvertible {
public init(stringLiteral value: StringLiteralType) {
self = .String(value)
}
public init(unicodeScalarLiteral value: StringLiteralType) {
self.init(stringLiteral: value)
}
public init(extendedGraphemeClusterLiteral value: StringLiteralType) {
self.init(stringLiteral: value)
}
}
extension DependencyContainer.Tag: IntegerLiteralConvertible {
public init(integerLiteral value: IntegerLiteralType) {
self = .Int(value)
}
}
public func ==(lhs: DependencyContainer.Tag, rhs: DependencyContainer.Tag) -> Bool {
switch (lhs, rhs) {
case let (.String(lhsString), .String(rhsString)):
return lhsString == rhsString
case let (.Int(lhsInt), .Int(rhsInt)):
return lhsInt == rhsInt
default:
return false
}
}
//MARK: - DipError
/**
Errors thrown by `DependencyContainer`'s methods.
- seealso: `resolve(tag:)`
*/
public enum DipError: ErrorType, CustomStringConvertible {
/**
Thrown by `resolve(tag:)` if no matching definition was registered in container.
- parameter key: definition key used to lookup matching definition
*/
case DefinitionNotFound(key: DefinitionKey)
/**
Thrown by `resolve(tag:)` if failed to auto-inject required property.
- parameters:
- label: The name of the property
- type: The type of the property
- underlyingError: The error that caused auto-injection to fail
*/
case AutoInjectionFailed(label: String?, type: Any.Type, underlyingError: ErrorType)
/**
Thrown by `resolve(tag:)` if found ambigous definitions registered for resolved type
- parameters:
- type: The type that failed to be resolved
- definitions: Ambiguous definitions
*/
case AmbiguousDefinitions(type: Any.Type, definitions: [Definition])
public var description: String {
switch self {
case let .DefinitionNotFound(key):
return "No definition registered for \(key).\nCheck the tag, type you try to resolve, number, order and types of runtime arguments passed to `resolve()` and match them with registered factories for type \(key.protocolType)."
case let .AutoInjectionFailed(label, type, error):
return "Failed to auto-inject property \"\(label.desc)\" of type \(type). \(error)"
case let .AmbiguousDefinitions(type, definitions):
return "Ambiguous definitions for \(type):\n" +
definitions.map({ "\($0)" }).joinWithSeparator(";\n")
}
}
}
<file_sep>/Sources/AutoWiring.swift
//
// Dip
//
// Copyright (c) 2015 <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
extension DependencyContainer {
/// Tries to resolve instance using auto-wire factories
func _resolveByAutoWiring<T>(key: DefinitionKey) throws -> T? {
typealias NoArgumentsFactory = () throws -> T
guard key.factoryType == NoArgumentsFactory.self else { return nil }
let autoWiringDefinitions = self.autoWiringDefinitionsFor(T.self, tag: key.associatedTag)
return try _resolveEnumeratingKeys(autoWiringDefinitions, tag: key.associatedTag)
}
private func autoWiringDefinitionsFor(type: Any.Type, tag: DependencyContainer.Tag?) -> [(DefinitionKey, _Definition)] {
var definitions = self.definitions
.map({ ($0.0, $0.1 as! _Definition) })
//filter definitions
definitions = definitions
.filter({ $0.1.supportsAutoWiring() })
.filter({ $0.0.protocolType == type })
.filter({ $0.0.associatedTag == tag || $0.0.associatedTag == nil })
//order definitions
definitions = definitions
.sort({ $0.1.numberOfArguments > $1.1.numberOfArguments })
definitions =
//first will try to use tagged definitions
definitions.filter({ $0.0.associatedTag == tag }) +
//then will use not tagged definitions
definitions.filter({ $0.0.associatedTag != tag })
return definitions
}
/// Tries definitions one by one until one of them succeeds, otherwise returns nil
private func _resolveEnumeratingKeys<T>(definitions: [(DefinitionKey, _Definition)], tag: DependencyContainer.Tag?) throws -> T? {
for (index, definition) in definitions.enumerate() {
//If the next definition matches current definition then they are ambigous
if case definition? = definitions[next: index] {
throw DipError.AmbiguousDefinitions(
type: definition.0.protocolType,
definitions: [definition.1, definitions[next: index]!.1]
)
}
if let resolved: T = _resolveKey(definition.0, tag: tag) {
return resolved
}
}
return nil
}
private func _resolveKey<T>(key: DefinitionKey, tag: DependencyContainer.Tag?) -> T? {
let key = DefinitionKey(protocolType: key.protocolType, factoryType: key.factoryType, associatedTag: tag)
return try? _resolveKey(key, builder: { definition throws -> T in
guard let resolved = try definition._autoWiringFactory!(self, tag) as? T else {
fatalError("Internal inconsistency exception! Expected type: \(T.self); Definition: \(definition)")
}
return resolved
})
}
}
extension CollectionType {
subscript(safe index: Index) -> Generator.Element? {
guard indices.contains(index) else { return nil }
return self[index]
}
subscript(next index: Index) -> Generator.Element? {
return self[safe: index.advancedBy(1)]
}
}
/// Definitions are matched if they are registered for the same tag and thier factoris accept the same number of runtime arguments.
private func ~=(lhs: (DefinitionKey, _Definition), rhs: (DefinitionKey, _Definition)) -> Bool {
return
lhs.0.protocolType == rhs.0.protocolType &&
lhs.0.associatedTag == rhs.0.associatedTag &&
lhs.1.numberOfArguments == rhs.1.numberOfArguments
}
<file_sep>/DipPlayground.playground/Pages/Testing.xcplaygroundpage/Contents.swift
//: [Previous: Shared Instances](@previous)
/*:
### Testing
Dip is convenient to use for testing. Here is s simple example of how you can write tests with Dip.
__Note__: That's a very simple example just to demostrate use of Dip in tests, not how you should or should not tests your code in general.
You can learn more about testing based on state verification vs behavior verification [here](http://martinfowler.com/articles/mocksArentStubs.html).
*/
protocol Service {
func doSomething()
}
class Client {
var service: Service!
func callService() {
service.doSomething()
}
}
import XCTest
import Dip
/*:
Instead of the real `Service` implementation, provide a _fake_ implementation with test hooks that you need:
*/
class FakeService: Service {
var doSomethingCalled = false
func doSomething() {
doSomethingCalled = true
}
init() {}
}
class MyTests: XCTestCase {
var container: DependencyContainer!
override func setUp() {
super.setUp()
/*:
Register fake implementation as `Service`:
*/
container = DependencyContainer { container in
container.register { FakeService() as Service }
}
}
func testThatDoSomethingIsCalled() {
let sut = Client()
sut.service = try! container.resolve() as Service
sut.callService()
/*:
And finally you test it was called:
*/
XCTAssertTrue((sut.service as! FakeService).doSomethingCalled)
}
}
| 04d22d386389dfb57e43a0a0f395de17d2b9b66e | [
"Swift",
"Ruby",
"Markdown"
] | 12 | Swift | ilyapuchka/Dip | 1356a8056fd06a42de620843dd830d22e23cbd99 | 59841a8424c911c5abda9df201b1d961fac3d5a8 |
refs/heads/main | <repo_name>eowsley/week-5-Lotto-Numbers-Exercise-25<file_sep>/index.js
// Define lottoNumbers below:
let lottoNumbers = [8, 19, 14, 24, 36, 18] | 98c6dcdded1890f6691f10d3e81b4fbec459b287 | [
"JavaScript"
] | 1 | JavaScript | eowsley/week-5-Lotto-Numbers-Exercise-25 | 0b2ce435465e9c5d89aa4968cbe1449970cee760 | 07513332deb8bcec77e295bc94738d8b4909a3fc |
refs/heads/master | <repo_name>Jangtb/Python<file_sep>/VideoGrab.py
import numpy as np
import cv2
#lectura de video grabado
#video=cv2.VideoCapture('videograb.avi')
#grabamos el video en 10 segundo con una resolucion de 649 x 480
video=cv2.VideoCapture(0)
# para leer el video se debe comentar esta linea donde indicamos las captura de la imagen
videoGrab = cv2.VideoWriter('videograb.avi',cv2.VideoWriter_fourcc(*'xvid'),10.0,(640,480))
while (video.isOpened()):
ret,frame1=video.read()
if ret == True:
#llevamos nuestro video a escala de grises.
gray = cv2.cvtColor(frame1,cv2.COLOR_RGB2GRAY)
#convetimos el frame a float
frame_float=gray.astype(float)
#KERNEL DE SOBEL
# kernel Sobel en eje-x, para detectar bordes horizontales
sobelX = np.array((
[-1, 0, 1],
[-2, 0, 2],
[-1, 0, 1]), dtype="int")
# kernel Sobel en eje-y, para detectar bordes verticales
sobelY = np.array((
[-1, -2, -1],
[0, 0, 0],
[1, 2, 1]), dtype="int")
bordex=cv2.filter2D(frame_float,-1,sobelX)
bordey=cv2.filter2D(frame_float,-1,sobelY)
#calculamos y llevamos nuestro kernel a operacion cuadratica.
Mxy=bordex**2+bordey**2
#ocupamos la funcion en numpy sqrt para realizar la operacion.
Mxy=np.sqrt(Mxy)
#NORMALIZACION
Mxy=Mxy/np.max(Mxy)
#rango escala de grises
mask=np.where(Mxy > 0.1,255,0)
mask=np.uint8(mask)
cv2.imshow('BORDES',mask)
#escribimos la salida del video
videoGrab.write(frame1)
k=cv2.waitKey(30)&0xFF
if(k==ord('s')):
break
video.release()
cv2.destroyAllWindows()
| e2ce42d4ebd553258401fa8d3dff92d1ff04d2ac | [
"Python"
] | 1 | Python | Jangtb/Python | 5c6817e1e432d442ba454f980a582d2a2bbba4e6 | b5f62c57ce998e611fd2f702a50a1ff9f61e379b |
refs/heads/master | <repo_name>SonyShrestha/WebScraping<file_sep>/Airlines/untitled0.py
import datetime
from datetime import date
today=date.today() ############# datetime
d1 = today.strftime("%Y-%m-%d") ############# date
d2= today.strftime("%d-%b-%Y")
print(d2)
current_datetime = datetime.datetime.now()
############ tia
import requests
import json
url="https://www.tiairport.com.np/flight_details_2"
r=requests.get(url)
cont=json.loads(r.content.decode())
for item in cont['data']['arrivals']:
if item['IntDom']=='0':
list1=[d1,item['Airline'],item['FlightNumber'],item['OrigDest'],'Kathmandu',item['FlightStatus'],item['STASTD_DATE'],item['ETAETD_date']]
print(list1)
for item in cont['data']['departure']:
if item['IntDom']=='0':
list2=[d1,item['Airline'],item['FlightNumber'],'Kathmandu',item['OrigDest'],item['FlightStatus'],item['STASTD_DATE'],item['ETAETD_date']]
print(list2)
######### buddha schedule
sess = requests.Session()
home_page = sess.get('https://www.buddhaair.com/soap/FlightAvailability/')
soup = BeautifulSoup(home_page.content, "html.parser")
headers = {'content-type': 'application/json'}
data={
'strSectorFrom': "KTM",
'strSectorTo': "PKR",
'strFlightDate': "8-Mar-2020",
'strReturnDate': "null",
'strNationality': "NP",
'strTripType': "O",
'intAdult': 1,
'intChild': 0
}
requestpost = requests.post("https://www.buddhaair.com/soap/FlightAvailability/", json=data)
response_data = requestpost.json()
print("flightid","flight_date","flight_number","classcode","departure_city","departure_time","arrival_city","arrival_time","sector_pair","air_fare_currency","fare","child_fare","sur_charge","commision_amount","child_commission_amount","tax_name","tax_amount","discount","child_discount","cash_back","child_cash_back","net_fare","free_baggage","refundable","cancellation_charge_before_24_hours","cancellation_charge_after_24_hours")
for item in response_data["data"]["outbound"]["flightsector"]["flightdetail"]:
#print(item)
list1=[item["flightid"],item["flightdate"],item["flightno"],item["classcode"],item["departurecity"],item["departuretime"],item["arrivalcity"],item["arrivaltime"],item["sectorpair"],item["airfare"]["faredetail"]["currency"],item["airfare"]["faredetail"]["fare"],item["airfare"]["faredetail"]["childfare"],item["airfare"]["faredetail"]["surcharge"],item["airfare"]["faredetail"]["commissionamt"],item["airfare"]["faredetail"]["childcommissionamt"],item["airfare"]["faredetail"]["taxbreakup"]["taxdetail"]["taxname"],item["airfare"]["faredetail"]["taxbreakup"]["taxdetail"]["taxamount"],item["airfare"]["faredetail"]["discount"],item["airfare"]["faredetail"]["childdiscount"],item["airfare"]["faredetail"]["cashback"],item["airfare"]["faredetail"]["childcassback"],item["airfare"]["faredetail"]["netfare"],item["freebaggage"],item["refundable"],item["cancellationcharge"]["before24hours"],item["cancellationcharge"]["after24hours"]]
print(list1)
<file_sep>/Airlines/README.md
<h1>THIS IS A SAMPLE PROJECT. THE DEVELOPERS ARE KINDLY REQUESTED TO FOLLOW THIS OR SIMILAR PATTERN. THEY ARE ALSO REQUESTED TO CONTRIBUTE ANY IMPROVEMENTS TO THE STRUCTURE!</h1>
<h1>Generic RFM Calculation</h1>
<h2>Installing requirements</h2>
Under lib directory, there is a requirement.txt file. Install the requirements if you do not have the listed packages. Using virtual enviromnent is recommended.
```
$pip install lib/requirement.txt
```
<h2>Config Files</h2>
Under config directory, you will find two config files: config.ini and config.json.
<h3>config.ini</h3>
config.ini file is primarily for basic database information. The fields are pretty much self explanatory. The formula section has a brief description in the config file itself.
<h3>config.json</h3>
This is to control the formula aspects of the rfm model.
bin: This is basically the mapping of fields corresponding to r, m and f. Change these as necessary. If you have changed the mapping, you also need to change the formula section of config.ini file.
map_dict: Maps the binned rfm scores.
extra_facts: This is used to calculate the new facts from the existing facts. Keep in mind that these facts can be mapped using bin (discussed above). The user has flexibility to use different features from the sw table, calculate own facts using desired formulae and then use these facts to finally calculate rfm score.
quartile_bin: Specifies how the binning is done.
<li> division : How the percentile is distributed. The number of bins to generate.
<li> labels : What to name each division. **Strictly use numbers ranging from 1 to n, where n is the number of expected bins (the number of bins is controlled by division.)**
<h2>Running the Script</h2>
The main script that needs to be run is main.py.
There are several options that you have to keep in mind when running these scripts.
The basic way too run script is:
```
$ python main.py [-h] -t {tm_prepare,calc_score} [-s {1,0}]
```
-t : means type of operation. There are two operation you can chose from.
<li>tm_prepare : prepares the tm table. The formula that you used is calculated here.
<li> calc_score : The actual rfm score is calculated here and is then the table is dumped to rp.
-s : gives you an option to calculate the tm data separately for POS and ATM if set to 1, else takes the whole data. **(make sure there is a field is_pos in sw data before setting this flag to 1)**
<figure>
<img src = "archive/main_flow.png" align="middle">
<figcaption>Fig.1 - Flow of main.py .</figcaption>
</figure>
<file_sep>/Airlines/utilities/global_vars.py
"""
Author : Siddhi
Created_date : 2019/08/20
Modified Date : 2019/09/26
Description : Global variables
"""
from sqlalchemy.orm import sessionmaker
import os
from configparser import ConfigParser
file_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
def initialize_config():
try:
global file_path
global logging_level
global log_to_console
global driver_name
global user
global password
global host
global connection_url
global temp_db_name
global db_name
global yeti_schedule_temp
global buddha_schedule_temp
global nac_schedule_temp
global simrik_schedule_temp
global sita_schedule_temp
global tara_schedule_temp
global yeti_status_temp
global buddha_status_temp
global tia_status_temp
global schedule
global status
config = ConfigParser()
config.read(os.path.abspath(file_path+'/config/config.ini'))
logging_level = config.get('logger', 'level')
log_to_console = int(config.get('logger', 'to_console'))
driver_name = config.get('database', 'driver_name')
user = config.get('database', 'user')
password = config.get('database', 'password')
host = config.get('database', 'host')
temp_db_name = config.get('databases', 'temp_db_name')
db_name = config.get('databases', 'db_name')
yeti_schedule_temp = config.get('tables', 'yeti_schedule_temp')
buddha_schedule_temp = config.get('tables', 'buddha_schedule_temp')
nac_schedule_temp = config.get('tables', 'nac_schedule_temp')
simrik_schedule_temp = config.get('tables', 'simrik_schedule_temp')
sita_schedule_temp = config.get('tables', 'sita_schedule_temp')
tara_schedule_temp = config.get('tables', 'tara_schedule_temp')
yeti_status_temp = config.get('tables', 'yeti_status_temp')
buddha_status_temp = config.get('tables', 'buddha_status_temp')
tia_status_temp = config.get('tables', 'tia_status_temp')
schedule = config.get('tables', 'schedule')
status = config.get('tables', 'status')
connection_url = f"{driver_name}://{user}:{password}@{host}/"
except Exception as e:
raise e
initialize_config()
def initialize_json_config():
import json
global bin_dict
global score_map_dict
global other_facts_dict
global labels
global quartile_division
with open(os.path.abspath(file_path + '/config/config.json'), 'r') as js:
js_conf = json.load(js)
bin_dict = js_conf['bin']
score_map_dict = js_conf['map_dict']
other_facts_dict = js_conf['extra_facts']
labels = js_conf['quartile_bin']['labels']
quartile_division = js_conf['quartile_bin']['division']
#initialize_json_config()
def create_session():
from sqlalchemy import create_engine
global session
global engine
en_flag = 0
ses_flag = 0
try:
engine = create_engine(connection_url)
en_flag = 1
Session = sessionmaker(bind=engine)
session = Session()
ses_flag = 1
except Exception as e:
if en_flag == 1:
engine.dispose()
if ses_flag == 1:
session.close()
raise e
create_session()
<file_sep>/Airlines/utilities/__init__.py
from utilities.global_vars import *
from utilities.logger import *
from utilities.utility import *
<file_sep>/Airlines/lib/requirement.txt
mysqlclient==1.4.4
numpy==1.17.1
pandas==0.25.1
python-dateutil==2.8.0
pytz==2019.2
six==1.12.0
SQLAlchemy==1.3.8
<file_sep>/Airlines/utilities/utility.py
"""
Author : Siddhi
Created_date : 2019/08/20
Modified Date : 2019/09/26
Description : Program utility function.
"""
import pandas as pd
def read_table_sql(query, *args, **kwargs):
"""
Read table from either query or table name
"""
try:
if len(query.split()) > 1:
return pd.read_sql_query(query, *args, **kwargs)
else:
return pd.read_sql_table(query, *args, **kwargs)
except Exception as e:
raise e
def insert_df(df, table_name, if_exists='append', *args, **kwargs):
try:
df.to_sql(table_name, if_exists=if_exists,
index=False * args, **kwargs)
except Exception as e:
raise e
<file_sep>/Airlines/test/test_utilities.py
"""
Author : Siddhi
Created_date : 2019/08/20
Modified Date : 2019/09/26
Description : Program utility tests.
"""
import unittest
from utilities.utility import *
from utilities.global_vars import *
class TestUtilities(unittest.TestCase):
def setUp(self):
self.QUERY = "select * from MASTER_DATA.md_date"
self.CON_URL = connection_url
self.df = read_table_sql(self.QUERY, con = self.CON_URL)
def test_read_table_sql(self):
self.assertEqual(read_table_sql(self.QUERY, con = self.CON_URL).shape[0],3822)
def test_insert_df(self):
insert_df(
self.df,
'test_test_test',
con = self.CON_URL,
schema = 'temp',
if_exists='replace')<file_sep>/Airlines/config/config.ini
[logger]
level = INFO
to_console = 1
[database]
driver_name = mysql+mysqldb
user = sony
password = <PASSWORD>
host = 10.13.189.55
port=3360
[databases]
temp_db_name=airlines_schedule_status
db_name=airlines_schedule_status_info
[tables]
yeti_schedule_temp=yeti_schedule
buddha_schedule_temp=buddha_schedule
nac_schedule_temp=nac_schedule
simrik_schedule_temp=simrik_schedule
sita_schedule_temp=sita_schedule
tara_schedule_temp=tara_schedule
yeti_status_temp=yeti_status
buddha_status_temp=buddha_status
tia_status_temp=tia_status
schedule=airlines_schedule
status=airlines_status
[formula]
#<file_sep>/Airlines/utilities/logger.py
"""
Author : Siddhi
Created_date : 2019/08/20
Modified Date : 2019/09/26
Description : Definition for logger.
"""
import os
from utilities.global_vars import *
def get_logger(level, print_to_console=1):
import logging
try:
formatter = "%(asctime)s -- %(pathname)s --%(filename)s-- %(module)s --\
%(funcName)s -- %(lineno)d-- %(name)s -- %(levelname)s -- %(message)s"
if not os.path.exists(os.path.abspath(file_path + '/log')):
os.mkdir(os.path.abspath(file_path+'/log'))
logging.basicConfig(filename=os.path.abspath(
file_path+'/log/log.log'), level=level, format=formatter)
if print_to_console == 1:
console = logging.StreamHandler()
console.setLevel(logging.INFO)
formatter = logging.Formatter(
formatter)
console.setFormatter(formatter)
logging.getLogger('').addHandler(console)
return logging
elif print_to_console == 0:
return logging
else:
raise ValueError(f"Expected 1 or 0. Got {print_to_console}")
except Exception as e:
raise e
logging = get_logger(logging_level, log_to_console)
| 79055bb8b61037d2d5b762c2969ade592fed94f4 | [
"Markdown",
"Python",
"Text",
"INI"
] | 9 | Python | SonyShrestha/WebScraping | 181106cc03195f4d314a82a0abf2f6a372a685c0 | 2fa98c0ee0329f71e83d4dfcdd690c26cc5243b6 |
refs/heads/master | <file_sep>from config import HEADER, OKBLUE, OKGREEN, FAIL, WARNING, ENDC, HTTP_RESPONSE_ERROR, LOG_FILE
from urllib3.util.url import parse_url as parseURL
from urllib.parse import urljoin
from time import sleep as sleepSecond
import os
import re
# SYS
def sleep(seconds):
sleepSecond(seconds/1000.)
# print message
def printState(*, hint='', msg=''):
logRecord("State\t", hint, msg)
print(HEADER, hint, ENDC, msg)
def printSuccess(*, hint='', msg=''):
logRecord("Success\t", hint, msg)
print(OKGREEN, hint, ENDC, msg)
def printFail(*, hint='', msg=''):
logRecord("Fail\t", hint, msg)
print(FAIL, hint, ENDC, msg)
def logRecord(state, hint, msg):
with open(LOG_FILE, 'a') as f:
if msg == '':
f.write("%s%s\n" % (state, hint))
else:
f.write("%s%s: %s\n" % (state, hint, msg))
f.close()
# files
def save(*, data, filename, dir=None):
if dir is not None or filename is not None:
filename = os.path.join(dir, filename)
try:
with open(filename, 'wb') as f:
f.write(data)
except FileNotFoundError as e:
dir = os.path.dirname(filename)
printFail(hint='Try create folder', msg=dir)
os.makedirs(dir)
with open(filename, 'wb') as f:
f.write(data)
f.close()
printSuccess(hint="Saved", msg=filename)
return filename
def read(filename):
if not os.path.isfile(filename):
return None
with open(filename, 'r') as f:
content = f.read()
return content
# HTTP connection
def isNormalConn(status):
if status != 200 and status/100 != 3:
try:
printFail(hint="Connection Fail", msg=HTTP_RESPONSE_ERROR[status])
except KeyError as e:
printFail(hint="Connection Fail", msg=e)
return False
return True
def getFileInURL(url):
urls = parseURL(url).path.split('/')
urls = list(filter(lambda x: x!='', urls)) # remove '' items
try:
url = urls[-1]
except IndexError as e:
# domain only
return ('index.html', 'html')
pattern = r'^([\W\w]+)\.([\W\w]+)$'
m = re.match(pattern, url)
if m:
# file full name and file ext name
return (m.groups(0), m.groups(2))
else:
url = '/'.join(urls)
return (url + '/' + 'index.html', 'html')
def getBaseURL(url):
try:
parse_url = parseURL(url)
url = parse_url.scheme + '://' + parse_url.host
return url
except TypeError as e:
printFail(hint="None Type", msg="url is %s" % url)
return ""
def genFullURL(base_url, url):
pattern = r'^\/?([\W\w]*)\/?#[\W\w]*?$'
m = re.match(pattern, url)
url = urljoin(base_url, url)
return url
def isValuableURL(url):
pattern = r'(^#[\W\w]*$)|(^mailto:[\W\w]*$)|(^news:[\W\w]*$)|(^javascript:[\W\w]*;?$)|(^\/$)'
m = re.match(pattern, url)
return not m
<file_sep>from BasicOperation import sleep, printState, printSuccess, printFail, isNormalConn, save, getFileInURL
from config import DOWNLOAD_DIR, DOWNLOAD_RESULT, URL_DOWNLOAD_LIST, URL_VISITED_LIST, URL_VISITED_FILE_LIST, REDOWNLOAD_TIME, URL_NEW_DOWNLOAD_TIMEOUT
from threading import Thread
from urllib3.util.timeout import Timeout
from urllib3.util.url import parse_url as parseURL
from urllib3 import PoolManager
from urllib3.exceptions import SSLError, MaxRetryError
from queue import Empty as QueueEmpty
import certifi
class Downloader(Thread):
"""docstring for Downloader"""
def __init__(self, *, interval=100, thread_num=None):
super(Downloader, self).__init__()
self.thread_num = thread_num + 1
self.thread_stop = False
self.interval = interval
self.url = None
self.fail_time = 0 # time of download webpage fail
def run(self):
printSuccess(hint="Download Thread-%d created." % (self.thread_num))
while not self.thread_stop:
try:
self.url = URL_DOWNLOAD_LIST.get(timeout=URL_NEW_DOWNLOAD_TIMEOUT)
except QueueEmpty as e:
printSuccess(hint="Thread-%d Destoried cause of No URL left." % (self.thread_num))
return
download_result = self.download()
# download fail, retry
while download_result != DOWNLOAD_RESULT:
# if retry too much times, stop
if self.fail_time > REDOWNLOAD_TIME: break
# wait a while then retry donwload
sleep(self.interval * (self.fail_time+1))
self.fail_time += 1
# redownload
download_result = self.download()
printSuccess(hint="Thread-%d Destoried." % (self.thread_num))
def stop(self):
self.url = ''
self.thread_stop = True
def download(self):
if self.url is None or self.url == '':
return DOWNLOAD_RESULT['FAIL']
##################### Start Download Web Page #####################
printState(hint="Connecting", msg=self.url)
parse_url = parseURL(self.url)
scheme = parse_url.scheme
(filename, filetype) = getFileInURL(parse_url.path)
timeout = Timeout(connect=2., read=7.)
if scheme.lower() is 'https':
http = PoolManager(
cert_reqs='CERT_REQUIRED',
ca_certs=certifi.where(),
timeout=timeout
)
else:
http = PoolManager(timeout=timeout)
try:
r = http.request('GET', self.url)
printState(hint='Establish', msg=self.url)
except SSLError as e:
printFail(hint="SSL Error", msg=self.url)
return DOWNLOAD_RESULT['FAIL']
except MaxRetryError as e:
printFail(hint="Resolve Error", msg=self.url)
return DOWNLOAD_RESULT['FAIL']
##################### End #####################
##################### Start Save Web Page #####################
if isNormalConn(r.status):
try:
file_name = save(data=r.data,filename=filename, dir=DOWNLOAD_DIR)
except AttributeError as e:
printFail(hint="Save file fail in", msg=self.url)
return DOWNLOAD_RESULT['FAIL']
URL_VISITED_FILE_LIST.put(file_name)
URL_VISITED_LIST.append(self.url)
printSuccess(hint="Finish", msg=self.url)
self.url = None
self.fail_time = 0
return DOWNLOAD_RESULT['SUCCESS']
##################### End #####################
<file_sep>SearchEngine
============
A pratical search engine based on django.
<file_sep>from Downloader import Downloader
from config import URL_DOWNLOAD_LIST, URL_VISITED_FILE_LIST, DOWLOAD_THREAD_POOL_SIZE, ANAYLIZER_THREAD_POOL_SIZE
from BasicOperation import getBaseURL
from HTMLAnaylizer.LinkExtractor import LinkExtractor
from time import sleep
if __name__ == '__main__':
start_url = "https://www.python.org/"
base_url = getBaseURL(start_url)
# begin start multi threads
URL_DOWNLOAD_LIST.put(start_url)
thread_pool_download = []
thread_pool_link_extract = []
##################### create threads #####################
for i in range(DOWLOAD_THREAD_POOL_SIZE):
new_downloader = Downloader(thread_num=i)
thread_pool_download.append(new_downloader)
for i in range(ANAYLIZER_THREAD_POOL_SIZE):
new_link_extractor = LinkExtractor(base_url=base_url)
thread_pool_link_extract.append(new_link_extractor)
##################### End #####################
##################### start threads #####################
for i in range(DOWLOAD_THREAD_POOL_SIZE):
thread_pool_download[i].start()
for i in range(ANAYLIZER_THREAD_POOL_SIZE):
thread_pool_link_extract[i].start()
##################### End #####################
| 23f26e22d41595688ecf367863f97cf7f0ba8767 | [
"Markdown",
"Python"
] | 4 | Python | BridgeNB/SearchEngine | 709a0968ce4902601aaf77f30f3b0b9d36b61b00 | dd02708f451891c04f7eb9c543e1cc2a4580527e |
refs/heads/master | <file_sep>package com.mishev.fitnessandmeals.viewmodel;
import com.mishev.fitnessandmeals.model.Campus;
import java.util.List;
public interface UserViewModelContract {
interface MainView {
void loadData(List<Campus> campus);
}
}<file_sep>package com.mishev.fitnessandmeals.viewmodel;
import android.databinding.ObservableField;
import android.support.annotation.NonNull;
import android.view.View;
import com.mishev.fitnessandmeals.model.Campus;
import com.mishev.fitnessandmeals.model.User;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Action1;
import rx.schedulers.Schedulers;
public class UserViewModel {
public ObservableField<User> user;
private UserViewModelContract.MainView mainView;
public UserViewModel(@NonNull UserViewModelContract.MainView mainView) {
this.mainView = mainView;
user = new ObservableField<>();
user.set(new User("a", "b"));
}
public void onClick(View view) {
try {
getCampus();
} catch (NoSuchAlgorithmException | KeyManagementException e) {
e.printStackTrace();
}
}
private void getCampus() throws NoSuchAlgorithmException, KeyManagementException {
URLPaths service = ServiceFactory.createRetrofitServiceWithoutHttps(URLPaths.class, "http://10.20.2.55:8080");
service.getCampus()
.observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.io())
.subscribe(new Action1<List<Campus>>() {
@Override
public void call(List<Campus> campus) {
if (mainView != null) {
mainView.loadData(campus);
}
}
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
throwable.printStackTrace();
}
});
}
}<file_sep>package com.mishev.fitnessandmeals.view;
import android.app.Fragment;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.mishev.fitnessandmeals.R;
import com.mishev.fitnessandmeals.databinding.FragmentUserBinding;
import com.mishev.fitnessandmeals.model.Campus;
import com.mishev.fitnessandmeals.viewmodel.UserViewModel;
import com.mishev.fitnessandmeals.viewmodel.UserViewModelContract;
import java.util.List;
public class UserView extends Fragment implements UserViewModelContract.MainView {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
FragmentUserBinding binding = DataBindingUtil.inflate(inflater, R.layout.fragment_user, container, false);
binding.setMainViewModel(new UserViewModel(this));
return binding.getRoot();
}
@Override
public void loadData(List<Campus> campus) {
}
}<file_sep>package com.mishev.fitnessandmeals.model;
import com.google.gson.annotations.SerializedName;
public class Floor {
@SerializedName("path")
private String path;
@SerializedName("name")
private String name;
@SerializedName("width")
private float width;
@SerializedName("length")
private float length;
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public float getWidth() {
return width;
}
public void setWidth(float width) {
this.width = width;
}
public float getLength() {
return length;
}
public void setLength(float length) {
this.length = length;
}
}<file_sep>package com.mishev.fitnessandmeals.viewmodel;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import retrofit.RestAdapter;
class ServiceFactory {
static <T> T createRetrofitServiceWithoutHttps(final Class<T> clazz, final String endPoint) throws KeyManagementException, NoSuchAlgorithmException {
RestAdapter restAdapter = new RestAdapter.Builder()
.setEndpoint(endPoint)
.build();
return restAdapter.create(clazz);
}
}<file_sep>package com.mishev.fitnessandmeals.model;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
public class Campus {
private List<Building> buildings;
@SerializedName("name")
private String name;
public void addBuilding(Building building) {
if (buildings == null) {
buildings = new ArrayList<>();
}
buildings.add(building);
}
public List<Building> getBuildings() {
return buildings;
}
public void setBuildings(List<Building> buildings) {
this.buildings = buildings;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}<file_sep>package com.mishev.fitnessandmeals.viewmodel;
import com.mishev.fitnessandmeals.model.Campus;
import java.util.List;
import retrofit.http.GET;
import rx.Observable;
interface URLPaths {
@GET("/api/v1/structure")
Observable<List<Campus>> getCampus();
} | d169b470b41f1ae06f53eae3289dcb570bd6ea1f | [
"Java"
] | 7 | Java | Iwk0/FitnessAndMeal | 89a2dea64c81c932fd10813c48bf8b48ca47e964 | 6b960eeba4338dcc367e2d77864215b46e82903d |
refs/heads/master | <repo_name>eddiehoyle/constraint-workshop<file_sep>/pylib/cstw/matrix.py
import itertools
class Matrix(object):
""""""
@staticmethod
def fromarray(array):
"""TODO:
Create a matrix from a flat array: [0, 1, ..., 15]
"""
pass
@staticmethod
def random():
"""TODO:
Randomly generate a matrix.
"""
pass
@staticmethod
def identity():
"""TODO:
Initialise an identity matrix.
"""
return Matrix(
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1,
)
def __init__(
self,
m00, m01, m02, m03,
m10, m11, m12, m13,
m20, m21, m22, m23,
m30, m31, m32, m33,
):
# TODO:
# Make these attributes more intelligent
self.__row0 = [m00, m01, m02, m03]
self.__row1 = [m10, m11, m12, m13]
self.__row2 = [m20, m21, m22, m23]
self.__row3 = [m30, m31, m32, m33]
self.__matrix = [self.__row0, self.__row2, self.__row3, self.__row4]
def getvalue(self, row, column):
return self.__matrix[row][column]
def setvalue(self, row, column, value):
self.__matrix[row][column] = value
def getrow(self, row):
return self.__matrix[row]
def setrow(self, row, value):
self.__matrix[row] = value
def getcolumn(self, column):
return (r[column] for r in self.__matrix)
def setcolumn(self, column, value):
"""TODO"""
pass
def __repr__(self):
values = map(str, self.flatten())
array = []
for i in range(4):
subarray = {"values": []}
for j in range(4):
subarray["values"].append(values[i + j])
subarray["max"] = max(map(len, subarray["values"]))
array.append(subarray)
output = []
for subarray in array:
suboutput = []
for value in subarray["values"]:
suboutput.append("{0}{1}".format(value, " "*subarray["max"]))
output.append(" ".join(suboutput))
return "\n".join(output)
def __add__(self, other):
"""TODO:
Add matrix
"""
def __sub__(self, other):
"""TODO:
Sub matrix
"""
def __div__(self, other):
"""TODO:
Divide by:
matrix
scalar
"""
def __mul__(self, other):
"""TODO:
Multiply by:
matrix
scalar
"""
def flatten(self):
return list(itertools.chain(
*(self.r0, self.r1, self.r2, self.r3)))
if __name__ == '__main__':
m = Matrix.identity()
print m<file_sep>/pylib/cstw/vector.py
import math
import operator
from .axis import Axis
class Vector(object):
"""TODO
"""
DIMENSIONS = 3
AXIS_X = 'x'
AXIS_Y = 'y'
AXIS_Z = 'z'
@staticmethod
def fromarray(array):
"""TODO:
Init vector from array"""
return Vector(*array)
@staticmethod
def identity(self):
""""""
return Vector(0, 0, 0)
def __init__(self, x, y, z):
self.__vec = [x, y, z]
def __add__(self, other):
"""TODO:
Add matrix
"""
# Add vector
if isinstance(self, self.__class__):
return [operator.add(a, b) for a, b in zip(self, other)]
# Add collection
pass
# Add number
pass
def __sub__(self, other):
"""TODO:
Sub matrix
"""
# Add vector
if isinstance(self, self.__class__):
return [operator.sub(a, b) for a, b in zip(self, other)]
# Add collection
pass
# Add number
pass
def __div__(self, other):
"""TODO:
Divide by:
matrix
scalar
"""
# Add vector
if isinstance(self, self.__class__):
return [operator.div(a, b) for a, b in zip(self, other)]
# Add collection
pass
# Add number
pass
def __mul__(self, other):
"""TODO:
Multiply by:
matrix
scalar
"""
if isinstance(self, self.__class__):
return [operator.mul(a, b) for a, b in zip(self, other)]
# Add collection
pass
# Add number
pass
def __iter__(self):
for value in self.__vec:
yield value
def __getitem__(self, index):
self.getindex(index)
def __setitem__(self, index, value):
self.setindex(index, value)
def __delitem__(self, index):
self.setindex(index, 0)
def __repr__(self):
return "<{0} {1}".format(self.__class__.__name__, self.__vec)
def getaxis(self, axis):
""""""
return self[(
self.AXIS_X, self.AXIS_Y, self.AXIS_Z).index(axis)]
def magnitude(self):
""""""
return math.sqrt(sum(map(lambda n: n**2, self.__vec)))
def average(self):
"""TODO:
Average of vector
"""
return sum(self.__vec) / Vector.DIMENSIONS
def setindex(self, index, value):
""""""
self.__vec[index] = value
def getorder(self):
"""TODO: Implement ordering
"""
return "xyz"
def getindex(self, index):
""""""
return self.__vec[index]
def normalize(self):
""""""
magnitude = self.magnitude()
return Vector.fromarray([axis / magnitude for axis in self])
x = property(
fget=lambda self: self.getindex(0),
fset=lambda self, value: self.setindex(0, value),
fdel=lambda self, value: self.setindex(0, 0)
)
y = property(
fget=lambda self: self.getindex(1),
fset=lambda self, value: self.setindex(1, value),
fdel=lambda self, value: self.setindex(1, 0)
)
z = property(
fget=lambda self: self.getindex(2),
fset=lambda self, value: self.setindex(2, value),
fdel=lambda self, value: self.setindex(2, 0)
)<file_sep>/pylib/cstw/__init__.py
from cstw import angle
from cstw import matrix
from cstw import quat
from cstw import vector
<file_sep>/README.md
# constraint-workshop
An educational experiment
| 666e4bcc05450c39b17d7563f106c9d42b2ee0e7 | [
"Markdown",
"Python"
] | 4 | Python | eddiehoyle/constraint-workshop | 958190f50a524420d91da3b52244b177729c1656 | 44a6ce117ce59fa3236d9b34a376b1c77e7413a0 |
refs/heads/main | <file_sep># arp_scan
Returns hosts with their mac-addresses
<file_sep>import scapy.all as scapy
def scan(ip):
arp_packet = scapy.ARP(pdst = ip)
broadcast = scapy.Ether(dst = 'ff:ff:ff:ff:ff:ff')
arp_packet_broadcast = broadcast/arp_packet
ans, unans = scapy.srp(arp_packet_broadcast, timeout = 1)
print(ans.summary())
scan('192.168.1.1/24') | 2bad3963a2cfbde4915b1a9cdba081f430bbdb79 | [
"Markdown",
"Python"
] | 2 | Markdown | LizardRoot/arp_scan | 1a72a6d4686ad18fe0045adf808445159b388024 | 6e2a2ad9fcb31db4289aa4371a7902859e677eda |
refs/heads/master | <file_sep># Radspec
Radspec is a DSL (domain specific language) for describing the side effects of an Ethereum transaction in a human-readable manner.
The goal of Radspec is to solve the clear disconnect between moving millions in economic value through smart contracts with no clear understanding of the side-effects of such interaction, for even the most tech-savvy users.
In its current form, Radspec is implemented as a small JavaScript library with no formal specification, and it is only used within the Aragon decentralised application. To fulfill the goal of Radspec, however, it is necessary to formalise Radspec and make it an industry-wide standard.
Finally, Radspec is currently more of a proof-of-concept in its implementation, since it provides no guarantees that the user is not falling victim to phishing, since the security of Radspec depends on the security of the dapp it is contained within.
## Key Differences to Natspec
Natspec (Ethereum Natural Specification Format) is a DSL originally intended for annotating code and generating documentation for developers. Radspec is inspired by Natspec, but with some key differences.
First, Radspec is for end-users, not developers. This means that Radspec is a way of describing what a transaction does to a user, not what a method call should do to a developer. Radspec is user facing in this respect, and developers use Radspec as a UX tool.
Radspec is also secure, unlike Natspec. Natspec is very liberal in what you can do: anything JavaScript goes, which also means that all implementations of Natspec simply evaluate JavaScript.
This poses a considerable security risk to dapps who wish to use Natspec for user-facing descriptions, as it is possible for malicious 3rd party developers (as in the case with apps for aragonOS) to hijack the entire application and phish users.
Radspec on the contrary is a simple DSL with its own specification and parser. A main goal of Radspec, however, is ease of use for developers as well and a familiar Natspec-y feel to accelerate adoption in existing code.
## Proposed Grammar
At its core, Radspec is composed of two primary building blocks: monologues and expressions.
Monologues are pieces of text that are not evaluated at all by a Radspec parser, and as such it is simply output as-is.
Expressions are evaluated by a Radspec parser according to the rules of Radspec.
### Overview
#### Types
##### `bytes{1-32}` | `b{1-32}` | `byte`
Some bytes.
##### `int{8-256}` | `i{8-256}`
A signed integer.
##### `uint{8-256}` | `u{8-256}`
An unsigned integer.
##### `address`
An Ethereum address.
##### `bool`
A boolean.
##### `string` | `str`
A string.
##### `fixed` | `fixed{8-256}x{0-80}` | `ufixed` | `ufixed{8-256}x{0-80}`
Signed and unsigned fixed point number of various sizes.
Keywords `ufixed{M}x{N}` and `fixed{M}x{N}`, where `M` represents the number of bits taken by the type and `N` represents how many decimal points are available.
`M` must be divisible by 8 and goes from 8 to 256 bits. `N` must be between 0 and 80, inclusive.
`ufixed` and `fixed` are aliases for `ufixed128x18` and `fixed128x18`, respectively.
#### Operators
##### `+` (unary)
Makes a signed number type positive.
##### `-` (unary)
Makes a signed number type negative.
##### `+` (binary)
Adds two number types together.
##### `-` (binary)
Subtracts two number types.
##### `*` (binary)
Multiplies two number types.
##### `^` (binary)
Lifts lefthand side to the power of righthand side.
##### `/` (binary)
Divides two number types.
##### `%` (binary)
Resolves to the remainder of a division of two number types.
#### Keywords
##### `self`
The address of the smart contract that Radspec is currently describing.
##### `callee`
The address of the current callee.
#### Identifiers
Identifiers can be alphanumeric with underscores and dollar signs (`$`). An identifier *CAN NOT* start with a digit.
Identifiers follow exactly the same rules as for Solidity.
#### Calls
It is possible to call **non mutating** methods on smart contracts to retrieve additional information for Radspec.
It is possible to call methods on external contracts (called *external calls*) and on the contract that Radspec is currently describing (called *internal calls*).
All calls are formed by the following shape:
```
<destination addr>.<method>([<params separated by comma>])
```
However, since Radspec can not determine what methods return for *external calls*, it is required to specify the return type. This is a conscious trade-off as opposed to having to bundle ABIs for every smart contract in existence.
Types are specified as in Flow or TypeScript, that is, after a colon:
```
<destination addr>.<method>([<params seperated by comma>]): <type>
```
For parameters that can be ambigious in types, you also need to specify their type. This is done in the same way.
For example, if you pass in a hex literal as an argument to an external call, it can be interpreted as an address or as some bytes. In this case, you need to specify which it is:
```
someContractAddress.foo(0xdeadbeef: bytes): i32
```
In this example, `foo` is called on `someContractAddress` with a `bytes` parameter of `0xdeadbeef`, and that call results in an `i32`.
#### Flow Control
Radspec only provides very basic flow control in the form of a ternary if-statement.
```
<expr> ? <expr> : <expr>
```
#### String Manipulation
You can concatenate strings using the `+` binary operator.
#### Helpers
Helpers are built-in functions to ease common tasks in Radspec. They are called in a familiar JavaScript/C-eseque style:
```
<helper name>(<param 1>, <param 2>, <param 3>, ...)
```
The currently decided helpers are:
**Amounts**
- `formatAmount(amount[, decimals = 10^18])`: Returns a formatted `amount` of base units according to the number of `decimals`
**ENS**
- `ensLookup(name)`: Returns the address of an ENS name, `name`
- `ensReverseLookup(address)`: Returns the ENS name of an address, `address`
**Time & Dates**
- `formatDate(timestamp[, format = 'YYYY-mm-dd'])`: Formats a `timestamp` according to `format`
- `formatSince(timestamp)`: Formats a `timestamp` as a human readable string (`1 day ago`, `10 minutes ago`, ...)
**Quick Maths**
- `formatPct(value[, base = 10^18[, precision = 2]])`: Formats a `value` as percentage of `base` to `precision` decimals
### Examples
#### Arithmetic
Assume `a`, `b`, `c` and `d` are numbers.
```
The sum of `a` and `b` is `a + b`
```
```
Some arithmetic that has no actual use: `(a^(b + c)) - (d * 4) / 10`
````
#### External Calls
Assume `token` is an address
```
Transfer some `token.symbol(): string`
```
#### Internal Calls
Internal calls work exactly the same way as external calls, except all types can be elided and the keyword `self` is used.
```
The owner of this contract is `self.owner()`
```
```
Withdraw `self.balanceOf(callee)` `self.symbol()`
```
#### Flow Control
Assume `vote` is a boolean and `proposalId` is a `uint`
```
Vote `vote ? 'yes' : 'no'` on proposal `proposalId`
```
#### String Manipulation
```
Send `formatAmount(amount, self.decimals()) + ' ' + self.symbol()`
```
```
Register `name + '.aragonid.eth'`
```
#### Helpers
Assume `amount` is a `uint` and `receipient` is an address
```
Send `formatAmount(amount, self.decimals())` `self.symbol()`
```
```
Send `formatAmount(amount, 10^18)` ETH to `ensReverseLookup(receipient)`
```
## Information & Modality (aka *How To Write Good Radspec*)
There are a few rules of thumb for writing good Radspec descriptions. For developers, they should be easy to remember, since they very much resemble guidelines for writing good commit messages.
- Limit the evaluated length (i.e. the length of the string as it is displayed for the user) of a Radspec string to around 72 characters.
- Use the imperative mood in the Radspec string (a good rule of thumb here is that your string is in imperative mood if you can prepend “Executing this transaction will …”)
- Explain what and why vs. how (i.e. avoid super technical terms)
- Provide context (e.g. amount of tokens being sent)
### Examples
#### Bad
- Create a plumbus to bondedly curve a stake at block (BAD! Too technical)
- Creates a cryptokitty (BAD! Not imperative)
- Will create a cryptokitty (BAD! "Will" should not be the start of the description)
- Send ZRX (BAD! Provides no context to what is happening)
#### Good
- Create a DAO named `name + '.aragonid.eth'` (GOOD! Not too technical... it is crypto after all)
- Create a cryptokitty (GOOD! Uses imperative mood)
- Send `formatAmount(amount, 10^18)` ZRX (GOOD! Provides context)
## Radspec Lookup (WIP)
In order for Radspec to move out of dapps and into wallets, there also needs to be some supporting infrastructure in terms of a standardised way to look up Radspec for contracts given an address.
For this to work, it is essential that such a registry of Radspec is as decentralised as possible to ensure there is not one-or-few people that can alter Radspec for any arbitrary contract.
TODO Mention localisation thing with NFTs because we could use that :)
This section is work in progress, as it is still to be determined what mechanism the registry should use. Here are a few ideas so far:
### Contracts Register Themselves (With ERC780)
Upon creation, contracts register themselves with an ERC780 registry under the key `radspec`, which points to an APM-formatted content adressable string, where the strings themselves are hosted on an APM provider such as IPFS or Swarm.
The file that is referred to should be JSON-formatted in the following shape:
```
{
// The version of Radspec that is supported, kept for safety reasons although it should never change
"version": "1",
// The ABI of this contract, used for decoding transaction data
"abi": {}
// Top-level keys are locales. The `en_US` locale is mandatory as it is used as a fallback.
"en_US": {
// Keys are method signatures
"0<KEY>": {
"description": "Lorem ipsum dolor sit amet"
}
}
}
```
#### The Good
- Very high confidence that the Radspec is authentic for that contract (since it registered itself)
- The registry is easy to implement
#### The Bad
- Large initial bytecode (leading to high costs for smart contract developers)
- No upgradeability (unless a method for that is introduced, leading to vulnerabilities and high costs)
- Not compatible with existing contracts
### TCR (🐝)
Another solution is to have a token-curated registry to curate a list of APM-formatted content adressable string, where the strings themselves are hosted on an APM provider such as IPFS or Swarm.
The file that is referred to should be JSON-formatted in the following shape:
```
{
// The version of Radspec that is supported, kept for safety reasons although it should never change
"version": "1",
// The ABI of this contract, used for decoding transaction data
"abi": {}
// Top-level keys are locales. The `en_US` locale is mandatory as it is used as a fallback.
"en_US": {
// Keys are method signatures
"0xf1868e8b": {
"description": "Lorem ipsum dolor sit amet"
}
}
}
```
#### The Good
- Compatible with existing contracts
- No large overhead in terms of costs for contract developers
- Upgradeability built-in
#### The Bad
- Potentially large governance overhead
- TCRs are not super well-developed as of yet
- Either this registry is curated by a token (so, a TCR) or by a council
- With a token we need to determine what token to use (but it could maybe just be WETH)
- Councils are more centralised and provide additional overhead in terms of selecting members
## Future Improvements
After the initial implementation there is still room for future improvements. Some possibilities are:
- With the rise of more smart contract languages (Vyper, Flint) it could be necessary to implement an extraction tool that supports more than Solidity
- With the proposal to have custom doctags in Solidity comments, it might be worth using those over the `@notice` doctag
- It might also be worth exploring basic formatting using a basic Markdown-esque syntax (akin to Slack)
- A way to describe "what is going to happen next", which would fill the use case for dapps such as Aragon, where a single transaction might have multiple hops before being fullfilled
<file_sep>const marked = require('marked')
const fs = require('fs')
const spec = fs.readFileSync(
'README.md',
{ encoding: 'utf8' }
)
const rendered = `
<!doctype html>
<html>
<head>
<title>Radspec</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/2.10.0/github-markdown.min.css" />
</head>
<body>
<div style="max-width: 800px; margin: 0 auto" class="markdown-body">
${marked(spec)}
</div>
</body>
</html>
`
fs.writeFileSync('index.html', rendered)
| fe128cd0e61c3d914e49498ba06b7c39975fb87e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | repodump1/spec | 709aaaddb96d5855da7a02aa641278136c7e9e51 | 9b9b8f92fbd3e0e7d0a00f5e6a95ba70db75ebed |
refs/heads/main | <file_sep>import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Storage } from '@ionic/storage';
import { ApiService } from '../api.service';
@Component({
selector: 'app-edit-obiect',
templateUrl: './edit-obiect.page.html',
styleUrls: ['./edit-obiect.page.scss'],
})
export class EditObiectPage {
obiect: any;
inputName: any;
inputDescription: any;
inputPrice: any;
inputDate: any;
inputGestionar: any
inputDepartment: any;
inputAddress: any;
resultDepartment: any;
constructor(private router: Router, private storage: Storage, private apiServices: ApiService) {
this.apiServices.getDepartament().subscribe(data => {
this.resultDepartment = data;
})
}
ionViewWillEnter(){
this.storage.get('item').then( data => {
this.obiect = data;
this.inputName = this.obiect.nume_obiect;
this.inputDescription = this.obiect.descriere_obiect;
this.inputPrice = this.obiect.pret_obiect;
this.inputDate = this.obiect.data_achizitiei_obiect;
this.inputGestionar = this.obiect.nume_gestionar
this.inputDepartment = this.obiect.nume_departament;
});
}
submit(){
this.searchIdDepartament();
this.obiect.nume_obiect = this.inputName;
this.obiect.descriere_obiect = this.inputDescription;
this.obiect.pret_obiect = this.inputPrice;
this.obiect.data_achizitiei_obiect = this.inputDate;
this.obiect.nume_gestionar = this.inputGestionar;
this.obiect.id_departament = this.inputDepartment[0].id_departament;
this.apiServices.updateObiect(this.obiect).subscribe(() => {
});
this.router.navigate(['/tabs/tab3']);
}
searchIdDepartament(){
this.inputDepartment = this.resultDepartment.filter(data => {
return (data.nume_departament.toLowerCase().indexOf(this.inputDepartment.toLowerCase()) > -1);
});
}
}
<file_sep>import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { JSDocTagName } from '@angular/compiler/src/output/output_ast';
@Injectable({
providedIn: 'root'
})
export class ApiService {
httplink = "http://c6e711baa311.ngrok.io";
constructor(private http: HttpClient) { }
deleteObiect(id){
return this.http.get(this.httplink + '/obiecte/delete/' + id);
}
deleteGestionar(id){
console.log(this.httplink + '/gestionari/delete/' + id)
return this.http.get(this.httplink + '/gestionari/delete/' + id);
}
getAllObiecte(){
return this.http.get(this.httplink + '/obiecte');
}
getAllGestionari(){
return this.http.get(this.httplink + '/gestionari');
}
getDepartament(){
return this.http.get(this.httplink + '/departamente');
}
getDepartamentById(id_departament){
return this.http.get(this.httplink + '/departamente/' + id_departament);
}
getGestionarById(id_gestionar){
return this.http.get(this.httplink + '/gestionari/' + id_gestionar);
}
getObiectById(id_obiect){
return this.http.get(this.httplink + '/obiecte/' + id_obiect);
}
getGestionarByEmail(email_gestionar){
return this.http.get(this.httplink + '/gestionari/email/' + email_gestionar);
}
comparePassword(inputPass, id){
return this.http.get(this.httplink + '/comparePassword/' + inputPass + '&' + id);
}
createGestionar(dataToSend){
return this.http.post(this.httplink + '/gestionar_create', dataToSend,
{
headers: {
'Content-Type': 'application/json'
}
}
)
}
updateObiect(dataToSend){
return this.http.post(this.httplink + '/obiecte/update_obiect', dataToSend,
{
headers: {
'Content-Type': 'application/json'
}
})
}
updateGestionar(dataToSend){
return this.http.post(this.httplink + '/update_gestionar', dataToSend,
{
headers: {
'Content-Type': 'application/json'
}
})
}
}
<file_sep>import { Component } from '@angular/core';
import { ApiService } from '../api.service';
import { Router } from '@angular/router';
import { Storage } from '@ionic/storage';
@Component({
selector: 'app-tab3',
templateUrl: 'tab3.page.html',
styleUrls: ['tab3.page.scss']
})
export class Tab3Page {
results: any;
resultsDepartamente: any = [];
resultsGestionari: any = [];
searchBy: any = "Name";
filterData: any;
storageIdGestionar: any;
auxVar: any;
constructor(private apiService: ApiService, private router: Router, private storage: Storage) { }
ionViewWillLeave(){
this.storageIdGestionar = null;
}
ionViewWillEnter(){
this.storage.get('logIn').then(val => {
if(val == true){
this.apiService.getAllObiecte().subscribe(data => {
this.results = data;
for(let i = 0; i < this.results.length; i++){
this.results[i].pret_obiect = this.results[i].pret_obiect.toString();
this.apiService.getDepartamentById(this.results[i].id_departament).subscribe(data => {
this.auxVar = data;
this.results[i].nume_departament = this.auxVar.nume_departament;
this.results[i].adresa_departament = this.auxVar.adresa_departament;
})
this.apiService.getGestionarById(this.results[i].id_gestionar).subscribe(data => {
this.auxVar = data;
this.results[i].nume_gestionar = this.auxVar.name_gestionar + ' ' + this.auxVar.last_name_gestionar;
})
}
this.atribution();
})
this.storage.get('idGestionar').then(value => {
this.storageIdGestionar = value;
});
}
else{
this.router.navigate(['']);
}
})
}
onRefresh(event){
this.apiService.getAllObiecte().subscribe(async data => {
this.results = await data;
for(let i = 0; i < this.results.length; i++){
this.results[i].pret_obiect = this.results[i].pret_obiect.toString();
this.apiService.getDepartamentById(this.results[i].id_departament).subscribe(data => {
this.auxVar = data;
this.results[i].nume_departament = this.auxVar.nume_departament;
this.results[i].adresa_departament = this.auxVar.adresa_departament;
})
this.apiService.getGestionarById(this.results[i].id_gestionar).subscribe(data => {
this.auxVar = data;
this.results[i].nume_gestionar = this.auxVar.name_gestionar + ' ' + this.auxVar.last_name_gestionar;
})
}
this.atribution();
event.target.complete();
})
}
atribution(){
this.filterData = this.results;
}
edit(item){
this.storage.set('item', item);
this.router.navigate(['/edit-obiect']);
}
delete(item){
this.apiService.deleteObiect(item.id_obiect).subscribe(() => {
});
}
search(event) {
this.atribution();
const searchTerm = event.srcElement.value;
this.filterData = this.filterData.filter(data => {
switch(this.searchBy){
case 'Name':{
if (data.nume_obiect) {
return (data.nume_obiect.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1);
}
}
break;
case 'Administrator':{
if (data.nume_gestionar) {
return (data.nume_gestionar.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1);
}
}
break;
case 'Department':{
if (data.nume_departament) {
return (data.nume_departament.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1);
}
}
break;
case 'Date':{
if (data.data_achizitiei_obiect) {
return (data.data_achizitiei_obiect.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1);
}
}
break;
case 'Price':{
if (data.pret_obiect) {
return (data.pret_obiect.indexOf(searchTerm) > -1);
}
}
break;
}
});
}
}
<file_sep>import { Component } from '@angular/core';
import { LogInPage } from '../log-in/log-in.page';
import { RegisterPage } from '../register/register.page';
@Component({
selector: 'app-home',
templateUrl: './home.page.html',
styleUrls: ['./home.page.scss'],
})
export class HomePage {
constructor() { }
}
<file_sep>import { Component } from '@angular/core';
import { ApiService } from '../api.service'
import { Storage } from '@ionic/storage';
import { Router } from '@angular/router';
@Component({
selector: 'app-tab2',
templateUrl: 'tab2.page.html',
styleUrls: ['tab2.page.scss']
})
export class Tab2Page{
resultsGestionari: any;
avatar: any = ["bear", "avatar", "duck", "rabbit", "lion", "kitten", "puppy", "cheetah", "eagle", "mouse"];
searchBy: any = 'Name';
mySearchBarInput: any;
filterData: any;
storageIdGestionar: any;
auxVar: any;
constructor(private apiService: ApiService, private storage: Storage, private router: Router) { }
ionViewWillEnter(){
this.storage.get('logIn').then(val => {
if(val == true){
this.apiService.getAllGestionari().subscribe(data => {
this.resultsGestionari = data;
for(let i = 0; i < this.resultsGestionari.length; i++){
this.resultsGestionari[i].name = this.resultsGestionari[i].name_gestionar;
this.resultsGestionari[i].name_gestionar += ' ' + this.resultsGestionari[i].last_name_gestionar;
this.apiService.getDepartamentById(this.resultsGestionari[i].id_departament).subscribe(data => {
try{
this.auxVar = data;
this.resultsGestionari[i].nume_departament = this.auxVar.nume_departament;
this.resultsGestionari[i].adresa_departament = this.auxVar.adresa_departament;
}catch (e){
console.log(e);
}
});
}
this.atribution();
})
this.storage.get('idGestionar').then(value => {
this.storageIdGestionar = value;
})
}
else{
this.router.navigate(['']);
}
})
}
onRefresh(event){
this.apiService.getAllGestionari().subscribe(async data => {
this.resultsGestionari = await data;
for(let i = 0; i < this.resultsGestionari.length; i++){
this.resultsGestionari[i].name = this.resultsGestionari[i].name_gestionar;
this.resultsGestionari[i].name_gestionar += ' ' + this.resultsGestionari[i].last_name_gestionar;
this.apiService.getDepartamentById(this.resultsGestionari[i].id_departament).subscribe(data => {
try{
this.auxVar = data;
this.resultsGestionari[i].nume_departament = this.auxVar.nume_departament;
this.resultsGestionari[i].adresa_departament = this.auxVar.adresa_departament;
}catch (e){
console.log(e);
}
});
}
this.atribution();
event.target.complete();
})
}
ionViewWillLeave(){
this.storageIdGestionar = null;
}
delete(gestionar){
this.apiService.deleteGestionar(gestionar.id_gestionar).subscribe(() => {
})
}
atribution(){
this.filterData = this.resultsGestionari;
}
edit(gestionar){
this.storage.set('gestionar', gestionar);
this.router.navigate(['/edit-gestionar']);
}
search(event){
this.atribution();
const searchTerm = event.srcElement.value;
this.filterData = this.filterData.filter(data => {
switch(this.searchBy){
case 'Name':{
if (data.name_gestionar) {
return (data.name_gestionar.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1);
}
}
break;
case 'Email':{
if (data.email_gestionar) {
return (data.email_gestionar.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1);
}
}
break;
case 'Department':{
if (data.nume_departament) {
return (data.nume_departament.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1);
}
}
break;
case 'Address':{
if (data.adresa_departament) {
return (data.adresa_departament.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1);
}
}
break;
}
});
}
}
<file_sep>import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { EditObiectPageRoutingModule } from './edit-obiect-routing.module';
import { EditObiectPage } from './edit-obiect.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
EditObiectPageRoutingModule
],
declarations: [EditObiectPage]
})
export class EditObiectPageModule {}
<file_sep>var Departamente = require ("./Departamente");
var Gestionari = require ("./Gestionari");
var Obiecte = require ("./Obiecte");
Departamente.sync().then(() => {
Gestionari.sync().then(() => {
Obiecte.sync()
})
});
<file_sep>import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { EditObiectPage } from './edit-obiect.page';
const routes: Routes = [
{
path: '',
component: EditObiectPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class EditObiectPageRoutingModule {}
<file_sep>var Sequelize = require ('sequelize');
var sequelize = require ('../connection/connect');
const Departamente = sequelize.define('Departamente',{
id_departament: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true,
allowNull: false
},
nume_departament: {
type: Sequelize.STRING,
allowNull: false
},
adresa_departament: {
type: Sequelize.TEXT,
allowNull: false
}
},{freezeTableName: true});
module.exports = Departamente;<file_sep>import { Component } from '@angular/core';
import { BarcodeScanner } from '@ionic-native/barcode-scanner/ngx';
import { ApiService } from '../api.service';
import { Router } from '@angular/router';
import { Storage } from '@ionic/storage';
@Component({
selector: 'app-tab1',
templateUrl: 'tab1.page.html',
styleUrls: ['tab1.page.scss']
})
export class Tab1Page {
qrData = "1";
scannedCode = null;
elementType = 'canvas';
result: any;
resultGestionar: any;
resultDepartament: any;
constructor(private barcodeScanner: BarcodeScanner, private apiService: ApiService,
private router: Router, private storage: Storage) {
this.storage.get('logIn').then(value => {
if(value != true){
this.router.navigate(['']);
}
})
}
ionViewWillEnter(){
this.scanCode();
}
ionViewWillLeave(){
this.result = null;
this.resultGestionar = null;
this.resultDepartament = null;
}
scanCode(){
this.barcodeScanner.scan().then(barcodeData => {
this.scannedCode = barcodeData.text;
this.apiService.getObiectById(this.scannedCode).subscribe(data => {
this.result = data;
this.apiService.getDepartamentById(this.result.id_departament).subscribe(data => {
this.resultDepartament = data;
});
this.apiService.getGestionarById(this.result.id_gestionar).subscribe(data => {
this.resultGestionar = data;
});
});
});
}
}
<file_sep>import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { ApiService } from '../api.service';
import { Storage } from '@ionic/storage';
import { FormBuilder, Validators } from '@angular/forms';
@Component({
selector: 'app-log-in',
templateUrl: './log-in.page.html',
styleUrls: ['./log-in.page.scss'],
})
export class LogInPage {
result: any;
passwordInput: any;
emailInput: any;
constructor(private formBuilder: FormBuilder, private router: Router, private apiService: ApiService, private storage: Storage) { }
userForm = this.formBuilder.group({
email: ['', [Validators.required, Validators.email]],
password: ['', [Validators.required, Validators.minLength(6)]]
});
navigate(){
if(this.userForm.status == "VALID"){
if(this.emailInput == "<EMAIL>" && this.passwordInput == "<PASSWORD>"){
this.storage.set('logIn', true);
this.storage.set('idGestionar', 'admin');
this.passwordInput = null;
this.emailInput = null;
this.router.navigate(['/tabs']);
}
else{
this.apiService.getGestionarByEmail(this.emailInput).subscribe(data => {
this.result = data;
for(let i = 0; i < this.result.length; i++){
this.apiService.comparePassword(this.passwordInput, this.result[i].id_gestionar).subscribe(data => {
if(data == true){
this.storage.set('logIn', true);
this.storage.set('idGestionar', this.result[i].id_gestionar);
this.passwordInput = null;
this.emailInput = null;
this.router.navigate(['/tabs']);
}
});
}
})
}
}
}
}
<file_sep>import { Component } from '@angular/core';
import { ApiService } from '../api.service';
import { Router } from '@angular/router';
import { FormBuilder, Validators } from '@angular/forms';
@Component({
selector: 'app-register',
templateUrl: './register.page.html',
styleUrls: ['./register.page.scss'],
})
export class RegisterPage {
nameInput: any;
lastNameInput: any;
passwordInput: any;
emailInput: any;
departamentInput: any;
rePasswordInput: any;
msg: any;
constructor(private formBuilder: FormBuilder, private apiServices: ApiService, private router: Router) { }
userForm = this.formBuilder.group({
email: ['', [Validators.required, Validators.email]],
password: ['', [Validators.required, Validators.minLength(6)]],
name: ['', [Validators.required, Validators.pattern('[a-zA-Z ]+')]],
id: ['', [Validators.required, Validators.pattern('[0-9]+')]]
});
fieldsAreNull(){
if(this.nameInput && this.lastNameInput && this.passwordInput && this.emailInput && this.departamentInput)
return false;
else
return true;
}
submit(){
if(this.userForm.status == "VALID"){
let dataToSend ={
nameInput: this.nameInput,
lastNameInput: this.lastNameInput,
passwordInput: this.passwordInput,
emailInput: this.emailInput,
departmentInput: this.departamentInput,
};
if(this.rePasswordInput == this.passwordInput && this.fieldsAreNull() == false){
this.apiServices.createGestionar(dataToSend).subscribe(() => {
this.msg = "You will be redirected to the Log In page in 2s";
setTimeout(() => {
this.msg = "";
this.router.navigate(['log-in']);
}, 2000)
});
}
}
}
}
<file_sep>import { Component } from '@angular/core';
import { Storage } from '@ionic/storage';
import { Router } from '@angular/router';
@Component({
selector: 'app-tabs',
templateUrl: 'tabs.page.html',
styleUrls: ['tabs.page.scss']
})
export class TabsPage {
constructor(private storage: Storage, private router: Router) {}
logOut(){
this.storage.remove('idGestionar').then(() => {
this.storage.remove('logIn').then(() => {
this.router.navigate(['']);
})
})
}
}
<file_sep>import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { EditGestionarPageRoutingModule } from './edit-gestionar-routing.module';
import { EditGestionarPage } from './edit-gestionar.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
EditGestionarPageRoutingModule
],
declarations: [EditGestionarPage]
})
export class EditGestionarPageModule {}
<file_sep>import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { ApiService } from '../api.service';
import { Storage } from '@ionic/storage';
@Component({
selector: 'app-edit-gestionar',
templateUrl: './edit-gestionar.page.html',
styleUrls: ['./edit-gestionar.page.scss'],
})
export class EditGestionarPage {
resultDepartment: any;
gestionar: any;
inputName: any;
inputEmail: any;
inputLastName: any;
inputDepartment: any;
constructor(private router: Router, private apiServices: ApiService, private storage: Storage) {}
ionViewWillEnter(){
this.apiServices.getDepartament().subscribe(data => {
this.resultDepartment = data;
})
this.storage.get('gestionar').then( data => {
this.gestionar = data;
this.inputEmail = this.gestionar.email_gestionar;
this.inputName = this.gestionar.name;
this.inputDepartment = this.gestionar.nume_departament;
this.inputLastName = this.gestionar.last_name_gestionar;
});
}
submit(){
this.searchIdDepartament();
this.gestionar.name_gestionar = this.inputName;
this.gestionar.last_name_gestionar = this.inputLastName;
this.gestionar.email_gestionar = this.inputEmail;
this.gestionar.id_departament = this.inputDepartment[0].id_departament;
this.apiServices.updateGestionar(this.gestionar).subscribe(() => {
});
this.router.navigate(['/tabs/tab2']);
}
searchIdDepartament(){
this.inputDepartment = this.resultDepartment.filter(data => {
return (data.nume_departament.toLowerCase().indexOf(this.inputDepartment.toLowerCase()) > -1);
});
}
}
<file_sep>const express = require('express');
const app = express();
const morgan = require('morgan');
const bodyParser = require("body-parser");
const cors = require('cors');
var Gestionari = require ('./actions/gestionariActions');
var Departamente = require ('./actions/departamentActions');
var Obiecte = require ('./actions/obiecteActions');
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.use(cors());
app.use(morgan('short'));
//API for gestionari
app.post('/gestionar_create', (req, res) => {
const name = req.body.nameInput;
const last_name = req.body.lastNameInput;
const password = <PASSWORD>;
const email = req.body.emailInput;
const id_department = req.body.departmentInput;
Gestionari.createGestionar(id_department, email, password, name, last_name);
res.end();
});
app.post('/update_gestionar', (req, res) => {
const gestionar = req.body;
Gestionari.updateGestionar(gestionar.id_gestionar, gestionar.name_gestionar, gestionar.last_name_gestionar, gestionar.email_gestionar, gestionar.id_departament);
res.end();
});
app.get('/gestionari', (req, res) => {
Gestionari.getAllGestionari(res);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/gestionari/:id', (req, res) => {
Gestionari.getGestionarById(res, req.params.id);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/gestionari/departament/:id_departament', (req, res) => {
Gestionari.getGestionarByIdDepartament(res, req.params.id_departament);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/gestionari/name/:name', (req, res) => {
Gestionari.getGestionarByName(res, req.params.name);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/gestionari/last_name/:last_name', (req, res) => {
Gestionari.getGestionarByLastName(res, req.params.last_name);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/gestionari/email/:email', (req, res) => {
Gestionari.getGestionarByEmail(res, req.params.email);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/comparePassword/:inputPass&:id', (req, res) => {
Gestionari.comparePassword(res, req.params.inputPass, req.params.id);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/gestionari/delete/:id', (req, res) => {
Gestionari.deleteGestionarById(req.params.id);
})
//end API for gestionari
//API for departamente
app.get('/departamente', (req, res) => {
Departamente.getAllDepartament(res);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/departamente/:id', (req, res) => {
Departamente.getDepartamentById(res, req.params.id);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/departamente/id_departament', (req, res) => {
Departamente.getDepartamentById(res, req.params.id_departament);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/departamente/:name', (req, res) => {
Departamente.getDepartamentByName(res, req.params.name);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/departamente/:address', (req, res) => {
Departamente.getDepartamentByAddress(res, req.params.address);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
//end API for departamente
//API for obiecte
app.post('/obiecte/update_obiect', (req, res) => {
const obiect = req.body;
Obiecte.updateObiect(obiect.id_obiect, obiect.id_gestionar, obiect.id_departament, obiect.nume_obiect,
obiect.descriere_obiect, obiect.pret_obiect, obiect.data_achizitie_obiect);
res.end();
});
app.get('/obiecte', (req, res) => {
Obiecte.getAllObiecte(res);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/obiecte/:id', (req, res) => {
Obiecte.getObiectById(res, req.params.id);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/obiecte/departament/:id_departament', (req, res) => {
Obiecte.getObiectByIdDepartament(res, req.params.id_departament);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/obiecte/gestionar/:id_gestionar', (req, res) => {
Obiecte.getObiectByIdGestionar(res, req.params.id_gestionar);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/obiecte/:name', (req, res) => {
Obiecte.getObiectByName(res, req.params.name);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/obiecte/:price', (req, res) => {
Obiecte.getObiectByPrice(res, req.params.price);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/obiecte/:date', (req, res) => {
Obiecte.getObiectByDate(res, req.params.date);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers,X-Access-Token,XKey,Authorization');
});
app.get('/obiecte/delete/:id', (req, res) => {
Obiecte.deleteObiectById(req.params.id);
})
//end API for obiecte
app.listen(8080, () => {
console.log('Hello World');
});
<file_sep>import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: '',
loadChildren: () => import('./home/home.module').then(m => m.HomePageModule)
},
{
path: 'log-in',
loadChildren: () => import('./log-in/log-in.module').then( m => m.LogInPageModule)
},
{
path: 'register',
loadChildren: () => import('./register/register.module').then( m => m.RegisterPageModule)
},
{
path: 'tabs',
loadChildren: () => import('./tabs/tabs.module').then( m => m.TabsPageModule)
},
{
path: 'edit-gestionar',
loadChildren: () => import('./edit-gestionar/edit-gestionar.module').then( m => m.EditGestionarPageModule)
},
{
path: 'edit-obiect',
loadChildren: () => import('./edit-obiect/edit-obiect.module').then( m => m.EditObiectPageModule)
},
];
@NgModule({
imports: [
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
],
exports: [RouterModule]
})
export class AppRoutingModule {}
<file_sep>var Gestionari = require ('../models/Gestionari');
const bcrypt = require ('bcrypt');
module.exports = {
getAllGestionari: (res) => {
Gestionari.findAll().then((gestionari) => {
res.send(JSON.stringify(gestionari, null, 1));
});
},
getGestionarById: (res, id_gestionar) => {
Gestionari.findOne({
where: {
id_gestionar: id_gestionar
}
}).then((gestionari) => {
res.send(JSON.stringify(gestionari, null, 1));
});
},
getGestionarByIdDepartament: (res, id_departament) => {
Gestionari.findOne({
where: {
id_departament: id_departament
}
}).then((gestionari) => {
res.send(JSON.stringify(gestionari, null, 1));
});
},
getGestionarByName: (res, name_gestionar) => {
Gestionari.findAll({
where: {
name_gestionar: name_gestionar
}
}).then((gestionari) => {
res.send(JSON.stringify(gestionari, null, 1));
});
},
getGestionarByLastName: (res, last_name_gestionar) => {
Gestionari.findAll({
where: {
last_name_gestionar: last_name_gestionar
}
}).then((gestionari) => {
res.send(JSON.stringify(gestionari, null, 1));
});
},
getGestionarByEmail: (res, email_gestionar) => {
Gestionari.findAll({
where: {
email_gestionar: email_gestionar
}
}).then((gestionari) => {
res.send(JSON.stringify(gestionari, null, 1));
});
},
comparePassword: (res, passwordInput, id) => {
Gestionari.findOne({
where: {
id_gestionar: id
}
}).then((gestionari) => {
bcrypt.compare(passwordInput, gestionari.password_gestionar).then(value => {
res.send(JSON.stringify(value, null, 1));
})
})
},
createGestionar: (id_departament, email_gestionar, password_gestionar, name_gestionar, last_name_gestionar) => {
bcrypt.hash(password_gestionar, 5).then((hash) => {
Gestionari.create({
id_departament: id_departament,
email_gestionar: email_gestionar,
password_gestionar: hash,
name_gestionar: name_gestionar,
last_name_gestionar: last_name_gestionar,
})
});
},
deleteGestionarById: (id_gestionar) => {
Gestionari.destroy({
where: {id_gestionar: id_gestionar}
})
},
deleteGestionarByIdDepartament: (id_departament) => {
Gestionari.destroy({
where: {id_departament: id_departament}
})
},
deleteGestionarByName: (name_gestionar) => {
Gestionari.destroy({
where: {name_gestionar: name_gestionar}
})
},
deleteGestionarBylastName: (last_name_gestionar) => {
Gestionari.destroy({
where: {last_name_gestionar: last_name_gestionar}
})
},
deleteGestionarByEmail: (email_gestionar) => {
Gestionari.destroy({
where: {email_gestionar: email_gestionar}
})
},
updateIdDepartament: (oldIdDepartament = 0, newIdDepratament = 0, id = 0) => {
if(newIdDepratament != 0){
if(id != 0){
Gestionari.update({
id_departament: newIdDepratament
},
{where: {id_gestionar: id }
})
}
else{
if(oldIdDepartament != 0){
Gestionari.update({
id_departament: newIdDepratament
},
{where: {id_departament: oldEmail}
})
}
}
}
},
updateEmail: (oldEmail = 0, newEmail = 0, id = 0) => {
if(newEmail != 0){
if(id != 0){
Gestionari.update({
email_gestionar: newEmail
},
{where: {id_gestionar: id }
})
}
else{
if(oldEmail != 0){
Gestionari.update({
email_gestionar: newEmail
},
{where: {email_gestionar: oldEmail}
})
}
}
}
},
updatePassword: (oldPassword = 0, newPassword = 0, id = 0) => {
if(newPassword != 0){
if(id != 0){
Gestionari.update({
password_gestionar: newPassword
},
{where: {id_gestionar: id }
})
}
else{
if(oldPassword != 0){
Gestionari.update({
password_gestionar: <PASSWORD>
},
{where: {password_gestionar: oldPassword}
})
}
}
}
},
updateName: (oldName = 0, newName = 0, id = 0) => {
if(newName != 0){
if(id != 0){
Gestionari.update({
name_gestionar: newName
},
{where: {id_gestionar: id }
})
}
else{
if(oldName != 0){
Gestionari.update({
name_gestionar: newName
},
{where: {name_gestionar: oldName}
})
}
}
}
},
updateLastName: (oldLastName = 0, newLastName = 0, id = 0) => {
if(newLastName != 0){
if(id != 0){
Gestionari.update({
last_name_gestionar: newLastName
},
{where: {id_gestionar: id }
})
}
else{
if(oldLastName != 0){
Gestionari.update({
last_name_gestionar: newLastName
},
{where: {last_name_gestionar: oldLastName}
})
}
}
}
},
updateGestionar: (id = 0, name_gestionar, last_name_gestionar, email_gestionar, id_departament) => {
Gestionari.update({
name_gestionar: name_gestionar,
last_name_gestionar: last_name_gestionar,
email_gestionar: email_gestionar,
id_departament: id_departament
},
{
where: {id_gestionar: id}
})
}
}<file_sep>var Obiecte = require('../actions/obiecteActions');
var Departamente = require('../actions/departamentActions');
var Gestionari = require('../actions/gestionariActions');
function gestionari(){
Gestionari.createGestionar(2, "<EMAIL>", "Informatica2021!", "Negru", "Petrisor - Adein");
Gestionari.createGestionar(1, "<EMAIL>", "<NAME>!", "Mihai", "Marius");
Gestionari.createGestionar(1, "<EMAIL>", "carne vs 4 mere!", "Daniel", "Motroc");
Gestionari.createGestionar(3, "<EMAIL>", "afara ploua3!", "Dragomir", "Mircea");
Gestionari.createGestionar(4, "<EMAIL>", "afara ploua4!", "Ion", "Glanetas");
}
function departament(){
Departamente.createDepartament("Chimie", "A. I. Cuza");
Departamente.createDepartament("Matematica", "A. I. Cuza");
Departamente.createDepartament("Matematica - Informatica", "A. I. Cuza");
Departamente.createDepartament("Fizica", "A. I. Cuza");
Departamente.createDepartament("Geografie", "A. I. Cuza");
Departamente.createDepartament("Istorie", "A. I. Cuza");
Departamente.createDepartament("Litere", "A. I. Cuza");
}
function obiecte(){
Obiecte.createObiect(1, 2, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(1, 2, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(1, 2, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(1, 2, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(1, 3, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(1, 3, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(2, 3, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(2, 3, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(2, 4, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(2, 4, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(2, 4, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(2, 4, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(3, 5, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(3, 5, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(3, 5, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(3, 5, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(3, 6, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(3, 6, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(4, 6, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(4, 6, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(4, 7, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(4, 7, "Scaun", "Scaun din otel si panza", 40, "2015-01-08");
Obiecte.createObiect(4, 7, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
Obiecte.createObiect(4, 7, "Birou", "Birou din lemn de nuc", 60, "2015-02-08");
}
function createData(){
departament();
setTimeout(() => {
gestionari()
}, 500);
setTimeout(() => {
obiecte()
}, 1000);
}
createData(); | 562e0bc95e3c4b6d429c84bfd3d43788c85167b2 | [
"JavaScript",
"TypeScript"
] | 19 | TypeScript | NegruAdelin/IonicProjects | f59d7d99adea4923f42ee8cba9571dcdbe465b48 | bbf69a49144e5f02b063fd6f6eede18f6772ca23 |
refs/heads/master | <file_sep>import boto3
from random import randrange
from time import time
from datetime import datetime
from flask import Flask, render_template, request, jsonify, redirect
app = Flask(__name__, static_url_path='/static')
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('Order')
sizes = [
'short',
'tall',
'grande',
'venti',
'trenta',
]
@app.route('/')
def home_page():
return render_template('home.html')
@app.route('/orders/complete/<string:order_number>')
def complete_order(order_number: str):
print(order_number)
table.update_item(
Key={
'order_number': order_number,
},
UpdateExpression='SET order_status = :val1, completed_at = :val2',
ExpressionAttributeValues={
':val1': 1,
':val2': int(time()),
},
)
return redirect('/orders')
@app.route('/orders/incomplete/<string:order_number>')
def incomplete_order(order_number: str):
print(order_number)
table.update_item(
Key={
'order_number': order_number,
},
UpdateExpression='SET order_status = :val1',
ExpressionAttributeValues={
':val1': 0,
},
)
return redirect('/orders')
@app.route('/orders/delete/<string:order_number>')
def delete_order(order_number: str):
print(order_number)
table.delete_item(Key={
'order_number': order_number,
})
return redirect('/orders')
@app.route('/orders', methods=['POST', 'GET'])
def create_order():
if request.method == 'POST':
data = request.form
try:
quantity = int(data['order_quantity'])
size = int(data['product_size'])
price = int(data['price'])
if quantity == 1:
table.put_item(Item={
'product_name': data['product_name'],
'product_size': size,
'price': price,
'customer_nickname': data['customer_nickname'],
'order_number': f'{randrange(1_000_000, 9_999_999)}-{int(time())}',
'order_status': 0,
})
else:
with table.batch_writer() as batch:
for i in range(quantity):
batch.put_item(Item={
'product_name': data['product_name'],
'product_size': size,
'price': price,
'customer_nickname': data['customer_nickname'],
'order_number': f'{randrange(1_000_000, 9_999_999)}-{int(time())}',
'order_status': 0,
})
return render_template('home.html')
except Exception as e:
print(e)
return render_template('home.html')
else:
response = table.scan()
data = response['Items']
while response.get('LastEvaluatedKey'):
response = table.scan(ExclusiveStartKey=response['LastEvaluatedKey'])
data.extend(response['Items'])
for x in data:
x['product_size'] = sizes[int(x['product_size'] - 1)]
if 'completed_at' in x:
x['completed_at'] = datetime.fromtimestamp(x['completed_at']).strftime("%m/%d/%Y, %H:%M:%S")
return render_template(
'orders.html',
orders_incomplete=[x for x in data if x['order_status'] == 0],
orders_complete=[x for x in data if x['order_status'] == 1]
)
@app.route('/orders<string:order_number>')
def get_order(order_number: str):
pass
if __name__ == '__main__':
app.run(port=5000)
# The `partition key` (`primary key`) should be unique
# Using the same partition key for a new item will overwrite the old item
<file_sep>awscli==1.16.198
beautifulsoup4==4.7.1
boto3==1.9.188
botocore==1.12.188
certifi==2019.6.16
chardet==3.0.4
Click==7.0
colorama==0.3.9
docutils==0.14
Flask==1.1.1
idna==2.8
itsdangerous==1.1.0
Jinja2==2.10.1
jmespath==0.9.4
MarkupSafe==1.1.1
pyasn1==0.4.5
python-dateutil==2.8.0
python-dotenv==0.10.3
PyYAML==5.1
requests==2.22.0
rsa==3.4.2
s3transfer==0.2.1
six==1.12.0
soupsieve==1.9.2
urllib3==1.25.3
Werkzeug==0.15.5
<file_sep>### A Tour of DynamoDB
#### _Setup Instructions_
```bash
# Install all dependencies
# Some libraries are not required, too lazy to clean up...
$ pipenv install requirements.txt
# Run the app
$ python app.py
# Visit the home page at localhost:5000
```
| 8f0e6467454e6adfb21c173d73c95cfc2f043ce9 | [
"Markdown",
"Python",
"Text"
] | 3 | Python | chousemath/dynamodb_demo | 70c43383640b3bd477c24da26d20345c74d3fba9 | 52956a325d386ab464c63a400f92b82af2430e5a |
refs/heads/main | <repo_name>LenarXLA/HabibullinL_Generics<file_sep>/homeWork_3/animals/Hipopotam.java
package homeWork_3.animals;
import homeWork_3.food.SizeOfAviary;
public class Hipopotam extends Herbivore {
private final String name = "Hipopotam";
private final SizeOfAviary sizeOfAviary = SizeOfAviary.LARGE;
public SizeOfAviary getSizeOfAviary() {
return sizeOfAviary;
}
@Override
public void run() {
System.out.println("Hipopotam running!");
super.setEnergy(getEnergy() - 1);
}
@Override
public void swim() {
System.out.println("Hipopotam swimming!");
super.setEnergy(getEnergy() - 2);
}
@Override
public String voice() {
return "Ghhhhh!";
}
@Override
public String getNameOfAnimal() {
return name;
}
}
<file_sep>/homeWork_3/Worker.java
package homeWork_3;
import homeWork_3.animals.Animal;
import homeWork_3.food.Food;
public class Worker {
public void feed(Animal animal, Food food) throws WrongFoodException {
System.out.println(animal.eat(food));
}
public void getVoice(Animal animal) {
if (animal.voice() == null) {
new Exception().printStackTrace();
System.exit(1);
}
System.out.println(animal.getNameOfAnimal() + " says: " + animal.voice());
}
}
<file_sep>/homeWork_3/animals/Fish.java
package homeWork_3.animals;
import homeWork_3.food.SizeOfAviary;
public class Fish extends Herbivore {
private final String name = "Fish";
private final SizeOfAviary sizeOfAviary = SizeOfAviary.ULTRA_SMALL;
public SizeOfAviary getSizeOfAviary() {
return sizeOfAviary;
}
@Override
public void swim() {
System.out.println("Fish swimming!");
super.setEnergy(getEnergy() - 1);
}
@Override
public String getNameOfAnimal() {
return name;
}
}
<file_sep>/homeWork_3/animals/Carnivorous.java
package homeWork_3.animals;
import homeWork_3.WrongFoodException;
import homeWork_3.food.Food;
import homeWork_3.food.Grass;
import homeWork_3.food.SizeOfAviary;
public class Carnivorous extends Animal {
@Override
public String eat(Food food) throws WrongFoodException {
// Проверяем будет ли есть эту еду данное животное
if (food instanceof Grass)
throw new WrongFoodException(getNameOfAnimal() + " not eat this " + food.getName() + "!");
// Добавляем энергии животному при подходящей еде
super.setEnergy(getEnergy() + food.getSatiety());
return getNameOfAnimal() + " eat " + food.getName() + "!";
}
@Override
public String getNameOfAnimal() {
return null;
}
@Override
public SizeOfAviary getSizeOfAviary() {
return null;
}
@Override
public void fly() {
}
@Override
public void run() {
}
@Override
public void swim() {
}
@Override
public String voice() {
return null;
}
}
<file_sep>/homeWork_3/Aviary.java
package homeWork_3;
import homeWork_3.animals.Animal;
import homeWork_3.food.SizeOfAviary;
import java.util.HashMap;
import java.util.Map;
public class Aviary <T extends Animal> {
private SizeOfAviary sizeAviary;
public Aviary(SizeOfAviary sizeAviary) {
this.sizeAviary = sizeAviary;
}
private Map<String, T> animalInAviary = new HashMap<>();
public void addAnimal(T t) {
switch (t.getSizeOfAviary()) {
case ULTRA_SMALL:
switch (sizeAviary) {
case ULTRA_SMALL:
System.out.printf("The %s fit here%n", t.getNameOfAnimal());
animalInAviary.put(t.getNameOfAnimal(), t);
break;
case SMALL:
System.out.printf("The %s comfort fit here%n", t.getSizeOfAviary());
animalInAviary.put(t.getNameOfAnimal(), t);
break;
case MEDIUM:
System.out.printf("The %s will be able running here%n", t.getNameOfAnimal());
animalInAviary.put(t.getNameOfAnimal(), t);
break;
case LARGE:
System.out.printf("The %s like large space%n", t.getNameOfAnimal());
animalInAviary.put(t.getNameOfAnimal(), t);
break;
}
break;
case SMALL:
switch (sizeAviary) {
case ULTRA_SMALL:
System.out.printf("The %s dont fit here!%n", t.getNameOfAnimal());
break;
case SMALL:
System.out.printf("The %s comfort fit here%n", t.getNameOfAnimal());
animalInAviary.put(t.getNameOfAnimal(), t);
break;
case MEDIUM:
System.out.printf("The %s will be able running here%n", t.getNameOfAnimal());
animalInAviary.put(t.getNameOfAnimal(), t);
break;
case LARGE:
System.out.printf("The %s like large space%n", t.getNameOfAnimal());
animalInAviary.put(t.getNameOfAnimal(), t);
break;
}
break;
case MEDIUM:
switch (sizeAviary) {
case ULTRA_SMALL:
System.out.printf("The %s dont fit here never!%n", t.getNameOfAnimal());
break;
case SMALL:
System.out.printf("The %s dont fit here!%n", t.getNameOfAnimal());
break;
case MEDIUM:
System.out.printf("The %s comfort fit here%n", t.getNameOfAnimal());
animalInAviary.put(t.getNameOfAnimal(), t);
break;
case LARGE:
System.out.printf("The %s like large space%n", t.getNameOfAnimal());
animalInAviary.put(t.getNameOfAnimal(), t);
break;
}
break;
case LARGE:
switch (sizeAviary) {
case ULTRA_SMALL:
System.out.printf("The %s dont fit here never-never!!%n", t.getNameOfAnimal());
break;
case SMALL:
System.out.printf("The %s dont fit here never!%n", t.getNameOfAnimal());
break;
case MEDIUM:
System.out.printf("The %s dont fit here!%n", t.getNameOfAnimal());
break;
case LARGE:
System.out.printf("The %s comfort fit here%n", t.getNameOfAnimal());
animalInAviary.put(t.getNameOfAnimal(), t);
break;
}
break;
}
}
public void deleteAnimal(String key) {
animalInAviary.remove(key);
}
public T getAnimal(String key) {
return animalInAviary.get(key);
}
public void printAviary() {
for (Map.Entry entry : animalInAviary.entrySet()) {
System.out.println(entry.getKey() + ", " + entry.getValue());
}
}
}
<file_sep>/homeWork_3/animals/Duck.java
package homeWork_3.animals;
import homeWork_3.food.SizeOfAviary;
public class Duck extends Herbivore {
private final String name = "Duck";
private final SizeOfAviary sizeOfAviary = SizeOfAviary.ULTRA_SMALL;
public SizeOfAviary getSizeOfAviary() {
return sizeOfAviary;
}
@Override
public void fly() {
System.out.println("Duck flying!");
super.setEnergy(getEnergy() - 2);
}
@Override
public void run() {
System.out.println("Duck running!");
super.setEnergy(getEnergy() - 1);
}
@Override
public void swim() {
System.out.println("Duck swimming!");
super.setEnergy(getEnergy() - 3);
}
@Override
public String voice() {
return "Krya-Krya!";
}
@Override
public String getNameOfAnimal() {
return name;
}
}
<file_sep>/homeWork_3/animals/Wolf.java
package homeWork_3.animals;
import homeWork_3.food.SizeOfAviary;
public class Wolf extends Carnivorous {
private final String name = "Wolf";
private final SizeOfAviary sizeOfAviary = SizeOfAviary.SMALL;
public SizeOfAviary getSizeOfAviary() {
return sizeOfAviary;
}
@Override
public void run() {
System.out.println("Wolf running!");
super.setEnergy(getEnergy() - 1);
}
@Override
public String voice() {
return "Khrrrr!";
}
@Override
public String getNameOfAnimal() {
return name;
}
}
<file_sep>/homeWork_3/Zoo.java
package homeWork_3;
import homeWork_3.animals.*;
import homeWork_3.food.*;
public class Zoo {
public static void main(String[] args) throws WrongFoodException {
Worker worker = new Worker();
Duck duck = new Duck();
Fish fish = new Fish();
Hipopotam hipopotam = new Hipopotam();
Lion lion = new Lion();
Wolf wolf = new Wolf();
Crocodile crocodile = new Crocodile();
Beef beef = new Beef();
ChickenMeat chickenMeat = new ChickenMeat();
RabbitMeat rabbitMeat = new RabbitMeat();
Dandelion dandelion = new Dandelion();
Fern fern = new Fern();
Flower flower = new Flower();
// Попытаемся накормить утку и травой и мясом, и вызват голос животного
worker.feed(duck, dandelion);
worker.feed(duck, rabbitMeat);
worker.getVoice(duck);
// Попытаемся накормить бегемота и травой и мясом, и вызват голос животного
worker.feed(hipopotam, fern);
worker.feed(hipopotam, chickenMeat);
worker.getVoice(hipopotam);
// Попытаемся накормить льва и травой и мясом, и вызват голос животного
worker.feed(lion, flower);
worker.feed(lion, beef);
worker.getVoice(lion);
// Попытаемся накормить льва и травой и мясом, и вызват голос животного
worker.feed(crocodile, fern);
worker.feed(crocodile, rabbitMeat);
worker.getVoice(crocodile);
// Попытаемся вызвать голос рыбы (для теста убирать комментарии)
// worker.getVoice(fish);
// Создадим пруд
Animal[] pond = new Animal[5];
pond[0] = fish;
pond[1] = hipopotam;
pond[2] = duck;
pond[3] = crocodile;
pond[4] = new Fish();
for (Animal anim : pond) {
anim.swim();
}
// Испытаем энергию животного
System.out.printf("Energy of %s = %s%n", lion.getNameOfAnimal(), lion.getEnergy());
worker.feed(lion, chickenMeat);
System.out.printf("Energy of %s = %s%n", lion.getNameOfAnimal(), lion.getEnergy());
lion.run();
System.out.printf("Energy of %s = %s%n", lion.getNameOfAnimal(), lion.getEnergy());
}
}
<file_sep>/homeWork_3/food/Meat.java
package homeWork_3.food;
public class Meat extends Food {
@Override
public String getName() {
return "Meat";
}
}
<file_sep>/homeWork_3/food/SizeOfAviary.java
package homeWork_3.food;
public enum SizeOfAviary {
ULTRA_SMALL,
SMALL,
MEDIUM,
LARGE
}<file_sep>/homeWork_3/animals/Animal.java
package homeWork_3.animals;
import homeWork_3.WrongFoodException;
import homeWork_3.food.Food;
import homeWork_3.food.SizeOfAviary;
public abstract class Animal implements Fly, Run, Swim, Voice {
private int energy;
public int getEnergy() {
return energy;
}
public void setEnergy(int energy) {
this.energy = energy;
}
public abstract String eat(Food food) throws WrongFoodException;
public abstract String getNameOfAnimal();
public abstract SizeOfAviary getSizeOfAviary();
@Override
public int hashCode() {
// идею кода взял с habr
final int prime = 31;
int result = 1;
result = prime * result + energy;
return result;
}
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj == null || obj.getClass() != this.getClass()) {
return false;
}
Animal etc = (Animal) obj;
if (energy != etc.energy)
return false;
return true;
}
}
<file_sep>/homeWork_3/animals/Lion.java
package homeWork_3.animals;
import homeWork_3.food.SizeOfAviary;
public class Lion extends Carnivorous {
private final String name = "Lion";
private final SizeOfAviary sizeOfAviary = SizeOfAviary.MEDIUM;
public SizeOfAviary getSizeOfAviary() {
return sizeOfAviary;
}
@Override
public void run() {
System.out.println("Lion running!");
super.setEnergy(getEnergy() - 1);
}
@Override
public String voice() {
return "Rrrrraaaaaa!";
}
@Override
public String getNameOfAnimal() {
return name;
}
}
| 4d07b26a8e806082ea52a90f701ef8ee4823bc44 | [
"Java"
] | 12 | Java | LenarXLA/HabibullinL_Generics | 0fe9f0f20eca54ca06958ab9a1a91a4db6466ea0 | 6331bd3a3270f2913dc7577baad7e8c71ccb818a |
refs/heads/master | <repo_name>oguzhanornek/MovieBook<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/view/WebViewFragment.kt
package oguzhan.ornek.moviebook.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebViewClient
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.navArgs
import dagger.hilt.android.AndroidEntryPoint
import oguzhan.ornek.moviebook.R
import oguzhan.ornek.moviebook.databinding.FragmentWebViewBinding
@AndroidEntryPoint
class WebViewFragment : Fragment() {
private lateinit var binding: FragmentWebViewBinding
private val args: WebViewFragmentArgs by navArgs()
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_web_view, container, false)
return binding.root
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
webViewSetup()
}
private fun webViewSetup() {
binding.webView.apply {
webViewClient = WebViewClient()
loadUrl(args.link)
}
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/view/PopularListFragment.kt
package oguzhan.ornek.moviebook.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import dagger.hilt.android.AndroidEntryPoint
import oguzhan.ornek.moviebook.R
import oguzhan.ornek.moviebook.adapter.PopularMovieListAdapter
import oguzhan.ornek.moviebook.databinding.FragmentPopularListBinding
import oguzhan.ornek.moviebook.viewmodel.PopularViewModel
@AndroidEntryPoint
class PopularListFragment : Fragment() {
private lateinit var bindingPopular: FragmentPopularListBinding
private val popularViewModel: PopularViewModel by viewModels()
private val adapter = PopularMovieListAdapter()
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
bindingPopular =
DataBindingUtil.inflate(inflater, R.layout.fragment_popular_list, container, false)
return bindingPopular.root
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initObservers()
}
private fun initObservers() {
with(popularViewModel) {
getPopularMovie()
bindingPopular.apply {
lifecycleOwner = this@PopularListFragment
viewModel = popularViewModel
recylerViewPopular.adapter = adapter
}
popularMoviesLiveData.observe(viewLifecycleOwner, {
adapter.apply {
movieClickListener = {
val action =
PopularListFragmentDirections.actionPopularListFragmentToMovieDetailFragment(
it
)
findNavController().navigate(action)
}
setPopularMovie(it.toMutableList())
notifyDataSetChanged()
}
})
errorMessage.observe(viewLifecycleOwner, {
Toast.makeText(requireContext(), it, Toast.LENGTH_SHORT).show()
})
}
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/view/HomeFragment.kt
package oguzhan.ornek.moviebook.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.navigation.fragment.navArgs
import dagger.hilt.android.AndroidEntryPoint
import oguzhan.ornek.moviebook.R
import oguzhan.ornek.moviebook.adapter.UpcomingMovieListAdapter
import oguzhan.ornek.moviebook.databinding.FragmentHomeBinding
import oguzhan.ornek.moviebook.viewmodel.HomeViewModel
@AndroidEntryPoint
class HomeFragment : Fragment() {
private lateinit var binding: FragmentHomeBinding
private val homeViewModel: HomeViewModel by viewModels()
private val adapter = UpcomingMovieListAdapter()
private val args: MovieDetailFragmentArgs by navArgs()
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_home, container, false)
return binding.root
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initObservers()
}
private fun initObservers() {
with(homeViewModel) {
getUpcomingMovie()
binding.apply {
lifecycleOwner = this@HomeFragment
viewModel = homeViewModel
recylerViewHomeFragment.adapter = adapter
}
upComingMoviesLiveData.observe(viewLifecycleOwner, {
adapter.apply {
movieClickListener = {
val action =
HomeFragmentDirections.actionHomeFragmentToMovieDetailFragment(it)
findNavController().navigate(action)
}
setUpcomingMovies(it.toMutableList())
notifyDataSetChanged()
}
})
errorMessage.observe(viewLifecycleOwner, {
Toast.makeText(requireContext(), it, Toast.LENGTH_SHORT).show()
})
}
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/model/SimilarMovie.kt
package oguzhan.ornek.moviebook.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class SimilarMovie(
val id: Int,
val poster_path: String,
val title: String
) : Parcelable
<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/service/MovieService.kt
package oguzhan.ornek.moviebook.service
import oguzhan.ornek.moviebook.model.*
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
interface MovieService {
@GET("movie/upcoming")
suspend fun getUpcomingMovie(): Response
@GET("movie/popular")
suspend fun getPopularMovie(): PopularResponse
@GET("movie/{movie_id}")
suspend fun getMoviesDetail(@Path("movie_id") movie_id: Int): MovieDetail
@GET("movie/{movie_id}/similar")
suspend fun getSimilar(@Path("movie_id") movie_id: Int): SimilarResponse
@GET("search/movie")
suspend fun getSearchedMovie(@Query("query") query: String): SearchResponse
}
<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/viewmodel/MovieDetailViewModel.kt
package oguzhan.ornek.moviebook.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.ktx.analytics
import com.google.firebase.analytics.ktx.logEvent
import com.google.firebase.ktx.Firebase
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import oguzhan.ornek.moviebook.model.MovieDetail
import oguzhan.ornek.moviebook.model.SimilarMovie
import oguzhan.ornek.moviebook.repository.MovieRepository
import javax.inject.Inject
@HiltViewModel
class MovieDetailViewModel @Inject constructor(
private val movieRepository: MovieRepository
) : ViewModel() {
private var firebaseAnalytics: FirebaseAnalytics = Firebase.analytics
private val _movieDetailLiveData: MutableLiveData<MovieDetail> = MutableLiveData()
val movieDetailLiveData: LiveData<MovieDetail> = _movieDetailLiveData
private val _similarMoviesLiveData: MutableLiveData<List<SimilarMovie>> = MutableLiveData()
val similarMoviesLiveData: LiveData<List<SimilarMovie>> = _similarMoviesLiveData
private val _errorMessage: MutableLiveData<String> = MutableLiveData()
val errorMessage: LiveData<String> = _errorMessage
private val _isLoading: MutableLiveData<Boolean> = MutableLiveData(true)
val isLoading: LiveData<Boolean> = _isLoading
fun getMovieDetail(movieId: Int) = viewModelScope.launch {
try {
_movieDetailLiveData.value = movieRepository.getMovieDetail(movieId)
_similarMoviesLiveData.value = movieRepository.getSimilarMovie(movieId)
} catch (exception: Exception) {
_errorMessage.value = exception.localizedMessage
} finally {
_isLoading.value = false
}
}
fun logMovieDetail() = viewModelScope.launch {
firebaseAnalytics.logEvent("movie_detail") {
movieDetailLiveData.value?.let {
param("movie_name", it.title)
param("movie_description", it.overview)
param("movie_poster_path", it.poster_path)
}
}
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/view/MovieDetailFragment.kt
package oguzhan.ornek.moviebook.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.navigation.fragment.navArgs
import dagger.hilt.android.AndroidEntryPoint
import oguzhan.ornek.moviebook.R
import oguzhan.ornek.moviebook.adapter.SimilarMovieListAdapter
import oguzhan.ornek.moviebook.databinding.FragmentMovieDetailBinding
import oguzhan.ornek.moviebook.viewmodel.MovieDetailViewModel
@AndroidEntryPoint
class MovieDetailFragment : Fragment() {
private val movieDetailViewModel: MovieDetailViewModel by viewModels()
private lateinit var binding: FragmentMovieDetailBinding
private val args: MovieDetailFragmentArgs by navArgs()
private val adapter = SimilarMovieListAdapter()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
movieDetailViewModel.logMovieDetail()
}
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
binding =
DataBindingUtil.inflate(inflater, R.layout.fragment_movie_detail, container, false)
return binding.root
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initObservers()
}
private fun initObservers() {
with(movieDetailViewModel) {
getMovieDetail(args.movieId)
binding.apply {
lifecycleOwner = this@MovieDetailFragment
viewModel = movieDetailViewModel
similarRecylerView.adapter = adapter
movieDetailLiveData.observe(viewLifecycleOwner, { movieDetail ->
imdbLink.setOnClickListener {
val action =
MovieDetailFragmentDirections.actionMovieDetailFragmentToWebViewFragment(
"https://www.imdb.com/title/${movieDetail.imdb_id}/"
)
findNavController().navigate(action)
}
})
similarMoviesLiveData.observe(viewLifecycleOwner, {
adapter.apply {
setSimilarMovie(it.toMutableList())
notifyDataSetChanged()
}
})
errorMessage.observe(viewLifecycleOwner, {
Toast.makeText(requireContext(), it, Toast.LENGTH_SHORT).show()
})
}
}
}
}
<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/repository/MovieRepository.kt
package oguzhan.ornek.moviebook.repository
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import oguzhan.ornek.moviebook.model.*
import oguzhan.ornek.moviebook.service.MovieService
import javax.inject.Inject
class MovieRepository @Inject constructor(val movieService: MovieService) {
suspend fun getUpcomingMovie(): List<Upcoming> = withContext(Dispatchers.IO) {
return@withContext movieService.getUpcomingMovie().results
}
suspend fun getPopularMovie(): List<Popular> = withContext(Dispatchers.IO) {
return@withContext movieService.getPopularMovie().results
}
suspend fun getMovieDetail(movieId: Int): MovieDetail = withContext(Dispatchers.IO) {
return@withContext movieService.getMoviesDetail(movieId)
}
suspend fun getSimilarMovie(movieId: Int): List<SimilarMovie> = withContext(Dispatchers.IO) {
return@withContext movieService.getSimilar(movieId).results
}
suspend fun getSearchedMovie(query: String): List<SearchMovieData> =
withContext(Dispatchers.IO) {
return@withContext movieService.getSearchedMovie(query).results
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/util/BindingAdapter.kt
package oguzhan.ornek.moviebook.util
import android.view.View
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
import oguzhan.ornek.moviebook.util.Constants.IMAGE_URL
@BindingAdapter("bindUrlImage")
fun ImageView.bindUrlImage(url: String?) {
url?.let {
Glide.with(this.context).load(IMAGE_URL + it).into(this)
}
}
@BindingAdapter("visibleIf")
fun View.visibleIf(state: Boolean) {
visibility = if (state)
View.VISIBLE
else
View.GONE
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/adapter/SimilarMovieListAdapter.kt
package oguzhan.ornek.moviebook.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import oguzhan.ornek.moviebook.databinding.SimilarItemBinding
import oguzhan.ornek.moviebook.model.SimilarMovie
class SimilarMovieListAdapter :
RecyclerView.Adapter<SimilarMovieListAdapter.SimilarMovieViewHolder>() {
private val similarMovieList: MutableList<SimilarMovie> = mutableListOf()
fun setSimilarMovie(list: MutableList<SimilarMovie>) {
similarMovieList.clear()
similarMovieList.addAll(list)
}
class SimilarMovieViewHolder(val view: SimilarItemBinding) :
RecyclerView.ViewHolder(view.root) {
fun bind(itemSimilar: SimilarMovie) {
view.apply {
item = itemSimilar
}
}
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SimilarMovieViewHolder {
val inflater = LayoutInflater.from(parent.context)
val binding = SimilarItemBinding.inflate(inflater, parent, false)
return SimilarMovieViewHolder(binding)
}
override fun onBindViewHolder(holder: SimilarMovieViewHolder, position: Int) {
holder.bind(similarMovieList[position])
}
override fun getItemCount(): Int {
return similarMovieList.size
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/viewmodel/SearchViewModel.kt
package oguzhan.ornek.moviebook.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import oguzhan.ornek.moviebook.model.SearchMovieData
import oguzhan.ornek.moviebook.repository.MovieRepository
import javax.inject.Inject
@HiltViewModel
class SearchViewModel @Inject constructor(
private val movieRepository: MovieRepository
) : ViewModel() {
private val _searchMovieLiveData: MutableLiveData<List<SearchMovieData>> = MutableLiveData()
val searchMovieLiveData: LiveData<List<SearchMovieData>> = _searchMovieLiveData
private val _errorMessage: MutableLiveData<String> = MutableLiveData()
val errorMessage: LiveData<String> = _errorMessage
private val _isLoading: MutableLiveData<Boolean> = MutableLiveData(true)
val isLoading: LiveData<Boolean> = _isLoading
fun getSearchedMovie(query: String) = viewModelScope.launch {
try {
_searchMovieLiveData.value = movieRepository.getSearchedMovie(query)
} catch (exception: Exception) {
_errorMessage.value = exception.localizedMessage
} finally {
_isLoading.value = false
}
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/view/MainActivity.kt
package oguzhan.ornek.moviebook.view
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.navigation.Navigation
import androidx.navigation.ui.setupWithNavController
import dagger.hilt.android.AndroidEntryPoint
import oguzhan.ornek.moviebook.R
import oguzhan.ornek.moviebook.databinding.ActivityMainBinding
@AndroidEntryPoint
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = DataBindingUtil.setContentView(this, R.layout.activity_main)
setContentView(binding.root)
val navController = Navigation.findNavController(this, R.id.nav_fragment)
binding.bottomNavMenu.setupWithNavController(navController)
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/MovieApp.kt
package oguzhan.ornek.moviebook
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MovieApp : Application()<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/view/SearchFragment.kt
package oguzhan.ornek.moviebook.view
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import dagger.hilt.android.AndroidEntryPoint
import oguzhan.ornek.moviebook.R
import oguzhan.ornek.moviebook.adapter.SearchMovieAdapter
import oguzhan.ornek.moviebook.databinding.FragmentSearchBinding
import oguzhan.ornek.moviebook.viewmodel.SearchViewModel
@AndroidEntryPoint
class SearchFragment : Fragment() {
private lateinit var binding: FragmentSearchBinding
private val searchViewModel: SearchViewModel by viewModels()
private val adapter = SearchMovieAdapter()
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_search, container, false)
return binding.root
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initObservers()
}
private fun initObservers() {
with(searchViewModel) {
binding.apply {
lifecycleOwner = this@SearchFragment
viewModel = searchViewModel
recylerViewSearchFragment.adapter = adapter
searchEdt.addTextChangedListener(object : TextWatcher {
override fun beforeTextChanged(
s: CharSequence?,
start: Int,
count: Int,
after: Int
) {
}
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
}
override fun afterTextChanged(s: Editable?) {
if (s!=null){
if (!s.isEmpty()){
searchViewModel.getSearchedMovie(s.toString())
}
}
}
})
}
searchMovieLiveData.observe(viewLifecycleOwner, {
adapter.apply {
movieClickListener = {
val action =
SearchFragmentDirections.actionSearchFragmentToMovieDetailFragment(it)
findNavController().navigate(action)
}
setSearchMovie(it.toMutableList())
notifyDataSetChanged()
}
})
errorMessage.observe(viewLifecycleOwner, {
Toast.makeText(requireContext(), it, Toast.LENGTH_SHORT).show()
})
}
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/model/SimilarResponse.kt
package oguzhan.ornek.moviebook.model
data class SimilarResponse(
val page: String,
val results: List<SimilarMovie>,
val total_pages: Int,
val total_results: Int
)
<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/adapter/SearchMovieAdapter.kt
package oguzhan.ornek.moviebook.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import oguzhan.ornek.moviebook.databinding.SearchedMovieItemBinding
import oguzhan.ornek.moviebook.model.SearchMovieData
class SearchMovieAdapter : RecyclerView.Adapter<SearchMovieAdapter.SearchMovieViewHolder>() {
private val searchedMovieList: MutableList<SearchMovieData> = mutableListOf()
var movieClickListener: (Int) -> Unit = {}
fun setSearchMovie(list: MutableList<SearchMovieData>) {
searchedMovieList.clear()
searchedMovieList.addAll(list)
}
class SearchMovieViewHolder(val view: SearchedMovieItemBinding) :
RecyclerView.ViewHolder(view.root) {
fun bind(itemSearch: SearchMovieData, movieClickListener: (Int) -> Unit) {
view.apply {
item = itemSearch
}
itemView.setOnClickListener {
movieClickListener.invoke(itemSearch.id)
}
}
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SearchMovieViewHolder {
val inflater = LayoutInflater.from(parent.context)
val binding = SearchedMovieItemBinding.inflate(inflater, parent, false)
return SearchMovieViewHolder(binding)
}
override fun onBindViewHolder(holder: SearchMovieViewHolder, position: Int) {
holder.bind(searchedMovieList[position], movieClickListener)
}
override fun getItemCount(): Int {
return searchedMovieList.size
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/util/Constants.kt
package oguzhan.ornek.moviebook.util
object Constants {
const val BASE_URL = "https://api.themoviedb.org/3/"
const val API_KEY = "61489f71ddcdcc19049a7008dd72ed0c"
const val IMAGE_URL = "https://image.tmdb.org/t/p/w300/"
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/di/NetworkModule.kt
package oguzhan.ornek.moviebook.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import oguzhan.ornek.moviebook.service.MovieService
import oguzhan.ornek.moviebook.util.Constants.API_KEY
import oguzhan.ornek.moviebook.util.Constants.BASE_URL
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Converter
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import java.util.concurrent.TimeUnit
import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
object NetworkModule {
@Provides
@Singleton
fun provideLoggingInterceptor(): HttpLoggingInterceptor {
return HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.BODY
}
}
@Provides
@Singleton
fun provideOkHttpClient(
loggingInterceptor: HttpLoggingInterceptor
): OkHttpClient {
return OkHttpClient.Builder()
.addInterceptor(loggingInterceptor)
.addInterceptor { chain ->
val request = chain.request().newBuilder()
val originalHttpUrl = chain.request().url
val url = originalHttpUrl.newBuilder().addQueryParameter("api_key", API_KEY).build()
request.url(url)
return@addInterceptor chain.proceed(request.build())
}
.callTimeout(60, TimeUnit.SECONDS)
.connectTimeout(60, TimeUnit.SECONDS)
.readTimeout(60, TimeUnit.SECONDS)
.build()
}
@Provides
fun provideConverterFactory(): Converter.Factory {
return GsonConverterFactory.create()
}
@Provides
@Singleton
fun provideRetrofit(
okHttpClient: OkHttpClient,
converterFactory: Converter.Factory
): Retrofit {
return Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(converterFactory)
.client(okHttpClient)
.build()
}
@Provides
@Singleton
fun provideApiService(retrofit: Retrofit): MovieService {
return retrofit.create(MovieService::class.java)
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/adapter/UpcomingMovieListAdapter.kt
package oguzhan.ornek.moviebook.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import oguzhan.ornek.moviebook.databinding.MovieListRecyclerItemBinding
import oguzhan.ornek.moviebook.model.Upcoming
class UpcomingMovieListAdapter :
RecyclerView.Adapter<UpcomingMovieListAdapter.UpcomingMovieViewHolder>() {
private val movieList: MutableList<Upcoming> = mutableListOf()
var movieClickListener: (Int) -> Unit = {
}
fun setUpcomingMovies(list: MutableList<Upcoming>) {
movieList.clear()
movieList.addAll(list)
}
class UpcomingMovieViewHolder(val view: MovieListRecyclerItemBinding) :
RecyclerView.ViewHolder(view.root) {
fun bind(itemUp: Upcoming, movieClickListener: (Int) -> Unit) {
view.apply {
item = itemUp
}
itemView.setOnClickListener {
movieClickListener.invoke(itemUp.id)
}
}
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): UpcomingMovieViewHolder {
val inflater = LayoutInflater.from(parent.context)
val binding = MovieListRecyclerItemBinding.inflate(inflater, parent, false)
return UpcomingMovieViewHolder(binding)
}
override fun onBindViewHolder(holder: UpcomingMovieViewHolder, position: Int) {
holder.bind(movieList[position], movieClickListener)
}
override fun getItemCount(): Int {
return movieList.size
}
}<file_sep>/README.md
# MovieBook
Android App using [The Movie DB API](https://www.themoviedb.org)
## App screenshots

## Description
A simple app with some basic functions. It connects to the Movies DB API and displays popular movies and upcoming movies available on TMDb. You can also look at the details of these movies and, if desired, connect to IMDB pages with webView from within the application. You can search for the movie you want by name within the application.
## Tech Stack
MVVM
Hilt - Used to provide dependency injection
Retrofit 2 - OkHttp3 - request/response API
Glide - for image loading.
LiveData - use LiveData to see UI update with data changes.
Data Binding - bind UI components in layouts to data sources
Firebase analytics - To log movie details.
<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/adapter/PopularMovieListAdapter.kt
package oguzhan.ornek.moviebook.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import oguzhan.ornek.moviebook.databinding.PopularItemBinding
import oguzhan.ornek.moviebook.model.Popular
class PopularMovieListAdapter :
RecyclerView.Adapter<PopularMovieListAdapter.PopularMovieViewHolder>() {
private val popularNovieList: MutableList<Popular> = mutableListOf()
var movieClickListener: (Int) -> Unit = {}
fun setPopularMovie(list: MutableList<Popular>) {
popularNovieList.clear()
popularNovieList.addAll(list)
}
class PopularMovieViewHolder(val view: PopularItemBinding) :
RecyclerView.ViewHolder(view.root) {
fun bind(itemPop: Popular, movieClickListener: (Int) -> Unit) {
view.apply {
item = itemPop
}
itemView.setOnClickListener {
movieClickListener.invoke(itemPop.id)
}
}
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): PopularMovieViewHolder {
val inflater = LayoutInflater.from(parent.context)
val binding = PopularItemBinding.inflate(inflater, parent, false)
return PopularMovieViewHolder(binding)
}
override fun onBindViewHolder(holder: PopularMovieViewHolder, position: Int) {
holder.bind(popularNovieList[position], movieClickListener)
}
override fun getItemCount(): Int {
return popularNovieList.size
}
}<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/model/Response.kt
package oguzhan.ornek.moviebook.model
data class Response(
val dates: Dates,
val page: Int,
val results: List<Upcoming>,
val total_pages: Int,
val total_results: Int
)
data class Dates(
val maximum: String,
val minimum: String
)
<file_sep>/app/src/main/java/oguzhan/ornek/moviebook/di/RepositoryModule.kt
package oguzhan.ornek.moviebook.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import oguzhan.ornek.moviebook.repository.MovieRepository
import oguzhan.ornek.moviebook.service.MovieService
import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
object RepositoryModule {
@Provides
@Singleton
fun provideMovieRepository(movieService: MovieService) = MovieRepository(movieService)
} | ac5ebb015f3808a6adfc18abfa5384f37c3d051c | [
"Markdown",
"Kotlin"
] | 23 | Kotlin | oguzhanornek/MovieBook | 910d08a2473aff04107b37c11f9af9d3e7fa0ac1 | 46a347cc58d33bc2d9c1cf435af891824708e679 |
refs/heads/master | <file_sep>using Microsoft.VisualBasic.FileIO;
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Xml;
namespace AMSDataValidation
{
public enum BaseType
{
Aircraft,
Airline,
Airport,
AircraftType,
None
}
public class Rule
{
public BaseType type;
public string regex;
public string xpath;
public string message;
public bool valid = true;
public Rule(string[] entries)
{
try
{
switch (entries[0])
{
case "Aircraft":
type = BaseType.Aircraft;
break;
case "AircraftType":
type = BaseType.AircraftType;
break;
case "Airline":
type = BaseType.Airline;
break;
case "Airport":
type = BaseType.Airport;
break;
default:
type = BaseType.None;
break;
}
xpath = entries[1];
regex = entries[2];
message = entries[3];
}
catch (Exception)
{
valid = false;
}
}
}
class CheckAMSData
{
private readonly List<Rule> ruleList = new List<Rule>();
private string GETAIRPORTSTemplate = @"<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:ams6=""http://www.sita.aero/ams6-xml-api-webservice"">
<soapenv:Header/>
<soapenv:Body>
<ams6:GetAirports>
<ams6:sessionToken>@token</ams6:sessionToken>
</ams6:GetAirports>
</soapenv:Body>
</soapenv:Envelope>";
private string GETAIRLINESTemplate = @"<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:ams6=""http://www.sita.aero/ams6-xml-api-webservice"">
<soapenv:Header/>
<soapenv:Body>
<ams6:GetAirlines>
<ams6:sessionToken>@token</ams6:sessionToken>
</ams6:GetAirlines>
</soapenv:Body>
</soapenv:Envelope>";
private string GETAIRCRAFTSTemplate = @"<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:ams6=""http://www.sita.aero/ams6-xml-api-webservice"">
<soapenv:Header/>
<soapenv:Body>
<ams6:GetAircrafts>
<ams6:sessionToken>@token</ams6:sessionToken>
</ams6:GetAircrafts>
</soapenv:Body>
</soapenv:Envelope>";
private string GETAIRCRAFTTYPESSTemplate = @"<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:ams6=""http://www.sita.aero/ams6-xml-api-webservice"">
<soapenv:Header/>
<soapenv:Body>
<ams6:GetAircraftTypes>
<ams6:sessionToken>@token</ams6:sessionToken>
</ams6:GetAircraftTypes>
</soapenv:Body>
</soapenv:Envelope>";
private readonly string token;
private readonly string amshost;
private bool errorOnly = true;
private string delimiter;
private string rulesFile;
private bool hasAirline = false;
private bool hasAirport = false;
private bool hasAircraft = false;
private bool hasAircraftType = false;
public CheckAMSData(string token, string amshost, string err, string delimiter, string rules)
{
this.token = token;
this.amshost = amshost;
this.delimiter = delimiter;
this.rulesFile = rules;
try
{
errorOnly = bool.Parse(err);
}
catch (Exception)
{
errorOnly = true;
}
}
public void Start()
{
ReadRules();
if (this.ruleList.Count == 0)
{
return;
}
Task checkTask = Task.Run(() => Execute(token, amshost));
checkTask.Wait();
}
public async Task Execute(string token, string amshost)
{
Console.WriteLine("\n======> Checking AMS Access <==========");
bool amsOK = await CheckAMS();
if (!amsOK)
{
Console.WriteLine("======> Error: Cannot access AMS <==========");
Console.WriteLine("\nHit Any Key to Exit..");
Console.ReadKey();
return;
}
else
{
Console.WriteLine("======> AMS Access Confirmed <==========");
}
try
{
if (hasAirport)
{
Console.WriteLine("\n======> Checking Airports <==========");
XmlElement airports = await GetXML(GETAIRPORTSTemplate, token, "http://www.sita.aero/ams6-xml-api-webservice/IAMSIntegrationService/GetAirports", amshost);
Check(airports, "//ams:Airport", "./ams:AirportState/ams:Value[@propertyName='Name']", BaseType.Airport);
}
if (hasAirline)
{
Console.WriteLine("\n======> Checking Airlines <==========");
XmlElement airlines = await GetXML(GETAIRLINESTemplate, token, "http://www.sita.aero/ams6-xml-api-webservice/IAMSIntegrationService/GetAirlines", amshost);
Check(airlines, "//ams:Airline", "./ams:AirlineState/ams:Value[@propertyName='Name']", BaseType.Airline);
}
if (hasAircraft)
{
Console.WriteLine("\n======> Checking Aircraft <==========");
XmlElement aircrafts = await GetXML(GETAIRCRAFTSTemplate, token, "http://www.sita.aero/ams6-xml-api-webservice/IAMSIntegrationService/GetAircrafts", amshost);
Check(aircrafts, "//ams:Aircraft", "./ams:AircraftId/ams:Registration", BaseType.Aircraft);
}
if (hasAircraftType)
{
Console.WriteLine("\n======> Checking Aircraft Types <==========");
XmlElement actypes = await GetXML(GETAIRCRAFTTYPESSTemplate, token, "http://www.sita.aero/ams6-xml-api-webservice/IAMSIntegrationService/GetAircraftTypes", amshost);
Check(actypes, "//ams:AircraftType", "./ams:AircraftTypeState/ams:Value[@propertyName='Name']", BaseType.AircraftType);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine("\nHit Any Key to Exit..");
Console.ReadKey();
}
Console.WriteLine("\nHit Any Key to Exit..");
Console.ReadKey();
}
public void ReadRules()
{
try
{
using (TextFieldParser parser = new TextFieldParser(rulesFile))
{
parser.TextFieldType = FieldType.Delimited;
parser.SetDelimiters(delimiter);
Console.WriteLine("Validation Rules:");
while (!parser.EndOfData)
{
string[] fields = parser.ReadFields();
if (fields[0].StartsWith("#") || fields[0].StartsWith(" "))
{
continue;
}
if (fields[0] == "Airline")
{
hasAirline = true;
}
if (fields[0] == "Aircraft")
{
hasAircraft = true;
}
if (fields[0] == "AircraftType")
{
hasAircraftType = true;
}
if (fields[0] == "Airport")
{
hasAirport = true;
}
this.ruleList.Add(new Rule(fields));
Console.WriteLine($"Base Data Type = {fields[0]}, XPath = {fields[1]}, Regex = {fields[2]}");
}
}
}
catch (Exception ex)
{
Console.WriteLine($"Could not read rules file ({rulesFile}). {ex.Message}");
Console.WriteLine("\nHit Any Key to Exit..");
Console.ReadKey();
return;
}
}
public async Task<bool> CheckAMS()
{
string query = @"<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:ams6=""http://www.sita.aero/ams6-xml-api-webservice"">
<soapenv:Header/>
<soapenv:Body>
<ams6:GetAvailableHomeAirportsForLogin>
<!--Optional:-->
<ams6:token>@token</ams6:token>
</ams6:GetAvailableHomeAirportsForLogin>
</soapenv:Body>
</soapenv:Envelope>";
query = query.Replace("@token", token);
try
{
using (var client = new HttpClient())
{
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, amshost)
{
Content = new StringContent(query, Encoding.UTF8, "text/xml")
};
requestMessage.Headers.Add("SOAPAction", "http://www.sita.aero/ams6-xml-api-webservice/IAMSIntegrationService/GetAvailableHomeAirportsForLogin");
using (HttpResponseMessage response = await client.SendAsync(requestMessage))
{
if (response.StatusCode == HttpStatusCode.OK || response.StatusCode == HttpStatusCode.Accepted || response.StatusCode == HttpStatusCode.Created || response.StatusCode == HttpStatusCode.NoContent)
{
return true;
}
else
{
Console.WriteLine($"AMS Access Problem. Retrieval Error: {response.StatusCode}");
return false;
}
}
}
}
catch (Exception ex)
{
return false;
}
}
public async Task<XmlElement> GetXML(string queryTemplate, string token, string soapAction, string amshost)
{
string query = queryTemplate.Replace("@token", token);
try
{
using (var client = new HttpClient())
{
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, amshost)
{
Content = new StringContent(query, Encoding.UTF8, "text/xml")
};
requestMessage.Headers.Add("SOAPAction", soapAction);
using (HttpResponseMessage response = await client.SendAsync(requestMessage))
{
if (response.StatusCode == HttpStatusCode.OK || response.StatusCode == HttpStatusCode.Accepted || response.StatusCode == HttpStatusCode.Created || response.StatusCode == HttpStatusCode.NoContent)
{
XmlDocument doc = new XmlDocument();
doc.LoadXml(await response.Content.ReadAsStringAsync());
return doc.DocumentElement;
}
else
{
Console.WriteLine($"XML Retrieval Error: {response.StatusCode}");
return null;
}
}
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return null;
}
}
public void Check(XmlElement el, string baseElement, string identifier, BaseType type)
{
if (el == null)
{
Console.WriteLine($"No elements found");
Console.WriteLine("\nHit Any Key to Exit..");
Console.ReadKey();
return;
}
XmlNamespaceManager nsmgr = new XmlNamespaceManager(el.OwnerDocument.NameTable);
nsmgr.AddNamespace("ams", "http://www.sita.aero/ams6-xml-api-datatypes");
XmlNodeList baseDataElements = el.SelectNodes(baseElement, nsmgr);
bool errFound = false;
foreach (XmlNode baseDataElement in baseDataElements)
{
string id = baseDataElement.SelectSingleNode(identifier, nsmgr).InnerText;
List<string> errors = new List<string>();
foreach (Rule rule in ruleList)
{
if (rule.valid && rule.type == type)
{
try
{
string text;
try
{
text = baseDataElement.SelectSingleNode(rule.xpath, nsmgr).InnerText;
}
catch (Exception)
{
errors.Add($"{id}: Rule Violation ==> {rule.message}. Element Not Found");
errFound = true;
continue;
}
Regex rgx = new Regex(rule.regex, RegexOptions.IgnoreCase);
MatchCollection matches = rgx.Matches(text);
if (matches.Count == 0)
{
errors.Add($"{id}: Rule Violation ==> {rule.message}. Element value = {text}");
errFound = true;
}
}
catch (Exception)
{
errors.Add($" (Processing Error)..{rule.message}");
errFound = true;
}
}
}
if (errors.Count > 0)
{
// Console.WriteLine($"{id}");
foreach (string err in errors)
{
Console.WriteLine($"{err}");
}
}
else
{
if (!errorOnly)
{
Console.WriteLine($"{id}..OK");
}
}
}
if (!errFound)
{
Console.WriteLine("No Rule Violations Found");
}
}
}
}
<file_sep>using System;
using System.Collections.Specialized;
using System.Configuration;
namespace AMSDataValidation
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("========================================");
Console.WriteLine("=== AMS Base Data Validation Utility ===");
Console.WriteLine("========================================\n");
CheckAMSData check = null;
if (args.Length == 1)
{
if (args[0] == "/?")
{
ShowHelp();
}
}
if (args.Length == 3)
{
foreach (string arg in args)
{
Console.WriteLine(arg);
}
check = new CheckAMSData(args[0], args[1], args[2], ",", "Rules.config");
}
else
{
NameValueCollection appSettings = ConfigurationManager.AppSettings;
string token = string.IsNullOrEmpty(appSettings["token"]) ? null : appSettings["token"];
string uri = string.IsNullOrEmpty(appSettings["uri"]) ? null : appSettings["uri"];
string err = string.IsNullOrEmpty(appSettings["errorOnly"]) ? "true" : appSettings["errorOnly"];
string del = string.IsNullOrEmpty(appSettings["delimiter"]) ? "," : appSettings["delimiter"];
string rules = string.IsNullOrEmpty(appSettings["rules"]) ? "Rules.config" : appSettings["rules"];
if (token == null || uri == null)
{
Console.WriteLine($"Parameters to access AMS are not configured");
Console.WriteLine("\nHit Any Key to Exit..");
Console.ReadKey();
return;
}
Console.WriteLine($"URI of AMS to be checked: {uri}");
Console.WriteLine($"AMS Access Token: {token}");
Console.WriteLine($"Validation Rules File: {rules}\n");
check = new CheckAMSData(token, uri, err, del, rules);
}
check?.Start();
}
private static void ShowHelp()
{
throw new NotImplementedException();
}
}
}
| 64d12e705a025edf863693f26cb4cf9a144a3caa | [
"C#"
] | 2 | C# | daveontour/AMSDataValidation | fee284ba6e51e72b17276c4d8d71070cd50337b4 | 1be70a5e27fb68521cb9a4676b3ac5ef6952eab3 |
refs/heads/master | <file_sep>package com.samsung.rd.dogex.fragments;
import android.content.res.AssetManager;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ExpandableListView;
import com.samsung.rd.dogex.R;
import com.samsung.rd.dogex.adapters.ExpandableAdapter;
import com.samsung.rd.dogex.model.DogeDataProvider;
import com.samsung.rd.dogex.model.EmptyDogeDataProvider;
import com.samsung.rd.dogex.model.RandomDogeDataProvider;
import java.io.IOException;
import java.io.InputStream;
public class DogeListFragment extends Fragment {
private static final String TAG = DogeListFragment.class.getSimpleName();
private static final String JSON_DATA = "data.json";
private ExpandableListView dogeListView;
private ExpandableAdapter dogesAdapter;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.doge_list_fragment, container, false);
dogeListView = (ExpandableListView)rootView.findViewById(R.id.product_list);
dogesAdapter = new ExpandableAdapter(createDataProvider(), inflater, getActivity(), dogeListView);
dogeListView.setAdapter(dogesAdapter);
return rootView;
}
/**
* Factory method which attempts to create JSON data provider.
* If JSON data asset is not accessible, fallback to the empty data provider.
* @return best reachable data provider
*/
private DogeDataProvider createDataProvider() {
DogeDataProvider dataProvider;
AssetManager assetManager = getActivity().getAssets();
try {
InputStream jsonInputStream = assetManager.open(JSON_DATA);
dataProvider = new RandomDogeDataProvider(jsonInputStream);
} catch (IOException e) {
dataProvider = new EmptyDogeDataProvider();
e.printStackTrace();
}
return dataProvider;
}
}<file_sep># Dogex

**The ultimate source of all your doges right on your smartphone!**
- Choose your favourite doge category
- browse the limitless variant of doges
- and make them twist!
**This is just an example project preapared for the CaseWeek workshop purpose (FULL of CCode and performance issues!!!)**
After the CaseWeek event, we will put the notes regarding our workshop right in here :)
<file_sep>package com.samsung.rd.dogex.model.domain;
import java.util.ArrayList;
import java.util.List;
public class DogeGroup {
private final long id;
private final String name;
private final List<Doge> doges = new ArrayList<>();
public DogeGroup(long id, String name) {
this.id = id;
this.name = name;
}
public void addDoge(Doge doge) {
doges.add(doge);
}
public long getId() {
return id;
}
public String getName() {
return name;
}
public Doge getDoge(int index) {
return doges.get(index);
}
public int getDogesCount() {
return doges.size();
}
}
| 849c0e3c6b87b33b6407e6931bf62e80e4ddf295 | [
"Markdown",
"Java"
] | 3 | Java | festech/dogex | 8e8ba5a4cf95e844650d969d0cba2f57ecef8a99 | 819a15c9111f33d601662f8fdfce4120a927ba00 |
refs/heads/master | <repo_name>NiniY99/TP4_NiniYANG<file_sep>/src/application/Dessin.java
package application;
import java.util.ArrayList;
import javafx.scene.shape.Shape;
public class Dessin {
private ArrayList<Shape> list;
public Dessin() {
list = new ArrayList<Shape>();
}
public void addDessin(Shape shape) {
list.add(shape);
}
public void deleteDessin(Shape shape) {
list.remove(shape);
}
public ArrayList<Shape> getList(){
return list;
}
}
| a85e2ea4a0449b92f28b10ea62d0bca74a8dadff | [
"Java"
] | 1 | Java | NiniY99/TP4_NiniYANG | b8bf63ca3f34af696cbe128415469dbab717832b | 79ad19db7e7fe29c995d878977da5ee686e43da9 |
refs/heads/master | <file_sep>import React, {Component} from 'react';
import './App.css';
import SearchBar from './components/search_bar';
import {Grid, Segment, Container} from 'semantic-ui-react';
import Video from './components/video';
import YoutubeSearch from 'youtube-api-search';
import VideoList from './components/video_list';
import _ from 'lodash';
import {API_KEY} from './config.js';
class App extends Component {
constructor(props) {
super(props);
this.state = {videos: [], selectedVideo: null};
this.search({term: 'react js'});
this.search = this.search.bind(this);
this.setSelectedVideo = this.setSelectedVideo.bind(this);
}
search(term) {
YoutubeSearch({key: API_KEY, term: term}, (videos) => {
this.setState({ videos: videos, selectedVideo: videos[0] });
});
}
setSelectedVideo(video) {
this.setState({selectedVideo: video});
}
render() {
const throttledSearch = _.debounce(term => this.search(term), 380);
return (
<div className="App">
<Container>
<Grid stackable columns='equal'>
<Grid.Column width={11}>
<SearchBar handleSearch={throttledSearch}/>
<Video video={this.state.selectedVideo}/>
</Grid.Column>
<Grid.Column>
<Segment><VideoList onSelect={this.setSelectedVideo} videos={this.state.videos} /></Segment>
</Grid.Column>
</Grid>
</Container>
</div>
);
}
}
export default App;
<file_sep>import React from 'react';
import VideoListItem from './video_list_item';
import {Item} from 'semantic-ui-react';
const VideoList = ({videos, onSelect}) => {
const videoItems = videos.map(video => {
return <VideoListItem video={video} key={video.etag} onSelect={onSelect} />;
});
return (
<Item.Group divided>
{videoItems}
</Item.Group>
);
}
export default VideoList;<file_sep>## YouTube Viewer
This is an example React app to view YouTube videos.
If you are cloning this repository, you will need to add a 'config.js' file to src and export a constant named 'API_KEY' which should be assigned to your own YouTube API key.
<file_sep>import React from 'react';
import { Embed, Card, Dimmer, Loader } from 'semantic-ui-react';
const Video = ({video}) => {
if (!video) {
return (
<Dimmer active inverted>
<Loader size="medium" inverted>Loading</Loader>
</Dimmer>
);
}
return (
<Card fluid>
<Embed
id={video.id.videoId}
placeholder={video.snippet.thumbnails.medium.url}
source='youtube'
/>
<Card.Content>
<Card.Header>{video.snippet.title}</Card.Header>
<Card.Meta>
<span className='channel'>
{video.snippet.channelTitle}
</span>
</Card.Meta>
<Card.Description>
{video.snippet.description}
</Card.Description>
</Card.Content>
</Card>
);
};
export default Video; | 4d5120de73bcb082c84abba00f4116d3f35dd6bc | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | p12y/youtube_viewer | bd94cdf3880afb08d9fea77b9097fe2eed3b40ec | 42059e93e41784091eee2fd996ba9bef133e1209 |
refs/heads/master | <file_sep>'use strict';
import common = require('../../utility/index');
import services = require('../../components/services/index');
import {BaseController} from "../../utility/base-controller";
import {Utils} from "../../utility/index";
import {mock} from "./mock";
export var controllerName = 'quote.quoteController';
class QuoteController extends BaseController {
supportCities;
quote: any = {
vehicle: {},
selection: {},
options: {}
};
quote_id;
done;
result;
// result: any = mock;
static $inject = ['$scope', common.utilService.serviceName, services.quoteService.serviceName];
constructor(protected $scope, protected utilService: common.utilService.Service, private quoteService: services.quoteService.Service) {
super($scope, utilService);
this.prepareCities();
}
private prepareCities() {
this.utilService.showSpinner();
this.quoteService.getCities().then(data => {
var allCities: any = _.keyBy(data.data.data, 'name');
var supportCities = [];
supportCities = supportCities.concat(allCities['北京'].cities);
supportCities = supportCities.concat(allCities['上海'].cities);
supportCities = supportCities.concat(allCities['天津'].cities);
supportCities.push({ code: '440000', name: '广东省 --', province: true });
supportCities = supportCities.concat(allCities['广东'].cities);
this.supportCities = supportCities;
}).finally(() => this.utilService.hideSpinner());
}
private watchDates(...models) {
var owner = models.shift();
models.forEach((model) => {
this.$scope.$watch(model, (newValue, oldValue) => {
if (!newValue) {
delete this.quote[owner][model];
return;
}
this.quote[owner][model] = Utils.formatDate(newValue);
});
});
}
createQuote() {
this.done = true;
this.result = {};
this.utilService.showSpinner('提交中……');
this.quoteService.createQuote(this.getQuote(), { errorHandler: this.errorHandler.bind(this) }).then(data => {
this.quote_id = data.data.id;
this.quote.vehicle.vehicle_name = data.data.vehicle.brand_name + data.data.vehicle.family_name;
this.result = _.keyBy(data.data.result.quotes, 'supplier_name');
delete this.result['永安车险'];
this.done = false;
this.refreshResult();
}).finally(() => this.utilService.hideSpinner());
}
getMessage(val) {
if (!val.is_done) return '报价中……';
if (val.is_success) return '报价完成';
return val.original_message || val.message || '报价出错';
}
getBizInfo(val) {
if (!val) return;
if (!val.biz_info_summary) val.biz_info_summary = _.pick(val.biz_info, 'total', 'start_date', 'end_date');
return val.biz_info_summary;
}
getQuoteDetail(val, code) {
if (!val) return;
if (!val.biz_info) return;
if (_.isArray(val.biz_info.detail)) val.biz_info.detail = _.keyBy(val.biz_info.detail, 'code');
return val.biz_info.detail[code];
}
errorHandler(err) {
err = err.data;
var fn = this[`handle${err.code}`];
if (fn) return fn.bind(this)(err);
}
handle401008(err) {
this.utilService.error(`缺少参数: ${this.utilService.translate(err.argument_name)}`);
return true;
}
handle401010(err) {
this.utilService.error(`缺少参数: ${this.utilService.translate(err.argument_name)}`);
return true;
}
handle20004(err) {
this.utilService.error(`${err.message}: ${this.utilService.translate(err.selection_code)}`);
return true;
}
handle20006(err) {
this.utilService.error(`${err.message}: ${this.utilService.translate(err.selection_code)}`);
return true;
}
refreshResult() {
this.quoteService.getQuote(this.quote_id).then(data => {
if (this.done) return;
this.result = _.keyBy(data.data.data.quotes, 'supplier_name');
delete this.result['永安车险'];
this.done = data.data.data.is_done;
if (this.done) return;
setTimeout(() => this.refreshResult(), 2000);
});
}
getQuote() {
var payload: any = _.clone(this.quote);
var predicate = (v, k) => {
if (v === false) return true;
if (v === "") return true;
return false;
};
payload.selection = _.omitBy(this.quote.selection, predicate);
payload.options = _.omitBy(this.quote.options, predicate);
return payload;
}
cantQuote() {
var quote = this.getQuote();
return _.isEmpty(quote.vehicle) || _.isEmpty(quote.selection);
}
}
export class Controller extends QuoteController {}<file_sep>'use strict';
/**
* YobeeService
*/
var rest = require('restler-q');
var utils = require('../utils/utils.js');
var helpers = require('./FanhuaHelpers.js');
// const baseUrl = "http://cmchannel.uat.52zzb.com/chn/channel"; // 测试环境
const baseUrl = "http://cm.channel.52zzb.com/chn/channel"; // 生产环境
class FanhuaService {
getAreas(query, options) {
var fanhuaUrl = `${baseUrl}/getAreas`;
options = Object.assign(options || {}, { fanhuaUrl, payload: query });
return helpers.result(rest.postJson(fanhuaUrl, query, helpers.optionsBuilder(options).build()));
}
getProviders(query, options) {
var fanhuaUrl = `${baseUrl}/getProviders`;
options = Object.assign(options || {}, { fanhuaUrl, payload: query });
return helpers.result(rest.postJson(fanhuaUrl, query, helpers.optionsBuilder(options).build()));
}
getCarModelInfos(query, options) {
var fanhuaUrl = `${baseUrl}/getCarModelInfos`;
query = Object.assign({ carInfo: query }, { pageSize: 10, pageNum: 1 });
options = Object.assign(options || {}, { fanhuaUrl, payload: query });
// console.dir(query);
// console.dir(helpers.optionsBuilder(options).build(), { depth: null });
return helpers.result(rest.postJson(fanhuaUrl, query, helpers.optionsBuilder(options).build()));
}
createTaskA(payload, options) {
var fanhuaUrl = `${baseUrl}/createTaskA`;
payload = Object.assign(payload || {}, { channelUserId: helpers.channelId });
options = Object.assign(options || {}, { fanhuaUrl, payload });
return helpers.result(rest.postJson(fanhuaUrl, payload, helpers.optionsBuilder(options).build()), options);
}
createTaskB(payload, options) {
var fanhuaUrl = `${baseUrl}/createTaskB`;
payload = Object.assign(payload || {}, { channelUserId: helpers.channelId });
if (payload.carOwner) payload.carOwner.idcardType = payload.carOwner.idcardType || '0';
// payload.remark = '测试';
options = Object.assign(options || {}, { fanhuaUrl, payload });
console.dir(payload);
console.dir(helpers.optionsBuilder(options).build(), { depth: null });
return helpers.result(rest.postJson(fanhuaUrl, payload, helpers.optionsBuilder(options).build()), options);
}
updateQuoteInfo(payload, options) {
var fanhuaUrl = `${baseUrl}/updateQuoteInfo`;
// payload = Object.assign(payload || {}, { channelUserId: helpers.channelId });
if (payload.carOwner) payload.carOwner.idcardType = payload.carOwner.idcardType || '0';
// payload.remark = '测试';
options = Object.assign(options || {}, { fanhuaUrl, payload });
console.dir(payload);
console.dir(helpers.optionsBuilder(options).build(), { depth: null });
return helpers.result(rest.postJson(fanhuaUrl, payload, helpers.optionsBuilder(options).build()), options);
}
submitQuote(payload, options) {
var fanhuaUrl = `${baseUrl}/submitQuote`;
options = Object.assign(options || {}, { fanhuaUrl, payload });
return helpers.result(rest.postJson(fanhuaUrl, payload, helpers.optionsBuilder(options).build()), options);
}
submitInsure(payload, options) {
var fanhuaUrl = `${baseUrl}/submitInsure`;
options = Object.assign(options || {}, { fanhuaUrl, payload });
return helpers.result(rest.postJson(fanhuaUrl, payload, helpers.optionsBuilder(options).build()), options);
}
reimbursement(payload, options) {
var fanhuaUrl = `${baseUrl}/reimbursement`;
options = Object.assign(options || {}, { fanhuaUrl, payload });
return helpers.result(rest.postJson(fanhuaUrl, payload, helpers.optionsBuilder(options).build()), options);
}
initQuote(quote) {
return FanhuaResult.destroy({
carLicenseNo: quote.carLicenseNo
}).then(resp => {
return FanhuaResult.create(quote);
});
}
saveResult(newResult) {
return FanhuaResult.findOne({
taskId: newResult.taskId
}).then(result => {
if (!result.data) result.data = {};
result.data[newResult.prvId] = newResult;
return result.save();
})
}
updateResult(newResult) {
return FanhuaResult.findOne({
taskId: newResult.taskId
}).then(result => {
if (!result.data) result.data = {};
var oldResult = result.data[newResult.prvId];
newResult = _.merge(oldResult || {}, newResult);
result.data[newResult.prvId] = newResult;
return result.save();
})
}
getQuote(taskId) {
return FanhuaResult.findOne({
taskId
});
}
deleteQuote(taskId) {
return FanhuaResult.destroy({
taskId
});
}
getQuotes(userId) {
return FanhuaResult.find({
userId
});
}
uploadImage(payload, options) {
var fanhuaUrl = `${baseUrl}/uploadImage`;
options = Object.assign(options || {}, { fanhuaUrl, payload });
return helpers.result(rest.postJson(fanhuaUrl, payload, helpers.optionsBuilder(options).build()), options);
}
pay(payload, options) {
var fanhuaUrl = `${baseUrl}/pay`;
options = Object.assign(options || {}, { fanhuaUrl, payload });
return helpers.result(rest.postJson(fanhuaUrl, payload, helpers.optionsBuilder(options).build()), options);
}
}
module.exports = new FanhuaService();<file_sep>'use strict';
var helpers = require('./BihuHelpers.js');
/**
* BihuService
*/
var rest = require('restler-q');
const baseUrl = "http://iu.91bihu.com/api";
class BihuService {
getReInfo(query) {
query = Object.assign(query || {}, { IsPublic: 0, Group: 1 });
helpers.genSecCode(query);
return rest.get(`${baseUrl}/CarInsurance/getreinfo`, { query });
}
getCreditInfo(LicenseNo) {
var query = { LicenseNo };
helpers.genSecCode(query);
return rest.get(`${baseUrl}/claim/GetCreditInfo`, { query });
}
createQuote(payload, options) {
payload.SubmitGroup = payload.QuoteGroup;
payload.IsNewCar = payload.IsLastYearNewCar;
helpers.genSecCode(payload);
// sails.log.debug(querystring.stringify(payload));
return rest.get(`${baseUrl}/CarInsurance/PostPrecisePrice`, { query: payload });
}
getQuote(LicenseNo, QuoteGroup) {
var query = { LicenseNo, QuoteGroup };
helpers.genSecCode(query);
// sails.log.debug(querystring.stringify(query));
return rest.get(`${baseUrl}/CarInsurance/GetPrecisePrice`, { query });
}
}
module.exports = new BihuService();<file_sep>'use strict';
import common = require('../../utility/index');
import config = require('./../../config/config');
abstract class BaseService {
private config = config.Config;
static $inject = ['$q', '$http', common.utilService.serviceName];
constructor(protected $q: angular.IQService, protected $http: angular.IHttpService, protected utilService) {}
_getOptions(opts?) {
var headers = this._getHeaders();
if (this.utilService.getToken()) headers['Authorization'] = `Bearer ${this.utilService.getToken()}`;
return angular.extend({ headers: headers }, opts || {});
}
_getHeaders(headers = {}) {
var defaults = {
'x-from': 'html5'
};
return angular.extend(defaults, headers);
}
_get(url, opts?): angular.IHttpPromise<any> {
return this.$http.get(this._processUrl(url), this._getOptions(opts));
}
_post(url, data, opts?): angular.IHttpPromise<any> {
return this.$http.post(this._processUrl(url), data, this._getOptions(opts));
}
_put(url, data, opts?): angular.IHttpPromise<any> {
return this.$http.put(this._processUrl(url), data, this._getOptions(opts));
}
_delete(url, opts?): angular.IHttpPromise<any> {
return this.$http.delete(this._processUrl(url), this._getOptions(opts));
}
private _processUrl(url) {
return `${this.config.baseUrl}/${url}`;
}
}
export class Service extends BaseService {}<file_sep>'use strict';
import common = require('../../utility/index');
import services = require('../../components/services/index');
import {BaseController} from "../../utility/base-controller";
import {Utils} from "../../utility/index";
import {mock} from "./mock";
export var controllerName = 'quote.bihuController';
class BihuController extends BaseController {
supportCities;
query: any = {
IsLastYearNewCar: '1',
ForceTax: '1'
};
quote = {};
done;
info = {};
credit = {};
result = {};
static $inject = ['$scope', common.utilService.serviceName, services.bihuService.serviceName];
constructor(protected $scope, protected utilService: common.utilService.Service, private bihuService: services.bihuService.Service) {
super($scope, utilService);
this.prepareCities();
this['emptyQuote'] = angular.copy(this.quote);
}
private prepareCities() {
this.utilService.showSpinner();
this.bihuService.getCities().then(resp => this.supportCities = resp.data).finally(() => this.utilService.hideSpinner());
}
reinsure() {
this.utilService.showSpinner();
this.bihuService.reinsure({ CityCode: this.query.CityCode, LicenseNo: this.query.LicenseNo }).then(resp => {
if (this.errorHandler(resp.data)) return;
angular.merge(this.query, resp.data.UserInfo);
this.query.CarOwnersName = this.query.LicenseOwner;
this.query.IdCard = this.query.InsuredIdCard;
this.quote = _.mapValues(resp.data.SaveQuote, (v, k, o) => {
if (_.includes(['SanZhe', 'SiJi', 'ChengKe', 'BoLi', 'HuaHen'], k)) return "" + v;
return v;
});
this.info = resp.data;
this.result = {};
this.credit = {};
if (resp.data.SaveQuote.Source != -1) {
this.result[resp.data.SaveQuote.Source] = _.mapValues(resp.data.SaveQuote, (v, k, o) => {
if (k == 'Source') return v;
return { BaoE: v };
});
}
// if (resp.data.SaveQuote) this.result[resp.data.SaveQuote.Source] = resp.data.SaveQuote;
}).finally(() => this.utilService.hideSpinner());
}
createQuote() {
this.done = true;
this.result = {};
this.credit = {};
this.utilService.showSpinner('提交中……');
this.bihuService.createQuote(this.getQuote()).then(resp => {
if (this.errorHandler(resp.data)) return;
this.done = false;
this.refreshResult();
}).finally(() => this.utilService.hideSpinner());
}
refreshResult() {
// if (this.done) return;
this.utilService.showSpinner('取回结果中……');
this.bihuService.getQuote(this.query.LicenseNo).then(resp => {
if (this.errorHandler(resp.data.Result)) return;
// this.done = (_.countBy(resp.data, 'BusinessStatus')[1] == 3);
// if (this.done) {
this.result = _.keyBy(_.map(resp.data.Result, (data: any) => data.Item), 'Source');
this.credit = resp.data.Credit;
// return;
// }
// setTimeout(() => this.refreshResult(), 2000);
}).finally(() => this.utilService.hideSpinner());
}
getQuote() {
angular.merge(this.quote, this.query);
return this.quote;
}
errorHandler(err) {
if (!angular.isObject(err)) {
this.utilService.error(err);
return true;
}
if (err.BusinessStatus < 0) {
this.utilService.error(err.StatusMessage);
return true;
}
}
cantQuote() {
return _.isEmpty(this.quote);
}
}
export class Controller extends BihuController {}<file_sep>'use strict';
import bihuCompanyFilter = require('./bihu-company-filter');
export var load = (app: angular.IModule) => {
app.filter(bihuCompanyFilter.filterName, bihuCompanyFilter.Filter.filter);
};<file_sep>'use strict';
import baseService = require('./base-service');
import common = require('../../utility/index');
// import models = require('../models/index');
export var serviceName = 'bihuService';
class BihuService extends baseService.Service {
static $inject = ['$q', '$http', common.utilService.serviceName];
constructor(protected $q: angular.IQService, protected $http: angular.IHttpService, protected utilService) {
super($q, $http, utilService);
}
getCities() {
return this._get(`api/bihu/cities`);
}
reinsure(query) {
return this._post(`api/bihu/reinsure`, query);
}
createQuote(quote) {
return this._post(`api/bihu/quote`, quote);
}
getQuote(LicenseNo) {
return this._get(`api/bihu/quotes/${LicenseNo}`);
}
}
export class Service extends BihuService {}<file_sep>'use strict';
/**
* YobeeController
*
* @description :: Server-side logic for managing Yobees
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
var co = require('co');
var yobeeService = require('../services/YobeeService.js');
module.exports = {
cities(req, resp) {
co(function* () {
resp.json(yield yobeeService.getCities());
}).catch(err => resp.json(err));
},
quote(req, resp) {
co(function* () {
// var vehiclePayload = {
// license_no: '京Q9MB02',
// license_owner: '王吉红',
// city_code: '110100',
// vehicle_name: '长安',
// frame_no: 'LS5A3ADE1CB055358',
// engine_no: 'C4BD10969',
// enroll_date: '2012-04-13',
// seat_count: 5
// };
var vehiclePayload = req.body.vehicle;
try {
// 查询车辆
var vehicle = yield yobeeService.getVehicle(_.pick(vehiclePayload, [ 'city_code', 'license_no', 'license_owner' ]));
} catch (error) {
// 车辆不存在,创建车辆
vehicle = yield yobeeService.createVehicle(vehiclePayload);
}
vehicle = vehicle.data;
var quotePayload = {
vehicle_id: vehicle.vehicle_id,
city_code: vehiclePayload.city_code,
selection: req.body.selection,
// selection: {
// force: 1, // 交强险
// // tax: 1, // 车船税
// damage: 1, // 机动车损失险
// // deduction: 300, // 车损绝对免赔额
// third: 1000000, // 第三者责任险
// // driver: 10000, // 司机险
// // passenger: 10000, // 乘客险
// // pilfer: 1, // 盗抢险
// // glass: 2, // 玻璃险
// // scratch: 5000, // 划痕险
// // combust: 1, // 自燃险
// // water: 1, // 涉水险
// // third_party: 1, // 机动车损失险
// // equipment: 1, // 新增设备损失险
// // repair: 200, // 修理期间费用补偿
// // spirit: 10000, // 精神损害抚慰金
// // cargo: 1, // 车上货物责任险
// exempt_damage: 1, // 机动车损失险(不计免赔)
// exempt_third: 1, // 第三者责任险(不计免赔)
// // exempt_driver: 1, // 司机险(不计免赔)
// // exempt_passenger: 1, // 乘客险(不计免赔)
// // exempt_pilfer: 1, // 盗抢险(不计免赔)
// // exempt_combust: 1, // 自燃险(不计免赔)
// // exempt_scratch: 1, // 划痕险(不计免赔)
// // exempt_water: 1, // 涉水险(不计免赔)
// // exempt_equipment: 1, // 新增设备损失险(不计免赔)
// // exempt_spirit: 1 // 精神损害抚慰金(不计免赔)
// },
// biz_start_date: '2016-10-25',
// force_start_date: '2016-10-25',
// equipment_list: [
// {
// name: '设备名称',
// quantity: 1,
// price: 110588,
// purchase_date: '2015-10-12'
// }
// ]
};
quotePayload = _.merge(quotePayload, req.body.options);
var quote = yield yobeeService.createQuote(quotePayload);
quote = quote.data;
var result = yield yobeeService.getQuote(quote.request_id);
result = result.data;
resp.json({ id: quote.request_id, result, vehicle });
}).catch(err => {
resp.json(400, err);
});
},
getQuote(req, resp) {
co(function* () {
resp.json(yield yobeeService.getQuote(req.params.id));
}).catch(err => resp.json(400, err));
}
};
<file_sep>'use strict';
export var filterName = 'bihuCompany';
const Companies = {
1: '太平洋',
2: '平安',
4: '人保'
};
// 00000000001 太平洋 1
// 00000000010 平安 2
// 00000000100 人保 4
// 00000001000 国寿财 8
// 00000010000 中华联合 16
// 00000100000 大地 32
// 00001000000 阳光 64
// 00010000000 太平保险 128
// 00100000000 华安 256
// 01000000000 天安 512
// 10000000000 英大 1024
class BihuCompanyFilter {
static filter() {
return (input) => {
return Companies[input];
};
}
}
export class Filter extends BihuCompanyFilter {}<file_sep>'use strict';
import {Utils} from "../../../utility/index";
import controller = require('./jsontable-controller');
export var directiveName = 'lcbJsonTable';
class JsonTableDirective implements angular.IDirective {
restrict = 'E';
scope = {};
templateUrl = 'components/directives/jsontable/jsontable.html';
replace = true;
controller = controller.Controller;
controllerAs = 'ctrl';
bindToController = {
json: '='
};
// <modelValue> → ngModelCtrl.$formatters(modelValue) → $viewValue
// ↓
// ↑ $render()
// ↓
// ↑ UI changed
// ↓
// ngModelCtrl.$parsers(newViewValue) ← $setViewValue(newViewValue)
// link = (scope: angular.IScope, el: angular.IAugmentedJQuery, attrs: any, ctrls) => {}
}
export var Directive = [ '$injector', ($injector: angular.auto.IInjectorService) => {
return $injector.instantiate(JsonTableDirective);
}];<file_sep>'use strict';
// import common = require('../../../utility/index');
// import services = require('../../../components/services/index');
// import {Utils} from "../../../utility/index";
import quoteController = require('./quote-controller');
import bihuController = require('./bihu-controller');
import fanhuaController = require('./fanhua-controller');
export var load = (app: angular.IModule) => {
app.controller(quoteController.controllerName, quoteController.Controller)
.controller(bihuController.controllerName, bihuController.Controller)
.controller(fanhuaController.controllerName, fanhuaController.Controller);
};
export var states = ($stateProvider: angular.ui.IStateProvider) => {
$stateProvider
.state('quote', {
abstract: true,
url: '/quote',
template: '<div ui-view></div>'
})
.state('quote.yibao', {
url: '/yibao',
templateUrl: 'features/quote/quote.html',
controller: quoteController.controllerName,
controllerAs: 'ctrl'
})
.state('quote.bihu', {
url: '/bihu',
templateUrl: 'features/quote/bihu.html',
controller: bihuController.controllerName,
controllerAs: 'ctrl'
})
.state('quote.fanhua', {
url: '/fanhua',
templateUrl: 'features/quote/fanhua.html',
controller: fanhuaController.controllerName,
controllerAs: 'ctrl'
})
.state('quote.fanhua.order', {
url: '/order',
views: {
"@": {
templateUrl: 'features/quote/fanhua-order.html'
}
}
});
};
<file_sep>'use strict';
var co = require('co');
var sleep = require('co-sleep');
var _ = require('lodash');
var bihuService = require('./api/services/BihuService.js');
// Ensure we're in the project directory, so relative paths work as expected
// no matter where we actually lift from.
process.chdir(__dirname);
co(function* () {
var payload = {
CityCode: '1',
LicenseNo: '京G11775',
CarOwnersName: '潘效善',
IdCard: '410221196912261358',
MoldName: '上海大众桑塔纳',
CarVin: 'LSVACFB00YB141613',
EngineNo: 'AJR0236565',
RegisterDate: '2001-02-23',
InsuredMobile: '13241956296',
// QuoteGroup: 16,
BoLi: 0,
BuJiMianCheSun: 0,
BuJiMianDaoQiang: 0,
BuJiMianSanZhe: 0,
BuJiMianChengKe: 0,
BuJiMianSiJi: 0,
BuJiMianHuaHen: 0,
BuJiMianSheShui: 0,
BuJiMianZiRan: 0,
BuJiMianJingShenSunShi: 0,
SheShui: 1,
HuaHen: 0,
SiJi: 0,
ChengKe: 0,
CheSun: 1,
DaoQiang: 0,
SanZhe: 0,
ZiRan: 0,
HcJingShenSunShi: 0,
HcSanFangTeYue: 0
};
var res = [];
for (var i = 0, sources = [1 + 2 + 4], l = sources.length; i < l; i++) {
var source = sources[i];
payload.QuoteGroup = source;
var r = yield bihuService.createQuote(_.clone(payload));
if (r.BusinessStatus < 0) throw r.StatusMessage;
res.push(r);
yield sleep(3000); // 睡3秒
}
console.log(res);
}).catch(err => {
console.error(err);
});
<file_sep>'use strict';
export abstract class Config {
static baseUrl = `//${location.host}`;
static getStoragePrefix = () => `${location.hostname}-`;
}
<file_sep>集成一些第三方的报价服务做出的车险报价系统,供运营人员使用
主要使用的技术有 bootstrap + angular,Typescript,SCSS,并用到了 browserify 进行包管理和打包生成。
另外,后端使用 sails.js/node.js 进行第三方 API 调用和集成。
这个项目是对 node.js 以及 sails.js 框架的学习和使用
<file_sep>'use strict';
export import utilService = require('./util-service');
export import storeService = require('./store-service');
import baseController = require('./base-controller');
import baseDialogController = require('./base-dialog-controller');
import {Config} from "../config/config";
export abstract class Utils {
static parseBool(val, defVal = false) {
if (angular.isUndefined(val)) return defVal;
if (val == 'true') return true;
return false;
}
static toImageData(image) {
if (!image.base64) return image;
return {
data: image.base64,
filename: image.filename
}
}
static isEmpty(val) {
return _.isEmpty(val);
}
static parseInt(val) {
return parseInt(val);
}
parseInt(val) {
return Utils.parseInt(val);
}
static formatDate(dt) {
if (!dt) return;
return moment(dt).format('YYYY-MM-DD');
}
static formatTime(dt) {
return moment(dt).format('HH:mm:ss');
}
static sortObjectByKey(obj) {
return _.zipObject(_.sortBy(_.toPairs(obj), o => o[0]));
}
static applyMixins(derivedCtor: any, baseCtors: any[]) {
baseCtors.forEach(baseCtor => {
Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
derivedCtor.prototype[name] = baseCtor.prototype[name];
});
});
}
/**
* Convert number of seconds into time object
*
* @param integer secs Number of seconds to convert
* @return object
*/
static secondsToTime(secs) {
var hours = Math.floor(secs / (60 * 60));
var divisor_for_minutes = secs % (60 * 60);
var minutes = Math.floor(divisor_for_minutes / 60);
var divisor_for_seconds = divisor_for_minutes % 60;
var seconds = Math.ceil(divisor_for_seconds);
return {
"h": hours,
"m": minutes,
"s": seconds
};
}
static mockReturn(ret?) {
var data = {};
data['data'] = {};
data['data']['data'] = ret;
return data;
}
static formatDuration(duration, opt = { h: true, m: true, s: true }) {
var formatted = '';
duration = Utils.secondsToTime(duration);
if (opt.h && duration.h > 0) formatted += `${duration.h}小时`;
if (opt.m && duration.m > 0) formatted += `${duration.m}分`;
if (opt.s && duration.s > 0) formatted += `${duration.s}秒`;
return formatted;
}
/**
* Convert base64 string to array buffer.
*
* @param {string} base64
* @returns {object}
*/
static base64ToArrayBuffer(base64) {
var binaryString = window.atob(base64);
var len = binaryString.length;
var bytes = new Uint8Array( len );
for (var i = 0; i < len; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
return bytes.buffer;
}
/**
* Reorient specified element.
*
* @param {number} orientation
* @param {object} element
* @returns {undefined}
*/
static reOrient(orientation, element) {
switch (orientation) {
case 1:
// No action needed
break;
case 2:
element.css({
'-moz-transform': 'scaleX(-1)',
'-o-transform': 'scaleX(-1)',
'-webkit-transform': 'scaleX(-1)',
'transform': 'scaleX(-1)',
'filter': 'FlipH',
'-ms-filter': "FlipH"
});
break;
case 3:
element.css({
'transform': 'rotate(180deg)'
});
break;
case 4:
element.css({
'-moz-transform': 'scaleX(-1)',
'-o-transform': 'scaleX(-1)',
'-webkit-transform': 'scaleX(-1)',
'transform': 'scaleX(-1) rotate(180deg)',
'filter': 'FlipH',
'-ms-filter': "FlipH"
});
break;
case 5:
element.css({
'-moz-transform': 'scaleX(-1)',
'-o-transform': 'scaleX(-1)',
'-webkit-transform': 'scaleX(-1)',
'transform': 'scaleX(-1) rotate(90deg)',
'filter': 'FlipH',
'-ms-filter': "FlipH"
});
break;
case 6:
element.css({
'transform': 'rotate(90deg)'
});
break;
case 7:
element.css({
'-moz-transform': 'scaleX(-1)',
'-o-transform': 'scaleX(-1)',
'-webkit-transform': 'scaleX(-1)',
'transform': 'scaleX(-1) rotate(-90deg)',
'filter': 'FlipH',
'-ms-filter': "FlipH"
});
break;
case 8:
element.css({
'transform': 'rotate(-90deg)'
});
break;
}
}
}
export var load = (app: angular.IModule) => {
app.controller(baseDialogController.controllerName, baseDialogController.Controller)
.service(utilService.serviceName, utilService.Service)
.service(storeService.serviceName, storeService.Service);
// .run(['$rootScope', 'utilService', ($rootScope, utilService) => {
// $rootScope.parseBool = Utils.parseBool;
// $rootScope.lcbUtils = Utils;
// $rootScope.isEmpty = _.isEmpty;
// }]);
app.config(['blockUIConfig', '$localStorageProvider', (blockUIConfig, $localStorageProvider) => {
$localStorageProvider.setKeyPrefix(Config.getStoragePrefix());
blockUIConfig.autoBlock = false;
// angular.extend(CacheFactoryProvider.defaults, {
// maxAge: 15 * 60 * 1000, // 15 分钟过期
// deleteOnExpire: 'passive'
// });
}]);
};<file_sep>'use strict';
export var mock = {
"UserInfo": {
"CarUsedType": 1,
"LicenseNo": "京FF1235",
"LicenseOwner": "田立新",
"InsuredName": "田立新",
"PostedName": "田立新",
"IdType": 1,
"CredentislasNum": "110102196601301919",
"CityCode": 1,
"EngineNo": "E4LB05784",
"ModleName": "长安SC7162LY轿车",
"CarVin": "LS5A3ADE9EB027598",
"RegisterDate": "2014-07-15",
"ForceExpireDate": "2017-07-04",
"BusinessExpireDate": "2017-07-04",
"NextForceStartDate": "2017-07-05",
"NextBusinessStartDate": "2017-07-05",
"PurchasePrice": 88800,
"SeatCount": 5,
"FuelType": 1,
"ProofType": 1,
"LicenseColor": 1,
"ClauseType": 2,
"RunRegion": 1,
"InsuredIdCard": "110102196601301919",
"InsuredIdType": 1,
"InsuredMobile": "138****7425",
"HolderIdCard": "110102196601301919",
"HolderIdType": 1,
"HolderMobile": "138****7425",
"RateFactor1": 0.85,
"RateFactor2": 0.90,
"RateFactor3": 0.90,
"RateFactor4": 1.00,
"IsPublic": 2
},
"SaveQuote": {
"Source": 4,
"CheSun": 88800,
"SanZhe": 150000,
"DaoQiang": 76545.6,
"SiJi": 10000,
"ChengKe": 10000,
"BoLi": 1,
"HuaHen": 0,
"SheShui": 1,
"ZiRan": 0,
"BuJiMianCheSun": 1,
"BuJiMianSanZhe": 1,
"BuJiMianDaoQiang": 1,
"BuJiMianChengKe": 1,
"BuJiMianSiJi": 1,
"BuJiMianHuaHen": 0,
"BuJiMianSheShui": 1,
"BuJiMianZiRan": 0,
"BuJiMianJingShenSunShi": 0,
"HcSanFangTeYue": 0,
"HcJingShenSunShi": 0
},
"CustKey": "123456789654",
"BusinessStatus": 1,
"StatusMessage": "续保成功"
};<file_sep>'use strict';
// import common = require('../../../utility/index');
import services = require('../../components/services/index');
// import {Utils} from "../../../utility/index";
import tripController = require('./trip-controller');
export var load = (app: angular.IModule) => {
app.controller(tripController.controllerName, tripController.Controller);
};
export var states = ($stateProvider: angular.ui.IStateProvider) => {
$stateProvider
.state('trip', {
url: '/trip',
templateUrl: 'features/trip/trip.html',
controller: tripController.Controller,
controllerAs: 'ctrl',
resolve: {
partners: [services.tripService.serviceName, (tripService: services.tripService.Service) => tripService.getPartners()]
}
});
};
<file_sep>'use strict';
export import events = require('./events');
<file_sep>'use strict';
var querystring = require('querystring');
var cryptoJS = require('crypto-js');
// const Agent = 102;
// const CustKey = 123456789654;
// const SecretKey = '';
const Agent = 13022;
const CustKey = 123456789654;
const SecretKey = '250202b14s1';
module.exports = {
genSecCode(query) {
if (query.LicenseNo) query.LicenseNo = query.LicenseNo.toUpperCase();
query.Agent = Agent;
query.CustKey = CustKey;
query.SecCode = cryptoJS.MD5(querystring.stringify(query, null, null, { encodeURIComponent: str => str }) + SecretKey).toString();
return query;
}
};<file_sep>'use strict';
import common = require('../../../utility/index');
import services = require('../../../components/services/index');
import enums = require('../../../enums/index');
import {Utils} from "../../../utility/index";
import {BaseController} from "../../../utility/base-controller";
class JsonTableController extends BaseController {
json;
displayJson;
ignores = [ 'code', 'insured', 'original', 'biz_original', 'force_original', 'total_cent', 'riskCode', 'riskName' ];
static $inject = ['$scope', common.utilService.serviceName];
constructor(protected $scope: angular.IScope, protected utilService: common.utilService.Service) {
super($scope, utilService);
this.$scope.$watch('ctrl.json', (newValue, oldValue) => {
if (!newValue) return;
this.json = newValue;
this.transferJson();
});
}
transferJson() {
if (!this.json) return;
this.displayJson = _.transform(this.json, (result, v, k: string) => {
if (_.includes(this.ignores, k)) return;
var transId = `quote_result.${k}`;
var newK: any = this.utilService.translate(transId);
if (newK == transId) newK = k;
result[newK] = v;
});
}
isInvalid() {
if (!this.json) return false;
var valid = this.json.valid === undefined ? true : this.json.valid;
var insured = this.json.insured === undefined ? true : this.json.insured;
return !valid || !insured;
}
isEmpty() {
return _.isEmpty(this.json);
}
}
export class Controller extends JsonTableController {}<file_sep>/**
* FanhuaResult.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/
module.exports = {
connection: 'redisServer',
attributes: {
taskId: {
type: 'string'
},
userId: {
type: 'integer'
},
carLicenseNo: {
type: 'string'
},
data: {
type: 'json'
}
}
};<file_sep>'use strict';
import common = require('./index');
import {Utils} from "./index";
export abstract class BaseController {
lcbUtils = Utils;
constructor(protected $scope: angular.IScope, protected utilService: common.utilService.Service) {
}
}<file_sep>'use strict';
var Q = require('q');
var moment = require('moment');
var cryptoJS = require('crypto-js');
var utils = require('../utils/utils.js');
// 测试环境
// const channelId = 'nqd_kaikaibao2017';
// const channelSecret = '<KEY>';
// 生产环境
const channelId = 'nqd_kaikaibao2017';
const channelSecret = '<KEY>';
class OptionsBuilder {
constructor(options) {
this.options = options || {};
this._initialOptions();
}
_initialOptions() {
this._generateHeaders();
}
_generateHeaders() {
var fanhuaHeaders = {
'Accept': 'application/json;charset=utf8',
'Content-Type': 'application/json',
'channelId': channelId
};
var toSign = channelSecret;
if (this.options.payload) {
toSign = `${JSON.stringify(this.options.payload)}${toSign}`;
}
fanhuaHeaders['sign'] = cryptoJS.MD5(toSign).toString();;
this.options.headers = Object.assign(this.options.headers || {}, fanhuaHeaders);
}
headers(headers) {
this.options.headers = Object.assign(this.options.headers || {}, headers);
return this;
}
build() {
return this.options;
}
}
module.exports = {
channelId,
optionsBuilder(options) {
return new OptionsBuilder(options);
},
result(fanhuaResponse) {
return Q.Promise((resolve, reject) => {
fanhuaResponse.then(data => {
if (data.code < 0) {
// console.error(data);
// var err = new Error();
// err.data = data;
return reject(data);
}
resolve(data);
});
});
}
};<file_sep>'use strict';
import baseService = require('./base-service');
import common = require('../../utility/index');
// import models = require('../models/index');
export var serviceName = 'tripService';
class TripService extends baseService.Service {
static $inject = ['$q', '$http', common.utilService.serviceName];
constructor(protected $q: angular.IQService, protected $http: angular.IHttpService, protected utilService) {
super($q, $http, utilService);
}
getPartners() {
return this._post(`proxy/server/command`, {
cmd: 'get_partners',
});
}
getTripsByDay(query) {
return this._post(`proxy/server/command`, {
cmd: 'get_trips_by_day',
data: [ query.partner, query.cid, query.date ]
// data: ['999901000', '862095020628589', '2016-10-18']
});
}
}
export class Service extends TripService {}<file_sep>'use strict';
import storeService = require('./store-service');
import {Config} from "../config/config";
import baseDialogController = require('./base-dialog-controller');
export var serviceName = 'utility.utilService';
class UtilService {
static $inject = ['$q', '$rootScope', '$state', 'dialogs', 'prompt', 'blockUI', '$translate', storeService.serviceName];
constructor(
private $q: angular.IQService,
private $rootScope: angular.IRootScopeService,
private $state: angular.ui.IStateService,
private dialogs,
private promptService,
private blockUI,
private $translate: angular.translate.ITranslateService,
private storeService: storeService.Service) { }
showSpinner(message?, ops: any = {}) {
if (message) ops.message = message;
this.blockUI.start(ops);
}
hideSpinner(reset: boolean = false) {
if (reset) return this.blockUI.reset();
this.blockUI.stop();
}
handleLogin() {
//if (Config.inWechat()) {
// var url = Config.ssoUrl + '?redirect_uri=' + encodeURIComponent([Config.baseUrl, '#/token'].join('/'));
// this.$window.location.replace(url);
// return;
//}
this.$state.go('login');
}
/**
* 各种弹窗
*/
wait(msg, header = '进度', progress, opts: angular.dialogservice.IDialogOptions = {}): ng.ui.bootstrap.IModalServiceInstance {
return this.dialogs.wait(header, msg, progress, opts);
}
error(msg, header = '错误', opt: angular.dialogservice.IDialogOptions = {}): ng.ui.bootstrap.IModalServiceInstance {
opt.size = opt.size || 'md';
return this.dialogs.error(header, msg, opt);
}
notify(msg, header = '通知', opt: angular.dialogservice.IDialogOptions = {}): ng.ui.bootstrap.IModalServiceInstance {
opt.size = opt.size || 'md';
return this.dialogs.notify(header, msg, opt);
}
confirm(msg, header = '确认', opt: angular.dialogservice.IDialogOptions = {}): ng.ui.bootstrap.IModalServiceInstance {
opt.size = opt.size || 'lg';
return this.dialogs.confirm(header, msg, opt);
}
dialog(url, ctrl?, data?, opt?): ng.ui.bootstrap.IModalServiceInstance {
ctrl = ctrl || baseDialogController.controllerName;
opt = opt || {};
opt.size = opt.size || 'md';
return this.dialogs.create(url, ctrl, data, opt, 'ctrl');
}
prompt(options: any = {}) {
return this.promptService({
title: options.title,
message: options.message,
input: true,
label: options.label,
value: options.value,
values: options.values
});
}
translate(transId) {
return this.$translate.instant(transId);
}
/**
* 处理 登录 和 页面回转
*/
// rememberState(state, params) {
// if (Config.isPhantomState(state)) return;
// this.$rootScope['targetView'] = {
// toState: state.name,
// toParams: params
// }
// }
returnBack(defaultState, params = {}) {
var targetView = this.$rootScope['targetView'];
if (!targetView) targetView = { toState: defaultState };
params = angular.merge(targetView.toParams || {}, params);
if (targetView) return this.$state.go(targetView.toState, params);
}
/**
* 把 token 存储逻辑放到这里是为了让其他的 service 解绑对存储位置的依赖
*/
getToken() {
return this.storeService.getToken();
}
setToken(token) {
this.storeService.setToken(token);
}
deleteToken() {
this.storeService.deleteToken();
}
}
export class Service extends UtilService {}
<file_sep>'use strict';
export import httpInterceptor = require('./http-interceptor');
export import quoteService = require('./quote-service');
export import bihuService = require('./bihu-service');
export import fanhuaService = require('./fanhua-service');
export import tripService = require('./trip-service');
export var load = (app: angular.IModule) => {
app.service(httpInterceptor.serviceName, httpInterceptor.Service)
.service(quoteService.serviceName, quoteService.Service)
.service(bihuService.serviceName, bihuService.Service)
.service(fanhuaService.serviceName, fanhuaService.Service)
.service(tripService.serviceName, tripService.Service)
.config([ '$httpProvider', ($httpProvider: angular.IHttpProvider) => {
$httpProvider.interceptors.push(httpInterceptor.serviceName);
}])
};<file_sep>'use strict';
import common = require('../../utility/index');
import services = require('../../components/services/index');
import {BaseDialogController} from "../../utility/base-dialog-controller";
import {Utils} from "../../utility/index";
import {mock} from "./mock";
export class FanhuaUploadController extends BaseDialogController {
images;
static $inject = ['$injector', '$scope', '$uibModalInstance', 'data', common.utilService.serviceName, services.fanhuaService.serviceName];
constructor(protected $injector, protected $scope, protected $modalInstance, protected data, private utilService: common.utilService.Service, private fanhuaService: services.fanhuaService.Service) {
super($injector, $scope, $modalInstance, data);
}
ok() {
if (Utils.isEmpty(this.images)) return this.$modalInstance.close();
this.utilService.showSpinner();
this.fanhuaService.uploadImages(this.data.taskId, this.images)
.then(resp => this.$modalInstance.close(resp.data))
.finally(() => this.utilService.hideSpinner());
}
}
<file_sep>'use strict';
import common = require('../../utility/index');
import services = require('../../components/services/index');
import {BaseController} from "../../utility/base-controller";
import {Utils} from "../../utility/index";
import {mock} from "./mock";
import {FanhuaUploadController} from "./fanhua-upload-controller";
export var controllerName = 'quote.fanhuaController';
class FanhuaController extends BaseController {
supportCities;
carModels;
providers;
choosableRisks = ['VehicleDemageIns', 'ThirdPartyIns', 'DriverIns', 'PassengerIns', 'TheftIns', 'GlassIns', 'CombustionIns', 'ScratchIns', 'WadingIns', 'VehicleDemageMissedThirdPartyCla', 'SpecifyingPlantCla', 'GoodsOnVehicleIns', 'CompensationForMentalDistressIns', 'VehicleCompulsoryIns', 'VehicleTax'];
query: any = {
isNew: 'N',
isTransferCar: 'N',
bizInsureInfo: {}
};
quote: any = {};
taskId;
done;
info = {};
result = {};
static $inject = ['$scope', '$timeout', '$state', '$q', common.utilService.serviceName, common.storeService.serviceName, services.fanhuaService.serviceName];
constructor(protected $scope, private $timeout, private $state, private $q, protected utilService: common.utilService.Service, private storeService: common.storeService.Service, private fanhuaService: services.fanhuaService.Service) {
super($scope, utilService);
this.prepareCities();
}
private prepareCities() {
this.utilService.showSpinner();
this.fanhuaService.getCities().then(resp => this.supportCities = resp.data).finally(() => this.utilService.hideSpinner());
}
reload() {
this.$state.reload();
}
getProviders() {
return this.fanhuaService.getProviders(this.query.insureAreaCode).then(resp => {
this.providers = resp.data.providers;
});
}
getCarInfo() {
return this.fanhuaService.getCarInfo({
vehicleName: this.query.vehicleName,
carLicenseNo: this.query.carLicenseNo,
registDate: this.query.registDate
}).then(resp => {
this.carModels = resp.data.carModelInfos;
this.query.vehicleId = this.carModels ? this.carModels[0].vehicleId : null;
});
}
fetchInfo() {
// this.utilService.showSpinner();
// this.fanhuaService.fetchInfo({
// insureAreaCode: this.query.insureAreaCode,
// carInfo: { carLicenseNo: this.query.carLicenseNo },
// carOwner: {
// name: this.query.name,
// idcardNo: this.query.idcardNo
// }
// }).then(resp => {
// this.info = resp.data;
// this.taskId = resp.data.taskId;
// this.query = angular.merge(this.query, _.omit(resp.data.carInfo, ['insureAreaCode', 'carLicenseNo', 'name', 'idcardNo']));
// this.parseInsure(resp.data);
// }).finally(() => this.utilService.hideSpinner());
// // 获取车型信息
// this.getCarInfo().then(resp => {
// 获取供应商列表
this.getProviders().then(resp => {
// 获取报价信息
return this.fanhuaService.fetchInfo({
insureAreaCode: this.query.insureAreaCode,
carInfo: { carLicenseNo: this.query.carLicenseNo },
carOwner: {
name: this.query.name,
idcardNo: this.query.idcardNo
}
}).then(resp => {
this.info = resp.data;
this.taskId = resp.data.taskId;
this.query = angular.merge(this.query, _.omit(resp.data.carInfo, ['insureAreaCode', 'carLicenseNo', 'name', 'idcardNo']));
this.parseInsure(resp.data);
});
}).then(resp => {
return this.getCarInfo();
}).finally(() => this.utilService.hideSpinner());
}
parseInsure(data) {
if (!data.insureInfo) return;
this.query.bizInsureInfo = data.insureInfo.bizInsureInfo || {};
this.query.bizInsureInfo.startDate = Utils.formatDate(this.query.bizInsureInfo.startDate);
this.query.bizInsureInfo.endDate = Utils.formatDate(this.query.bizInsureInfo.endDate);
this.query.efcInsureInfo = data.insureInfo.efcInsureInfo || {};
this.query.efcInsureInfo.startDate = Utils.formatDate(this.query.efcInsureInfo.startDate);
this.query.efcInsureInfo.endDate = Utils.formatDate(this.query.efcInsureInfo.endDate);
var riskKinds = this.query.bizInsureInfo.riskKinds;
this.quote = _.keyBy(riskKinds, 'riskCode');
if (this.query.efcInsureInfo.amount == 1) this.query.efcInsure = true;
if (data.insureInfo.taxInsureInfo) this.query.taxInsure = true;
}
quickQuote() {
this.done = true;
this.result = {};
this.utilService.showSpinner('提交中……');
this.fanhuaService.reinsure(this.taskId, this.getQuote()).then(resp => {
// this.taskId = resp.data.taskId;
this.saveLast();
this.done = false;
this.refreshResult();
});
}
createQuote() {
this.done = true;
this.result = {};
this.utilService.showSpinner('提交中……');
this.fanhuaService.createQuote(this.getQuote(true)).then(resp => {
this.taskId = resp.data.taskId;
this.saveLast();
this.done = false;
this.refreshResult();
});
}
refreshResult() {
if (this.done) return;
// this.utilService.showSpinner('取回结果中……');
this.fanhuaService.getQuote(this.taskId).then(resp => {
if (resp.data.length >= this.providers.length) this.utilService.hideSpinner();
// this.done = resp.data.length == this.providers.length;
if (!this.done) this.$timeout(() => this.refreshResult(), 2000);
if (resp.data.length == _.size(<any> this.result)) return;
this.result = _.keyBy(_.map(resp.data, (data: any) => {
var riskKinds: any = _.get(data, 'data.insureInfo.bizInsureInfo.riskKinds');
var isValid = !(_.includes(['2', '18', '19', '20', '22'], data.data.taskState));
if (riskKinds) data.data.insureInfo.bizInsureInfo.riskKinds = _.keyBy(_.map(riskKinds, (k: any) => {
k.valid = isValid;
return k;
}), 'riskCode');
return data.data;
}), 'prvId');
// this.result = angular.merge(res, this.result);
}).finally(() => this.utilService.hideSpinner());
}
getQuote(full = false) {
var quote: any = {
insureInfo: {},
providers: _.map(this.providers, (p: any) => {
return { prvId: p.prvId }
})
};
if (full) {
quote = angular.extend(quote, {
insureAreaCode: this.query.insureAreaCode,
carInfo: {
isNew: this.query.isNew,
carLicenseNo: this.query.carLicenseNo,
vinCode: this.query.vinCode,
engineNo: this.query.engineNo,
registDate: this.query.registDate,
price: this.query.price,
vehicleId: this.query.vehicleId,
isTransferCar: this.query.isTransferCar,
transferDate: this.query.transferDate
},
carOwner: {
name: this.query.name,
idcardNo: this.query.idcardNo,
phone: this.query.phone
}
});
}
if (this.query.efcInsure) {
quote.insureInfo.efcInsureInfo = this.query.efcInsureInfo;
}
if (this.query.taxInsure) {
quote.insureInfo.taxInsureInfo = {
isPaymentTax: 'Y'
}
}
// quote.insureInfo.bizInsureInfo = angular.merge(this.query.bizInsureInfo || {}, { riskKinds: this.getInsures() });
quote.insureInfo.bizInsureInfo = this.query.bizInsureInfo || {};
quote.insureInfo.bizInsureInfo.riskKinds = this.getInsures();
if (Utils.isEmpty(quote.insureInfo.bizInsureInfo.riskKinds)) delete quote.insureInfo.bizInsureInfo;
return quote;
}
saveLast() {
this.storeService.storeItem('taskId', this.taskId);
this.storeService.storeItem('query', {
insureAreaCode: this.query.insureAreaCode,
carLicenseNo: this.query.carLicenseNo,
name: this.query.name
});
this.storeService.storeItem('quote', this.quote);
}
loadLastResult() {
// this.taskId = resp.data.taskId;
var lastTaskId = this.storeService.getItem('taskId');
if (!lastTaskId) return;
this.query = this.storeService.getItem('query');
this.quote = this.storeService.getItem('quote');
this.getProviders();
this.taskId = lastTaskId;
this.done = false;
this.refreshResult();
}
searchVehicle() {
this.getProviders();
this.utilService.prompt({ title: '请输入车型名称或VIN码', value: this.query.vinCode }).then(q => {
this.fanhuaService.getCarInfo({
vehicleName: q,
carLicenseNo: this.query.carLicenseNo,
registDate: this.query.registDate
}).then(resp => {
this.carModels = resp.data.carModelInfos;
this.query.vehicleId = this.carModels ? this.carModels[0].vehicleId : null;
this.query.vehicleName = this.carModels[0].vehicleName;
});
});
}
getInsures() {
var insures = [];
_.forOwn(this.quote, (v, k) => {
var risk: any = angular.copy(v);
risk.riskCode = k;
if (!risk.amount || risk.amount == 0) return;
if (!_.includes(this.choosableRisks, risk.riskCode)) return;
delete risk.premium;
delete risk.ncfPremium;
insures.push(risk);
});
return insures;
}
cantQuote() {
if (_.isEmpty(this.quote)) return true;
if (this.query.isTransferCar == 'Y' && this.query.transferDate == null) return true;
return false;
}
pay(quote) {
var more = this.needMore(quote);
this.$q.when(more).then(more => {
if (!more) return;
return this.utilService.dialog('features/quote/fanhua-upload.html', FanhuaUploadController, more, { windowClass: 'fanhua-upload' }).result
.then(resp => {
if (!resp) return;
quote.imageInfos = _.xorBy(quote.imageInfos, resp.imageInfos, 'imageType');
});
}).then(() => {
this.utilService.showSpinner();
this.fanhuaService.pay(this.taskId, {
taskId: this.taskId,
prvId: quote.prvId,
retUrl: `${location.origin}/#/quote/fanhua/order`
}).then(resp => {
window.open(resp.data.payUrl, '_fanhua_pay');
}).finally(() => this.utilService.hideSpinner());
});
}
submitInsure(insure) {
var more = this.needMore(insure);
this.$q.when(more).then(more => {
if (!more) return;
return this.utilService.dialog('features/quote/fanhua-upload.html', FanhuaUploadController, more, { windowClass: 'fanhua-upload' }).result
.then(resp => {
if (!resp) return;
insure.imageInfos = _.xorBy(insure.imageInfos, resp.imageInfos, 'imageType');
});
}).then(() => {
this.utilService.showSpinner();
this.fanhuaService.submitInsure(this.taskId, {
taskId: this.taskId,
prvId: insure.prvId
}).finally(() => this.utilService.hideSpinner());
})
}
needMore(quote) {
var needed: any = {};
if (quote.msgType == '01') {
var missingImages = _.filter(quote.imageInfos, { upload: 'N' });
if (!Utils.isEmpty(missingImages)) {
needed.missingImages = missingImages;
}
}
if (Utils.isEmpty(needed)) return;
needed.taskId = quote.taskId;
return needed;
}
reimbursement(insure) {
this.utilService.showSpinner();
this.fanhuaService.reimbursement(this.taskId, {
taskId: this.taskId,
prvId: insure.prvId
}).then(resp => {
this.utilService.notify(resp.data.msg);
}).finally(() => this.utilService.hideSpinner());
}
}
export class Controller extends FanhuaController {}<file_sep>'use strict';
import fileUploaderDirective = require('./file-uploader/file-uploader-directive');
import jsonTableDirective = require('./jsontable/jsontable-directive');
export var load = (app: angular.IModule) => {
app.directive(fileUploaderDirective.directiveName, fileUploaderDirective.Directive)
.directive(jsonTableDirective.directiveName, jsonTableDirective.Directive);
};<file_sep>/// <reference path="../typings/app.d.ts" />
'use strict';
var app = angular.module('lcbapp', [
'ui.bootstrap', 'ui.router',
'ngAnimate', 'ngTouch', 'ngSanitize', 'ngCookies', 'ngStorage',
'blockUI', 'dialogs.main', 'pascalprecht.translate', 'cgPrompt',
'checklist-model', 'naif.base64',
'ngPrettyJson', 'angular-json-editor', 'datetime'
]);
import common = require('./utility/index'); common.load(app);
import directives = require('./components/directives/index'); directives.load(app);
// import components = require('./components/components/index'); components.load(app);
import filters = require('./components/filters/index'); filters.load(app);
import services = require('./components/services/index'); services.load(app);
import i18n = require('./i18n/index'); i18n.load(app);
import enums = require('./enums/index');
/* features */
import welcome = require('./features/welcome/index'); welcome.load(app);
import quote = require('./features/quote/index'); quote.load(app);
import trip = require('./features/trip/index'); trip.load(app);
app.config(['$locationProvider', '$stateProvider', '$urlRouterProvider', ($locationProvider: angular.ILocationProvider, $stateProvider: angular.ui.IStateProvider, $urlRouterProvider: angular.ui.IUrlRouterProvider) => {
// $locationProvider.html5Mode({
// enabled: true,
// requireBase: false,
// rewriteLinks: false
// });
welcome.states($stateProvider);
quote.states($stateProvider);
trip.states($stateProvider);
$urlRouterProvider.otherwise('/quote/bihu');
}]);
<file_sep>'use strict';
import baseService = require('./base-service');
import common = require('../../utility/index');
// import models = require('../models/index');
export var serviceName = 'fanhuaService';
class FanhuaService extends baseService.Service {
static $inject = ['$q', '$http', common.utilService.serviceName];
constructor(protected $q: angular.IQService, protected $http: angular.IHttpService, protected utilService) {
super($q, $http, utilService);
}
getCities() {
return this._get(`api/fanhua/cities`);
}
getProviders(city) {
return this._get(`api/fanhua/cities/${city}/providers`);
}
getCarInfo(query) {
return this._post(`api/fanhua/carinfo`, query);
}
fetchInfo(query) {
return this._post(`api/fanhua/fetchinfo`, query);
}
reinsure(taskId, quote) {
return this._post(`api/fanhua/reinsure/${taskId}`, quote);
}
createQuote(quote) {
return this._post(`api/fanhua/quote`, quote);
}
getQuote(id) {
return this._get(`api/fanhua/quotes/${id}`);
}
uploadImages(id, images) {
return this._post(`api/fanhua/quotes/${id}/images`, images);
}
pay(id, payment) {
return this._post(`api/fanhua/quotes/${id}/pay`, payment);
}
submitInsure(id, insure) {
return this._post(`api/fanhua/insures/${id}`, insure);
}
reimbursement(id, insure) {
return this._post(`api/fanhua/insures/${id}/reimbursement`, insure);
}
}
export class Service extends FanhuaService {}<file_sep>'use strict';
import common = require('../../utility/index');
import services = require('../../components/services/index');
import {BaseController} from "../../utility/base-controller";
import {Utils} from "../../utility/index";
export var controllerName = 'trip.tripController';
class TripController extends BaseController {
map;
query: any = {
date: new Date()
};
trips;
selectedTrip;
providers = {
gaode: L.layerGroup([L.tileLayer.chinaProvider('GaoDe.Normal.Map', {
maxZoom: 18,
minZoom: 5
})]),
mapbox: L.layerGroup([L.tileLayer.provider('MapBox', {
maxZoom: 18,
minZoom: 5,
id: 'mapbox.streets',
accessToken: '<KEY>'
})])
};
markers = {
suddenAcce: L.icon({ iconUrl: '/static/images/icon_accel.png', iconSize: [15, 15] }),
suddenBrake: L.icon({ iconUrl: '/static/images/icon_brake.png', iconSize: [15, 15] }),
suddenTurn: L.icon({ iconUrl: '/static/images/icon_turn.png', iconSize: [15, 15] })
};
static $inject = ['$scope', 'partners', common.utilService.serviceName, services.tripService.serviceName];
constructor(protected $scope, private partners, protected utilService: common.utilService.Service, private tripService: services.tripService.Service) {
super($scope, utilService);
this.partners = partners.data.data.partners;
this._initMap();
}
private _initMap() {
var baseLayers = {
"MapBox": this.providers.mapbox,
"高德": this.providers.gaode
};
var map = L.map("map", {
center: [31.22, 121.50],
zoom: 12,
layers: [this.providers.mapbox],
zoomControl: false
});
L.control.layers(baseLayers, null).addTo(map);
L.control.zoom({
zoomInTitle: '放大',
zoomOutTitle: '缩小'
}).addTo(map);
this.map = map;
this._renderLegend(map);
}
private _renderLegend(map) {
var legend = L.control({position: 'bottomright'});
legend.onAdd = map => {
var div = L.DomUtil.create('div', 'legend');
div.innerHTML += `
<img src="/static/images/icon_accel.png"> 急加速 <br>
<img src="/static/images/icon_brake.png"> 急减速 <br>
<img src="/static/images/icon_turn.png"> 急转弯 <br>
`;
return div;
};
legend.addTo(map);
}
search() {
this.utilService.showSpinner();
this._clearMap();
this.selectedTrip = null;
var payload: any = angular.copy(this.query);
payload.date = Utils.formatDate(this.query.date);
this.tripService.getTripsByDay(payload).then(resp => this.trips = resp.data.data.trips).finally(() => this.utilService.hideSpinner());
}
isSelected(trip) {
if (!this.selectedTrip) return false;
return this.selectedTrip.id == trip.id;
}
renderTrip(trip) {
this.selectedTrip = trip;
this._clearMap();
if (_.isEmpty(trip.path)) return this.utilService.error('没有行程数据');
var line = polyline.decode(trip.path);
var r = L.polyline(line).addTo(this.map);
this.map.fitBounds(r.getBounds());
L.marker([trip.start_loc_lat, trip.start_loc_lon]).bindTooltip('起点', { permanent: true }).addTo(this.map);
L.marker([trip.end_loc_lat, trip.end_loc_lon]).bindTooltip('终点', { permanent: true }).addTo(this.map);
if (!trip.path_details) return;
this._renderPoints(trip.path_details.acce, this.markers.suddenAcce);
this._renderPoints(trip.path_details.brake, this.markers.suddenBrake);
this._renderPoints(trip.path_details.turn, this.markers.suddenTurn);
}
private _renderPoints(points, icon) {
if (!points) return;
angular.forEach(points, p => {
L.marker([p.lat, p.lng], { icon }).addTo(this.map);
});
}
private _clearMap() {
var map = this.map;
map.eachLayer(function (layer) {
if (layer instanceof L.Polyline) { layer.remove(); return; }
if (layer instanceof L.Marker) { layer.remove(); return; }
});
}
}
export class Controller extends TripController {}<file_sep>'use strict';
import baseService = require('./base-service');
import common = require('../../utility/index');
// import models = require('../models/index');
export var serviceName = 'quoteService';
class QuoteService extends baseService.Service {
static $inject = ['$q', '$http', common.utilService.serviceName];
constructor(protected $q: angular.IQService, protected $http: angular.IHttpService, protected utilService) {
super($q, $http, utilService);
}
createQuote(quote, opts?) {
return this._post(`api/yobee/quote`, quote, opts);
}
getQuote(id) {
return this._get(`api/yobee/quotes/${id}`);
}
getCities() {
return this._get(`api/yobee/cities`);
}
}
export class Service extends QuoteService {}<file_sep>
'use strict';
import common = require('../../utility/index');
import services = require('../../components/services/index');
import {BaseEventListener} from "../../utility/base-event-listener";
export var controllerName = 'MenuController';
class MenuController extends BaseEventListener {
static $inject = ['$scope', common.utilService.serviceName];
constructor(protected $scope: angular.IScope, protected utilService: common.utilService.Service) {
super($scope, utilService);
}
}
export class Controller extends MenuController {}<file_sep>'use strict';
/**
* BihuController
*
* @description :: Server-side logic for managing Yobees
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
var co = require('co');
var sleep = require('co-sleep');
var bihuService = require('../services/BihuService.js');
module.exports = {
cities(req, resp) {
resp.json({
1: '北京',
2: '重庆',
3: '天津',
4: '四川',
5: '昆明',
6: '上海',
7: '宁夏',
8: '江苏',
9: '杭州',
10: '福建',
11: '深圳',
12: '河北',
13: '安徽',
14: '广州'
});
},
reinsure(req, resp) {
co(function* () {
resp.json(yield bihuService.getReInfo(req.body));
}).catch(err => {
sails.log.error(err);
resp.json(err)
});
},
quote(req, resp) {
co(function* () {
// 00000000001 太平洋 1
// 00000000010 平安 2
// 00000000100 人保 4
// 00000001000 国寿财 8
// 00000010000 中华联合 16
// 00000100000 大地 32
// 00001000000 阳光 64
// 00010000000 太平保险 128
// 00100000000 华安 256
// 01000000000 天安 512
// 10000000000 英大 1024
var payload = {
// CityCode: '1',
// LicenseNo: '京QDX980',
// CarOwnersName: '张冠文',
// IdCard: '340122199212120171',
// MoldName: '一汽大众宝来',
// CarVin: 'LSYYBBDB5CC096537',
// EngineNo: 'E074275',
// RegisterDate: '2011-06-14',
// InsuredMobile: '18612994885',
// QuoteGroup: 16,
BoLi: 0,
BuJiMianCheSun: 0,
BuJiMianDaoQiang: 0,
BuJiMianSanZhe: 0,
BuJiMianChengKe: 0,
BuJiMianSiJi: 0,
BuJiMianHuaHen: 0,
BuJiMianSheShui: 0,
BuJiMianZiRan: 0,
BuJiMianJingShenSunShi: 0,
SheShui: 0,
HuaHen: 0,
SiJi: 0,
ChengKe: 0,
CheSun: 0,
DaoQiang: 0,
SanZhe: 0,
ZiRan: 0,
HcJingShenSunShi: 0,
HcSanFangTeYue: 0
};
payload = Object.assign(payload, req.body || {});
var res = [];
for (var i = 0, sources = [1 + 2 + 4], l = sources.length; i < l; i++) {
var source = sources[i];
payload.QuoteGroup = source;
var r = yield bihuService.createQuote(_.clone(payload));
if (r.BusinessStatus < 0) throw r.StatusMessage;
res.push(r);
yield sleep(3000); // 睡3秒
}
resp.json(res);
// resp.json(yield bihuService.createQuote(req.body));
}).catch(err => {
sails.log.error(err);
if (_.isString(err)) err = { data: { message: err } };
resp.json(400, err);
});
},
getQuote(req, resp) {
co(function* () {
var res = [];
for (var i = 0, sources = [1, 2, 4], l = sources.length; i < l; i++) {
var source = sources[i];
var r = yield bihuService.getQuote(req.params.LicenseNo, source);
if (!r.Item) { // 有错误的情况
r.Item = { Source: source, QuoteResult: r.StatusMessage };
}
res.push(r);
yield sleep(3000); // 睡3秒
}
var credit = yield bihuService.getCreditInfo(req.params.LicenseNo);
resp.json({
Result: res,
Credit: credit
});
}).catch(err => {
sails.log.error(err);
resp.json(400, err)
});
}
};
<file_sep>'use strict';
export var zh_CN = {
DIALOGS_ERROR: '错误',
DIALOGS_ERROR_MSG: '出现未知错误。',
DIALOGS_CLOSE: '关闭',
DIALOGS_PLEASE_WAIT: '请稍候',
DIALOGS_PLEASE_WAIT_ELIPS: '请稍候...',
DIALOGS_PLEASE_WAIT_MSG: '请等待操作完成。',
DIALOGS_PERCENT_COMPLETE: '% 已完成',
DIALOGS_NOTIFICATION: '通知',
DIALOGS_NOTIFICATION_MSG: '未知应用程序的通知。',
DIALOGS_CONFIRMATION: '确认',
DIALOGS_CONFIRMATION_MSG: '确认要求。',
DIALOGS_OK: '确定',
DIALOGS_YES: '确认',
DIALOGS_NO: '取消',
city_code: '投保城市',
license_no: '车牌号',
license_owner: '车主姓名',
frame_no: '车架号',
engine_no: '发动机号',
vehicle_name: '品牌型号',
enroll_date: '初次登记日期',
seat_count: '座位数',
biz_start_date: '商业险起保日期',
force_start_date: '交强险起保日期',
force: '交强险',
tax: '车船税',
damage: '机动车损失险',
deduction: '车损绝对免赔额',
third: '第三者责任险',
driver: '司机险',
passenger: '乘客险',
pilfer: '盗抢险',
glass: '玻璃险',
scratch: '划痕险',
combust: '自燃险',
water: '涉水险',
third_party: '机动车损失险',
equipment: '新增设备损失险',
repair: '修理期间费用补偿',
spirit: '精神损害抚慰金',
cargo: '车上货物责任险',
exempt_damage: '机动车损失险(不计免赔)',
exempt_third: '第三者责任险(不计免赔)',
exempt_driver: '司机险(不计免赔)',
exempt_passenger: '乘客险(不计免赔)',
exempt_pilfer: '盗抢险(不计免赔)',
exempt_combust: '自燃险(不计免赔)',
exempt_scratch: '划痕险(不计免赔)',
exempt_water: '涉水险(不计免赔)',
exempt_equipment: '新增设备损失险(不计免赔)',
exempt_spirit: '精神损害抚慰金(不计免赔)',
quote_result: {
premium: '保费',
ncfPremium: '不计免赔保费',
notDeductible: '不计免赔',
startDate: '起保日期',
endDate: '终保日期',
tax: '车船税',
taxFee: '车船税金额',
lateFee: '车船税滞纳金',
discountRate: '交强险折扣率',
start_date: '开始时间',
end_date: '结束时间',
total: '合计',
insured: '投保',
amount: '保额',
valid: '有效报价',
original: '原价',
biz_total: '商业险报价',
biz_original: '商业险原价',
force_total: '交强险报价',
force_original: '交强险原价',
total_cent: '总金额',
loss_time: '出险时间',
end_time: '结案时间',
loss_fee: '理赔金额',
company: '公司',
BaoE: '保额',
BaoFei: '保费'
}
};
| a239585223c0db015e5a29f39cf013650e5b1826 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 36 | TypeScript | aiyes/kkbcrm | bed3b78335f142fc43b793a9fc07c61cba2f8f04 | 2f66f3309f18aef1b858cfc1887ec8b10a8971fc |
refs/heads/master | <repo_name>Jesper-Hustad/LineWaveGenerator<file_sep>/index.ts
// a comment
interface sim {
p:point;
line: number;
}
interface vec {
p:point
angle:number;
scalar:number;
}
interface point {
x:number;
y:number;
}
interface Settings {
rotOffset : number;
rotScal : number;
scalOffset : number;
scalScal : number;
resolution : number;
pushStrenght: number;
pushWidth : number;
}
// DEFINING VARIABLES -----------------------------
let SETTING : Settings = {
rotOffset : 0,
rotScal : 1,
scalOffset : 0,
scalScal : 1,
resolution : 1,
pushStrenght: 9,
pushWidth : 10
}
const GLOBAL_SPACING = 8;
const pixelSize = 6
//push effects
let strenght = 9; //the distance of the push
let widthScalar = 10; //the reach of the pusher
//boolean what to show
let displayPoints = false;
let displayLines = true;
let rotOffset = 3;
let rotScal = 4;
let scalOffset = 1;
let scalScal = 2;
//establish colors
const backgroundColor = "#c4c4c4";
const primaryColor = "#32bde3";
const height = 100;
const width = 130;
const rows = 4;
const collums = 3;
let resolution = 0.5; //more resolution means higher quality, but slower. Between {0,1}
//create canvas
const canvas = document.querySelector('canvas')
const c = canvas.getContext('2d')
c.canvas.width = 900;
c.canvas.height = 750;
c.fillStyle = backgroundColor;
c.fillRect(0, 0, canvas.width, canvas.height);
c.fillStyle = primaryColor;
// CODE ------------------------------------
let genPoints = (wi:number,hi:number,col:number,row:number):point[] =>
Array.from(new Array(row*col),(val,index)=>index+1).map(i => {
const x = i%col;
const y = Math.ceil(i/col);
return {x:x,y:y};
}).map(p =>
{return {x:p.x*(wi/col),y:p.y*(hi/row)};
});
var simP: sim[] = genPoints(width,height,Math.round(width*resolution),Math.round(height*resolution)).map(p =>{return {p:{x:p.x,y:p.y},line:p.y}});
var vecP: vec[] = genPoints(width,height,collums,rows).map(p => {return {p:p,angle:Math.random() * 360,scalar:8}});
//Adds the vector effect to the points
let simulate = (points:sim[],vectors:vec[]):sim[] =>
//go trough every point
points.map(sim => {
//get the amount of offset applied to the point by going through every vector and adding it
const sumVectorOffset = vectors.map(vec => addVector(vec,sim.p)).reduce((a,b)=> sumPoints(a,b));
//add the sum of offset to the point
return {p:sumPoints(sim.p,sumVectorOffset),line:sim.line};
})
//adds a vectors offset to a single points
let addVector = (vec:vec,point:point) => {
const singleDelta = distance(vec.p,point); //distance from point to vector
const scalStr = f(singleDelta) //scalar strenght from wave function, is a function of distance
const vecPoint = vectorToOffset(vec) //the offset from the vector (from rotation and scalar)
//calculated offset of current vector
return {x:vecPoint.x*scalStr,y:vecPoint.y*scalStr};
}
//from polar form to x,y
let vectorToOffset = (vec:vec) :point => {return {x:vec.scalar*Math.cos(vec.angle*(Math.PI/180)),y:vec.scalar*Math.sin(vec.angle*(Math.PI/180))}};
//distance formula
let distance = (p1:point,p2:point) => Math.sqrt(Math.pow(p2.x-p1.x,2)+Math.pow(p2.y-p1.y,2))
// see the graph -> https://www.geogebra.org/graphing/eqterv22
let f = (x:number):number => {
const WSModifier = 1 + 1/Math.pow(widthScalar,2);
return 1/((Math.pow(WSModifier,Math.pow(-1*x,2))));
}
// i fucked up on making the "line" element so this is really confusing, but it works so just don't touch it
function line(points:sim[]):void{
//remove odd generated points (at the end of every line there is a point which is set on the next line, that shouldn't be there)
for (let i = 0; i < points.length-1; i++) {
if(points[i].line!=points[i+1].line){
points.splice(i,1);
}
}
//previous method skips last point so we just pop it off
points.pop();
const S = GLOBAL_SPACING;
let prevLine = -1;
let p:sim;
//this is all we should really need, but bc. of fuckup we had to do some other stuff
//if previous line is not the same as current line we must be at start of new line
//so we end the previous line and begin a new one
for (p of points) {
// console.log(p.p);
if(p.line!=prevLine){
c.stroke();
c.closePath();
c.beginPath();
}else{
c.lineTo(p.p.x*S,p.p.y*S);
}
prevLine = p.line;
}
}
function generateSimP(resolution:number):sim[]{
return genPoints(width,height,Math.round(width*resolution),Math.round(height*resolution)).map((point:point) => { return {p:{x:point.x, y:point.y}, line:point.y}})
}
function update(s:Settings){
clear();
const renderedPoints = simulate(generateSimP(s.resolution),vecP.map(v => {return {p:v.p,angle:v.angle+SETTING.rotOffset,scalar:v.scalar*SETTING.scalScal}}));
if(displayLines) line(renderedPoints);
if(displayPoints) renderedPoints.map(s => s.p).forEach(drawPix);
}
function button():void{
vecP = genPoints(width,height,collums,rows).map(p => {return {p:p,angle:Math.random() * 360,scalar:8}});
update(SETTING);
}
// HELPER FUNCTIONS -----------------------------------------------
//return an array of number from bottom to top number
// function range(bottom : number,top:number):number[]{
// return Array.from(new Array(top + bottom),(val,index)=>index+1+bottom);
// }
//adds two points together
function sumPoints(a:point,b:point):point{
return {x:a.x+b.x,y:a.y+b.y};
}
let zip = (a,b) => a.map((x,i) => [x,b[i]]);
function clear(): void{ c.clearRect(0, 0, canvas.width, canvas.height);}
function drawPixel(x:number,y:number): void{
c.fillRect(((x*GLOBAL_SPACING)-pixelSize/2), (y*GLOBAL_SPACING)-pixelSize/2, pixelSize, pixelSize);
}
const drawPix = (s:point) => drawPixel(s.x,s.y);
// let pointToSim = (point:point) : sim => { return {p:{x:point.x, y:point.y}, line:point.y};}
// USER FUNCTIONALITY -----------------------------------------------
let dotBox = document.getElementById("dotsBox");
let resSlider = document.getElementById("resRange");
let rotSlider = document.getElementById("rotRange");
let scalSlider = document.getElementById("scalRange");
let fxSlider = document.getElementById("fxRange");
let res = document.getElementById("res");
function togglePoints(){
displayPoints = !displayPoints;
update(SETTING);
}
function toggleLines(){
displayLines = !displayLines;
update(SETTING);
}
resSlider.oninput = function() {
SETTING.resolution = parseInt(this.value)/100;
update(SETTING);
}
rotSlider.oninput = function() {
SETTING.rotOffset = parseInt(this.value)*3.6;
update(SETTING);
}
scalSlider.oninput = function() {
SETTING.scalScal = parseInt(this.value)/50;
update(SETTING);
}
fxSlider.oninput = function() {
widthScalar = (0.0003 * Math.pow(parseInt(this.value)/5,4) )+ 1 ;
console.log(widthScalar);
update(SETTING);
}
// DOWNLOAD FUNCTION -----------------------------------------------
function download() {
var download = document.getElementById("download");
var image = document.getElementById("canvas").toDataURL("image/png").replace("image/png", "image/octet-stream");
download.setAttribute("href", image);
}
//run once when webpage loads
window.onload = function(){
update(SETTING);
} <file_sep>/README.md
# LineWaveGenerator
Creating minimal waves using code and js
Check out the project, acsess the static website at: https://jesper-hustad.github.io/LineWaveGenerator/
<file_sep>/index.js
// DEFINING VARIABLES -----------------------------
var SETTING = {
rotOffset: 0,
rotScal: 1,
scalOffset: 0,
scalScal: 1,
resolution: 1,
pushStrenght: 9,
pushWidth: 10
};
var GLOBAL_SPACING = 8;
var pixelSize = 6;
//push effects
var strenght = 9; //the distance of the push
var widthScalar = 10; //the reach of the pusher
//boolean what to show
var displayPoints = false;
var displayLines = true;
var rotOffset = 3;
var rotScal = 4;
var scalOffset = 1;
var scalScal = 2;
//establish colors
var backgroundColor = "#c4c4c4";
var primaryColor = "#32bde3";
var height = 100;
var width = 130;
var rows = 4;
var collums = 3;
var resolution = 0.5; //more resolution means higher quality, but slower. Between {0,1}
//create canvas
var canvas = document.querySelector('canvas');
var c = canvas.getContext('2d');
c.canvas.width = 900;
c.canvas.height = 750;
c.fillStyle = backgroundColor;
c.fillRect(0, 0, canvas.width, canvas.height);
c.fillStyle = primaryColor;
// CODE ------------------------------------
var genPoints = function (wi, hi, col, row) {
return Array.from(new Array(row * col), function (val, index) { return index + 1; }).map(function (i) {
var x = i % col;
var y = Math.ceil(i / col);
return { x: x, y: y };
}).map(function (p) {
return { x: p.x * (wi / col), y: p.y * (hi / row) };
});
};
var simP = genPoints(width, height, Math.round(width * resolution), Math.round(height * resolution)).map(function (p) { return { p: { x: p.x, y: p.y }, line: p.y }; });
var vecP = genPoints(width, height, collums, rows).map(function (p) { return { p: p, angle: Math.random() * 360, scalar: 8 }; });
//Adds the vector effect to the points
var simulate = function (points, vectors) {
//go trough every point
return points.map(function (sim) {
//get the amount of offset applied to the point by going through every vector and adding it
var sumVectorOffset = vectors.map(function (vec) { return addVector(vec, sim.p); }).reduce(function (a, b) { return sumPoints(a, b); });
//add the sum of offset to the point
return { p: sumPoints(sim.p, sumVectorOffset), line: sim.line };
});
};
//adds a vectors offset to a single points
var addVector = function (vec, point) {
var singleDelta = distance(vec.p, point); //distance from point to vector
var scalStr = f(singleDelta); //scalar strenght from wave function, is a function of distance
var vecPoint = vectorToOffset(vec); //the offset from the vector (from rotation and scalar)
//calculated offset of current vector
return { x: vecPoint.x * scalStr, y: vecPoint.y * scalStr };
};
//from polar form to x,y
var vectorToOffset = function (vec) { return { x: vec.scalar * Math.cos(vec.angle * (Math.PI / 180)), y: vec.scalar * Math.sin(vec.angle * (Math.PI / 180)) }; };
//distance formula
var distance = function (p1, p2) { return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)); };
// see the graph -> https://www.geogebra.org/graphing/eqterv22
var f = function (x) {
var WSModifier = 1 + 1 / Math.pow(widthScalar, 2);
return 1 / ((Math.pow(WSModifier, Math.pow(-1 * x, 2))));
};
// i fucked up on making the "line" element so this is really confusing, but it works so just don't touch it
function line(points) {
//remove odd generated points (at the end of every line there is a point which is set on the next line, that shouldn't be there)
for (var i = 0; i < points.length - 1; i++) {
if (points[i].line != points[i + 1].line) {
points.splice(i, 1);
}
}
//previous method skips last point so we just pop it off
points.pop();
var S = GLOBAL_SPACING;
var prevLine = -1;
var p;
//this is all we should really need, but bc. of fuckup we had to do some other stuff
//if previous line is not the same as current line we must be at start of new line
//so we end the previous line and begin a new one
for (var _i = 0, points_1 = points; _i < points_1.length; _i++) {
p = points_1[_i];
// console.log(p.p);
if (p.line != prevLine) {
c.stroke();
c.closePath();
c.beginPath();
}
else {
c.lineTo(p.p.x * S, p.p.y * S);
}
prevLine = p.line;
}
}
function generateSimP(resolution) {
return genPoints(width, height, Math.round(width * resolution), Math.round(height * resolution)).map(function (point) { return { p: { x: point.x, y: point.y }, line: point.y }; });
}
function update(s) {
clear();
var renderedPoints = simulate(generateSimP(s.resolution), vecP.map(function (v) { return { p: v.p, angle: v.angle + SETTING.rotOffset, scalar: v.scalar * SETTING.scalScal }; }));
if (displayLines)
line(renderedPoints);
if (displayPoints)
renderedPoints.map(function (s) { return s.p; }).forEach(drawPix);
}
function button() {
vecP = genPoints(width, height, collums, rows).map(function (p) { return { p: p, angle: Math.random() * 360, scalar: 8 }; });
update(SETTING);
}
// HELPER FUNCTIONS -----------------------------------------------
//return an array of number from bottom to top number
// function range(bottom : number,top:number):number[]{
// return Array.from(new Array(top + bottom),(val,index)=>index+1+bottom);
// }
//adds two points together
function sumPoints(a, b) {
return { x: a.x + b.x, y: a.y + b.y };
}
var zip = function (a, b) { return a.map(function (x, i) { return [x, b[i]]; }); };
function clear() { c.clearRect(0, 0, canvas.width, canvas.height); }
function drawPixel(x, y) {
c.fillRect(((x * GLOBAL_SPACING) - pixelSize / 2), (y * GLOBAL_SPACING) - pixelSize / 2, pixelSize, pixelSize);
}
var drawPix = function (s) { return drawPixel(s.x, s.y); };
// let pointToSim = (point:point) : sim => { return {p:{x:point.x, y:point.y}, line:point.y};}
// USER FUNCTIONALITY -----------------------------------------------
var dotBox = document.getElementById("dotsBox");
var resSlider = document.getElementById("resRange");
var rotSlider = document.getElementById("rotRange");
var scalSlider = document.getElementById("scalRange");
var fxSlider = document.getElementById("fxRange");
var res = document.getElementById("res");
function togglePoints() {
displayPoints = !displayPoints;
update(SETTING);
}
function toggleLines() {
displayLines = !displayLines;
update(SETTING);
}
resSlider.oninput = function () {
SETTING.resolution = parseInt(this.value) / 100;
update(SETTING);
};
rotSlider.oninput = function () {
SETTING.rotOffset = parseInt(this.value) * 3.6;
update(SETTING);
};
scalSlider.oninput = function () {
SETTING.scalScal = parseInt(this.value) / 50;
update(SETTING);
};
fxSlider.oninput = function () {
widthScalar = (0.0003 * Math.pow(parseInt(this.value) / 5, 4)) + 1;
console.log(widthScalar);
update(SETTING);
};
// DOWNLOAD FUNCTION -----------------------------------------------
function download() {
var download = document.getElementById("download");
var image = document.getElementById("canvas").toDataURL("image/png").replace("image/png", "image/octet-stream");
download.setAttribute("href", image);
}
//run once when webpage loads
window.onload = function () {
update(SETTING);
};
| 9fecf1db5d6f0cd928d489b77a6dd0882016abb8 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 3 | TypeScript | Jesper-Hustad/LineWaveGenerator | 899c6ad8edc75e8e78155adfdb5db7c6ee9a3cb0 | 728fdbd90b651c69f94d27d5ebc98ec1f4a90124 |
refs/heads/master | <file_sep>(function($){
$.widget("dsa.addcontrols", {
options : {
holder : null
},
dropbox : function(holder){},
facebook : function(holder){
var hld = holder || this.options.holder;
if(!hld) return;
this._loadFbAPI(document, 'script', 'facebook-jssdk');
this._loadFbControls(hld);
},
instagram : function(holder){},
_disable : function(elm){},
_enable : function(elm){},
_loadDbAPI : function(){},
_loadDbControls : function(){},
_loadFbAPI : function(doc, tag, id){
var js;
if(doc.getElementById(id)) return;
$("<" + tag + ">").attr({
'id' : id,
'src' : '//connect.facebook.net/en_US/sdk.js'
}).insertBefore($(tag)[0]);
},
_loadFbControls : function(holder){
$(holder).append("<fb:login-button scope='public_profile,email' onlogin='checkLoginState();'></fb:login-button>");
},
_loadIgAPI : function(){},
_loadIgControls : function(){}
});
function checkLoginState(){
alert('FB ----- you are in :D');
}
}(jQuery));<file_sep>SOCIALPIC
=========
using Facebook, DropBox and Instagram API's
<file_sep>(function($){
$.widget("dsa.progressbar", {
options: {
value : 0
},
_create: function(){
this.element.addClass('progressbar');
this._update();
},
_update: function(){
var progress = this.options.value + "%";
this.element.text(progress);
},
_setOption: function(){
},
_constrain: function(value){
if(value > 100){
value = 100;
}else if(value < 0){
value = 0;
}
return value;
},
destroy: function(){},
value: function(value){
if(value === undefined){
return this.options.value;
}else {
this.options.value = value;
this._update();
}
}
});
}(jQuery)); | 4014a3ae8f7afcad9c6bfb243c25483ac2ecfc28 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | DSA-dev/SOCIALPIC | 631a61414db619656f56a589d62d42a2f509f1f3 | 96a3528b76d1d85a610860740f3246546c00f91e |
refs/heads/master | <repo_name>argylek/context<file_sep>/src/providers/UserProvider.js
import React from "react";
import profile from '../img/profile.png'
import banner from '../img/banner.jpg'
// Set Up The Initial Context
export const UserContext = React.createContext();
// Create an exportable consumer that can be injected into components
export const UserConsumer = UserContext.Consumer;
// Create the provider using a traditional React.Component class
class UserProvider extends React.Component {
state = {
username: "SteveJenkins",
firstName: 'Steve',
lastName: 'Jenkins',
email: '<EMAIL>',
profileImage: profile,
coverImage: banner,
dateJoined: "12/18/18",
membershipLevel: "Silver",
blerb: "I like stuff and things",
updateUser: user => this.updateUser(user)
};
updateUser = user => {
this.setState({ ...user });
};
render() {
return (
<UserContext.Provider value={this.state}>
{this.props.children}
</UserContext.Provider>
);
}
}
export default UserProvider;
<file_sep>/README.md
look in branch sections for branches
Remember the correct steps for cloning a specific branch, or cloning master and switching to a particular branch, if you can't remember what should you do?... Google :)
Also remember the steps you need to complete when cloning to set up the project. | bdc9a837f32405194f23d2be158a67fd33bc57f1 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | argylek/context | 833b5de92448c86c5c61f71b9d5809d5a84d1a57 | dc2697a5fdcd10efcefecc317e4105df38b0aafb |
refs/heads/main | <repo_name>mattlavine/mattlavine-scripts<file_sep>/EA - Active Network Interface - Updated.sh
#!/bin/sh
# Include Standard PATH for commands
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
# We do the check here because on 10.14 and earlier there are 6 columns in the routing table returned by netstat
# and on later versions there are only 4 columns. This avoids issues with grep being fed empty data from the awk { print $6 }.
activeInterfaceID=$(/usr/sbin/netstat -rn 2>&1 | /usr/bin/grep -m 1 'default' | /usr/bin/awk '{ print $6 }')
if [ -z "$activeInterfaceID" ]; then
activeInterfaceID=$(/usr/sbin/netstat -rn 2>&1 | /usr/bin/grep -m 1 'default' | /usr/bin/awk '{ print $4 }')
echo "Active Interface ID: \"$activeInterfaceID\""
else
echo "Active Interface ID: \"$activeInterfaceID\""
fi
activeInterfaceName=$(/usr/sbin/networksetup -listnetworkserviceorder 2>&1 | grep "$activeInterfaceID" | sed -e "s/.*Port: //g" -e "s/,.*//g")
echo "<result>$activeInterfaceName</result>"<file_sep>/EA - Check if Druva is Activated.sh
#!/bin/sh
if [[ -d "/Applications/Druva inSync.app" ]]; then
echo "Druva app exists. Proceeding..."
else
echo "<result>Not Installed</result>"
exit 0
fi
DOCK_PROCESS=$(pgrep -l "Dock")
if [[ "$DOCK_PROCESS" != "" ]]; then
echo "Dock is running. Proceeding..."
else
echo "Dock is not running yet. Exiting..."
exit 1
fi
loggedInUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ && ! /loginwindow/ { print $3 }' )
if [[ "$loggedInUser" == "_mbsetupuser" ]]; then
echo "Setup Assistant is still logged in. Exiting..."
exit 2
fi
if [[ -f "/Users/$loggedInUser/Library/Application Support/inSync/inSync.cfg" ]]; then
echo "inSync.cfg file exists. Proceeding..."
else
echo "<result>Config Not Found</result>"
exit 0
fi
email=$(grep -F "WRUSER" "/Users/$loggedInUser/Library/Application Support/inSync/inSync.cfg" | awk -F "'" '{print $2}')
echo "Email: \"$email\""
if [[ "$email" != "" ]]; then
echo "User is Logged In"
echo "<result>$email</result>"
else
echo "No User is Logged In"
echo "<result>User is Not Logged In</result>"
fi
exit 0<file_sep>/EA - Jamf Connect Login - Status.sh
#!/bin/sh
# This extension attribute checks to see if the string "JamfConnectLogin" exists in the loginwindow mechanisms. This means that Jamf Connect is enabled.
loginmechanisms=`security authorizationdb read system.login.console`
if [[ "$loginmechanisms" == *"JamfConnectLogin"* ]]; then
echo "<result>Enabled</result>"
else
echo "<result>Disabled</result>"
fi
exit 0<file_sep>/EA - MDM Profile Installation Date.sh
#!/bin/bash
# Enter your MDM Profile's Identifier
mdmProfileIdentifier=""
profilesList=$(profiles -C -v)
profileNumber=$(echo "$profilesList" | grep -F "profileIdentifier: $mdmProfileIdentifier" | awk -F "[][]" '{print $2}')
mdmProfileInfo=$(echo "$profilesList" | grep -F "_computerlevel[$profileNumber] attribute")
installDate=$(echo "$mdmProfileInfo" | grep -F "installationDate" | awk -F "installationDate: " '{print $2}')
realInstallDate=${installDate% +*}
echo "<result>$realInstallDate</result>"
exit 0<file_sep>/EA - Installed Configuration Profiles.sh
#!/bin/sh
# Displays all configuration profiles installed
profiles=`/usr/bin/profiles -C -v | awk -F: '/attribute: name/' | sed -n -e 's/^.*attribute: name: //p' | sort | sed -e 's/^[ \t]*//'`
if [[ ! -z "$profiles" ]]; then
echo "<result>$profiles</result>"
else
echo "<result>Not Installed</result>"
fi
exit 0 | 8a300607482955a5ee2d033c3190539093e31513 | [
"Shell"
] | 5 | Shell | mattlavine/mattlavine-scripts | 31cf5481d18700253a50bc939bd685b3b485f3b1 | 8af06512cf74260cf889156d44ea68ade737a2c5 |
refs/heads/master | <repo_name>jerrypengzhou/GeneralVerify<file_sep>/src/main/java/com/general/verified/web/spring/ioc/inject/setter/Car.java
package com.general.verified.web.spring.ioc.inject.setter;
/**
* 测试spring set方法注入依赖
* @author xujiali
*
*/
public interface Car {
void carRun();
void carHorn();
}
<file_sep>/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.general.verified</groupId>
<artifactId>general.verified</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>GeneralVerify Maven Webapp</name>
<url>http://maven.apache.org</url>
<properties>
<springframework-version>5.0.7.RELEASE</springframework-version>
<hibernate-version>5.3.1.Final</hibernate-version>
<junit-version>4.12</junit-version>
<commons-logging-version>1.2</commons-logging-version>
</properties>
<dependencies>
<!-- Spring依赖 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${springframework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${springframework-version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${springframework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${springframework-version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${springframework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${springframework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${springframework-version}</version>
</dependency>
<!-- Hibernate dependency -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate-version}</version>
</dependency>
<!--Junit dependency-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit-version}</version>
<scope>test</scope>
</dependency>
<!--commons-logging -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons-logging-version}</version>
</dependency>
</dependencies>
<build>
<finalName>GeneralVerify</finalName>
</build>
</project>
<file_sep>/src/main/java/com/general/verified/web/spring/ioc/inject/constructor/zmain.java
package com.general.verified.web.spring.ioc.inject.constructor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.general.verified.web.spring.ioc.inject.constructor.Driver;
/**
* 测试spring构造函数注入依赖
* @author xujiali
*
*/
public class zmain {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext("/spring/com/general/verified/web/spring/ioc/inject/constructor/CarContent.xml");
Driver driver = (Driver) context.getBean("driver");
driver.Driving();
}
}
<file_sep>/src/main/java/com/general/verified/web/spring/ioc/inject/constructor/Benz.java
package com.general.verified.web.spring.ioc.inject.constructor;
/**
* 测试spring构造函数注入依赖
* @author xujiali
*
*/
public class Benz implements Car {
@Override
public void carRun() {
System.out.println("Benz 在跑");
}
@Override
public void carHorn() {
System.out.println("Benz 在叫");
}
}
<file_sep>/src/main/java/com/general/verified/thoughtworks/QuestionService.java
package com.general.verified.thoughtworks;
import java.util.HashMap;
import java.util.Map;
/**
* @author xujiali
*/
public class QuestionService {
public static int count = 0;
public int getQestionSix(int[][] graphSix, int maxStops, int startStop, int endStop, int currentStops) {
if (currentStops > maxStops) {
return count;
}
if (startStop == endStop && currentStops != 0) {
count++;
return count;
}
for (int i = 0; i < graphSix.length; i++) {
if (graphSix[startStop][i] == Graph.inf) {
continue;
}
// find the route update the route as startStop set currentStops add 1
// recursion the getStopsIsFour() find new route
getQestionSix(graphSix, maxStops, i, endStop, currentStops + 1);
}
return count;
}
public int getQestionEightAndNine(String origin, String target, int[][] graphParam) {
int[] shortDistance = new int[graphParam.length];// shortest distance with A stop
Boolean[] mark = new Boolean[graphParam.length];
int currentStop = getStopMapNum(origin);
// Initialize the mark[] and shortDistance[]
for (int i = 0; i < graphParam.length; i++) {
shortDistance[i] = graphParam[currentStop][i];
mark[i] = false;
}
// If graphParam[0][0] != Graph.inf this method calling by questionNine()
// else this method calling by questionEight() and set mark[currentStop] = true
if (graphParam[0][0] != Graph.inf) {
mark[currentStop] = true;
}
for (int i = 0; i < graphParam.length; i++) {
// Each loop get the shortest distance min and currentStop
int min = Graph.inf;
for (int j = 0; j < graphParam.length; j++) {
if (!mark[j] && shortDistance[j] < min) {
min = shortDistance[j];
currentStop = j;
}
}
mark[currentStop] = true;
//compare distance (min + graphParam[currentStop][j]) and shortDistance[j]
//get the small distance storage in shortDistance[j]
for (int j = 0; j < graphParam.length; j++) {
if (!mark[j] && min + graphParam[currentStop][j] < shortDistance[j]) {
shortDistance[j] = min + graphParam[currentStop][j];
}
}
}
return shortDistance[getStopMapNum(target)];
}
public int getQeationSeven(int[][] graphSeven, int maxStops, int startStop, int endStop, int currentStops) {
if (currentStops > maxStops) {
return count;
}
if (currentStops == maxStops) {
if (startStop == endStop) {
count++;
}
return count;
}
for (int i = 0; i < graphSeven.length; i++) {
if (graphSeven[startStop][i] == Graph.inf) {
continue;
}
// find the stop updated as startStop set currentStops add 1
// recursion the getStopsIsFour() find new route
getQeationSeven(graphSeven, maxStops, i, endStop, currentStops + 1);
}
return count;
}
public int getQestionTen(int[][] graphTen, int allWeighting, int startStop, int endStop, int maxWighting) {
if (!(allWeighting < maxWighting)) {
return count;
}
// this if condition not return countTen made program could run to
// allWighting > maxWighting
if (startStop == endStop && allWeighting != 0) {
count++;
}
for (int i = 0; i < graphTen.length; i++) {
if (graphTen[startStop][i] == Graph.inf) {
continue;
}
// find the stop updated as startStop set allWeighting add
// graphNine[startStop][i]
// recursion the getStopsLessThirty() find new stops
getQestionTen(graphTen, allWeighting + graphTen[startStop][i], i, endStop, maxWighting);
}
return count;
}
public static int getStopMapNum(String stop) {
Map<String, Integer> mapping = new HashMap<String, Integer>();
for (int i = 0; i < 26; i++) {
mapping.put(String.valueOf((char) (65 + i)), i);
}
return mapping.get(stop);
}
}
<file_sep>/src/main/java/com/general/verified/web/spring/ioc/inject/annotation/Driver.java
package com.general.verified.web.spring.ioc.inject.annotation;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.general.verified.web.hibernate.models.Person;
/**
* 测试spring自动注解注入依赖
* @author xujiali
*
*/
@Component
public class Driver extends Person{
@Resource
private Car benz;
public void Driving() {
benz.carHorn();
benz.carRun();
}
}
<file_sep>/README.md
# GeneralVerify
#project purpose\n
这个项目是作者为了测试各种技术和框架所搭建
This project install for author test java and java's framework
#project version
JDK1.8
spring5.0.7
hibernate5.0.3
junit4.12
#project management tool
maven
#GeneralVerify
<file_sep>/src/main/java/com/general/verified/arithmetic/SecondMaxNumber.java
package com.general.verified.arithmetic;
public class SecondMaxNumber {
public static void main(String[] args) {
// 初始化一个序列
int[] array = {
1, 3, 4, 5, 2, 6, 9, 7, 8, 0 ,10, 19 ,15
};
System.out.println("第二大的数字是:"+ getSecondMaxNumberInArray(array));
}
public static int getSecondMaxNumberInArray(int[] array){
int[] maxArray = {0,0};
for (int i : array) {
if(maxArray[0] < i){
maxArray[0] = i;
adjustSequence(maxArray);
}
}
return maxArray[0];
}
private static int[] adjustSequence(int [] maxArray){
if(maxArray[0] > maxArray[1]){
int temp = maxArray[0];
maxArray[0] = maxArray[1];
maxArray[1] = temp;
}
return maxArray;
}
}
<file_sep>/src/main/java/com/general/verified/web/springmvc/controller/HelloWorldController.java
package com.general.verified.web.springmvc.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.ui.Model;
/**
* 测试springMVC web界面
* @author xujiali
*
*/
@Controller
public class HelloWorldController {
@RequestMapping("/hello")
public String helloWorld(Model model) {
String viewArgValue = "Hello World, SpringMVC";
model.addAttribute("message", viewArgValue);
return "/hello";
}
@RequestMapping("/test1")
public String testOne(Model model) {
ArrayList<String> al = new ArrayList<String>();
Map<String, String> map = new HashMap<String, String>();
for (int i = 0; i < 10; i++) {
al.add(String.valueOf(i));
map.put(String.valueOf(i), String.valueOf(i));
}
model.addAttribute("test1", al);
return "/test1";
}
public ModelAndView testTwo() {
ModelAndView m = new ModelAndView();
ArrayList<String> al = new ArrayList<String>();
for (int i = 0; i < 8; i++) {
al.add(String.valueOf(i));
}
m.addObject("test2", al);
m.setViewName("/test2");
return m;
}
}
<file_sep>/src/main/java/com/general/verified/web/spring/ioc/inject/annotation/Car.java
package com.general.verified.web.spring.ioc.inject.annotation;
/**
* 测试spring自动注解注入依赖
* @author xujiali
*
*/
public interface Car {
void carRun();
void carHorn();
}
| 56d266aaacd396b2d13a5474d220e8c5f5cedc5c | [
"Markdown",
"Java",
"Maven POM"
] | 10 | Java | jerrypengzhou/GeneralVerify | d71c9a6c81e24c812fa6f18eb650a4313130293c | 3415cbe5e6e4b8ae822ee8fb3640c2df671cc144 |
refs/heads/master | <repo_name>OLI9292/Connecting-view-controllers<file_sep>/Example/Transitionable.swift
import UIKit
enum Controller {
case Detail(episode: Episode)
case Episode
case Profile
var sb: UIStoryboard { return UIStoryboard(name: "Main", bundle: nil) }
var instance: UIViewController {
switch self {
case .Detail(let episode):
let vc = sb.instantiateViewController(withIdentifier: "Detail") as! DetailViewController
vc.episode = episode
return vc
case .Episode():
return sb.instantiateViewController(withIdentifier: "Episode") as! EpisodesViewController
case .Profile():
return sb.instantiateViewController(withIdentifier: "Profile") as! UINavigationController
}
}
}
protocol Transitionable: class {
var navigationController: UINavigationController? { get }
func present(vc: Controller)
func push(vc: Controller)
}
extension Transitionable {
func present(vc: Controller) {
let vc = vc.instance
navigationController?.present(vc, animated: true, completion: nil)
}
func push(vc: Controller) {
let vc = vc.instance
navigationController?.pushViewController(vc, animated: true)
}
}
<file_sep>/Example/Episode.swift
import Foundation
struct Episode {
var title: String
}
<file_sep>/README.md
# Swift Talk
## Connecting View Controllers
A different technique for connecting-view-controllers, using code from: Swift Talk Episode 5: [Connecting View Controllers](https://talk.objc.io/episodes/S01E05-connecting-view-controllers)
<file_sep>/Example/VCs.swift
import UIKit
class EpisodesViewController: UITableViewController, Transitionable {
let episodes = [
Episode(title: "Episode One"),
Episode(title: "Episode Two"),
Episode(title: "Episode Three")
]
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let episode = episodes[indexPath.row]
push(vc: Controller.Detail(episode: episode))
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return episodes.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath)
let episode = episodes[indexPath.row]
cell.textLabel?.text = episode.title
return cell
}
@IBAction func showProfile(_ sender: AnyObject) {
present(vc: Controller.Profile)
}
}
class DetailViewController: UIViewController {
@IBOutlet weak var label: UILabel? {
didSet {
label?.text = episode?.title
}
}
var episode: Episode?
}
class ProfileViewController: UIViewController {
var person: String = ""
var didTapClose: () -> () = {}
@IBAction func close(_ sender: AnyObject) {
navigationController?.dismiss(animated: true, completion: nil)
}
}
| 3924071281150e2b02f0f003f02565e3e302ee42 | [
"Swift",
"Markdown"
] | 4 | Swift | OLI9292/Connecting-view-controllers | f14557299f6774024d3e30f1ead9945189f6cbdc | bbb86bc43d86540a213bd7d9a8f1d00ff4361e27 |
refs/heads/master | <file_sep>#
# Test helper init script.
#
require 'simplecov'
# code coverage groups.
SimpleCov.start do
add_filter 'test/'
end
# load our dependencies using bundler.
require 'bundler/setup'
Bundler.setup
require 'minitest/autorun'
require 'minitest/pride'
require 'rack/test'
# load postbin lib.
require_relative './../lib/postbin'
# extend main TestCase
class MiniTest::Unit::TestCase
include Rack::Test::Methods
end
<file_sep>require 'pstore'
require 'json'
require 'sinatra/base'
require_relative 'postbin/post'
require_relative 'postbin/server'
require_relative 'postbin/storage'
require_relative 'postbin/version'
<file_sep>#!/usr/bin/env ruby
# --- use local code if possible, otherwise use gem --------------------------
begin
require 'postbin'
rescue LoadError => err
require 'rubygems'
path = ::File.dirname(::File.expand_path(__FILE__))
$LOAD_PATH.unshift path + '/../lib' if File.directory?(path) && !$LOAD_PATH.include?(path)
require 'postbin'
end
# --- cli option parsing -----------------------------------------------------
require 'optparse'
# default options.
options = { :bind => '127.0.0.1', :port => 6969, :server => 'thin', :enviroment => :production }
# available options.
opts = OptionParser.new('', 24, ' ') do |opts|
opts.banner = 'Usage: postbin [options]'
opts.separator ''
opts.separator 'PostBin options:'
opts.on('-v', '--version', 'show version number') { puts 'PostBin ' + PostBin::Version; exit }
opts.on('-h', '--help', 'show this message') { puts opts; exit; }
opts.separator ''
opts.separator 'Rack options:'
opts.on('-s', '--server SERVER', 'server (webrick, mongrel, thin, etc.)') { |s| options[:server] = s }
opts.on('-a', '--address HOST', 'listen on HOST address (default: 127.0.0.1)') { |host| options[:bind] = host }
opts.on('-p', '--port PORT', 'use PORT number (default: 6969)') { |port| options[:port] = port }
end.parse!
# --- start sinatra server ---------------------------------------------------
puts "== Starting PostBin on http://#{options[:bind]}:#{options[:port]}"
PostBin::Server.run!(options)
<file_sep>module PostBin
class Server < Sinatra::Base
dir = File.dirname(File.expand_path(__FILE__))
set :views, "#{dir}/server/views"
set :public_folder, "#{dir}/server/public"
set :static, true
# by default we store in a temp file.
set :pstore_file, Tempfile.new(['postbin', 'pstore'])
# Redirect lost users.
get '/?' do; redirect '/postbin/overview'; end
get '/postbin/?' do; redirect '/postbin/overview'; end
# Display main overview.
get '/postbin/overview' do
storage = PostBin::Storage.new(settings.pstore_file)
# pull out all urls and there posts.
@url_hits = storage.hits
@url_posts = @url_hits.inject({}) do |result, data|
url, hits = *data
result[url] = storage.posts(url)
result
end
erb :overview
end
# Display urls and there hit count as JSON.
get '/postbin/hits' do
storage = PostBin::Storage.new(settings.pstore_file)
content_type :json
storage.hits.to_json
end
# Display posts for the given URL as JSON.
get %r{/postbin/posts(.*)} do
url = params[:captures].first
storage = PostBin::Storage.new(settings.pstore_file)
content_type :json
storage.posts(url).to_json
end
# Catch all for post requests.
post '*' do
storage = PostBin::Storage.new(settings.pstore_file)
post = PostBin::Post.new(client_request_headers, request.body.read)
storage.store(request.path, post)
status 201
end
private
# Returns an array of all client side HTTP request headers.
def client_request_headers
# POST /some/url HTTP/1.1
# Accept: application/json
# Content-Type: application/json
headers = request.env.select { |k,v| k.start_with? 'HTTP_' }
.collect { |pair| [ pair[0].sub(/^HTTP_/, ''), pair[1] ] }
.collect { |pair| pair.join(': ') }
headers
end
end
end
<file_sep>## 0.1.0 (2011-11-22)
* Initial gem release, v0.1.0
| 5f077492c5f5b696ad43aa1444274b2df0d773c0 | [
"Markdown",
"Ruby"
] | 5 | Ruby | srchase/postbin | bd32338b90835a5b5562a2828296884714d5476f | 19aebab5224291578a07db4c72a9d9350eebf0c9 |
refs/heads/master | <repo_name>siddhant1/fucking-weather-app<file_sep>/Components/Body.js
import React, { Component } from "react";
import { View, Text, StyleSheet } from "react-native";
import Highlighter from "react-native-highlight-words";
const phrases = {
Default: {
title: "Fetching the Fucking Weather",
subtitle: "Be patient, you're witnessing a miracle",
highlight: "Fucking",
color: "#636363",
background: "#9C9C9C"
},
Clear: {
title: "It's Fucking Amaze Balls",
subtitle: "Rock that shit!",
highlight: "Fucking",
color: "#E32500",
background: "#FFD017"
},
Rain: {
title: "Rain rain please go away",
subtitle: "Stay inside and code all day",
highlight: "away",
color: "#004A96",
background: "#2F343A"
},
Thunderstorm: {
title: "Fucking Thunder Strike",
subtitle: "Unplug those devices",
highlight: "Thunder",
color: "#FBFF46",
background: "#020202"
},
Clouds: {
title: "Cloud storage limit reached",
subtitle: "error: 5000 - cirrocumulus",
highlight: "limit",
color: "#0044FF",
background: "#939393"
},
Snow: {
title: "Brain Fucking Freeze",
subtitle: "You're not supposed to eat it",
highlight: "Fucking",
color: "#021D4C",
background: "#15A678"
},
Drizzle: {
title: "Meh... don't even ask",
subtitle: "What did I just say?",
highlight: "don't",
color: "#B3F6E4",
background: "#1FBB68"
},
Mist: {
title: "Things are Getting Misty",
subtitle: "Fuck this sweat",
highlight: "Getting",
color: "#B3F6E4",
background: "#1FBB68"
}
};
export default class Body extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<View style={styles.body}>
{console.log(phrases[this.props.state.weather].color)}
<Highlighter
style={styles.title}
highlightStyle={{ color: phrases[this.props.state.weather].color }}
searchWords={[phrases[this.props.state.weather].highlight]}
textToHighlight={phrases[this.props.state.weather].title}
/>
<Text style={styles.subtitle}>
{phrases[this.props.state.weather].subtitle}
</Text>
</View>
);
}
}
const styles = StyleSheet.create({
body: {
alignItems: "flex-start",
justifyContent: "flex-end",
flex: 5,
margin: 15
},
title: {
fontSize: 78,
color: "black",
fontWeight: "bold"
},
subtitle: {
fontSize: 24,
color: "white"
}
});
<file_sep>/Readme.md
Created a fun weather app to test out the functionality of react-native<file_sep>/App.js
import React from "react";
import { StyleSheet, Text, View } from "react-native";
import Header from "./Components/Header";
import Body from "./Components/Body";
const phrases = {
Default: {
title: "Fetching the Fucking Weather",
subtitle: "Be patient, you're witnessing a miracle",
highlight: "Fucking",
color: "#636363",
background: "#9C9C9C"
},
Clear: {
title: "It's Fucking Amaze Balls",
subtitle: "Rock that shit!",
highlight: "Fucking",
color: "#E32500",
background: "#FFD017"
},
Rain: {
title: "Rain rain please go away",
subtitle: "Stay inside and code all day",
highlight: "away",
color: "#004A96",
background: "#2F343A"
},
Thunderstorm: {
title: "Fucking Thunder Strike",
subtitle: "Unplug those devices",
highlight: "Thunder",
color: "#FBFF46",
background: "#020202"
},
Clouds: {
title: "Cloud storage limit reached",
subtitle: "error: 5000 - cirrocumulus",
highlight: "limit",
color: "#0044FF",
background: "#939393"
},
Snow: {
title: "Brain Fucking Freeze",
subtitle: "You're not supposed to eat it",
highlight: "Fucking",
color: "#021D4C",
background: "#15A678"
},
Drizzle: {
title: "Meh... don't even ask",
subtitle: "What did I just say?",
highlight: "don't",
color: "#B3F6E4",
background: "#1FBB68"
},
Mist: {
title: "Things are Getting Misty",
subtitle: "Fuck this sweat",
highlight: "Getting",
color: "#B3F6E4",
background: "#1FBB68"
}
};
export default class App extends React.Component {
state = {
latitude: 0,
longitude: 0,
temparature: 0,
weather: "Default",
loading: false
};
componentDidMount() {
console.log(this.state);
console.log("Runnign");
navigator.geolocation.getCurrentPosition(pos => {
console.log(pos);
this.setState(
current => {
return {
...current,
latitude: pos.coords.latitude || 0,
longitude: pos.coords.longitude || 0
};
},
async () => {
let data = await fetch(
`http://api.openweathermap.org/data/2.5/weather?lat=${
this.state.latitude
}&lon=${
this.state.longitude
}&appid=62328e4464216d93be8e8d5590566f18&units=metric`
);
let json = await data.json();
console.log(json);
this.setState(
current => {
return {
...current,
weather: json.weather[0].main,
temparature: json.main.temp
};
},
() => console.log(this.state)
);
}
);
});
}
render() {
return (
<View style={{ backgroundColor: phrases[this.state.weather].background,flex:1 }}>
<Header state={this.state} />
<Body state={this.state} />
</View>
);
}
}
<file_sep>/Components/Header.js
import React, { Component } from "react";
import { View, Text, StyleSheet } from "react-native";
import { Ionicons } from "@expo/vector-icons";
const iconNames = {
Default: "md-time",
Clear: "md-sunny",
Rain: "md-rainy",
Thunderstorm: "md-thunderstorm",
Clouds: "md-cloudy",
Snow: "md-snow",
Drizzle: "md-umbrella",
Mist: "md-partly-sunny"
};
export default class Header extends Component {
render() {
return (
<View style={styles.Styles}>
<Ionicons
style={{ fontSize: 60 }}
name={iconNames[this.props.state.weather]}
size={32}
color="black"
/>
<Text style={{ fontSize: 60 }}>{parseInt(this.props.state.temparature).toFixed(1)}°C</Text>
</View>
);
}
}
const styles = StyleSheet.create({
Styles: {
flexDirection: "row",
alignItems: "center",
justifyContent: "space-around",
flex: 1.7
}
});
| 58d1f4aece9fa3a872a52012d69e130c52766643 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | siddhant1/fucking-weather-app | f0d7260c02fc24a4c126ef9745649300e89e4756 | bd5c9041c448c3f73c1faf484f34b54e77264b79 |
refs/heads/main | <repo_name>tamm/cautious-octo-disco<file_sep>/src/services/databaseService.ts
import Airtable from "airtable";
import { env } from "../models/dotenvSchema";
Airtable.configure({
endpointUrl: env.AIRTABLE_ENDPOINT_URL,
apiKey: env.AIRTABLE_API_KEY,
apiVersion: 0,
noRetryIfRateLimited: false,
});
export const base = Airtable.base(env.AIRTABLE_DATABASE_ID);
<file_sep>/README.md
# cautious-octo-disco
WCGW?
## Installation / Getting it started
Just navigate to this folder and run
```
npm install
npm start
```
## Setup
You need to provide an Airtable set up with the following:
A table named exactly `Data Sources` with the columns:
```
{
ID: '',
Name: '',
URL: ''
}
```
Then you need to provide a `.env` file or other valid `ENV` source with the following keys:
(The name of your database doesn't matter)
```
NODE_ENV=development
AIRTABLE_API_KEY=[your api key]
AIRTABLE_DATABASE_ID=[your table id]
AIRTABLE_ENDPOINT_URL=https://api.airtable.com
```
<file_sep>/src/models/dotenvSchema.ts
import { EnvType, load } from "ts-dotenv";
export type Env = EnvType<typeof schema>;
export const schema = {
PORT: {
type: Number,
optional: true,
default: 8080,
},
HEROKU_APP_NAME: {
type: /^[-a-z]+$/,
optional: true,
},
APP_URL: {
type: String,
optional: true,
},
API_KEY: {
type: String,
optional: true,
},
AIRTABLE_API_KEY: {
type: String,
optional: true,
},
AIRTABLE_DATABASE_ID: {
type: String,
optional: true,
},
AIRTABLE_ENDPOINT_URL: {
type: String,
optional: true,
},
NODE_ENV: ["production" as const, "development" as const],
};
export let env: Env;
export function loadEnv(): void {
env = load(schema);
}
<file_sep>/src/models/DataSource.ts
/**
* @swagger
* components:
* schemas:
* DataSource:
* type: object
* required:
* - id
* - name
* - url
* properties:
* ID:
* type: string
* format: uuid
* example: d290f1ee-6c54-4b01-90e6-d701748f0851
* Name:
* type: string
* example: First place to go for data
* URL:
* type: string
* format: URL
* example: http://google.com
*/
export interface DataSource {
ID: string;
Name: string;
URL: URL;
}
<file_sep>/src/routes/index.ts
import { base } from "../services/databaseService";
import * as express from "express";
import { DataSource } from "../models/DataSource";
export const register = (app: express.Application) => {
/**
* @openapi
* /datasources:
* get:
* description: List DataSources.
* tags: [DataSource]
* operationId: getDataSources
* responses:
* 200:
* description: List DataSources.
*/
app.get("/datasources", (req, res) => {
const results: Record<keyof DataSource, DataSource>[] = [];
const databaseTable = base("Data Sources")
.select({})
.eachPage(
function page(records, fetchNextPage) {
records.forEach(function (record) {
results.push({
ID: record.get("ID"),
Name: record.get("Name"),
URL: record.get("URL"),
});
});
fetchNextPage();
},
function done(err) {
if (err) {
console.error(err);
res.status(err.statusCode);
res.send(err.message);
return;
}
res.send(JSON.stringify(results));
}
);
});
/**
* @openapi
* /datasources:
* post:
* description: Add a DataSource.
* tags: [DataSource]
* operationId: addDataSource
* requestBody:
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/DataSource'
* description: DataSource to add.
* responses:
* 201:
* description: DataSource was added to the list.
* 400:
* description: Bad input data.
*/
app.post("/datasources", (req, res) => {
const databaseTable = base("Data Sources");
const { body }: { body: DataSource } = req;
let data;
if (!body || !body.Name) {
console.log(`${req.path}: Bad input data.`);
res.status(400);
res.send();
return;
}
base("Data Sources").create(
[{ fields: body }],
function (err: any, records: Record<keyof DataSource, DataSource>[]) {
if (err) {
console.error(err);
res.status(err.statusCode);
res.send(err.message);
return;
}
records.forEach(function (
record: Record<keyof DataSource, DataSource>
) {
console.log(record);
});
res.send(JSON.stringify(records));
}
);
});
};
<file_sep>/src/index.ts
import { loadEnv } from "./models/dotenvSchema";
loadEnv();
require("./server");
| 565e6fc0f5bab310d732c0809b670368a24b04d9 | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | tamm/cautious-octo-disco | 181ccaaf7fc891e3d9b1f56031234c7175dd23a9 | 313d6cfe0722f72349cf8393a493cbe4e4dbd16c |
refs/heads/master | <repo_name>danielkeithw/BBMQTTConsumer<file_sep>/pubsub.py
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# [START app]
#from google.cloud import pubsub_v1
#from google.cloud import bigquery
#from __future__ import absolute_import
import base64
import json
import logging
import os
import httplib2
from google.appengine.api import urlfetch
from pprint import pprint
from googleapiclient.discovery import build
from oauth2client.client import GoogleCredentials
#from oauth2client.contrib.appengine import OAuth2DecoratorFromClientSecrets
#import googleapiclient.discovery
#from apiclient import discovery
#from oauth2client.contrib import appengine
_SCOPE = 'https://www.googleapis.com/auth/bigquery'
from flask import current_app, Flask, render_template, request
app = Flask(__name__)
# Configure the following environment variables via app.yaml
# This is used in the push request handler to veirfy that the request came from
# pubsub and originated from a trusted source.
app.config['PUBSUB_VERIFICATION_TOKEN'] = \
os.environ['PUBSUB_VERIFICATION_TOKEN']
app.config['PUBSUB_TOPIC'] = os.environ['PUBSUB_TOPIC']
app.config['PROJECT'] = os.environ['GCLOUD_PROJECT']
credentials = GoogleCredentials.get_application_default()
bigquery = build('bigquery', 'v2', credentials=credentials)
http = credentials.authorize(httplib2.Http())
#datasets = service.datasets().list(projectId="burner-board").execute()
#credentials = appengine.AppAssertionCredentials(scope=_SCOPE)
#http = credentials.authorize(httplib2.Http())
#bigquery = discovery.build('bigquery', 'v2', http=http)
# Create the method decorator for oauth.
#decorator = OAuth2DecoratorFromClientSecrets(
# os.path.join(os.path.dirname(__file__), 'client_secrets.json'),
# scope='http://www.googleapis.com/auth/bigquery')
#pprint (decorator)
# Create the bigquery api client
#bigquery = googleapiclient.discovery.build('bigquery', 'v2')
#http = decorator.http()
# Global list to storage messages received by this instance.
MESSAGES = []
urlfetch.set_default_fetch_deadline(45)
httplib2.Http(timeout=45)
# Convert BQ current to signed integer
def fixCurrent(current):
c = float(current)
if (c > 32767):
return (c - 65535) / 100
else:
return c / 100
def bit_is_set(value, bit):
word = 1 << bit
return (value & word) > 0
def stream_data(dataset_name, table_name, data):
# bigquery_client = bigquery.Client()
# dataset = bigquery_client.dataset(dataset_name)
# table = dataset.table(table_name)
# Reload the table to get the schema.
# table.reload()
rows = data
body = {"rows":[
{"json": rows}
]}
# pprint(body)
response = bigquery.tabledata().insertAll(
projectId=app.config['PROJECT'],
datasetId=dataset_name,
tableId=table_name,
body=body).execute()
# pprint(response)
# errors = table.insert_data(rows)
# if errors:
# print('Errors:')
# pprint(errors)
# [START index]
@app.route('/', methods=['GET', 'POST'])
def index():
# if request.method == 'GET':
# return render_template('index.html', messages=MESSAGES)
# data = request.form.get('payload', 'Example payload').encode('utf-8')
# publisher = pubsub_v1.PublisherClient()
# topic_path = publisher.topic_path(
# current_app.config['PROJECT'],
# current_app.config['PUBSUB_TOPIC'])
#
# publisher.publish(topic_path, data=data)
return 'OK', 200
# [END index]
# [START push]
@app.route('/pubsub/push', methods=['POST'])
def pubsub_push():
if (request.args.get('token', '') !=
current_app.config['PUBSUB_VERIFICATION_TOKEN']):
return 'Invalid request', 400
envelope = json.loads(request.data.decode('utf-8'))
# print ("envelope=<" + str(envelope) + ">")
payload = base64.b64decode(envelope['message']['data'])
if 'attributes' in envelope['message'].keys():
attributes = envelope['message']['attributes']
if 'deviceId' in attributes.keys():
deviceId = attributes['deviceId']
if 'subFolder' in attributes.keys():
subFolder = attributes['subFolder']
else:
subFolder = ""
# 2017-10-01T18:15:41.902Z
# YYYY-[M]M-[D]D[( |T)[H]H:[M]M:[S]S[.DDDDDD]]
if 'publish_time' in envelope['message'].keys():
publish_time = envelope['message']['publish_time'][:-1]
# publish_time = "2017-10-01T18:15:41.9022"
payload_withdate = payload.split(b',', 1)
messageDate = payload_withdate[0].decode("utf-8")
# print ("msgData=<" + str(messageDate) + ">")
# print ("attributes=<" + str(attributes) + ">")
# print ("deviceId=<" + str(deviceId) + ">")
# print ("subFolder=<" + str(subFolder) + ">")
# print ("payload=<" + str(payload) + ">")
# print ("message_date=<"+ str(messageDate) + "> publish_time=<" + publish_time + "> " + " deviceId=<" + str(deviceId) + "> " + str(payload))
battery_data = {}
if "bbtelemetery" in subFolder:
metrics = payload_withdate[1][1:].split(b',')
battery_data = {
"board_name": deviceId[3:],
"voltage": float(metrics[5]) / 1000.0,
"current": 0,
"full_capacity": float(metrics[4]) / 100.0,
"remaining_capacity": float(metrics[3]) / 100.0,
"time_stamp": publish_time,
"average_current": fixCurrent(float(metrics[6])),
"instant_current": fixCurrent(float(metrics[9])),
"battery_level": float(metrics[1]),
"coulomb_counter": bit_is_set(int(metrics[0]), 11),
"rupdate_disable": bit_is_set(int(metrics[0]), 2),
"v_ok_for_qmax": bit_is_set(int(metrics[0]), 1),
"qmax_updates_enable": bit_is_set(int(metrics[0]), 0),
"otemp_charge": bit_is_set(int(metrics[8]), 15),
"otemp_discharge": bit_is_set(int(metrics[8]), 14),
"bat_hi": bit_is_set(int(metrics[8]), 13),
"bat_low": bit_is_set(int(metrics[8]), 12),
"charge_inh": bit_is_set(int(metrics[8]), 11),
"charge_notallow": bit_is_set(int(metrics[8]), 10),
"full_charge": bit_is_set(int(metrics[8]), 9),
"fastcharge_allowed": bit_is_set(int(metrics[8]), 8),
"ocv_taken": bit_is_set(int(metrics[8]), 7),
"condition_flag": bit_is_set(int(metrics[8]), 4),
"state_of_charge_1": bit_is_set(int(metrics[8]), 2),
"state_of_charge_final": bit_is_set(int(metrics[8]), 1),
"discharge": bit_is_set(int(metrics[8]), 0),
"first_dod": bit_is_set(int(metrics[10]), 13),
"dod_end_of_charge": bit_is_set(int(metrics[10]), 10),
"drtc": bit_is_set(int(metrics[10]), 9),
"raw_status": int(metrics[0]),
"raw_flags": int(metrics[8]),
"raw_flagsb": int(metrics[10]),
"message_timestamp": messageDate.replace("T", " ")
}
stream_data('telemetry', 'battery_Data', battery_data)
event_data = {}
if "bbevent" in subFolder:
metrics = payload_withdate[1][1:-1].split(b',')
event_data = {
"board_name": deviceId[3:],
"time_stamp": publish_time,
"originator": metrics[0],
"sig_strength": float(metrics[1]),
"lat": float(metrics[2]),
"lon": float(metrics[3])
}
stream_data('telemetry', 'events', event_data)
# soh_recalc
#battery_data.append(bit_is_set(int(metrics[10]), 15))
# pprint (battery_data)
# MESSAGES.append(envelope)
# MESSAGES.append(json.loads(battery_data))
# Returning any 2xx status indicates successful receipt of the message.
return 'OK', 200
# [END push]
@app.errorhandler(500)
def server_error(e):
logging.exception('An error occurred during a request.')
return """
An internal error occurred: <pre>{}</pre>
See logs for full stacktrace.
""".format(e), 500
if __name__ == '__main__':
# This is used when running locally. Gunicorn is used to run the
# application on Google App Engine. See entrypoint in app.yaml.
app.run(host='127.0.0.1', port=8080, debug=True)
# [END app]
<file_sep>/requirements.txt
Flask==0.12.2
google-cloud-pubsub==0.28.3
google-cloud-bigquery==0.27.0
gunicorn==19.7.1
google-api-python-client<file_sep>/pubsub_bq.py
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# [START app]
from google.cloud import bigquery
#from google.cloud import pubsub_v1
import base64
import json
import logging
import os
from pprint import pprint
from flask import current_app, Flask, render_template, request
app = Flask(__name__)
# Configure the following environment variables via app.yaml
# This is used in the push request handler to veirfy that the request came from
# pubsub and originated from a trusted source.
app.config['PUBSUB_VERIFICATION_TOKEN'] = \
os.environ['PUBSUB_VERIFICATION_TOKEN']
app.config['PUBSUB_TOPIC'] = os.environ['PUBSUB_TOPIC']
app.config['PROJECT'] = os.environ['GCLOUD_PROJECT']
# Global list to storage messages received by this instance.
MESSAGES = []
# Convert BQ current to signed integer
def fixCurrent(current):
c = float(current)
if (c > 32767):
return (c - 65535) / 100
else:
return c / 100
def bit_is_set(value, bit):
word = 1 << bit
return (value & word) > 0
def stream_data(dataset_name, table_name, data):
bigquery_client = bigquery.Client()
dataset = bigquery_client.dataset(dataset_name)
table = dataset.table(table_name)
# Reload the table to get the schema.
table.reload()
rows = [data]
errors = table.insert_data(rows)
if errors:
print('Errors:')
pprint(errors)
# [START index]
@app.route('/', methods=['GET', 'POST'])
def index():
# if request.method == 'GET':
# return render_template('index.html', messages=MESSAGES)
# data = request.form.get('payload', 'Example payload').encode('utf-8')
# publisher = pubsub_v1.PublisherClient()
# topic_path = publisher.topic_path(
# current_app.config['PROJECT'],
# current_app.config['PUBSUB_TOPIC'])
#
# publisher.publish(topic_path, data=data)
return 'OK', 200
# [END index]
# [START push]
@app.route('/pubsub/push', methods=['POST'])
def pubsub_push():
if (request.args.get('token', '') !=
current_app.config['PUBSUB_VERIFICATION_TOKEN']):
return 'Invalid request', 400
envelope = json.loads(request.data.decode('utf-8'))
# print ("envelope=<" + str(envelope) + ">")
payload = base64.b64decode(envelope['message']['data'])
if 'attributes' in envelope['message'].keys():
attributes = envelope['message']['attributes']
if 'deviceId' in attributes.keys():
deviceId = attributes['deviceId']
if 'subFolder' in attributes.keys():
subFolder = attributes['subFolder']
else:
subFolder = ""
# 2017-10-01T18:15:41.902Z
# YYYY-[M]M-[D]D[( |T)[H]H:[M]M:[S]S[.DDDDDD]]
if 'publish_time' in envelope['message'].keys():
publish_time = envelope['message']['publish_time'][:-1]
# publish_time = "2017-10-01T18:15:41.9022"
payload_withdate = payload.split(b',', 1)
messageDate = payload_withdate[0].decode("utf-8")
# print ("msgData=<" + str(messageDate) + ">")
# print ("attributes=<" + str(attributes) + ">")
# print ("deviceId=<" + str(deviceId) + ">")
# print ("subFolder=<" + str(subFolder) + ">")
# print ("payload=<" + str(payload) + ">")
print ("message_date=<"+ str(messageDate) + "> publish_time=<" + publish_time + "> " + " deviceId=<" + str(deviceId) + "> " + str(payload))
# battery_data = {}
battery_data = []
if "bbtelemetery" in subFolder:
metrics = payload_withdate[1][1:].split(b',')
# metrics = payload[1:].split(b',')
# battery_data['battery_level'] = float(metrics[1])
# battery_data['remaining_capacity'] = float(metrics[3]) / 100.0
# battery_data['full_capacity'] = float(metrics[4]) / 100.0
# battery_data['voltage'] = float(metrics[5]) / 1000.0
# battery_data['average_current'] = fixCurrent(float(metrics[6]))
# battery_data['instant_current'] = fixCurrent(float(metrics[9]))
# battery_data['board_name'] = deviceId[3:]
# battery_data['time_stamp'] = publish_time
# board_name
battery_data.append(deviceId[3:])
# voltage
battery_data.append(float(metrics[5]) / 1000.0)
# current
battery_data.append(0)
# full_capacity
battery_data.append(float(metrics[4]) / 100.0)
# remaining_capacity
battery_data.append(float(metrics[3]) / 100.0)
# time_stamp
battery_data.append(publish_time)
# average_current
battery_data.append(fixCurrent(float(metrics[6])))
# instant_current
battery_data.append(fixCurrent(float(metrics[9])))
# battery_level
battery_data.append(float(metrics[1]))
# CCA
battery_data.append(bit_is_set(int(metrics[0]), 11))
# RUP_DIS
battery_data.append(bit_is_set(int(metrics[0]), 2))
# VOK:
battery_data.append(bit_is_set(int(metrics[0]), 1))
# QEN:
battery_data.append(bit_is_set(int(metrics[0]), 0))
# otemp_charge BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 15))
# otemp_discharge BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 14))
# bat_hi BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 13))
# bat_low BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 12))
# charge_inh BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 11))
# charge_notallow BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 10))
# full_charge BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 9))
# fastcharge_allowed BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 8))
# ocv_taken BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 7))
# condition_flag BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 4))
# state_of_charge_1 BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 2))
# state_of_charge_final BOOLEAN NULLABLE
battery_data.append(bit_is_set(int(metrics[8]), 1))
# discharge
battery_data.append(bit_is_set(int(metrics[8]), 0))
# first_dod
battery_data.append(bit_is_set(int(metrics[10]), 13))
# dod_end_of_charge
battery_data.append(bit_is_set(int(metrics[10]), 10))
# dtrc
battery_data.append(bit_is_set(int(metrics[10]), 9))
# soh_recalc
#battery_data.append(bit_is_set(int(metrics[10]), 15))
# raw flags
battery_data.append(int(metrics[0]))
battery_data.append(int(metrics[8]))
battery_data.append(int(metrics[10]))
# Message Date
battery_data.append(messageDate.replace("T", " "))
# pprint (battery_data)
# MESSAGES.append(envelope)
# MESSAGES.append(json.loads(battery_data))
stream_data('telemetry', 'battery_Data', battery_data)
# Returning any 2xx status indicates successful receipt of the message.
return 'OK', 200
# [END push]
@app.errorhandler(500)
def server_error(e):
logging.exception('An error occurred during a request.')
return """
An internal error occurred: <pre>{}</pre>
See logs for full stacktrace.
""".format(e), 500
if __name__ == '__main__':
# This is used when running locally. Gunicorn is used to run the
# application on Google App Engine. See entrypoint in app.yaml.
app.run(host='127.0.0.1', port=8080, debug=True)
# [END app]
| a19440daed96edc27b16236caf6eacf92f1e8724 | [
"Python",
"Text"
] | 3 | Python | danielkeithw/BBMQTTConsumer | 5e72e22432213ff05ef338c27e85135eab2853a7 | 237f747438edbc7ce26cfa616d9d3e270d4c35b3 |
refs/heads/master | <repo_name>Sumusu/vuemokumoku<file_sep>/src/constant/storeKey.js
export default {
SAMPLE_KEYS: 'sampleKeys',
}
<file_sep>/src/repository/store.js
import Vue from 'vue'
import Vuex from 'vuex'
// import API from '../api'
import StoreKey from '../constant/storeKey'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
sampleData: '',
},
mutations: {
[StoreKey.SAMPLE_KEYS]: function (state, val) {
this.state.sampleData = val;
},
},
getters: {
foo : state => {
return 0
}
},
actions: {
[StoreKey.SAMPLE_KEYS]: function (context, val) {
return new Promise((res, rej) => {
API.Employee.get(val)
.then(list => {
context.commit(StoreKey.SAMPLE_KEYS, list)
res(res)
})
.catch(rej)
})
},
},
});
| d4752f0b9e00f113eabedb5f772aff14aacb0c8f | [
"JavaScript"
] | 2 | JavaScript | Sumusu/vuemokumoku | 7168d862f96a951db9beb0ed514fb14106ac773c | 9a48c9a2cffbfaf99b5cd65c8381fcf14656b1ed |
refs/heads/develop | <file_sep># l10n.dartに入力された内容を元にarbを生成するためのファイル
flutter pub run intl_translation:extract_to_arb --locale=messages --output-dir=lib/l10n lib/l10n/l10n.dart
<file_sep># BabelEditで編集された内容を元に、messages_*.dartファイルを生成
rm -rf lib/l10n/intl_messages.arb
flutter packages pub run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/l10n/l10n.dart lib/l10n/intl_*.arb
| 793ffe60e3af09e807730a565e08c3d9275e4408 | [
"Shell"
] | 2 | Shell | nerd0geek1/flutter_sample | eba7dfb9f6507a971768283efbed715e78f36731 | 04bc8048ad4d370a2f641cadfaf6b1c08ecf3dbc |
refs/heads/master | <file_sep>namespace StockExchange.Models
{
public class StockModels
{
public string Id { get; set; }
public string Name { get; set; }
public double Price { get; set; }
public string IdBoerse { get; set; }
}
}<file_sep>"# boerse"
<file_sep>using System;
using System.Diagnostics;
using System.Threading;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartupAttribute(typeof(StockExchange.Startup))]
namespace StockExchange
{
public partial class Startup
{
private static readonly Timer _timer = new Timer(OnTimerElapsed);
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
_timer.Change(TimeSpan.Zero, TimeSpan.FromSeconds(10));
Debug.WriteLine("Hello");
}
private static void OnTimerElapsed(object sender)
{
Debug.WriteLine("Hello Timer");
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace StockExchange.Models
{
public class OrdersModel
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public string IdStock { get; set; }
public int Amount { get; set; }
public double Price { get; set; }
public string Type { get; set; } //todo: enum?
public List<TxHistory> TxHistory { get; set; }
//Todo: utc?
public DateTime TimeStamp { get; set; }
public string IdBoerse { get; set; }
public string Signature { get; set; }
public string IdBank { get; set; }
public string IdCustomer { get; set; }
public OrdersModel(string idStock, int amount, int price, string type, string idCustomer)
{
IdStock = idStock;
Amount = amount;
Price = price;
Type = type;
IdCustomer = idCustomer;
TxHistory = new List<Models.TxHistory>();
TimeStamp = DateTime.UtcNow;
IdBoerse = "Afganistan";
IdBank = "bank.reimar";
Signature = "";
}
public OrdersModel()
{
}
}
}<file_sep>namespace StockExchange.Models
{
public class TxHistory
{
public string Id { get; set; }
public int Amount { get; set; }
public double Price { get; set; }
}
}<file_sep>using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Description;
using StockExchange.Models;
namespace StockExchange.Controllers
{
public class StocksController : ApiController
{
private ApplicationDbContext db = new ApplicationDbContext();
// GET: api/StockModels
public IQueryable<StockModels> GetStockModels()
{
return db.StockModels;
}
// GET: api/StockModels/5
[ResponseType(typeof(StockModels))]
public async Task<IHttpActionResult> GetStockModels(string id)
{
StockModels stockModels = await db.StockModels.FindAsync(id);
if (stockModels == null)
{
return NotFound();
}
return Ok(stockModels);
}
// PUT: api/StockModels/5
[ResponseType(typeof(void))]
public async Task<IHttpActionResult> PutStockModels(string id, StockModels stockModels)
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
if (id != stockModels.Id)
{
return BadRequest();
}
db.Entry(stockModels).State = EntityState.Modified;
try
{
await db.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
{
if (!StockModelsExists(id))
{
return NotFound();
}
else
{
throw;
}
}
return StatusCode(HttpStatusCode.NoContent);
}
// POST: api/StockModels
[ResponseType(typeof(StockModels))]
public async Task<IHttpActionResult> PostStockModels(StockModels stockModels)
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
db.StockModels.Add(stockModels);
try
{
await db.SaveChangesAsync();
}
catch (DbUpdateException)
{
if (StockModelsExists(stockModels.Id))
{
return Conflict();
}
else
{
throw;
}
}
return CreatedAtRoute("DefaultApi", new { id = stockModels.Id }, stockModels);
}
// DELETE: api/StockModels/5
[ResponseType(typeof(StockModels))]
public async Task<IHttpActionResult> DeleteStockModels(string id)
{
StockModels stockModels = await db.StockModels.FindAsync(id);
if (stockModels == null)
{
return NotFound();
}
db.StockModels.Remove(stockModels);
await db.SaveChangesAsync();
return Ok(stockModels);
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
db.Dispose();
}
base.Dispose(disposing);
}
private bool StockModelsExists(string id)
{
return db.StockModels.Count(e => e.Id == id) > 0;
}
}
}<file_sep>namespace StockExchange.Migrations
{
using System.Data.Entity.Migrations;
public partial class update1 : DbMigration
{
public override void Up()
{
CreateTable(
"dbo.OrdersModels",
c => new
{
Id = c.Int(nullable: false, identity: true),
IdStock = c.String(),
Amount = c.Int(nullable: false),
Price = c.Double(nullable: false),
Type = c.String(),
TimeStamp = c.DateTime(nullable: false),
IdBoerse = c.String(),
Signature = c.String(),
IdBank = c.String(),
IdCustomer = c.String(),
})
.PrimaryKey(t => t.Id);
CreateTable(
"dbo.TxHistories",
c => new
{
Id = c.String(nullable: false, maxLength: 128),
Amount = c.Int(nullable: false),
Price = c.Double(nullable: false),
OrdersModel_Id = c.Int(),
})
.PrimaryKey(t => t.Id)
.ForeignKey("dbo.OrdersModels", t => t.OrdersModel_Id)
.Index(t => t.OrdersModel_Id);
}
public override void Down()
{
DropForeignKey("dbo.TxHistories", "OrdersModel_Id", "dbo.OrdersModels");
DropIndex("dbo.TxHistories", new[] { "OrdersModel_Id" });
DropTable("dbo.TxHistories");
DropTable("dbo.OrdersModels");
}
}
}
<file_sep>namespace StockExchange.Migrations
{
using System.Data.Entity.Migrations;
internal sealed class Configuration : DbMigrationsConfiguration<StockExchange.Models.ApplicationDbContext>
{
public Configuration()
{
AutomaticMigrationsEnabled = false;
ContextKey = "StockExchange.Models.ApplicationDbContext";
}
protected override void Seed(StockExchange.Models.ApplicationDbContext context)
{
// This method will be called after migrating to the latest version.
// You can use the DbSet<T>.AddOrUpdate() helper extension method
// to avoid creating duplicate seed data. E.g.
//
// context.People.AddOrUpdate(
// p => p.FullName,
// new Person { FullName = "<NAME>" },
// new Person { FullName = "<NAME>" },
// new Person { FullName = "<NAME>" }
// );
//
context.StockModels.AddOrUpdate(
new Models.StockModels { Id = "ATX", IdBoerse = "Afganistan", Name = "Austrian Traded Index", Price = 2523.39 },
new Models.StockModels { Id = "GOOGL", IdBoerse = "Afganistan", Name = "Alphabet Inc.", Price = 764.55 },
new Models.StockModels { Id = "MSFT", IdBoerse = "Afganistan", Name = "Microsoft", Price = 59.46 },
new Models.StockModels { Id = "AAPL", IdBoerse = "Afganistan", Name = "Apple", Price = 109.86}
);
context.OrdersModels.AddOrUpdate(
new Models.OrdersModel("ATX", 100, 2000, "Buy", "customer.reimar"),
new Models.OrdersModel("ATX", 30, 1800, "Sell", "customer.reimar"),
new Models.OrdersModel("GOOGL", 100, 470, "Buy", "customer.reimar"));
}
}
}
| 05cb2e57ff02ae85e89e8a47c222b9367a171feb | [
"Markdown",
"C#"
] | 8 | C# | reikla/boerse | 4638a98b5c9688b4a1f8e3d1f467fb6f1c0b98c9 | 906d4e580404f3064aba0c90828c9817a5b1b2b1 |
refs/heads/master | <repo_name>Chinalijian/ACGN2D3D<file_sep>/acgn/Utils/DMServerApiConfig.h
//
// DMServerApiConfig.h
// acgn
//
// Created by Ares on 2017/9/11.
// Copyright © 2017年 Discover Melody. All rights reserved.
//
#ifndef DMServerApiConfig_h
#define DMServerApiConfig_h
#define App_Version [[NSBundle mainBundle].infoDictionary objectForKey:@"CFBundleShortVersionString"]
#define SERVER_ENVIRONMENT 0
/**************************************************************************************************************/
#if SERVER_ENVIRONMENT == 0 //正式
#define DM_Local_Url @"http://www.jiayiworld.com/"//服务器访问地址
#elif
#endif
#define DM_Url DM_Local_Url
//登录
#define DM_User_Loing_Url [DM_Url stringByAppendingFormat:@"user/login"]
//注册
#define DM_User_Register_Url [DM_Url stringByAppendingFormat:@"user/register"]
//注册获取验证码
#define DM_Register_Code_Url [DM_Url stringByAppendingFormat:@"user/getVerCode"]
//找回密码验证码
#define DM_Find_Psd_Code_Url [DM_Url stringByAppendingFormat:@"user/findByVerCode"]
//找回密码验证码校验
#define DM_Confirm_Code_Url [DM_Url stringByAppendingFormat:@"user/confirmCode"]
//确认找回密码
#define DM_FindPassWord_Url [DM_Url stringByAppendingFormat:@"user/findPassWord"]
//修改密码
#define DM_Modify_Psd_Url [DM_Url stringByAppendingFormat:@"user/updatePassword"]
//修改昵称
#define DM_Modify_NickName_Url [DM_Url stringByAppendingFormat:@"user/updateUserName"]
//首页角色列表
#define DM_Role_List_Url [DM_Url stringByAppendingFormat:@"role/roleList"]
//首页关注列表
#define DM_FollowHome_Url [DM_Url stringByAppendingFormat:@"post/isFollowHome"]
//首页广场
#define DM_HomePost_Url [DM_Url stringByAppendingFormat:@"post/homePost"]
//获取最新的帖子
#define DM_Latest_Post_Url [DM_Url stringByAppendingFormat:@"post/refreshPost"]
//动态详情
#define DM_GetPostDetails_Url [DM_Url stringByAppendingFormat:@"post/getPostDetils"]
//动态详情评论列表
#define DM_GetPostComment_List_Url [DM_Url stringByAppendingFormat:@"post/getPostComment"]
//个人详情里 人物发的帖子列表
#define DM_GetRoleDetails_List_Url [DM_Url stringByAppendingFormat:@"role/roleDetails"]
//个人详情人物信息
#define DM_GetRoleInfoDetails_Url [DM_Url stringByAppendingFormat:@"role/getRoleInfo"]
//吐槽中心/二级评论详情
#define DM_GetCommentDetails_Url [DM_Url stringByAppendingFormat:@"post/newCommentDetails"]//[DM_Url stringByAppendingFormat:@"post/getCommentDetails"]
//收藏
#define DM_Add_Collection_Url [DM_Url stringByAppendingFormat:@"user/post/addCollection"]
//取消收藏
#define DM_Del_Collection_Url [DM_Url stringByAppendingFormat:@"user/post/delCollection"]
//点赞-帖子
#define DM_Add_Fabulous_Url [DM_Url stringByAppendingFormat:@"post/addFabulous"]
//取消点赞-帖子
#define DM_Del_Fabulous_Url [DM_Url stringByAppendingFormat:@"post/delFabulous"]
//点赞-评论
#define DM_Add_Praise_Url [DM_Url stringByAppendingFormat:@"comment/addPraise"]
//取消点赞-评论
#define DM_Del_Praise_Url [DM_Url stringByAppendingFormat:@"comment/delPraise"]
//发表评论
#define DM_Add_Comment_Url [DM_Url stringByAppendingFormat:@"post/addComment"]
//添加关注
#define DM_Add_Follow_Url [DM_Url stringByAppendingFormat:@"user/addFollow"]
//取消关注
#define DM_Del_Follow_Url [DM_Url stringByAppendingFormat:@"user/delFollow"]
//吐槽我的
#define DM_ReplyMe_Url [DM_Url stringByAppendingFormat:@"user/news/replyMe"]
//我吐槽的
#define DM_MySend_Url [DM_Url stringByAppendingFormat:@"user/news/mySend"]
//是否有未读消息
#define DM_HasNoRead_Msg_Url [DM_Url stringByAppendingFormat:@"user/news/hasNoRead"]
//收藏列表
#define DM_CollectionList_Url [DM_Url stringByAppendingFormat:@"user/post/collectionList"]
//获取用户信息
#define DM_Get_User_Info_Url [DM_Url stringByAppendingFormat:@"user/getUserInfo"]
//上传头像
#define Upload_Head_Image_Url [DM_Url stringByAppendingFormat:@"user/uploadAvatar"]
//weixin
#define Login_Wecat_Url [DM_Url stringByAppendingFormat:@"user/wxLogin"]
//qq
#define Login_QQ_Url [DM_Url stringByAppendingFormat:@"user/qqLogin"]
//weibo
#define Login_Weibo_Url [DM_Url stringByAppendingFormat:@"user/wbLogin"]
//绑定手机号获取验证码
#define Bind_Phone_Code_Url [DM_Url stringByAppendingFormat:@"user/getBindCode"]
//绑定手机号
#define Bind_Phone_Url [DM_Url stringByAppendingFormat:@"user/bindPhone"]
#endif /* DMServerApiConfig_h */
<file_sep>/acgn/Vendors/LiveSDK/include/memory/LDAllocator.h
/*
* LDAllocator.h
*
* Live2Dで使用するメモリを確保・破棄するためのクラス
*
* カスタマイズしたい場合は、サブクラスを作り、malloc, freeをオーバーライドし、
* Live2Dの初期化時に登録する
*
* Live2D::init( live2d::LDAllocator* allocator ) ;
*
* Copyright(c) Live2D Inc. All rights reserved.
* [[ CONFIDENTIAL ]]
*/
#ifndef __LIVE2D_LDALLOCATOR_H__
#define __LIVE2D_LDALLOCATOR_H__
//#include "../Live2D.h"
//--------- LIVE2D NAMESPACE ------------
namespace live2d {
class LDAllocator // LDObjectを継承しない
{
public:
typedef enum {
MAIN = 0 ,
GPU
#ifdef L2D_TARGET_PS4
,SHADER,
#endif
} Type ;
public:
LDAllocator();
virtual ~LDAllocator();
virtual void* pageAlloc( unsigned int size , LDAllocator::Type allocType ) = 0 ;
virtual void pageFree( void* ptr , LDAllocator::Type allocType ) = 0 ;
virtual void init(){}
virtual void dispose(){}
};
}
//------------------------- LIVE2D NAMESPACE ------------
#endif
<file_sep>/Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
target 'acgn' do
pod 'AFNetworking', '~> 3.0'
pod 'SDWebImage', '~> 4.0'
pod 'SDWebImage/GIF'
pod 'Masonry', '~> 1.0'
pod 'MJRefresh', '~> 3.1'
pod 'MJExtension', '~> 3.0'
pod 'Reachability', '~> 3.1.1'
pod 'Toast', '~> 3.1.0'
pod 'SVProgressHUD'
pod 'IQKeyboardManager'
pod 'LUNSegmentedControl'
# 集成微信(精简版0.2M)
pod 'UMengUShare/Social/WeChat'
# 集成QQ/QZone/TIM(精简版0.5M)
pod 'UMengUShare/Social/QQ'
# 集成新浪微博(精简版1M)
pod 'UMengUShare/Social/Sina'
pod 'ZFDownload'
pod 'SSZipArchive'
end
<file_sep>/acgn/Class/Home/Details/ModelShow/UnityController.h
//
// UnityController.h
// UnityDemo
//
// Created by Ares on 2018/3/8.
// Copyright © 2018年 <NAME>. All rights reserved.
//
//#import "UnityAppController.h"
//
//@interface UnityController : UnityAppController
//@property (nonatomic, readonly, weak) UIView *playView; /* 展示Unity的view */
//
//+ (instancetype)instance;
//- (void)initUnity;
//- (void)pauseUnity;
//- (void)startUnity;
//- (BOOL)isPaused;
//
//@end
<file_sep>/acgn/Vendors/LiveSDK/include/param/ParamPivots.h
/**
* ParamPivots.h
*
*
* 補間可能な IDrawData / IBaseDataで利用される
* パラメータごとに、ピボットをとる値を設定する。
*
* 例) ANGLE_X ( 0 ) => pivots { -30 , 0 , 30 }
*
* エディタ以外では静的な値となる。
*
* 但し、描画用の一時データを保持することもある。
*
*
* Copyright(c) Live2D Inc. All rights reserved.
* [[ CONFIDENTIAL ]]
*/
#ifndef __LIVE2D_PARAMPIVOTS_H__
#define __LIVE2D_PARAMPIVOTS_H__
#ifndef __SKIP_DOC__
#include "../Live2D.h"
#include "../type/LDVector.h"
#include "../ModelContext.h"
#include "../io/ISerializableV2.h"
//------------ LIVE2D NAMESPACE ------------
namespace live2d
{
class ParamID ;
/**********************************************************************************************
@brief パラメータのキーの管理クラス
**********************************************************************************************/
class ParamPivots : public ISerializableV2
{
public:
static const int PARAM_INDEX_NOT_INIT = -2 ; // 値が存在しない場合が -1を取るので -2
public:
ParamPivots();
virtual ~ParamPivots();
public:
virtual void readV2(BReader & br , MemoryParam* memParam ) ;
public:
inline int getParamIndex( int initVersion )
{
if( this->indexInitVersion != initVersion )
{
_paramIndex = PARAM_INDEX_NOT_INIT ;
}
return _paramIndex ;
}
inline void setParamIndex_(int index , int initVersion )
{
this->_paramIndex = index ;
this->indexInitVersion = initVersion ;
}
inline ParamID * getParamID() const { return paramID ; }
inline void setParamID(ParamID * v){ paramID = v ; }
inline int getPivotCount(){ return pivotCount ; }
inline l2d_paramf * getPivotValue(){ return pivotValue ; }
inline void setPivotValue(int _pivotCount , l2d_paramf * _values)
{
this->pivotCount = _pivotCount ;
this->pivotValue = _values ;
}
inline int getTmpPivotIndex(){ return tmpPivotIndex ; }
inline void setTmpPivotIndex(int v){ tmpPivotIndex = v ; }
inline float getTmpT(){ return tmpT ; }
inline void setTmpT(float t){ tmpT = t ; }
#if L2D_SAMPLE
void DUMP() ;
#endif
private:
//Prevention of copy Constructor
ParamPivots( const ParamPivots & ) ;
ParamPivots& operator=( const ParamPivots & ) ;
private:
//---- Field ----
int pivotCount ;
ParamID* paramID ; // パラメータIDは解放しなくてよい
l2d_paramf* pivotValue ; // ld_paramfの配列[] 複数の値をピボットに持つ(外部で管理するためdelete不要)
// ---- 計算時の一時情報
int _paramIndex ; // 初期化前はPARAM_INDEX_NOT_INIT
int indexInitVersion ; // indexをキャッシュした時の modelDrawContextのバージョン
int tmpPivotIndex ; // 一時ピボット
float tmpT ; // tmpPivotIndex , tmpPivotIndex+1 の内分比 (0の場合は内分しない)
};
}
//------------ LIVE2D NAMESPACE ------------
#endif // __SKIP_DOC__
#endif // __LIVE2D_PARAMPIVOTS_H__
<file_sep>/acgn/Class/Home/Details/ModelShow/Mode3DViewController.h
////
//// Mode3DViewController.h
//// acgn
////
//// Created by Ares on 2018/3/13.
//// Copyright © 2018年 <NAME>. All rights reserved.
////
//
//#import <UIKit/UIKit.h>
//#import "DMBaseMoreController.h"
//@interface Mode3DViewController : DMBaseMoreController
//@property (nonatomic, strong) RoleDetailsDataModel *detailData;
//@end
<file_sep>/acgn/Vendors/LiveSDK/include/memory/tmp/MHPageHeaderTmp.h
/**
* MHPageHeaderTmp.h
*
* 一時インスタンス用のメモリ保持用クラス
*
* 通常の確保・破棄を行うメモリ実装
*
* Copyright(c) Live2D Inc. All rights reserved.
* [[ CONFIDENTIAL ]]
*/
#pragma once
#ifndef __SKIP_DOC__
#include "../../Live2D.h"
#include "../LDObject.h"
#include "../AMemoryHolder.h"
#include "../APageHeader.h"
//--------- LIVE2D NAMESPACE ------------
namespace live2d
{
class MemoryHolderTmp ;
class MHBin ;
//==========================================================
// ページヘッダ クラス
//
// Pageの先頭にPageHeaderが入り、以降にデータが並ぶ
// PageHeaderのサイズは64-sizeof(AllocHeader)以下とする
// chunkの先頭は、this + 64 - sizeof( AllocHeader )となり、ポインタは this + 64となる
//==========================================================
class MHPageHeaderTmp : public APageHeader
{
public:
// placement newを行う
MHPageHeaderTmp( MemoryHolderTmp* holder , MHBin* bin , l2d_size_t pageSize , l2d_size_t chunkSize , l2d_size_t pageOffset ) ;
static l2d_size_t calcChunkCount( l2d_size_t pageSize , l2d_size_t chunkSize ) ;
// 使用可能な最初の要素のインデックスを取り出し、使用中フラグを立てる
int getFirstEmptyIndexAndSetFlag(MHBin* bin) ;
void* getPtr( int index ) ;
AllocHeader* getAllocHeaderPtr( int index ) ;
int getIndexOfPtr( void* ptr ) ;
// 使用可能な最初の要素のインデックスを取り出し、使用中フラグを立てる
void setFlag( int index , bool flag ) ;
bool getFlag( int index ) ;
// 開放する
virtual void free_exe( void* ptr ){ holder->free_exe( this , ptr ) ; }
protected:
~MHPageHeaderTmp(){}// placement newを使い/deleteはしない
public:// 仮
// []内は、32のバイト数と、64bitのバイト数
//void* vtable // [4-8]
MemoryHolderTmp* holder ; // [4-8]
l2d_uint32 bitmask[3] ; // [12] 32*3=最大96個のフラグを持つ但し、かならずしもPageに96個保持するとは限らない
// 使用中のものはフラグが立つ。
l2d_uint16 emptyCount ; // [2]
l2d_uint16 chunkCount ; // [2] チャンクの合計数
l2d_uint32 chunkSize ; // [4] 一つのデータのサイズ(AllocHeaderを含む)
l2d_uint32 pageSize ; // [4]
// ここまで 32-36
MHPageHeaderTmp* nextPage ; // [4-8]
l2d_uint8 pageOffset ; // [1] ページがアライメント調整される場合の調整バイト数(最大32)
l2d_uint8 binNo ; // [1] MHBinの番号
// 8-16
// 64bit版を考えると最大で 64-8 = 56byte
} ;
}
//--------- LIVE2D NAMESPACE ------------
#endif // __SKIP_DOC__
<file_sep>/acgn/Vendors/LiveSDK/include/motion/EyeBlinkMotion.h
/**
* EyeBlinkMotion.h
*
* Copyright(c) Live2D Inc. All rights reserved.
* [[ CONFIDENTIAL ]]
*/
#ifndef __LIVE2D_EYE_BLINK_MOTION_H__
#define __LIVE2D_EYE_BLINK_MOTION_H__
#include "../memory/LDObject.h"
#include "../type/LDVector.h"
#include "../ALive2DModel.h"
//--------- LIVE2D NAMESPACE ------------
namespace live2d
{
class EyeBlinkMotion : public live2d::LDObject
{
public:
// 眼の状態定数
enum EYE_STATE{
STATE_FIRST = 0 ,
STATE_INTERVAL ,
STATE_CLOSING ,// 閉じていく途中
STATE_CLOSED , // 閉じている状態
STATE_OPENING ,// 開いていく途中
};
public:
// Constructor
EyeBlinkMotion();
// Destructor
virtual ~EyeBlinkMotion();
public:
// 次回のまばたきモーションの時刻を設定
long long calcNextBlink() ;
// インターバル時間の設定
void setInterval( int blinkIntervalMsec) ;
// まばたきモーションの設定
void setEyeMotion( int closingMotionMsec , int closedMotionMsec , int openingMotionMsec ) ;
// 指定したモデルのパラメータ設定
void setParam( live2d::ALive2DModel *model ) ;
private:
long long nextBlinkTime ; // 次回眼パチする時刻(msec)
int eyeState ; // 現在の状態
long long stateStartTime ; // 現在のstateが開始した時刻
bool closeIfZero; // IDで指定された眼のパラメータが、0のときに閉じるなら true 、1の時に閉じるなら false
live2d::LDString eyeID_L ; // 左目のID
live2d::LDString eyeID_R ; // 右目のID
int blinkIntervalMsec ; //
int closingMotionMsec ; // 眼が閉じるまでの時間
int closedMotionMsec ; // 閉じたままでいる時間
int openingMotionMsec ; // 眼が開くまでの時間
};
}
//--------- LIVE2D NAMESPACE ------------
#endif // __LIVE2D_EYE_BLINK_MOTION_H__
<file_sep>/README.md
# ACGN2D3D
Unity集成
<file_sep>/acgn/Vendors/LiveSDK/include/memory/tmp/MHBin.h
/**
* MHBin.h
*
* 一時インスタンス用のメモリ保持用クラス
*
* 通常の確保・破棄を行うメモリ実装
*
* Copyright(c) Live2D Inc. All rights reserved.
* [[ CONFIDENTIAL ]]
*/
#pragma once
#ifndef __SKIP_DOC__
#include "../../Live2D.h"
#include "../LDObject.h"
#include "../AMemoryHolder.h"
#include "../APageHeader.h"
//--------- LIVE2D NAMESPACE ------------
namespace live2d
{
class MemoryHolderTmp ;
class MHPageHeaderTmp ;
//==========================================================
// Bin(ビン)クラス
// 32 , 64 , 128等バイトサイズごとにページデータを格納する
//==========================================================
class MHBin
{
public:
MHBin() ;
void init( l2d_uint16 binNo , l2d_size_t _chunkSize , l2d_size_t _pageSize ) ;
l2d_size_t getChunkSize( l2d_size_t malloc_size ) ;
public:// 仮
l2d_size_t chunkSize ; // 1つのチャンクサイズ。AllocHeaderを含む。0の時は自由なサイズ
l2d_size_t pageSize ; // ページ全体のサイズ。AllocHeaderを含む。0の時は自由なサイズ
l2d_uint16 pageChunkCount ; // 1つのページに入るチャンク数
l2d_uint16 binNo ; // 自身のBin番号(index)
l2d_uint32 bitmask[3] ; // 使用可能なビットを1とする(使用中という意味ではない)。0は使用不可
MHPageHeaderTmp* filledPages ; // 全部使用中
MHPageHeaderTmp* curPages ; // 使用可能ページ
} ;
}
//--------- LIVE2D NAMESPACE ------------
#endif // __SKIP_DOC__
<file_sep>/acgn/Utils/ADefine.h
//
// ADefine.h
// acgn
//
// Created by Ares on 2018/2/1.
// Copyright © 2018年 <NAME>. All rights reserved.
//
#ifndef ADefine_h
#define ADefine_h
#pragma mark - broadcast
//登录成功的通知
#define DMNotification_Login_Success_Key @"Login_Success_Key"
//退出登录成功的通知
#define DMNotification_LogOut_Success_Key @"LogOut_Success_Key"
///关注成功
#define DMNotification_Follw_Success_Key @"Follow_Success_Key"
#pragma mark - Font
#define DMFontPingFang_Light(fontSize) [UIFont fontWithName:@"PingFangSC-Light" size:fontSize]//细体
#define DMFontPingFang_UltraLight(fontSize) [UIFont fontWithName:@"PingFangSC-UltraLight" size:fontSize]//极细体
#define DMFontPingFang_Medium(fontSize) [UIFont fontWithName:@"PingFangSC-Medium" size:fontSize]//中黑体
#define DMFontPingFang_Thin(fontSize) [UIFont fontWithName:@"PingFangSC-Thin" size:fontSize]//纤细体
#define DMFontPingFang_Regular(fontSize) [UIFont fontWithName:@"PingFangSC-Regular" size:fontSize]//常规
#pragma mark - Color
#define DMColorWithRGBA(red,green,blue,alpha) [UIColor colorWithR:red g:green b:blue a:alpha]
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((((rgbValue) & 0xFF0000) >> 16))/255.f \
green:((((rgbValue) & 0xFF00) >> 8))/255.f \
blue:(((rgbValue) & 0xFF))/255.f alpha:1.0]
#define DMColorWithHexString(hex) [UIColor colorWithHexString:hex]
#define DMColorBaseMeiRed DMColorWithRGBA(246, 8, 112, 1)
#define DMColor102 DMColorWithRGBA(102, 102, 102, 1)
#define DMColor153 DMColorWithRGBA(153, 153, 153, 1)
#define DMColor33(alpha) DMColorWithRGBA(33, 33, 33, alpha)
#pragma mark - Numerical value
#define DMScreenHeight [UIScreen mainScreen].bounds.size.height
#define DMScreenWidth [UIScreen mainScreen].bounds.size.width
#define DMNavigationBarHeight 64
#define DMIPhoneXOffset 44
#define DMScaleWidth(w) (DMScreenWidth * w / 667)
#define DMScaleHeight(h) (DMScreenHeight * h / 375)
#define IS_IPHONE_X (IS_IPHONE && SCREEN_MAX_LENGTH == 812.0)
#define PlaceholderImage [UIImage imageNamed:@"public_logo"]
#define Commit_Font [UIFont systemFontOfSize:13]
#pragma mark - Log
#ifdef DEBUG
#define DMLog(...) NSLog(__VA_ARGS__);
#define NSLog(...) NSLog(__VA_ARGS__);
#define DMLogFunc DMLog(@"%s",__func__);
#define DMLogLine(arg1) DMLog(@"M:%s, L:%d.|\n%@", __func__, __LINE__, arg1);
#else
#define DMLog(...)
#define DMLogLine(arg1)
#define NSLog(...)
#define DMLogFunc DMLog(...)
#endif
#pragma mark - Other
//系统版本是否大于等于11
#define DM_SystemVersion_11 (([[UIDevice currentDevice].systemVersion integerValue] >= 11)?1:0)
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define SCREEN_MAX_LENGTH (MAX(DMScreenWidth, DMScreenHeight))
#define IS_IPHONE_X (IS_IPHONE && SCREEN_MAX_LENGTH == 812.0)
#define HeadPlaceholderName [UIImage imageNamed:@"image_head_placeholder_icon"]
#define WS(weakSelf) __weak __typeof(&*self)weakSelf = self;
#define DMNotificationCenter [NSNotificationCenter defaultCenter]
#define APP_DELEGATE ((AppDelegate *)[[UIApplication sharedApplication] delegate])
#define OBJ_IS_NIL(s) (s==nil || [s isKindOfClass:[NSNull class]])
#define STR_IS_NIL(key) (([@"<null>" isEqualToString:(key)] || [@"" isEqualToString:(key)] || key == nil || [key isKindOfClass:[NSNull class]] || [@"<nil>" isEqualToString:(key)]) ? 1: 0)
//headColor
#define Head_Blue_Color UIColorFromRGB(0x75D2FD)
#define Head_Yellow_Color UIColorFromRGB(0xFFE430)
#define Head_Red_Color UIColorFromRGB(0xF2C2ED)
#define NavigationBarHeight (44.0f)
#define StatusBarHeight (20.0f)
#define Default_Placeholder_Image [UIImage imageNamed:@"image_error_icon"]
#define Default_PlaceholderLoading_Image [UIImage imageNamed:@"Image_loading_icon"]
/** 设备屏幕宽 */
#define kMainScreenWidth [UIScreen mainScreen].bounds.size.width
/** 设备屏幕高度 */
#define kMainScreenHeight [UIScreen mainScreen].bounds.size.height
/** 6位十六进制颜色转换 */
//#define UIColorFromRGB(rgbValue) \
//[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
/** 6位十六进制颜色转换,带透明度 */
#define UIAlphaColorFromRGB(rgbValue,a) \
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:a]
#endif /* ADefine_h */
<file_sep>/acgn/Vendors/LiveSDK/include/io/data/Arrays2D.h
/**
* Arrays2D.h
*
* Copyright(c) Live2D Inc. All rights reserved.
* [[ CONFIDENTIAL ]]
*/
#ifndef __LIVE2D_ARRAYS2D_H__
#define __LIVE2D_ARRAYS2D_H__
#ifndef __SKIP_DOC__
#include "../../memory/LDObject.h"
//--------- LIVE2D NAMESPACE ------------
namespace live2d
{
/**********************************************************************
@brief 多次元配列を戻り値にするためのクラス
展開後は、単純なポインタとして扱う
Destructorでは、中身は削除されない!!
**********************************************************************/
class Arrays2D : public live2d::LDObject
{
public:
Arrays2D( void** ptr , int size1 , int size2 );
virtual ~Arrays2D();
private:
void ** ptr ;
int size1 ;
int size2 ;
};
}
//------------------------- LIVE2D NAMESPACE ------------
#endif // __SKIP_DOC__
#endif // __LIVE2D_ARRAYS2D_H__
<file_sep>/acgn/Vendors/LiveSDK/LAppDefine.h
/*
*
* You can modify and use this source freely
* only for the development of application related Live2D.
*
* (c) Live2D Inc. All rights reserved.
*/
#pragma once
//C++ std
//#include <string>
//#include <vector>
// 画面
static const float VIEW_MAX_SCALE = 2.0f;
static const float VIEW_MIN_SCALE = 0.8f;
static const float VIEW_LOGICAL_LEFT = -1;
static const float VIEW_LOGICAL_RIGHT = 1;
static const float VIEW_LOGICAL_MAX_LEFT = -2;
static const float VIEW_LOGICAL_MAX_RIGHT = 2;
static const float VIEW_LOGICAL_MAX_BOTTOM = -2;
static const float VIEW_LOGICAL_MAX_TOP = 2;
static const float VIEW_LOGICAL_MAX_BOTTOM_X = -4;
static const float VIEW_LOGICAL_MAX_TOP_X = 4;
// モデル定義------------------------------------------------------------------------
// view的背景图片
static const char BACK_IMAGE_NAME[] = "back_class_normal.png" ;
//模型的定义--
static const char MODEL_HARU[] = "34/tangli/tangli.model.json";
//static const char MODEL_HARU_A[] = "live2d/haru/haru_01.model.json";
//static const char MODEL_HARU_B[] = "live2d/haru/haru_02.model.json";
//static const char MODEL_SHIZUKU[] = "live2d/shizuku/shizuku.model.json";
//static const char MODEL_WANKO[] = "live2d/wanko/wanko.model.json";
// 匹配外部文件
static const char MOTION_GROUP_IDLE[] ="idle"; // 眼圈
// Ares Modify
//static const char MOTION_GROUP_TAP_BODY[] =""; // 点身体
//static const char MOTION_GROUP_FLICK_HEAD[] =""; // 点击头
static const char MOTION_GROUP_TAP_BODY[] ="tap_body"; // 点身体
static const char MOTION_GROUP_FLICK_HEAD[] ="flick_head"; // 点击头
static const char MOTION_GROUP_PINCH_IN[] ="pinch_in"; // 扩大
static const char MOTION_GROUP_PINCH_OUT[] ="pinch_out"; // 缩小
static const char MOTION_GROUP_SHAKE[] ="shake"; // 摇动
// 匹配外部文件
static const char HIT_AREA_HEAD[] ="head";
static const char HIT_AREA_BODY[] ="body";
// 动作的优先级
static const int PRIORITY_NONE = 0;
static const int PRIORITY_IDLE = 1;
static const int PRIORITY_NORMAL= 2;
static const int PRIORITY_FORCE = 3;
class LAppDefine {
public:
static const bool DEBUG_LOG=false;// 显示日志
static const bool DEBUG_TOUCH_LOG=false;// 触摸事件的日志显示
static const bool DEBUG_DRAW_HIT_AREA=false;// 判断区域的可视化
};
<file_sep>/acgn/Utils/AEnums.h
//
// AEnums.h
// acgn
//
// Created by Ares on 2018/2/2.
// Copyright © 2018年 <NAME>. All rights reserved.
//
#ifndef AEnums_h
#define AEnums_h
typedef NS_ENUM(NSInteger, AAccountType) {
AAccountType_Default = 0,
AAccountType_Login = 1, // 登录
AAccountType_Register = 2, // 注册
AAccountType_ResetPsd = 3, // 找回密码
AAccountType_SetPsd = 4, // 重置密码
AAccountType_NickName = 5, // 修改昵称
AAccountType_About = 6, // 关于我们
AAccountType_Msg = 7, // 我的消息
AAccountType_Fav = 8, // 我的收藏
AAccountType_ChangePsd = 9, // 修改密码
AAccountType_Edit = 10,// 编辑资料
AAccountType_BindPhone = 11,// 绑定手机号
};
typedef NS_ENUM(NSInteger, Info_Type) {
Info_Type_Text = 0, // 文字
//Info_Type_Picture = 1, // 图片
Info_Type_GIf_Pic = 1, // 图片orGIF
Info_Type_Video = 3, // 视频
Info_Type_Url_Video = 4, // 第三方视频
};
typedef NS_ENUM(NSInteger, ContentCom_Type) {
ContentCom_Type_LineNumber = 0, // 行数限制
ContentCom_Type_All = 1, // 全部,没有行数限制
};
typedef NS_ENUM(NSInteger, Model_Show_Type) {
Model_Show_Type_Default = 1, // 默认
Model_Show_Type_2D = 2, // 2d形象
Model_Show_Type_3D = 3, // 3d形象
};
#endif /* AEnums_h */
<file_sep>/acgn/Network/DMNetConntectDefine.h
//
// DMNetConntectDefine.h
// DiscoverMelody
//
// Created by Ares on 2017/9/7.
// Copyright © 2017年 Discover Melody. All rights reserved.
//
#ifndef DMNetConntectDefine_h
#define DMNetConntectDefine_h
//HTTP REQUEST METHOD TYPE
typedef NS_ENUM(NSInteger, DMHttpRequestType) {
DMHttpRequestGet = 0,
DMHttpRequestPost,
DMHttpRequestDelete,
DMHttpRequestPut,
DMHttpRequestFile,
};
typedef NS_ENUM(NSInteger, DMHttpResponseCodeType) {
DMHttpResponseCodeType_Success = 0, //api成功
DMHttpResponseCodeType_Error = 1, //错误
DMHttpResponseCodeType_NotLogin = 2, //未登录,需要到登录界面
DMHttpResponseCodeType_Failed = 3, //失败弹框,带图标
DMHttpResponseCodeType_MustLogout = 8, //等登陆界面,并进行弹出框提示
};
#endif /* DMNetConntectDefine_h */
| d569d35c7290a7d4bbafc5cf87f0a20ecfc904be | [
"Markdown",
"C",
"Ruby",
"C++"
] | 15 | C | Chinalijian/ACGN2D3D | fb6d1bd420d589b55d5e23d757fc7414c377c476 | e5586e7d9d4a041c83bf68986305a301649ee270 |
refs/heads/master | <repo_name>WZQ1397/zabbix<file_sep>/template/Zabbix-discovery-kvm-master/kvmMonitoring.py
#!/usr/bin/python
import libvirt
import sys
import time
class getKVMInfo(object):
def __init__(self,dom_name):
self.conn = libvirt.open("qemu:///system")
self.dom = self.conn.lookupByName(dom_name)
def __del__(self):
self.conn.close()
def cpuTime(self,type):
start = self.dom.getCPUStats(1,0)[0][type]
stime = time.time()
time.sleep(0.1)
end = self.dom.getCPUStats(1,0)[0][type]
etime = time.time()
cpuutil = (end - start + 0.0) / 10000000 / (etime - stime)
return cpuutil
def vcpuInfo(self):
return self.dom.maxVcpus()
def inTraffic(self,interface):
data = self.dom.interfaceStats(interface)
return data[0]
def outTraffic(self,interface):
data = self.dom.interfaceStats(interface)
return data[4]
def inPackets(self,interface):
data = self.dom.interfaceStats(interface)
return data[1]
def outPackets(self,interface):
data = self.dom.interfaceStats(interface)
return data[5]
def rd_req(self,disk):
data = self.dom.blockStats(disk)
return data[0]
def rd_bytes(self,disk):
data = self.dom.blockStats(disk)
return data[1]
def wr_req(self,disk):
data = self.dom.blockStats(disk)
return data[2]
def wr_bytes(self,disk):
data = self.dom.blockStats(disk)
return data[3]
def rss_Memory(self):
data = self.dom.memoryStats()
return data[rss]
if __name__ == '__main__':
if sys.argv[1] == 'interface':
if sys.argv[2] == 'inTraffic': print getKVMInfo(sys.argv[3]).inTraffic(sys.argv[4])
if sys.argv[2] == 'outTraffic': print getKVMInfo(sys.argv[3]).outTraffic(sys.argv[4])
if sys.argv[2] == 'inPackets': print getKVMInfo(sys.argv[3]).inPackets(sys.argv[4])
if sys.argv[2] == 'outPackets': print getKVMInfo(sys.argv[3]).outPackets(sys.argv[4])
elif sys.argv[1] == 'disk':
if sys.argv[2] == 'rd_req' : print getKVMInfo(sys.argv[3]).rd_req(sys.argv[4])
if sys.argv[2] == 'rd_bytes' : print getKVMInfo(sys.argv[3]).rd_bytes(sys.argv[4])
if sys.argv[2] == 'wr_req' : print getKVMInfo(sys.argv[3]).wr_req(sys.argv[4])
if sys.argv[2] == 'wr_bytes' : print getKVMInfo(sys.argv[3]).wr_bytes(sys.argv[4])
elif sys.argv[1] == 'memory':
print getKVMInfo(sys.argv[3]).rss_Memory()
elif sys.argv[1] == 'cpu':
if sys.argv[2] == 'cputime': print getKVMInfo(sys.argv[3]).cpuTime('cpu_time')
if sys.argv[2] == 'systime': print getKVMInfo(sys.argv[3]).cpuTime('system_time')
if sys.argv[2] == 'usertime': print getKVMInfo(sys.argv[3]).cpuTime('user_time')
if sys.argv[2] == 'cpuinfo' : print getKVMInfo(sys.argv[3]).vcpuInfo()
<file_sep>/template/Template TCP/README.txt
1.┼ńÍ├Zabbix Agent
UnsafeUserParameters=1
UserParameter=custom.tcp.conn.stat[*],ss -o state $1 | wc -l
2.Íěâzabbix agent
<file_sep>/zabbix-rabbitmq/rabbitmq.py
#!/usr/bin/python
#coding:utf8
import requests
import sys
import json
class RabbitMQ:
def __init__(self, user='guest', passwd='<PASSWORD>', server_ip='192.168.1.1', server_port=15670, vhost="device"):
self.user = user
self.password = <PASSWORD>
self.server_ip = server_ip
self.server_port = server_port
self.vhost = vhost
def GetQueues(self):
# 连接并获取RabbitMQ数据,如果传getallname参数代表获取所有的队列名称,主要用于自动发现,如果不等于,那就是获取指定队列的数据
if sys.argv[1] != "getallname":
connections = requests.get("http://{0}:{1}/api/queues/{2}/{3}".format(self.server_ip, self.server_port, self.vhost, sys.argv[1]), auth=(self.user, self.password))
else:
connections = requests.get("http://{0}:{1}/api/queues".format(self.server_ip, self.server_port), auth=(self.user, self.password))
connections = connections.json()
return connections
def QueuesDataProcessing(self):
# 判断队列是否正常工作
data = self.GetQueues()
if "message_stats" in data:
Ack = data["message_stats"]["ack_details"]["rate"]
Total = data["messages"]
if Total > 2000 and Ack == 0:
return Total
else:
return 0
else:
# 当有些队列长时间没有数据传输,会没有任何数据显示,这里也返回0,代表没有问题
return 0
def GetAllQueuesName(self):
# 获取所有队名称,格式化为Zabbix指定的格式,以便自动发现
list1= []
result = self.GetQueues()
for n in range(len(result)):
list1.append({"{#QUEUES_NAME}": result[n]["name"]})
return list1
if __name__ == '__main__':
mq = RabbitMQ()
if sys.argv[1] != "getallname":
result = mq.QueuesDataProcessing()
print(result)
else:
result = mq.GetAllQueuesName()
names = {"data": result}
print(json.dumps(names))<file_sep>/template/zabbix_redis_stats.py
#!/usr/bin/python
import sys, redis, json, re, struct, time, socket, argparse
parser = argparse.ArgumentParser(description='Zabbix Redis status script')
parser.add_argument('redis_hostname',nargs='?')
parser.add_argument('metric',nargs='?')
parser.add_argument('db',default='none',nargs='?')
parser.add_argument('-p','--port',dest='redis_port',action='store',help='Redis server port',default=6379,type=int)
parser.add_argument('-a','--auth',dest='redis_pass',action='store',help='Redis server pass',default=None)
args = parser.parse_args()
zabbix_host = '127.0.0.1' # Zabbix Server IP
zabbix_port = 10051 # Zabbix Server Port
# Name of monitored server like it shows in zabbix web ui display
redis_hostname = args.redis_hostname if args.redis_hostname else socket.gethostname()
class Metric(object):
def __init__(self, host, key, value, clock=None):
self.host = host
self.key = key
self.value = value
self.clock = clock
def __repr__(self):
result = None
if self.clock is None:
result = 'Metric(%r, %r, %r)' % (self.host, self.key, self.value)
else:
result = 'Metric(%r, %r, %r, %r)' % (self.host, self.key, self.value, self.clock)
return result
def send_to_zabbix(metrics, zabbix_host='127.0.0.1', zabbix_port=10051):
result = None
j = json.dumps
metrics_data = []
for m in metrics:
clock = m.clock or ('%d' % time.time())
metrics_data.append(('{"host":%s,"key":%s,"value":%s,"clock":%s}') % (j(m.host), j(m.key), j(m.value), j(clock)))
json_data = ('{"request":"sender data","data":[%s]}') % (','.join(metrics_data))
data_len = struct.pack('<Q', len(json_data))
packet = 'ZBXD\x01'+ data_len + json_data
# For debug:
# print(packet)
# print(':'.join(x.encode('hex') for x in packet))
try:
zabbix = socket.socket()
zabbix.connect((zabbix_host, zabbix_port))
zabbix.sendall(packet)
resp_hdr = _recv_all(zabbix, 13)
if not resp_hdr.startswith('ZBXD\x01') or len(resp_hdr) != 13:
print('Wrong zabbix response')
result = False
else:
resp_body_len = struct.unpack('<Q', resp_hdr[5:])[0]
resp_body = zabbix.recv(resp_body_len)
zabbix.close()
resp = json.loads(resp_body)
# For debug
# print(resp)
if resp.get('response') == 'success':
result = True
else:
print('Got error from Zabbix: %s' % resp)
result = False
except:
print('Error while sending data to Zabbix')
result = False
finally:
return result
def _recv_all(sock, count):
buf = ''
while len(buf)<count:
chunk = sock.recv(count-len(buf))
if not chunk:
return buf
buf += chunk
return buf
def main():
if redis_hostname and args.metric:
client = redis.StrictRedis(host=redis_hostname, port=args.redis_port, password=args.redis_pass)
server_info = client.info()
if args.metric:
if args.db and args.db in server_info.keys():
server_info['key_space_db_keys'] = server_info[args.db]['keys']
server_info['key_space_db_expires'] = server_info[args.db]['expires']
server_info['key_space_db_avg_ttl'] = server_info[args.db]['avg_ttl']
def llen():
print(client.llen(args.db))
def llensum():
llensum = 0
for key in client.scan_iter('*'):
if client.type(key) == 'list':
llensum += client.llen(key)
print(llensum)
def list_key_space_db():
if args.db in server_info:
print(args.db)
else:
print('database_detect')
def default():
if args.metric in server_info.keys():
print(server_info[args.metric])
{
'llen': llen,
'llenall': llensum,
'list_key_space_db': list_key_space_db,
}.get(args.metric, default)()
else:
print('Not selected metric')
else:
client = redis.StrictRedis(host=redis_hostname, port=args.redis_port, password=args.redis_pass)
server_info = client.info()
a = []
for i in server_info:
a.append(Metric(redis_hostname, ('redis[%s]' % i), server_info[i]))
llensum = 0
for key in client.scan_iter('*'):
if client.type(key) == 'list':
llensum += client.llen(key)
a.append(Metric(redis_hostname, 'redis[llenall]', llensum))
# Send packet to zabbix
send_to_zabbix(a, zabbix_host, zabbix_port)
if __name__ == '__main__':
main()
<file_sep>/template/Template Percona MySQL/README.txt
1.数据库授权监控账号dba_monitor
GRANT SELECT, PROCESS, SUPER ON *.* TO 'dba_monitor'@'%' IDENTIFIED BY 'xxxx';
GRANT ALL PRIVILEGES ON `mysql`.`slow_log` TO 'dba_monitor'@'%';
2.配置get_mysql_stats_wrapper.sh和ss_get_mysql_stats.php两个文件监控账号信息
3.配置Zabbix Agent
UnsafeUserParameters=1
Include=/var/lib/zabbix/percona/templates/userparameter_percona_mysql.conf
4.重启zabbix agent
详细参考:
https://www.percona.com/doc/percona-monitoring-plugins/1.1/zabbix/index.html<file_sep>/template/DISK_IO/check_harddisk.sh
#!/bin/bash
diskname_discovery () {
HardDisk=($(grep '\b[a-z][a-z][a-z]\+\b' /proc/diskstats|awk '{print $3}'))
[ "${HardDisk[0]}" == "" ] && exit
printf '{\n'
printf '\t"data":[\n'
for((i=0;i<${#HardDisk[@]};++i))
{
num=$(echo $((${#HardDisk[@]}-1)))
if [ "$i" != ${num} ];
then
printf "\t\t{ \n"
printf "\t\t\t\"{#DISKNAME}\":\"${HardDisk[$i]}\"},\n"
else
printf "\t\t{ \n"
printf "\t\t\t\"{#DISKNAME}\":\"${HardDisk[$num]}\"}]}\n"
fi
}
}
case "$1" in
diskname_discovery)
diskname_discovery
;;
*)
echo "Usage: $0 {diskname_discovery}"
;;
esac
<file_sep>/template/Zabbix-discovery-kvm-master/README.md
# Zabbix-discovery-kvm
项目包括
kvmDiscovery.py 用于发现kvm的名称,网卡信息,磁盘信息
kvmMonitoring.py 监控cpu,磁盘,网卡具体的性能项
运行之前需确保安装libvirt-python、python-simplejson包
<file_sep>/template/readme.md
### more
https://monitoringartist.github.io/zabbix-searcher/
<file_sep>/template/Zabbix-discovery-kvm-master/kvmDiscovery.py
#!/usr/bin/python
import libvirt
import json
import sys
from lxml import etree
class kvmDiscovery(object):
def __init__(self):
self.conn = libvirt.open("qemu:///system")
self.DomainsID = self.conn.listDomainsID()
def __del__(self):
self.conn.close()
def template(self,parent_name,sdev,tdev):
data = {"data":[]}
for i in self.DomainsID:
dom = self.conn.lookupByID(i)
dom_name = dom.name()
xml = dom.XMLDesc(0)
tree = etree.HTML(xml)
parent_tab = tree.xpath(parent_name)
for j in parent_tab:
if j.attrib['type'] == 'file':
if j.attrib['device'] == 'disk':
sdev='source/@file'
else:
continue
source = j.xpath(sdev)[0]
target = j.xpath(tdev)[0]
info = {
"{#SDEV}" : source,
"{#TDEV}" : target,
"{#DNAME}" : dom_name
}
data['data'].append(info)
return json.dumps(data)
def getInterface(self):
return self.template('//devices/interface','source/@bridge','target/@dev')
def getDisk(self):
return self.template('//devices/disk','source/@dev','target/@dev')
def getDomain(self):
data = {"data":[]}
for i in self.DomainsID:
dom_name = self.conn.lookupByID(i).name()
info = { "{#DNAME}" : dom_name }
data['data'].append(info)
return json.dumps(data)
if __name__ == '__main__':
if len(sys.argv) != 2: sys.exit()
if sys.argv[1] == 'domain':
print kvmDiscovery().getDomain()
elif sys.argv[1] == 'interface':
print kvmDiscovery().getInterface()
elif sys.argv[1] == 'disk':
print kvmDiscovery().getDisk()
<file_sep>/windows/readme.md
###OS
UserParameter=windowspdiskperf.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File C:\Program Files\Zabbix Agent\ps-script\get_pdisks.ps1
UserParameter=windowsldiskperf.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File C:\Program Files\Zabbix Agent\ps-script\get_ldisks.ps1
UserParameter=windowsnetworkperf.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File C:\Program Files\Zabbix Agent\ps-script\get_adapters.ps1
UserParameter=windowsprocessorperf.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File C:\Program Files\Zabbix Agent\ps-script\get_processors.ps1
###SQL Server
UserParameter=sqldatabasename.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File C:\Program Files\Zabbix Agent\ps-script\SQLBaseName_To_Zabbix.ps1<file_sep>/zabbix_数据库表分区重建/readme.md
1.修改两张表的结构
```mysql
use zabbix;
Alter table history_text drop primary key, add index (id), drop index history_text_2, add index history_text_2 (itemid, id);
Alter table history_log drop primary key, add index (id), drop index history_log_2, add index history_log_2 (itemid, id);
```
2.创建四个存储过程
`mysql -uzabbix -pzabbix zabbix < partition_call.sql`
`mysql -uzabbix -pzabbix zabbix < partition_all.sql`
3.执行表分区
```mysql
mysql -uzabbix -pzabbix zabbix -e "CALL partition_maintenance_all('zabbix');"
+----------------+--------------------+
| table | partitions_deleted |
+----------------+--------------------+
| zabbix.history | N/A |
+----------------+--------------------+
+--------------------+--------------------+
| table | partitions_deleted |
+--------------------+--------------------+
| zabbix.history_log | N/A |
+--------------------+--------------------+
+--------------------+--------------------+
| table | partitions_deleted |
+--------------------+--------------------+
| zabbix.history_str | N/A |
+--------------------+--------------------+
+---------------------+--------------------+
| table | partitions_deleted |
+---------------------+--------------------+
| zabbix.history_text | N/A |
+---------------------+--------------------+
+---------------------+--------------------+
| table | partitions_deleted |
+---------------------+--------------------+
| zabbix.history_uint | N/A |
+---------------------+--------------------+
+---------------+--------------------+
| table | partitions_deleted |
+---------------+--------------------+
| zabbix.trends | N/A |
+---------------+--------------------+
+--------------------+--------------------+
| table | partitions_deleted |
+--------------------+--------------------+
| zabbix.trends_uint | N/A |
+--------------------+--------------------+
```
4.计划任务把上面这条命令放入计划任务
PS:清空表中数据的命令为: `truncate table history_uint;`
QT:
partition_all.sql举例:
zabbix_db_name:库名
table_name:表名
days_to_keep_data:保存多少天的数据
hourly_interval:每隔多久生成一个分区
num_future_intervals_to_create:本次一共生成多少个分区
这个例子就是history_uint表最多保存31天的数据,每隔24小时生成一个分区,这次一共生成14个分区
mysql -uzabbix -pzabbix zabbix<partition_call.sql
<file_sep>/README.md
# zabbix
> 配置方式见有道云笔记下内容
<file_sep>/template/docker_monitor/dockermon.py
#!/usr/bin/python
import json
import os
import sys
def discover():
d = {}
d['data'] = []
with os.popen("docker ps -a --format {{.Names}}") as pipe:
for line in pipe:
info = {}
info['{#CONTAINERNAME}'] = line.replace("\n", "")
d['data'].append(info)
print json.dumps(d)
def status(name, action):
if action == "ping":
cmd = 'docker inspect --format="{{.State.Running}}" %s' % name
result = os.popen(cmd).read().replace("\n", "")
if result == "true":
print 1
else:
print 0
else:
cmd = 'docker stats %s --no-stream --format "{{.%s}}"' % (name, action)
result = os.popen(cmd).read().replace("\n", "")
if "%" in result:
print float(result.replace("%", ""))
else:
print result
if name == "main":
try:
name, action = sys.argv[1], sys.argv[2]
status(name, action)
except IndexError as e:
discover()
<file_sep>/zabbix_get_hostip.py
#!/usr/bin/env python2.7
#coding=utf-8
import json
import urllib2
import requests
url = "http://54.223.74.222/api_jsonrpc.php"
header = {"Content-Type":"application/json"}
data = json.dumps(
{
"jsonrpc": "2.0",
"method": "user.login",
"params": {
"user": "Admin",
"password": "<PASSWORD>"
},
"id": 0
})
request = urllib2.Request(url, data)
for key in header:
request.add_header(key, header[key])
try:
result = urllib2.urlopen(request)
except URLError as e:
print "Auth Faild!",e.code
else:
response = json.loads(result.read())
result.close()
print "auth successful",response['result']
auth = response['result']
def getHosts(auth):
data = {
"jsonrpc": "2.0",
"method": "host.get",
"params": {
"output": [
"hostid",
"host"
],
"selectInterfaces": [
"interfaceid",
"ip"
]
},
"id": 2,
"auth": auth,
}
request = requests.post(url=url,headers=header,data=json.dumps(data))
dict = json.loads(request.content)
# print dict['result']
return dict['result']
def getProc(data):
dict = {}
list = data
for i in list:
host = i['host']
inter = i['interfaces']
for j in inter:
ip = j['ip']
dict[host] = ip
return dict
def getData(dict):
data = dict
ip_list = []
for key in data.keys():
ip = data[key]
ip_list.append(ip)
ip_list = list(set(ip_list))
ip_list.sort()
return ip_list
def getGroup(ip_list):
ip_group = {}
ips = ip_list
for i in ips:
print i
if __name__ == "__main__":
data = getHosts(auth)
hosts = getProc(data)
ip_list = getData(hosts)
getGroup(ip_list)<file_sep>/datatoapi/alert_info_exact.sql
DROP DATABASE IF EXISTS `alarmreport`;
CREATE DATABASE alarmreport;
USE alarmreport;
DROP TABLE IF EXISTS `report`;
CREATE TABLE `report` (
`reportid` int(11) NOT NULL AUTO_INCREMENT,
`reportip` varchar(64) NOT NULL,
`reporttype` varchar(64) NOT NULL,
`alarmid` int(11) NOT NULL,
`alarmname` varchar(64) NOT NULL,
`alarmlevel` varchar(64) NOT NULL,
`alarmstat` varchar(64) NOT NULL,
`alarmtime` varchar(64) NOT NULL,
`alarmcause` varchar(64) NOT NULL,
`sendstatus` varchar(64) NOT NULL,
PRIMARY KEY(reportid)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `dictionary`;
CREATE TABLE `dictionary` (
`alarmid` int(11) NOT NULL,
`alarmname` varchar(64) NOT NULL,
`alarmcause` varchar(64) NOT NULL,
PRIMARY KEY(alarmid)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TRIGGER IF EXISTS afterinsert_on_event;
CREATE TRIGGER afterinsert_on_event
AFTER INSERT ON zabbix.`events`
FOR EACH ROW
BEGIN
INSERT INTO alarmreport.report (
alarmreport.report.reportip,
alarmreport.report.reporttype,
alarmreport.report.alarmid,
alarmreport.report.alarmname,
alarmreport.report.alarmlevel,
alarmreport.report.alarmstat,
alarmreport.report.alarmtime
)
SELECT
zabbix.`hosts`.`host`,
CONCAT('CONNECT_SERVER_IP'),
zabbix.`triggers`.triggerid,
zabbix.`triggers`.description,
zabbix.`triggers`.priority,
zabbix.`events`.`value`,
FROM_UNIXTIME(zabbix.`events`.clock)
FROM
zabbix.`hosts`,
zabbix.`triggers`,
zabbix.`events`,
zabbix.items,
zabbix.functions,
zabbix.groups,
zabbix.hosts_groups
WHERE
zabbix.`hosts`.hostid = zabbix.hosts_groups.hostid
AND zabbix.hosts_groups.groupid = zabbix.groups.groupid
AND zabbix.`triggers`.triggerid = zabbix.`events`.objectid
AND zabbix.`hosts`.hostid = zabbix.items.hostid
AND zabbix.items.itemid = zabbix.functions.itemid
AND zabbix.functions.triggerid = zabbix.`triggers`.triggerid
AND zabbix.`events`.eventid=new.eventid;
END;
<file_sep>/template/Template UDP/README.txt
1.┼ńÍ├Zabbix Agent
UnsafeUserParameters=1
UserParameter=custom.udp.conn.stat[*],cat /proc/net/sockstat|grep UDP:|cut -d' ' -f 2,3,4,5,6 |xargs -n2|grep $1|awk '{print $NF}'
2.Íěâzabbix agent
<file_sep>/template/Template for Redis/redismonitor.sh
#!/bin/bash
#redis ΓάΒλ:xxxx
REDISCLI="/usr/bin/redis-cli -a xxxx"
HOST="127.0.0.1"
PORT=6379
REDIS_DIR="/etc/redis/"
if [[ $# == 1 ]];then
case $1 in
version)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "redis_version" | awk -F':' '{print $2}'`
echo $result
;;
uptime)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "uptime_in_seconds" | awk -F':' '{print $2}'`
echo $result
;;
connected_clients)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "connected_clients" | awk -F':' '{print $2}'`
echo $result
;;
blocked_clients)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "blocked_clients" | awk -F':' '{print $2}'`
echo $result
;;
qps)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "instantaneous_ops_per_sec" | awk -F':' '{print $2}'`
echo $result
;;
max_memory)
let result=$(cat $REDIS_DIR/redis.conf|grep ^maxmemory|awk -F 'G|g|GB|Gb|gb| ' '{print $2}')*1024*1024*1024
echo $result
;;
used_memory)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "used_memory" | awk -F':' '{print $2}'`
echo $result
;;
used_memory_rss)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "used_memory_rss" | awk -F':' '{print $2}'`
echo $result
;;
used_memory_peak)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "used_memory_peak" | awk -F':' '{print $2}'`
echo $result
;;
used_memory_lua)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "used_memory_lua" | awk -F':' '{print $2}'`
echo $result
;;
used_cpu_sys)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "used_cpu_sys" | awk -F':' '{print $2}'`
echo $result
;;
used_cpu_user)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "used_cpu_user" | awk -F':' '{print $2}'`
echo $result
;;
used_cpu_sys_children)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "used_cpu_sys_children" | awk -F':' '{print $2}'`
echo $result
;;
used_cpu_user_children)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "used_cpu_user_children" | awk -F':' '{print $2}'`
echo $result
;;
rdb_last_bgsave_status)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "rdb_last_bgsave_status" | awk -F':' '{print $2}' | grep -c ok`
echo $result
;;
aof_last_bgrewrite_status)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "aof_last_bgrewrite_status" | awk -F':' '{print $2}' | grep -c ok`
echo $result
;;
aof_last_write_status)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "aof_last_write_status" | awk -F':' '{print $2}' | grep -c ok`
echo $result
;;
*)
echo -e "\033[33mUsage: $0 {connected_clients|blocked_clients|qps|max_memory|used_memory|used_memory_rss|used_memory_peak|used_memory_lua|used_cpu_sys|used_cpu_user|used_cpu_sys_children|used_cpu_user_children|rdb_last_bgsave_status|aof_last_bgrewrite_status|aof_last_write_status}\033[0m"
;;
esac
elif [[ $# == 2 ]];then
case $2 in
keys)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "$1" | grep -w "keys" | awk -F'=|,' '{print $2}'`
echo $result
;;
expires)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "$1" | grep -w "keys" | awk -F'=|,' '{print $4}'`
echo $result
;;
avg_ttl)
result=`$REDISCLI -h $HOST -p $PORT info | grep -w "$1" | grep -w "avg_ttl" | awk -F'=|,' '{print $6}'`
echo $result
;;
*)
echo -e "\033[33mUsage: $0 {db0 keys|db0 expires|db0 avg_ttl}\033[0m"
;;
esac
fi
<file_sep>/Zabbix_install.sh
#!/bin/bash
echo "*****************************"
echo "**server install of zabbix!**"
echo "**|| write by wzq1397 ||**"
echo "*****************************"
echo "* DO YOU WANT TO EXECUTE? *"
echo -e "\033[44;37m please comfirm you have enter the dir of zabbix[0m"
read -p "[CHOOSE y/N]" ch
if [ ch == y || ch == Y ]
then
echo "zabbix will install auto."
else
echo "goto this web download and decompress http://www.zabbix.com/"
exit
yum install make gcc libcurl-devel net-snmp-devel php php-gd php-xml php-mysql php-mbstring php-bcmath lrzsz -y
sql=chkconfig --list | cut -f 1 | grep -Ei "mysql*|oracle|sqlite" | wc -l
if [ sql == 0 ]
then
yum install -y mysql-server mysql-devel
web=chkconfig --list | cut -f 1 | grep -Ei "httpd|nginx|Lighttpd" | wc -l
if [ web == 0 ]
then
yum install -y httpd
groupadd zabbix
useradd zabbix -g zabbix
./configure --prefix=/usr/local/zabbix --enable-server --enable-agent \
--with-mysql --with-net-snmp --with-libcurl
make install
service mysqld start;
mysql -e "create database zabbix character set utf8;" -p
mysql -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';flush privileges;" -p
mysql -uroot zabbix < database/mysql/schema.sql -p
mysql -uroot zabbix < database/mysql/images.sql -p
mysql -uroot zabbix < database/mysql/data.sql -p
sed -i 's/^DBUser=.*$/DBUser=zabbix/g' /usr/local/zabbix/etc/zabbix_server.conf
sed -i 's/^.*DBPassword=.*$/DBPassword=<PASSWORD>/g' /usr/local/zabbix/etc/zabbix_server.conf
cp -r frontends/php /var/www/html/zabbix
cp misc/init.d/fedora/core/zabbix_* /etc/init.d/
sed -i 's#BASEDIR=/usr/local#BASEDIR=/usr/local/zabbix#g' /etc/init.d/zabbix_server
sed -i 's#BASEDIR=/usr/local#BASEDIR=/usr/local/zabbix#g' /etc/init.d/zabbix_agentd
cat >>/etc/services <<EOF
zabbix-agent 10050/tcp Zabbix Agent
zabbix-agent 10050/udp Zabbix Agent
zabbix-trapper 10051/tcp Zabbix Trapper
zabbix-trapper 10051/udp Zabbix Trapper
EOF
if [ -f /etc/lnmp]
then
$zabbixphpini = /usr/local/php/etc/php.ini
else
$zabbixphpini = /etc/php.ini
sed -i 's/^\(.*\)date.timezone =.*$/date.timezone = Asia\/Shanghai/g' $zabbixphpini
sed -i 's/^\(.*\)post_max_size =.*$/post_max_size = 16M/g' $zabbixphpini
sed -i 's/^\(.*\)max_execution_time =.*$/max_execution_time = 300/g' $zabbixphpini
sed -i 's/^\(.*\)max_input_time =.*$/max_input_time = 300/g' $zabbixphpini
cat >>/etc/httpd/conf/httpd.conf <<EOF
ServerName 127.0.0.1
<VirtualHost *:80>
DocumentRoot "/var/www/html"
ServerName zabbix_server
</VirtualHost>
EOF
cat >/var/www/html/zabbix/conf/zabbix.conf.php <<EOF
<?php
// Zabbix GUI configuration file
global $DB;
$DB['TYPE'] = 'MYSQL';
$DB['SERVER'] = 'localhost';
$DB['PORT'] = '0';
$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = '<PASSWORD>';
// SCHEMA is relevant only for IBM_DB2 database
$DB['SCHEMA'] = '';
$ZBX_SERVER = 'localhost';
$ZBX_SERVER_PORT = '10051';
$ZBX_SERVER_NAME = '';
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
?>
EOF
service iptables stop
chkconfig --level 345 iptables off
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
echo "/etc/init.d/zabbix_server start" >> /etc/rc.local
echo "/etc/init.d/zabbix_agentd start" >> /etc/rc.local
chkconfig --level 345 mysqld on
chkconfig --level 345 httpd on
/etc/init.d/zabbix_server start
/etc/init.d/zabbix_agentd start<file_sep>/template/mysql_bak_template.sh
#!/bin/bash
#chmod 700 ${PATH}/Zabbix_MySQLdump_per_table_v2.sh
#crontab -e (0 3 * * * ${PATH}/Zabbix_MySQLdump_per_table_v2.sh)
red='\e[0;31m' # 红色
RED='\e[1;31m'
green='\e[0;32m' # 绿色
GREEN='\e[1;32m'
blue='\e[0;34m' # 蓝色
BLUE='\e[1;34m'
purple='\e[0;35m' # 紫色
PURPLE='\e[1;35m'
NC='\e[0m' # 没有颜色
source /etc/bashrc
source /etc/profile
MySQL_USER=zabbix
MySQL_PASSWORD=<PASSWORD>
MySQL_HOST=localhost
MySQL_PORT=3306
MySQL_DUMP_PATH=/mysql_backup
MYSQL_BIN_PATH=/usr/bin/mysql
MYSQL_DUMP_BIN_PATH=/usr/bin/mysqldump
MySQL_DATABASE_NAME=zabbix
DATE=$(date '+%Y-%m-%d')
MySQLDUMP () {
[ -d ${MySQL_DUMP_PATH} ] || mkdir ${MySQL_DUMP_PATH}
cd ${MySQL_DUMP_PATH}
[ -d logs ] || mkdir logs
[ -d ${DATE} ] || mkdir ${DATE}
cd ${DATE}
TABLE_NAME_ALL=$(${MYSQL_BIN_PATH} -u${MySQL_USER} -p${MySQL_PASSWORD} -h${MySQL_HOST} ${MySQL_DATABASE_NAME} -e \
"show tables"|egrep -v "(Tables_in_zabbix|history*|trends*|acknowledges|alerts|auditlog|events|service_alarms)")
for TABLE_NAME in ${TABLE_NAME_ALL}
do
${MYSQL_DUMP_BIN_PATH} --opt -u${MySQL_USER} -p${MySQL_PASSWORD} -P${MySQL_PORT} -h${MySQL_HOST} \
${MySQL_DATABASE_NAME} ${TABLE_NAME} >${TABLE_NAME}.sql
sleep 0.01
done
[ "$?" == 0 ] && echo "${DATE}: Backup zabbix succeed" >> ${MySQL_DUMP_PATH}/logs/ZabbixMysqlDump.log
[ "$?" != 0 ] && echo "${DATE}: Backup zabbix not succeed" >> ${MySQL_DUMP_PATH}/logs/ZabbixMysqlDump.log
cd ${MySQL_DUMP_PATH}/
[ "$?" == 0 ] && rm -rf $(date +%Y-%m-%d --date='5 days ago')
exit 0
}
MySQLImport () {
cd ${MySQL_DUMP_PATH}
DATE=$(ls ${MySQL_DUMP_PATH} |egrep "\b^[0-9]+-[0-9]+-[0-9]+$\b")
echo -e "${green}${DATE}"
echo -e "${blue}what DATE do you want to import,please input date:${NC}"
read SELECT_DATE
if [ -d "${SELECT_DATE}" ];then
echo -e "you select is ${green}${SELECT_DATE}${NC}, do you want to contine,if,input ${red}(yes|y|Y)${NC},if other exit"
read Input
[[ 'yes|y|Y' =~ "${Input}" ]]
status="$?"
if [ "${status}" == "0" ];then
echo "now import SQL....... Please wait......."
else
exit 1
fi
cd ${SELECT_DATE}
for PER_TABEL_SQL in $(ls *.sql)
do
${MYSQL_BIN_PATH} -u${MySQL_USER} -p${MySQL_PASSWORD} -h${MySQL_HOST} ${MySQL_DATABASE_NAME} < ${PER_TABEL_SQL}
echo -e "import ${PER_TABEL_SQL} ${PURPLE}........................${NC}"
done
echo "Finish import SQL,Please check Zabbix database"
else
echo "Don't exist ${SELECT_DATE} DIR"
fi
}
case "$1" in
MySQLDUMP|mysqldump)
MySQLDUMP
;;
MySQLImport|mysqlimport)
MySQLImport
;;
*)
echo "Usage: $0 {(MySQLDUMP|mysqldump) (MySQLImport|mysqlimport)}"
;;
esac
<file_sep>/template/Template for Redis/README.txt
Zabbix Agentď÷╝Ë╚š¤┬┼ńÍ├:
UnsafeUserParameters=1
UserParameter=Redis.Info[*],/home/opt/scripts/zabbix/redismonitor.sh $1 $2
<file_sep>/zabbix_数据库表分区重建/partition_all.sql
DELIMITER $$
CREATE PROCEDURE `partition_maintenance_all`(SCHEMA_NAME VARCHAR(32))
BEGIN
CALL partition_maintenance(SCHEMA_NAME, 'history', 31, 24, 14);
CALL partition_maintenance(SCHEMA_NAME, 'history_log', 31, 24, 14);
CALL partition_maintenance(SCHEMA_NAME, 'history_str', 31, 24, 14);
CALL partition_maintenance(SCHEMA_NAME, 'history_text', 31, 24, 14);
CALL partition_maintenance(SCHEMA_NAME, 'history_uint', 31, 24, 14);
CALL partition_maintenance(SCHEMA_NAME, 'trends', 180, 24, 14);
CALL partition_maintenance(SCHEMA_NAME, 'trends_uint', 180, 24, 14);
END$$
DELIMITER ;<file_sep>/wechat.sh
#!/bin/bash
CorpID=wx703774c1a3da92e0
Secret=<KEY>
GURL="https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=$CorpID&corpsecret=$Secret"
Gtoken=$(/usr/bin/curl -s -G $GURL | awk -F\" '{print $4}')
#for personal wechat
#Gtoken=$(/usr/bin/curl -s -G $GURL | awk -F ":" '{print $4}' | cut -d "," -f 1 | awk -F "\"" '{print $2}')
PURL="https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=$Gtoken"
function body() {
local int AppID=1
local UserID=$1
local PartyID=2
local Msg=$(echo "$2""\n""$3")
#local Msg2=$(echo "$@"|awk '{print $3}')
#local msg=$(echo "$@" | cut -d" " -f3-)
cat << EOF
{
"touser": "$UserID",
"toparty": "$PartyID",
"msgtype": "text",
"agentid": " $AppID ",
"text": {
"content": "$Msg",
},
"safe":"0",
}
EOF
}
#echo "$(body "$1" "$2")" >> /tmp/wechat.log
/usr/bin/curl --data-ascii "$(body "$1" "$2" "$3")" $PURL
<file_sep>/zabbix-rabbitmq/README.md
UserParameter=rabbitmq[*],/usr/bin/python /usr/local/sbin/rabbitmq.py $1
队列自动发现(还可以指定vhost)
自动添加监控,自动添加触发器 | f4322ddee013f20a49b34891213b420c67569a1b | [
"SQL",
"Markdown",
"Python",
"Text",
"Shell"
] | 23 | Python | WZQ1397/zabbix | d175a01d5aefb7015181a059ad28840132398d79 | 304c129e3ed089f2727084f767f4073498a7b27a |
refs/heads/master | <file_sep>filter.timecourse <- function(data, crit, score_f, filter_f){
# Use the provided filter_f function (which returns a boolean value)
# and crit(ertion) to filter the timecourse data
scores <- ddply(data, .(roi, condition), score_f)
data[filter_f(scores, crit), ]
}
# ------------------------------------
# Define the atomic filtering functions
# used by filter.timecourse()
# - Filter functions return TRUE/FALSE based on crit.
filter.leq <- function(scores, crit){
# Return TRUE if score is less than or equal to crit
# otherwise FALSE
scores[[3]] <= crit
}
filter.geq <- function(scores, crit){
# Return TRUE if score is greater than or equal to crit
# otherwise FALSE
scores[[3]] >= crit
}<file_sep>library("ggplot2")
plot.timecourse.magic <- function(data, criterion=1, height=0, width=0){
# Plot all all scores.
score_names <- c("var", "mean", "peak", "absdiff",
"lag", "halfmax")
score_fs <- c(score.var, score.mean, score.peak, score.absdiff,
score.lag, score.halfmax)
for(ii in 1:length(score_names)){
print(score_names[[ii]])
scored <- score.timecourse(data, score_names[[ii]], score_fs[[ii]])
ranked <- rank.score(scored, TRUE)
data_ranked <- rank.timecourse(data, ranked, TRUE)
if(criterion < 1){
data_ranked <- filter.ranked(data_ranked, criterion)
}
plot_name <- paste("timecourse", score_names[[ii]], sep="_")
plot.timecourse.combinedconds(data_ranked, plot_name,
height, width)
}
}
plot.timecourse.combinedconds <- function(ranked_data, name, height=0, width=0){
# Plot the supplied ranked_data; height and width are in inches, unless
# their 0 in which case R makes a guess.
# Init the graphics device
if((height > 0) && (width > 0)){
pdf(height=height, width=width)
} else {
pdf()
}
# Build up the plot
p <- ggplot(data=ranked_data,
aes(x=index, y=timecourse, colour=condition))
p <- p + geom_line()
p <- p + facet_wrap(~ data_ranks + roi)
p <- p + scale_fill_brewer(palette="Dark2")
p <- p + ylab("% Signal Change") + xlab("TR") + opts(title=name)
p <- p + theme_bw()
# Plot, save, and clear the device
plot(p)
ggsave(paste(name, ".pdf", sep=""))
graphics.off()
}
<file_sep>require("plyr")
score.timecourse <- function(data, score_name, score_f){
# Score the timecourse in the <data> object, from read.timecourse
# Use the score_f to create the scores
# considering each condition in each roi separatly
scores <- ddply(data, .(roi, condition), score_f)
colnames(scores) <- c("roi", "condition", score_name)
scores
}
# ------------------------------------
# Define the atomic scoring functions
# used by score.timecourse()
score.var <- function(data) { var(data$timecourse) }
score.mean <- function(data) { mean(data$timecourse) }
score.peak <- function(data) { max(data$timecourse) }
score.absdiff <- function(data) {
rr <- range(data$timecourse)
abs(rr[1] - rr[2])
}
score.lag <- function(data) {
r_data <- data$timecourse
maxval <- max(r_data)
(1:length(r_data))[maxval == r_data]
## Return the location of the maxval
## by filtering the dereferenced
## index 1:length(...)
}
score.halfmax <- function(data) {
r_data <- data$timecourse
halfmax <- max(r_data) / 2
(1:length(r_data))[r_data >= halfmax][1]
## Return the nearest location to the halfmax
## by filtering the dereferenced
## index 1:length(...), then grabbing the
## first element
}
<file_sep># TODO
* Implement filter.rank and filter.score ...
* Several of the scores need inverting
* There are still no plot titles; WTF ggplot, WTF.
* Correct errors in this doc
# Install
A set of R functions for sorting, filtering, and plotting of fMRI HRF timecourses. The goal is make visualizing various properties of the timecourses simple, while producing clean, yet dense, displays.
The functions require plyr (http://plyr.had.co.nz/) and ggplot2 (http://ggplot2.org/), and have only been tested on R >= v2.15.1 (http://www.r-project.org/) on MacOS 10.7.4.
To use download this code, executing the following in the directory where you want the code installed.
git clone https://github.com/andsoandso/timecourse
Or you can manually go to https://github.com/andsoandso/timecourse and click on the ZIP button to get the most recent version of the code. Using git though will simplify updating the code in the future.
Then open an R console and, assuming your working directory is ./timecourse, type
source("timecourse.R")
...In the future perhaps this will become a proper package, but for now you'll have to load everything manually.
# Magic
If you just want to plot your data using all available scores and plot kinds, run:
# read in the data, then plot it (assumeing we started in ./timecourse)
setwd("./test") ## Move to the test folder
tc <- read.timecourse.rowformat('roi_data_1.txt')
plot.timecourse.magic(tc,1,18,14) # e.g. criterion=1,height=12, width=12)
Where roi\_data\_1.txt is a text file of the form:
roi condition 1 2 ... n
1 fast 0.1 0.3 -.1
Where the first row is a header, and each subsequent row matches the corresponding data. Thanks to plyr, very very large datasets can be handled relatively easily.
Or if you want to exclude some of the timecourse data prior to plotting use the filter.timecourse() function, for example:
# Filter (remove) timecourses if their max value (found using score.peak)
# is less than or equal to (leq) the crit.
crit <- 0.1
ftc <- filter.timecourse(tc, crit, score.peak, filter.leq)
As you can see filter.timecourse takes 4 arguments - some timecourse data, a criterion, a scoring function (see score.timecourse.R), a filtering function (filter.timecourse.R; Filter functions return TRUE/FALSE based on crit).
Each of the magic plots is saved as pdf in the current working directory. If you wish to keep only the top fraction of scores (which are described below), criterion can be set 0-1. For example, if criterion=0.3 the top 30% of scores are plotted.
To see how magic works keep reading.
# Details
If the magic is too much or too little, here are the details on the worker functions. They can, mostly, be used alone just fine.
After the loads above, a ls() will then reveal several useful functions; keep reading for the details. The plotting functions are listed below.
1. plot.timecourse.combinedconds
2. [TODO] plot.timecourse.separateconds
Each plotting function expects, one timecourse data_object, which is created as below. The file in quotes is the test data set.
data_obj <- read.timecourse.rowformat('./test/roi_data_1.txt')
Note: at current read.timecourse.rowformat.* takes one data format, matching the format found in './test/roi\_data\_1.txt'. This may change, if needed.
They also expect one score_object, created using score.timecourse(...). As an example, if you wanted to score using the peak height, this would work:
score_obj <- score.timecourse(data_obj, "peak", score.peak)
As you can score.timecourse takes three arguments, a data_obj (from read.timecourse.rowformat), a name (i.e. "peak"), and a scoring function (making score.timecourse a metafunction).
The available scoring functions are:
1. score.peak - the max value
2. score.mean - the mean value
3. score.var - the variance
4. score.absdiff - the absolute difference between the range value
5. score.lag - time to max value
6. score.halfmax - time to half the maximum (larger values imply steeper slopes)
Note: If you have other scores in mind, ones not listed above, do share them. This code is designed to allow new scores to be added easily.
Once you have scores, they need to be ranked. This is accomplished with
rank_object <- rank.score(scores, rank_means=TRUE)
And these ranks are then applied to the timecourse data
data_ranked <- rank.timecourse(data_obj, rank_object, rank_means=TRUE)
In both cases above, rank_means is set to TRUE, as such the scores for any conditions (for each ROI) are averaged prior to ranking.
If there are too many ROIs, so you want to drop some based on rank do the below. The criterion is between 0-1 (inclusive) and represents the top fraction of scores to keep, e.g. 0.1 would keep the top 10%.
criterion <- 0.1
keepers <- filter.rank(data_ranked, criterion)
# Or as any rank-containing object will work
keepers <- filter.rank(ranked, criterion)
Or you can filter the scores. However unlike the rank filter you must specify the real valued threshold you want to use.
# Assuming were working with peak scores, 0.5 (% signal change)
# might be a reasonable choice
threshold <- 0.5
Now explain how to use these and the direct plot methods in general<file_sep>* the 'vox_reformat.py' script does not output a roiname for the first column like it should.<file_sep>
.process.row <- function(row, roicols, condcols, timecols){
# ----
# Process roi
# If we are working with voxel-level
# data there is no roi_name,
# so roicols should be NULL
# and roi_name should be NA.
if(is.null(roicols)){
roi_name <- NA
} else if(length(roicols) > 1){
# If there is more than one
# cobmined them in .
# seperated string.
roi_name <- paste(row[roicols], collapse=".")
} else {
roi_name <- row[roicols]
}
# ----
# Process cond
if(is.null(condcols)){
condition <- NA
} else {
condition <- row[condcols]
}
# ----
# Process timecourse
timecourse <- t(row[timecols])
## No need to special processing,
## there must always be timecourse data
list(roi_name=roi_name,
condition=condition,
timecourse=timecourse)
}
.skip.timecourse <- function(timecourse){
# Skip is TRUE if rows/timecourse has NaNs
# or is full of zeros.
skip <- FALSE
if(sum(is.nan(timecourse)) > 0){
skip <- TRUE
} else if((sum(timecourse) < 0.0001) &&
(sum(timecourse) > -0.0001) &&
(var(timecourse) < 0.0001)) {
skip <- TRUE
}
skip
}
# TODO want to have 2 strcutures for the data, instead of the one used here.
# The first, for scoring, ranking and clustering should be
# <roi> <cond> <data> (or similar)
# Where data is a scalar or a timecourse
# The second should match the format used for plotting of timecourse
# data.
# <TR_index> <cond> <roi> <data>
# the difference is the data is explicitily indexed by TR_index
# rather that each bieng its own column as above.
# NEED TO WITE A EFFICIENT (TRANSPOSE BASED?) WAY TO CONVERT BETWEEN
# THESE.
# Almost all the real work will be done in the first, the later is to satisfy
# ggplot2.
read.timecourse <- function(name, roicols=2:4, condcols=1, timecols=5:20, header=TRUE){
# Read in the <name>ed data file.
# Get the data
print("Initial read.")
data <- read.table(name, sep="\t", header=header, stringsAsFactors=FALSE)
# Now transform it to something that pylr and ggplot
# can handle easily, i.e a data.frame
print("Starting transform.")
transformed <- NULL
for(ii in 1:nrow(data)){
# Put in a row, for clarity
row <- array(data[ii, ])
# Process the row
prow <- .process.row(row, roicols, condcols, timecols)
print(prow)
roi_name = prow$roi_name
condition = prow$condition
timecourse = prow$timecourse
print(timecourse)
# Skip rows/timecourse with NaNs
# or full of zeros.
if(.skip.timecourse(timecourse)){
print("Skipping:")
print(timecourse)
next
}
# Recombined them, into a col-oriented, df-like, structure
l <- length(timecourse)
df_columns <- cbind(
rep(as.character(roi_name), l),
rep(as.character(condition), l),
1:l,
timecourse)
transformed <- rbind(transformed, df_columns)
}
# Make a df, give the cols nice names,
print("Cleaning up the data.")
transformed <- as.data.frame(transformed,
row.names=NULL, stringsAsFactors=FALSE)
# and setup the factors manually.
colnames(transformed) <- c("roi","condition","index","timecourse")
transformed$roi <- factor(transformed$roi)
transformed$condition <- factor(transformed$condition)
transformed$index <- as.numeric(transformed$index)
transformed$timecourse <- as.numeric(transformed$timecourse)
## This manual shit should not have been needed but R is
## is being weird
# EOF
transformed
}
read.timecourses.par <-function(names, roicols=2:4, condcols=1, timecols=5:20, header=FALSE) {
# Read in each ofthe names, each in parallel if possible.
# Returns all the named data in a list
library("plyr")
library("doMC")
# Init the parallalization backend
# from doMC
registerDoMC()
# Closure on read.timecourse()
reader <- function(name){
read.timecourse(name, roicols, condcols, timecourse, header)
}
# Now read in, in parallel.
nameddata <- alply(
names,
.fun=reader,
.parallel=TRUE,
.progress="text")
namedata
}
read.timecourse.rowformat <- function(name){
# Read in the <name>ed data file.
# Get the data
data <- read.table(name, sep="\t", header=TRUE, stringsAsFactors=FALSE)
# Now transform it to something that pylr and ggplot
# can handle easily, i.e a data.frame
transformed <- NULL
for(ii in 1:nrow(data)){
# Put in a row, for clarity
row <- array(data[ii, ])
# Get the parts of row
roi_name <- row[1]
condition <- row[2]
timecourse <- t(row[3:length(row)])
# Recombined them, into a col-oriented, df-like, structure
l <- length(timecourse)
df_columns <- cbind(
rep(as.character(roi_name), l),
rep(as.character(condition), l),
1:l,
timecourse)
transformed <- rbind(transformed, df_columns)
}
# Make a df, give the cols nice names,
transformed <- as.data.frame(transformed,
row.names=NULL, stringsAsFactors=FALSE)
# and setup the factors manually.
colnames(transformed) <- c("roi","condition","index","timecourse")
transformed$roi <- factor(transformed$roi)
transformed$condition <- factor(transformed$condition)
transformed$index <- as.numeric(transformed$index)
transformed$timecourse <- as.numeric(transformed$timecourse)
## This manual shit should not have been needed but R is
## is being weird
# EOF
transformed
}
<file_sep># A script that loads the scripts; ghetto package is ghetto.
source("read.timecourse.R")
source("plot.timecourse.R")
source("score.timecourse.R")
source("filter.timecourse.R")
source("rank.timecourse.R")
# TODO
# source("cluster.timecourse.R")
# source("cluster.score.R") | 8de47f1b37d358f7a0f8a704caa34429909cda2e | [
"Markdown",
"R"
] | 7 | R | parenthetical-e/timecourse | e8e321a009fae331faf72d07a73c6877636360d5 | 1e9c22a69deaa83405896e09744ceb4f2969cad4 |
refs/heads/master | <repo_name>nitrochaien/GenericsTableViewSample<file_sep>/GenericTableViewSample/Generics/Person.swift
//
// Person.swift
// GenericTableViewSample
//
// Created by <NAME> on 7/2/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
import UIKit
struct Person {
let firstName, lastName: String
}
<file_sep>/GenericTableViewSample/Generics/GenericTableViewController.swift
//
// GenericTableViewController.swift
// GenericTableViewSample
//
// Created by <NAME> on 7/2/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
import UIKit
class GenericTableViewController<T: GenericCell<U>, U>: UITableViewController {
private let cellID = "cell"
var items = [U]()
override func viewDidLoad() {
super.viewDidLoad()
initTableView()
}
func initTableView() {
tableView.register(T.self, forCellReuseIdentifier: cellID)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
// MARK: - Table view data source
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// #warning Incomplete implementation, return the number of rows
return items.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: cellID, for: indexPath) as! GenericCell<U>
cell.item = items[indexPath.row]
return cell
}
}
class GenericCell<U>: UITableViewCell {
var item: U!
override func layoutSubviews() {
super.layoutSubviews()
}
}
<file_sep>/GenericTableViewSample/Generics/CustomCell.swift
//
// CustomCell.swift
// GenericTableViewSample
//
// Created by <NAME> on 7/2/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
import UIKit
class CustomCell: GenericCell<Person> {
override var item: Person! {
didSet {
textLabel?.text = "\(item.firstName) \(item.lastName)"
}
}
}
<file_sep>/GenericTableViewSample/ViewController.swift
//
// ViewController.swift
// GenericTableViewSample
//
// Created by <NAME> on 7/2/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
import UIKit
class ViewController: GenericTableViewController<CustomCell, Person> {
override func viewDidLoad() {
super.viewDidLoad()
items = [Person(firstName: "Bill", lastName: "Clinton"),
Person(firstName: "Barrack", lastName: "Obama")]
}
}
| 9a38a090eab89ae1cc7a4fa6482083a20e04f048 | [
"Swift"
] | 4 | Swift | nitrochaien/GenericsTableViewSample | 5005f9ea61cf61884b9ac266bcfdff6e8763f03c | 386bdaf305418bfee3c007625d8e1ba031a781e1 |
refs/heads/master | <repo_name>JZX555/lip_read<file_sep>/legacy/core_lipread_model.py
import tensorflow as tf
import numpy as np
import tensorflow.contrib as tf_contrib
import data_image_helper
import data_sentence_helper
import core_seq2seq_model as seq2seq
import core_VGG_model as VGG
class Daedalus(tf.keras.Model):
def __init__(self,
src_vocabulary_size,
tgt_vocabulary_size,
batch_size = 64,
embed_size = 512,
num_units = 512,
backforward = False,
eager = False):
super(Daedalus, self).__init__()
self.src_vocabulary_size = src_vocabulary_size
self.tgt_vocabulary_size = tgt_vocabulary_size
self.batch_size = batch_size
self.embed_size = embed_size
self.num_units = num_units
self.bf = backforward
self.eager = eager
self.layer_initializer()
def layer_initializer(self):
self.VGG = VGG.VGGTower(batch_size = self.batch_size,
embed_size = self.embed_size,
num_units = self.num_units,
backforward = self.bf,
eager = self.eager)
if self.bf:
self.final_units = 2 * self.num_units
else:
self.final_units = self.num_units
self.final_embed_size = self.final_units
self.decoder1 = seq2seq.RNNcoder(self.tgt_vocabulary_size,
self.batch_size,
self.final_units,
self.final_embed_size,
backforward = False,
embedding_matrix = True,
eager=True)
self.decoder2 = seq2seq.RNNcoder(self.tgt_vocabulary_size,
self.batch_size,
self.final_units,
self.final_embed_size,
backforward = False,
embedding_matrix = False,
eager = True)
self.decoder3 = seq2seq.RNNcoder(self.tgt_vocabulary_size,
self.batch_size,
self.final_units,
self.final_embed_size,
backforward = False,
embedding_matrix = False,
eager = True)
self.project = tf.keras.layers.Dense(self.tgt_vocabulary_size)
self.logit = tf.keras.layers.Softmax(axis = -1)
def call(self, inputs):
(src_input, tgt_input, src_length, tgt_length) = inputs
VGG_input = (src_input, src_length)
self.VGG_out, self.VGG_hidden = self.VGG(VGG_input)
decoder1_input = (tgt_input, tgt_length, self.VGG_hidden[0], 0)
self.decoder1_hidden, self.decoder1_final = self.decoder1(decoder1_input)
decoder2_input = (self.decoder1_hidden, tgt_length, self.VGG_hidden[1], 0)
self.decoder2_hidden, self.decoder2_final = self.decoder2(decoder2_input)
decoder3_input = (self.decoder2_hidden, tgt_length, self.VGG_hidden[2], self.VGG_out)
self.decoder3_hidden, self.decoder3_final = self.decoder3(decoder3_input)
projection = self.project(self.decoder3_hidden)
self.logits = self.logit(projection)
return self.logits
def get_VGG(self):
return self.VGG, self.VGG_out, self.VGG_hidden
def get_states(self):
return self.decoder3_hidden, self.decoder3_final
class DaedalusFactory(tf.keras.Model):
def __init__(self,
src_data_path,
tgt_data_path,
batch_size = 64,
embed_size = 512,
num_units = 512,
backforward = False,
eager = False):
super(DaedalusFactory, self).__init__()
self.src_data_path = src_data_path
self.tgt_data_path = tgt_data_path
self.batch_size = batch_size
self.embed_size = embed_size
self.num_units = num_units
self.bf = backforward
self.eager = eager
def get_data(self, src_data_path, tgt_data_path):
sentence = data_sentence_helper.SentenceHelper(src_data_path,
tgt_data_path,
batch_size = self.batch_size)
imgHelper = data_image_helper.data_image_helper()
src_vocabulary, tgt_vocabulary, src_ids2word, tgt_ids2word = sentence.prepare_vocabulary()
self.src_vocabulary_size = len(src_vocabulary)
self.tgt_vocabulary_size = len(tgt_vocabulary)
return sentence, imgHelper
def mini_model(self, batch_size = 4):
"""Short summary.
A very small model is used to train test model structure.
Args:
batch_size (type): Description of parameter `batch`.
Returns:
model dataset, (src_vocabulary,src_ids2word), (tgt_vocabulary,tgt_ids2word)
"""
sentenceHelper, imgHelper = self.get_data(self.src_data_path, self.tgt_data_path)
return Daedalus(src_vocabulary_size = self.src_vocabulary_size,
tgt_vocabulary_size = self.tgt_vocabulary_size,
batch_size = batch_size,
embed_size = 4,
num_units = 4,
backforward = self.bf,
eager = self.eager), sentenceHelper, imgHelper
def small_model(self, batch_size = 16, embed_size = 16, num_units = 16):
sentenceHelper, imgHelper = self.get_data(self.src_data_path, self.tgt_data_path)
return Daedalus(src_vocabulary_size = self.src_vocabulary_size,
tgt_vocabulary_size = self.tgt_vocabulary_size,
batch_size = batch_size,
embed_size = embed_size,
num_units = num_units,
backforward = self.bf,
eager = self.eager), sentenceHelper, imgHelper
def full_model(self):
sentenceHelper, imgHelper = self.get_data(self.src_data_path, self.tgt_data_path)
return Daedalus(src_vocabulary_size = self.src_vocabulary_size,
tgt_vocabulary_size = self.tgt_vocabulary_size,
batch_size = self.batch_size,
embed_size = self.embed_size,
num_units = self.num_units,
backforward = self.bf,
eager = self.eager), sentenceHelper, imgHelper<file_sep>/core_data_SRCandTGT.py
# encoding=utf8
from hyper_and_conf import conf_fn as train_conf
from data import data_setentceToByte_helper
import tensorflow as tf
class DatasetManager():
def __init__(self,
source_data_path,
target_data_path,
batch_size=32,
shuffle=100,
num_sample=-1,
max_length=50,
EOS_ID=1,
PAD_ID=0,
cross_val=[0.89, 0.1, 0.01],
byte_token='@@',
word_token=' ',
split_token='\n',
tfrecord_path=None):
"""Short summary.
Args:
source_data_path (type): Description of parameter `source_data_path`.
target_data_path (type): Description of parameter `target_data_path`.
num_sample (type): Description of parameter `num_sample`.
batch_size (type): Description of parameter `batch_size`.
split_token (type): Description of parameter `split_token`.
Returns:
type: Description of returned object.
"""
self.source_data_path = source_data_path
self.target_data_path = target_data_path
self.num_sample = num_sample
self.batch_size = batch_size
self.byte_token = byte_token
self.split_token = split_token
self.word_token = word_token
self.EOS_ID = EOS_ID
self.PAD_ID = PAD_ID
self.shuffle = shuffle
self.max_length = max_length
self.cross_val = cross_val
assert isinstance(self.cross_val, list) is True
self.byter = data_setentceToByte_helper.Subtokenizer(
self.source_data_path + self.target_data_path,
PAD_ID=self.PAD_ID,
EOS_ID=self.EOS_ID)
if train_conf.get_available_gpus() > 0:
self.cpus = 12 * train_conf.get_available_gpus()
else:
self.cpus = 4
self.tfrecord_path = tfrecord_path
def corpus_length_checker(self, data=None, re=False):
self.short_20 = 0
self.median_50 = 0
self.long_100 = 0
self.super_long = 0
for k, v in enumerate(data):
v = v.split(self.word_token)
v_len = len(v)
if v_len <= 20:
self.short_20 += 1
if v_len > 20 and v_len <= 50:
self.median_50 += 1
if v_len > 50 and v_len <= 100:
self.long_100 += 1
if v_len > 100:
self.super_long += 1
if re:
print("short: %d" % self.short_20)
print("median: %d" % self.median_50)
print("long: %d" % self.long_100)
print("super long: %d" % self.super_long)
def encode(self, string, add_eos=True):
return self.byter.encode(string, add_eos=True)
def decode(self, string):
return self.byter.decode(string)
def one_file_encoder(self, file_path, num=None):
with tf.gfile.GFile(file_path, "r") as f:
raw_data = f.readlines()
re = []
if num is None:
for d in raw_data:
re.append(self.encode(d))
else:
text = raw_data[num].split(":")[1].lower().rstrip().strip()
re = self.encode(text)
f.close()
return re
def one_file_decoder(self, file_path, line_num=None):
with tf.gfile.GFile(file_path, "r") as f:
raw_data = f.readlines()
re = []
if line_num is None:
for d in raw_data:
re.append(self.decode(d))
f.close()
else:
re.append(self.decode(raw_data[line_num]))
return re
def create_dataset(self, data_path):
def _parse_example(serialized_example):
"""Return inputs and targets Tensors from a serialized tf.Example."""
data_fields = {
"text": tf.VarLenFeature(tf.int64),
"img": tf.VarLenFeature(tf.float32)
}
# import pdb;pdb.set_trace()
parsed = tf.parse_single_example(serialized_example, data_fields)
img = tf.sparse_tensor_to_dense(parsed["img"])
text = tf.sparse_tensor_to_dense(parsed["text"])
return img, text
def _filter_max_length(example, max_length=256):
return tf.logical_and(
tf.size(example[0]) <= max_length,
tf.size(example[1]) <= max_length)
# with tf.device("/cpu:0"):
dataset = tf.data.TFRecordDataset(
data_path, compression_type='GZIP')
dataset = dataset.map(_parse_example, num_parallel_calls=self.cpus)
dataset = dataset.map(
lambda img, text: (tf.reshape(img, [-1, 25088]), text),
num_parallel_calls=self.cpus)
# dataset = dataset.filter(lambda x, y: _filter_max_length((
# x, y), self.max_length))
# dataset = dataset.apply(tf.data.experimental.ignore_errors())
return dataset
def get_raw_train_dataset(self):
files = tf.data.Dataset.list_files(
self.tfrecord_path + "/train_TFRecord*", shuffle=200)
with tf.device('/cpu:0'):
return self.create_dataset(files)
# def get_raw_val_dataset(self):
# with tf.device('/cpu:0'):
# return self.create_dataset(self.val_tfr)
#
# def get_raw_test_dataset(self):
# with tf.device("/cpu:0"):
# return self.create_dataset(self.test_tfr)
#
# def get_train_size(self):
# return self.train_size
#
# def get_val_size(self):
# return self.val_size
#
# def get_test_size(self):
# return self.test_size
# tf.enable_eager_execution()
# DATA_PATH = '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng'
# sentenceHelper = DatasetManager([DATA_PATH + "/europarl-v7.fr-en.en"],
# [DATA_PATH + "/europarl-v7.fr-en.en"],
# batch_size=16,
# shuffle=100)
# dataset = sentenceHelper.get_raw_train_dataset()
# for i in range(5):
# import pdb; pdb.set_trace()
# d = dataset.make_one_shot_iterator()
# d = d.get_next()
# # # # # a, b, c = sentenceHelper.prepare_data()
# # # # a, b, c = sentenceHelper.post_process()
# # for i, e in enumerate(a):
# # print(e[0])
# # print(i)
# # sentenceHelper.byter.decode(e[0].numpy())
# # break
#
#
# def dataset_prepross_fn(src, tgt):
# return (src, tgt), tgt
#
#
# dataset = dataset.map(dataset_prepross_fn, num_parallel_calls=12)
# dataset = dataset.padded_batch(
# 1,
# padded_shapes=(
# (
# tf.TensorShape([None]), # source vectors of unknown size
# tf.TensorShape([None]), # target vectors of unknown size
# ),
# tf.TensorShape([None])),
# drop_remainder=True)
<file_sep>/data_image_helper.py
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 14 20:55:34 2019
@author: 50568
"""
import data_file_helper as fh
import tensorflow as tf
# import tensorflow.contrib as tf_contrib
import numpy as np
import cv2
import visualization
class data_image_helper:
def __init__(self, detector):
self.detector = detector
def read_img(self, path, shape, size, begin=0, end=0):
"""
Video_Read is used to extract the image of mouth from a video;\n
parameter:\n
Path: the string path of video\n
Shape: the (min, max) size tuple of the mouth you extract from the video\n
Size: the (high, weight) size tuple of the mouth image you save
"""
cap = cv2.VideoCapture(path)
images = []
mouth = None
cnt = 0
frames = cap.get(cv2.CAP_PROP_FRAME_COUNT)
fps = cap.get(cv2.CAP_PROP_FPS)
v_length = frames / fps
if (end == 0 or end >= v_length):
end = v_length
if (cap.isOpened() == False):
print("Read video failed!")
return None
# get detector
classifier_face = cv2.CascadeClassifier(
"./cascades/haarcascade_frontalface_alt.xml")
classifier_mouth = cv2.CascadeClassifier(
"./cascades/haarcascade_mcs_mouth.xml")
cap.set(cv2.CAP_PROP_POS_FRAMES, begin * fps)
pos = cap.get(cv2.CAP_PROP_POS_FRAMES)
while (pos <= end * fps and end <= v_length):
ret, img = cap.read()
'''
第一个参数ret的值为True或False,代表有没有读到图片
第二个参数是frame,是当前截取一帧的图片
'''
pos = cap.get(cv2.CAP_PROP_POS_FRAMES)
if ret == False:
break
faceRects_face = classifier_face.detectMultiScale(
img, 1.2, 2, cv2.CASCADE_SCALE_IMAGE, (20, 25))
key = cv2.waitKey(1)
# 键盘等待
if len(faceRects_face) > 0:
# 检测到人脸
for faceRect_face in faceRects_face:
# 获取图像x起点,y起点,宽,高
x, y, w, h = faceRect_face
# 转换类型为int,方便之后图像截取
intx = int(x)
intw = int(w)
# 截取人脸区域下半部分左上角的y起点,以精确识别嘴巴的位置
my = int(float(y + 0.6 * h))
mh = int(0.5 * h)
img_facehalf_bottom = img[my:(my + mh), intx:intx + intw]
'''
img获取坐标为,【y,y+h之间(竖):x,x+w之间(横)范围内的数组】
img_facehalf是截取人脸识别到区域上半部分
img_facehalf_bottom是截取人脸识别到区域下半部分
'''
cv2.rectangle(img, (int(x), my),
(int(x) + int(w), my + mh), (0, 255, 0), 2,
0)
'''
矩形画出区域 rectangle参数(图像,左顶点坐标(x,y),右下顶点坐标(x+w,y+h),线条颜色,线条粗细)
画出人脸识别下部分区域,方便定位
'''
faceRects_mouth = classifier_mouth.detectMultiScale(
img_facehalf_bottom, 1.1, 1, cv2.CASCADE_SCALE_IMAGE,
shape)
if len(faceRects_mouth) > 0:
for faceRect_mouth in faceRects_mouth:
xm1, ym1, wm1, hm2 = faceRect_mouth
cv2.rectangle(
img_facehalf_bottom, (int(xm1), int(ym1)),
(int(xm1) + int(wm1), int(ym1) + int(hm2)),
(0, 0, 255), 2, 0)
mouth = img_facehalf_bottom[ym1:(ym1 + hm2), xm1:(
xm1 + wm1)]
mouth = cv2.resize(
mouth, size, interpolation=cv2.INTER_CUBIC)
images.append(mouth)
cnt += 1
# cv2.imshow('video', mouth)
# if cnt % 10 == 0:
# cv2.imwrite(str(cnt) + 'xx.jpg', mouth)
if (key == ord('q')):
break
cap.release()
cv2.destroyAllWindows()
return images, cnt
# def prepare_data(self,
# path,
# batch_size,
# time_step,
# shape = (20, 20),
# size = (109, 109),
# read = True):
# if(read):
# self.read_img(path, shape, size)
# DataSet = []
# Buffers = [None] * time_step
# cnt = 0
# for image in self.images:
# cnt += 1
# for i in range(time_step):
# Buffers[time_step -i - 1] = Buffers[time_step - i - 2]
# Buffers[0] = image
# if(cnt >= time_step):
# DataSet.append(Buffers.copy())
# # DataSet = DataSet / 255.0
# # DataSet = DataSet.astype(np.float32)
# batch_dataset = tf.data.Dataset.from_tensor_slices(DataSet)
# batch_dataset = batch_dataset.batch(batch_size)
# return batch_dataset, self.images
def get_raw_dataset(self, path, shape=(20, 20), size=(224, 224)):
video, cnt = self.read_img(path, shape, size, 0.5, 1)
video = np.array(video) / 255.0
video = video.astype(np.float32)
return video
# return tf.data.Dataset.from_generator(generator, tf.float32)
def prepare_data(
self,
paths,
batch_size,
shape=(20, 20),
size=(224, 224),
):
dataset = []
length = []
for path in paths:
video, cnt = self.read_img(path, shape, size, 0.5, 1)
video = np.array(video) / 255.0
video = video.astype(np.float32)
dataset.append(video)
length.append(cnt)
def generator():
for d, c in zip(dataset, length):
yield d, c
raw_dataset = tf.data.Dataset.from_generator(generator,
(tf.float32, tf.int32))
batch_dataset = raw_dataset.padded_batch(
batch_size,
padded_shapes=(tf.TensorShape([None, 109, 109, 5]),
tf.TensorShape([])))
return batch_dataset, raw_dataset
if __name__ == '__main__':
video, txt = fh.read_file(
'/Users/barid/Documents/workspace/batch_data/lip_data')
print(video[:5])
print(txt[:5])
helper = data_image_helper(detector='./cascades/')
# b, d = helper.prepare_data(paths = ['D:/lip_data/ABOUT/train/ABOUT_00003.mp4'], batch_size = 64)
b, d = helper.prepare_data(paths=video, batch_size=32)
print(b)
#for (i,(x, l)) in enumerate(b):
# print(x)
# print(l)
<file_sep>/legacy/test_trainer.py
# encoding=utf8
import sys
# sys.path.insert(0, '/home/vivalavida/batch_data/corpus_fr2eng')
# sys.path.insert(1, '/home/vivalavida/workspace/alpha/transformer_nmt')
sys.path.insert(1, '/Users/barid/Documents/workspace/alpha/transformer_nmt')
sys.path.insert(0, '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng')
import tensorflow as tf
from nltk.translate.bleu_score import sentence_bleu
# import model_helper
import time
import os
from tensorflow.contrib.eager.python import tfe
import train_conf
print("eager mode")
tfe.enable_eager_execution()
# DATA_PATH = sys.path[0]
SYS_PATH = sys.path[1]
# LEARNING_RATE = 0.1
# KEEP_PROB = 0.4
#
# GLOBAL_STEP = tf.Variable(initial_value=0, trainable=False)
# NUMBER_EPOCH = 1
# CLIPPING = 5
# NUMBER_UNITS = 16 # dimension of each hidden state
# EMBEDDING_SIZE = NUMBER_UNITS
# NUMBER_LAYER = 1
class Trainer():
def __init__(self, model, dataset_manager, hyperParam, vocab_size, gpu=0):
self.model = model
self.dataset_manager = dataset_manager
self.hyperParam = hyperParam
self.epoch_number = hyperParam.epoch_num
self.vocab_size = vocab_size
self.gpu = gpu
self.clipping = hyperParam.clipping
self.batch_size = hyperParam.batch_size
self.GLOBAL_STEP = tf.Variable(initial_value=0, trainable=False)
if int(tfe.num_gpus()) > 0:
self.gpu = tfe.num_gpus()
def _prepocess(self):
if self.gpu > 0:
self.train_dataset, self.val_dataset, self.test_dataset = self.dataset_manager.prepare_data(
)
self.train_dataset = self.train_dataset.prefetch(self.gpu * 2)
self.val_dataset = self.val_dataset.prefetch(self.gpu * 2)
self.test_dataset = self.test_dataset.prefetch(self.gpu * 2)
else:
self.train_dataset, self.val_dataset, self.test_dataset = self.dataset_manager.prepare_data()
self.train_dataset = self.train_dataset.prefetch(2)
self.val_dataset = self.val_dataset.prefetch(2)
self.test_dataset = self.test_dataset.prefetch(2)
def _evaluation(self, inputs, tgt_output):
pred = self.model(inputs, train=False)
pred = tf.reshape(pred, [self.batch_size, -1]).numpy().tolist()
import pdb; pdb.set_trace()
test = self.dataset_manager.decode(pred)
tgt_output = tf.reshape(tgt_output,
[self.batch_size, 1, -1]).numpy().tolist()
bleu = 0
for batch in range(self.batch_size):
bleu += sentence_bleu(tgt_output[batch], pred[batch])
return bleu / batch
def _train_one_epoch(self, epoch, writer, gpu_num=0):
start = time.time()
total_loss = 0
with writer.as_default(), tf.contrib.summary.always_record_summaries():
for (batch, (src, tgt)) in enumerate(self.train_dataset):
X = (src, tgt)
# src_time_step, tgt_time_step)
with tf.GradientTape() as tape:
pred = self.model(X)
attention_weights = self.model.get_attention()
# self.model.summary()
true = tgt
self.loss = train_conf.onehot_loss_function(
true,
pred,
mask_id=self.hyperParam.PAD_ID,
vocab_size=self.vocab_size)
self.train_variables = self.model.variables
gradients, _ = tf.clip_by_global_norm(
tape.gradient(self.loss, self.train_variables),
self.clipping)
self.optimizer.apply_gradients(
zip(gradients, self.train_variables),
tf.train.get_or_create_global_step())
# bleu = self._evaluation(src, tgt)
total_loss += (self.loss / int(tgt.shape[1]))
# tf.contrib.summary.scalar("loss", total_loss)
if writer is not None:
tf.contrib.summary.scalar("loss", total_loss)
print('Epoch {} Batch {} Loss {:.4f}'.format(
1, batch,
self.loss.numpy()))
if batch % 8 == 7:
break
print('Time taken for {} epoch {} sec\n'.format(
epoch,
time.time() - start))
def train(self):
self._prepocess()
self.optimizer = train_conf.optimizer()
try:
os.makedirs(SYS_PATH + "/checkpoints")
os.makedirs(SYS_PATH + "/checkpoints/nmt_mini")
except OSError:
pass
checkpoint_dir = SYS_PATH + '/checkpoints/nmt_mini"'
checkpoint_prefix = os.path.join(checkpoint_dir, "ckpt")
checkpoint = tf.train.Checkpoint(
model=self.model, optimizer=self.optimizer)
writer = tf.contrib.summary.create_file_writer(
sys.path[1] + '/graphs/nmt_mini', flush_millis=10000)
if checkpoint:
checkpoint.restore(tf.train.latest_checkpoint(checkpoint_dir))
for epoch in range(0, self.epoch_number):
self._train_one_epoch(epoch, writer)
checkpoint.save(file_prefix=checkpoint_prefix)
######################################################################################
import hyperParam
import core_Transformer_model
import core_dataset_generator
# import test_trainer
# import graph_trainer
# set_up
DATA_PATH = sys.path[0]
SYS_PATH = sys.path[1]
# src_data_path = DATA_PATH + "/vivalavida.txt"
# tgt_data_path = DATA_PATH + "/vivalavida.txt"
src_data_path = DATA_PATH + "/europarl-v7.fr-en.en"
tgt_data_path = DATA_PATH + "/europarl-v7.fr-en.fr"
hp = hyperParam.HyperParam('test')
data_manager = core_dataset_generator.DatasetManager(
src_data_path,
tgt_data_path,
batch_size=hp.batch_size,
max_length=hp.max_sequence_length)
# dataset_train_val_test = data_manager.prepare_data()
gpu = train_conf.get_available_gpus()
vocabulary_size = 24000
model = core_Transformer_model.Daedalus(
max_seq_len=hp.max_sequence_length,
vocabulary_size=vocabulary_size,
embedding_size=hp.embedding_size,
batch_size=hp.batch_size / gpu if gpu > 0 else 1,
num_units=hp.num_units,
num_heads=hp.num_heads,
num_encoder_layers=hp.num_encoder_layers,
num_decoder_layers=hp.num_decoder_layers,
dropout=hp.dropout,
eos_id=hp.EOS_ID,
pad_id=hp.PAD_ID)
# test = test_trainer.Trainer(model=model, dataset=dataset_train_val_test)
# test.train()
test_train = Trainer(
model=model,
hyperParam=hp,
vocab_size=vocabulary_size,
dataset_manager=data_manager)
test_train.train()
<file_sep>/visualization_helper.py
# encoding=utf8
# import numpy as np
from matplotlib import pyplot as plt
import sys
def plot_attention(attention, sentence, predicted_sentence):
fig = plt.figure(figsize=(10, 10))
ax = fig.add_subplot(1, 1, 1)
ax.matshow(attention, cmap='viridis')
fontdict = {'fontsize': 14}
ax.set_xticklabels([''] + sentence, fontdict=fontdict, rotation=90)
ax.set_yticklabels([''] + predicted_sentence, fontdict=fontdict)
plt.show()
def percent(current, total):
"""
just for fun
"""
if current == total - 1:
current = total
bar_length = 20
hashes = '#' * int(current / total * bar_length)
spaces = ' ' * (bar_length - len(hashes))
sys.stdout.write(
"\rPercent: [%s] %d%%" % (hashes + spaces, int(100 * current / total)))
<file_sep>/legacy/seq2seq_trainer.py
# encoding=utf8
import sys
# sys.path.insert(0, '/home/vivalavida/batch_data/corpus_fr2eng')
# sys.path.insert(1, '/home/vivalavida/workspace/alpha/nmt')
sys.path.insert(0, '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng')
sys.path.insert(1, '/Users/barid/Documents/workspace/alpha/nmt')
import tensorflow as tf
import numpy as np
import time
import os
from core_model import BabelTowerFactory as BTF
from tensorflow.contrib.eager.python import tfe
import model_helper
#######eager module#######
print("eager mode")
tfe.enable_eager_execution()
DATA_PATH = sys.path[0]
SYS_PATH = sys.path[1]
LEARNING_RATE = 0.1
KEEP_PROB = 0.4
GLOBAL_STEP = tf.Variable(initial_value=0, trainable=False)
NUMBER_EPOCH = 1
CLIPPING = 5
# ~~~~~~~~~~~~~~ basic LSTM configure~~~~~~~~~~~~~~~~~
# TIME_STEP = 8 # number of hidden state, it also means the lenght of input and output sentence
NUMBER_UNITS = 16 # dimension of each hidden state
# ~~~~~~~~~~~~~ embedding configure ~~~~~~~~~~~~~~~~~
EMBEDDING_SIZE = NUMBER_UNITS
NUMBER_LAYER = 1
class Trainer():
def __init__(self,
mode,
src_data_path,
tgt_data_path,
epoch_number=10,
batch_size=64,
lr=0.01,
keep_prob=0.4,
clipping=5,
data_shuffle=20000,
eager=True,
gpu=0):
self.src_data_path = src_data_path
self.tgt_data_path = tgt_data_path
self.mode = mode
self.epoch_number = epoch_number
self.batch_size = batch_size
self.lr = lr
self.keep_prob = keep_prob
self.clipping = clipping
self.data_shuffle = data_shuffle
self.gpu = gpu
# think twice before change it
self.eager = eager
if int(tfe.num_gpus()) > 0:
self.gpu = tfe.num_gpus()
# train timer
# self.th = model_helper.TimeHistory()
self._train_setup()
def _prepocess(self, epochs=1):
if self.mode == 'mini':
self.model, self.sentenceHelper = BTF(
self.src_data_path, self.tgt_data_path, BATCH_SIZE,
eager=True).mini_model()
if self.mode == 'small':
self.model, self.sentenceHelper = BTF(
self.src_data_path, self.tgt_data_path, BATCH_SIZE,
eager=True).samll_model()
if self.mode == 'large':
self.model, self.sentenceHelper = BTF(
self.src_data_path, self.tgt_data_path, BATCH_SIZE,
eager=True).large_model()
self.batch_dataset = self.sentenceHelper.prepare_data()
self.src_vocabulary, self.tgt_vocabulary, self.src_ids2word, self.tgt_ids2word = self.sentenceHelper.prepare_vocabulary(
)
if self.gpu > 0:
self.batch_dataset = self.batch_dataset.shuffle(
self.data_shuffle).repeat(epochs)
def _loss_function(self, pred, true):
"""Short summary.
A little trick here:
Using a mask, which filters '<EOS>' mark in true, it can give a more precise loss value.
Args:
pred (type): Description of parameter `pred`.
true (type): Description of parameter `true`.
Returns:
type: Description of returned object.
"""
if self.eager:
mask = 1 - np.equal(true, self.sentenceHelper.EOS_ID)
else:
mask = 1 - np.equal(true.eval(), self.sentenceHelper.EOS_ID)
loss = tf.nn.sparse_softmax_cross_entropy_with_logits(
logits=pred, labels=true) * mask
return tf.reduce_mean(loss)
def _optimizer(self):
self.optimizer = tf.train.AdamOptimizer(self.lr)
def _compute_gradients(self, tape, loss, variables):
gradients, _ = tf.clip_by_global_norm(
tape.gradient(loss, variables), self.clipping)
return gradients
def _apply_gradients(self, gradients, variables, global_step):
self.optimizer.apply_gradients(
zip(gradients, variables), global_step=global_step)
def _eager_boost(self):
"""Short summary.
1) the forward computation, 2) the backward computation for the gradients,
and 3) the application of gradients to variables
Args:
Returns:
type: Description of returned object.
"""
self.model.call = tfe.defun(self.model.call)
# self.model.compute_gradients = tfe.defun(self.model.compute_gradients)
self._apply_gradients = tfe.defun(self._apply_gradients)
def _summarize(self, loss):
"""
return:
summarize_op
"""
tf.summary.scalar("loss", tf.reduce_mean(loss))
return tf.summary.merge_all()
def _train_setup(self):
self._prepocess()
self._optimizer()
self._eager_boost()
def _train_one_epoch(self, epoch, writer, gpu_num=0):
start = time.time()
self.model.re_initialize_final_state()
total_loss = 0
with writer.as_default(), tf.contrib.summary.always_record_summaries():
for (batch, ((src_input, tgt_input, src_length, tgt_length),
tgt_output)) in enumerate(self.batch_dataset):
X = (src_input, tgt_input, src_length, tgt_length)
with tf.GradientTape() as tape:
pred = self.model(X)
true = tgt_output
self.loss = self._loss_function(pred, true)
self.train_variables = self.model.variables
gradients, _ = tf.clip_by_global_norm(
tape.gradient(self.loss, self.train_variables),
self.clipping)
self.optimizer.apply_gradients(
zip(gradients, self.train_variables),
tf.train.get_or_create_global_step())
total_loss += (self.loss / int(tgt_output.shape[1]))
tf.contrib.summary.scalar("loss", total_loss)
print(gpu_num)
if writer is not None:
tf.contrib.summary.scalar("loss", total_loss)
if batch % 2 == 0:
print('Epoch {} Batch {} Loss {:.4f}'.format(
1, batch,
self.loss.numpy() / int(tgt_output.shape[1])))
if batch % 5 == 0:
break
print('Time taken for {} epoch {} sec\n'.format(
epoch,
time.time() - start))
def train(self):
try:
os.makedirs(SYS_PATH + "/checkpoints_full")
os.makedirs(SYS_PATH + "/checkpoints_full/nmt")
except OSError:
pass
checkpoint_dir = SYS_PATH + '/checkpoints_full/nmt"'
checkpoint_prefix = os.path.join(checkpoint_dir, "ckpt")
checkpoint = tf.train.Checkpoint(
model=self.model, optimizer=self.optimizer)
writer = tf.contrib.summary.create_file_writer(
sys.path[1] + '/graphs_full/nmt', flush_millis=10000)
if checkpoint:
checkpoint.restore(tf.train.latest_checkpoint(checkpoint_dir))
if self.gpu > 0:
for index, gpu in enumerate(np.arange(0, self.gpu)):
with tf.device("/device:GPU:" + str(gpu)):
for epoch in range(0, self.epoch_number):
self._train_one_epoch(epoch, writer, gpu)
checkpoint.save(file_prefix=checkpoint_prefix)
else:
# pass
# sess = tf.Session()
# tf.keras.backend.set_session(sess)
# self.dataset = self.train_dataset.make_one_shot_iterator()
# with sess.as_default():
# # sess.run(self.dataset.initializer)
# sess.run(tf.global_variables_initializer())
# # while True:
# src_input, tgt, src_length, tgt_length = self.dataset.get_next(
# )
# tgt_input, tgt_output = data_sentence_helper.tgt_formater(
# tgt)
# X = (src_input, tgt_input, src_length, tgt_length)
# pred = self.model(X)
# sess.run(pred.eval())
for epoch in range(0, self.epoch_number):
self._train_one_epoch(epoch, writer)
checkpoint.save(file_prefix=checkpoint_prefix)
break
######################################################################################
"""
test exmaple
"""
BATCH_SIZE = 32
train_model = Trainer(
'mini',
DATA_PATH + "/europarl-v7.fr-en.fr",
DATA_PATH + "/europarl-v7.fr-en.en",
epoch_number=1,
batch_size=BATCH_SIZE)
train_model.train()
<file_sep>/legacy/core_dataset_generator.old.py
# encoding=utf8
import tensorflow as tf
import train_conf
import data_setentceToByte_helper
import numpy as np
class DatasetManager():
def __init__(self,
source_data_path,
target_data_path,
batch_size=32,
shuffle=100,
num_sample=-1,
max_length=50,
SOS_ID=1,
EOS_ID=2,
PAD_ID=0,
word_token=' ',
split_token='\n'):
"""Short summary.
Args:
source_data_path (type): Description of parameter `source_data_path`.
target_data_path (type): Description of parameter `target_data_path`.
num_sample (type): Description of parameter `num_sample`.
batch_size (type): Description of parameter `batch_size`.
split_token (type): Description of parameter `split_token`.
Returns:
type: Description of returned object.
"""
self.source_data_path = source_data_path
self.target_data_path = target_data_path
self.num_sample = num_sample
self.batch_size = batch_size
self.split_token = split_token
self.word_token = word_token
self.SOS_ID = SOS_ID
self.EOS_ID = EOS_ID
self.PAD_ID = PAD_ID
self.shuffle = shuffle
self.max_length = max_length
self.byter = data_setentceToByte_helper.Subtokenizer(
[self.source_data_path, self.target_data_path],
PAD_ID=self.PAD_ID,
EOS_ID=self.EOS_ID)
if train_conf.get_available_gpus() > 0:
self.cpus = 12
else:
self.cpus = 2
def cross_validation(self, data_path, validation=0.15, test=0.15):
train_path = data_path + "_train"
test_path = data_path + "_test"
val_path = data_path + "_val"
raw_data = []
with tf.gfile.GFile(data_path, "r") as f:
raw_data = f.readlines()
self.data_counter = len(raw_data)
# val_size = int(validation * self.data_counter)
val_size = 3200
# test_size = int(test * self.data_counter)
test_size = 3200
self.train_size = self.data_counter - val_size - test_size
f.close()
def writer(path, data):
if tf.gfile.Exists(path) is not True:
with tf.gfile.GFile(path, "w") as f:
for w in data:
if len(w) >= 0:
f.write("%s" % w)
f.close()
print("File exsits: {}".format(path))
print('Total data {0}'.format(self.data_counter))
print(('Train {0}, Validation {1}, Test {2}'.format(
self.train_size, val_size, test_size)))
writer(train_path, raw_data[:self.train_size])
# writer(val_path, raw_data[:128])
writer(val_path,
raw_data[self.train_size:self.train_size + val_size])
writer(test_path, raw_data[self.train_size + val_size:])
return train_path, test_path, val_path
def encode(self, string):
return self.byter.encode(string)
def decode(self, string):
return self.byter.decode(string)
def parser_fn(self, string):
"""
All data should be regarded as a numpy array
"""
string = string.numpy().decode('utf8').strip()
return np.array(
self.byter.encode(string, add_eos=True),
dtype=np.int32)[:self.max_length]
def create_dataset(self, data_path):
dataset = tf.data.TextLineDataset(data_path)
dataset = dataset.map(
lambda string: tf.py_function(self.parser_fn, [string], tf.int32),
num_parallel_calls=self.cpus)
return dataset
def post_process(self, validation=0.15, test=0.15):
src_train_path, src_test_path, src_val_path = self.cross_validation(
self.source_data_path)
src_train_dataset = self.create_dataset(src_train_path)
src_val_dataset = self.create_dataset(src_val_path)
src_test_dataset = self.create_dataset(src_test_path)
tgt_train_path, tgt_test_path, tgt_val_path = self.cross_validation(
self.target_data_path)
tgt_train_dataset = self.create_dataset(tgt_train_path)
tgt_val_dataset = self.create_dataset(tgt_val_path)
tgt_test_dataset = self.create_dataset(tgt_test_path)
def body(src_dataset, tgt_dataset):
source_target_dataset = tf.data.Dataset.zip((src_dataset,
tgt_dataset))
source_target_dataset = source_target_dataset.shuffle(self.shuffle)
return source_target_dataset
train_dataset = body(src_train_dataset, tgt_train_dataset)
val_dataset = body(src_val_dataset, tgt_val_dataset)
test_dataset = body(src_test_dataset, tgt_test_dataset)
return train_dataset, val_dataset, test_dataset
def padding(self, dataset):
batched_dataset = dataset.padded_batch(
self.batch_size,
padded_shapes=(
tf.TensorShape([None]), # source vectors of unknown size
tf.TensorShape([None]), # target vectors of unknown size
),
padding_values=(
self.
PAD_ID, # source vectors padded on the right with src_eos_id
self.
PAD_ID, # target vectors padded on the right with tgt_eos_id
),
drop_remainder=True) # size(target) -- unused
return batched_dataset
def prepare_data(self):
train_dataset, val_dataset, test_dataset = self.post_process()
train_dataset = self.padding(train_dataset)
val_dataset = self.padding(val_dataset)
test_dataset = self.padding(test_dataset)
return train_dataset, val_dataset, test_dataset
# tf.enable_eager_execution()
# DATA_PATH = '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng'
# sentenceHelper = DatasetManager(
# DATA_PATH + "/europarl-v7.fr-en.fr",
# DATA_PATH + "/europarl-v7.fr-en.en",
# batch_size=16,
# shuffle=100)
# a, b, c = sentenceHelper.prepare_data()
#
# for i, (e,b) in enumerate(a):
# e = b[1]
# print(i)
# break
# sentenceHelper.byter.decode(e.numpy())
# d = a.make_one_shot_iterator()
# d = d.get_next()
<file_sep>/hyper_and_conf/hyper_param.py
# encoding=utf-8
import os
class HyperParam:
def __init__(self,
mode,
gpu=0,
vocab=12000,
UNK_ID=0,
SOS_ID=0,
EOS_ID=1,
PAD_ID=0,
MASK_ID=2):
self.gpu = gpu
self.UNK_ID = UNK_ID
self.SOS_ID = SOS_ID
self.EOS_ID = EOS_ID
self.PAD_ID = PAD_ID
self.MASK_ID = MASK_ID
self.model_summary_dir = "model_summary"
self.model_weights_dir = "model_weights"
self.model_checkpoint_dir = "model_checkpoint"
try:
os.makedirs(self.model_weights_dir)
except OSError:
pass
try:
os.makedirs(self.model_checkpoint_dir)
except OSError:
pass
try:
os.makedirs(self.model_summary_dir)
except OSError:
pass
self.vocabulary_size = vocab
if mode == 'test':
self.test()
if mode == 'small':
self.small()
if mode == 'large':
self.large()
def test(self,
embedding_size=16,
batch_size=8,
epoch_num=5,
num_units=16,
num_heads=2,
num_encoder_layers=2,
num_decoder_layers=2,
max_sequence_length=150,
epoch=1,
lr=2,
clipping=5,
inference_length=150,
data_shuffle=100000,
learning_warmup=1000,
dropout=0.4):
self.embedding_size = embedding_size
self.batch_size = batch_size
self.epoch_num = epoch_num
self.num_units = num_units
self.num_heads = num_heads
self.num_encoder_layers = num_encoder_layers
self.num_decoder_layers = num_decoder_layers
self.max_sequence_length = max_sequence_length
self.dropout = dropout
self.lr = lr
self.clipping = clipping
self.data_shuffle = data_shuffle
self.inference_length = inference_length
self.learning_warmup = learning_warmup
def small(self,
embedding_size=16,
batch_size=16,
epoch_num=10,
num_units=16,
num_heads=2,
num_encoder_layers=2,
num_decoder_layers=2,
max_sequence_length=150,
epoch=1,
lr=0.001,
clipping=5,
inference_length=150,
data_shuffle=100,
dropout=0.4,
learning_warmup=10000):
self.embedding_size = embedding_size
self.batch_size = batch_size
self.epoch_num = epoch_num
self.num_units = num_units
self.num_heads = num_heads
self.num_encoder_layers = num_encoder_layers
self.num_decoder_layers = num_decoder_layers
self.max_sequence_length = max_sequence_length
self.dropout = dropout
self.lr = lr
self.clipping = clipping
self.data_shuffle = data_shuffle
self.inference_length = inference_length
self.learning_warmup = learning_warmup
def large(self,
embedding_size=64 * 16,
batch_size=23,
epoch_num=30,
num_units=64 * 16,
num_heads=16,
num_encoder_layers=6,
num_decoder_layers=6,
max_sequence_length=50,
epoch=20,
lr=2,
clipping=5,
inference_length=50,
data_shuffle=2000000,
dropout=0.1,
learning_warmup=3200):
self.embedding_size = embedding_size
self.batch_size = batch_size * self.gpu
self.epoch_num = epoch_num
self.num_units = num_units
self.num_heads = num_heads
self.num_encoder_layers = num_encoder_layers
self.num_decoder_layers = num_decoder_layers
self.max_sequence_length = max_sequence_length
self.dropout = dropout
self.lr = lr
self.clipping = clipping
self.data_shuffle = data_shuffle
self.inference_length = inference_length
self.learning_warmup = learning_warmup
<file_sep>/legacy/test.py
#encoding=utf8
import tensorflow as tf
import core_Transformer_model
import sys
import hyperParam
import train_conf
import core_dataset_generator
import visualization
# sys.path.insert(0, '/home/vivalavida/batch_data/corpus_fr2eng/')
# sys.path.insert(1, '/home/vivalavida/workspace/alpha/transformer_nmt/')
# TRAIN_MODE = 'large'
sys.path.insert(0, '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng')
sys.path.insert(1, '/Users/barid/Documents/workspace/alpha/transformer_nmt')
TRAIN_MODE = 'test'
DATA_PATH = sys.path[0]
SYS_PATH = sys.path[1]
src_data_path = DATA_PATH + "/europarl-v7.fr-en.en"
tgt_data_path = DATA_PATH + "/europarl-v7.fr-en.fr"
tf.enable_eager_execution()
hp = hyperParam.HyperParam(TRAIN_MODE)
gpu = train_conf.get_available_gpus()
vocabulary_size = 24000
data_manager = core_dataset_generator.DatasetManager(
src_data_path,
tgt_data_path,
batch_size=hp.batch_size,
PAD_ID=hp.PAD_ID,
EOS_ID=hp.EOS_ID,
# shuffle=hp.data_shuffle,
shuffle=hp.data_shuffle,
max_length=hp.max_sequence_length)
model = core_Transformer_model.Daedalus(
max_seq_len=hp.max_sequence_length,
vocabulary_size=vocabulary_size,
embedding_size=hp.embedding_size,
batch_size=hp.batch_size / (gpu if gpu > 0 else 1),
num_units=hp.num_units,
num_heads=hp.num_heads,
num_encoder_layers=hp.num_encoder_layers,
num_decoder_layers=hp.num_decoder_layers,
dropout=hp.dropout,
eos_id=hp.EOS_ID,
pad_id=hp.PAD_ID)
model.load_weights(SYS_PATH + '/model/model_weights')
test = tf.convert_to_tensor([data_manager.encode("I like cat")])
re = model(test, train=False)
att = model.get_attention().numpy()
<file_sep>/data_file_helper.py
import os
def read_file(path, model_format = ['train', 'val']):
"""
This fuc is use to read all files's name from root path
args:
path: the path of the root file
return:
video: list, the path of video(mp4, avi);
eg: ['x1.mp4',...,'xn.mp4']
txt: list, the path of the data txt;
eg: ['x1.txt',...,'xn.txt']
word: a boolean list,
True: when the txt is word;
False: when the txt is sentence;
"""
txt_Format = ['.txt']
video_Format = ['.mp4', '.avi']
txt = []
video = []
word = []
for filename in os.walk(path):
flag = ''
if(os.path.split(filename[0])[-1] not in model_format):
continue
for f in filename[2]:
tmp = filename[0] + '/' + f
if os.path.splitext(f)[1] in txt_Format:
# if(flag == '' or flag == os.path.splitext(f)[0]):
txt.append(tmp)
if('_' in f):
w = f.split('_')
word.append(w[0].lower())
# else:
# word.append(False)
if(flag == ''):
flag = os.path.splitext(f)[0]
else:
flag = ''
# else:
# if(len(video) > len(txt)):
# video.pop()
# else:
# word.pop()
# txt.pop()
# flag = ''
if os.path.splitext(f)[1] in video_Format:
# if(flag == '' or flag == os.path.splitext(f)[0]):
video.append(tmp)
if(flag == ''):
flag = os.path.splitext(f)[0]
else:
flag = ''
# else:
# if(len(video) > len(txt)):
# video.pop()
# else:
# word.pop()
# txt.pop()
# flag = ''
return video, txt, word
if __name__ == '__main__':
ROOT_PATH = '/Users/barid/Documents/workspace/batch_data/lip_data'
v, t, w = read_file(ROOT_PATH)
print(len(v), len(t))
print(w)
<file_sep>/main.py
# encoding=utf-8
# author barid
import tensorflow as tf
# tf.enable_eager_execution()
import sys
import os
cwd = os.getcwd()
sys.path.insert(0, cwd + '/corpus')
sys.path.insert(1, cwd)
# sys.path.insert(0, '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng')
# sys.path.insert(1, '/Users/barid/Documents/workspace/alpha/transformer_nmt')
# device = ["/device:CPU:0", "/device:GPU:0", "/device:GPU:1"]
DATA_PATH = sys.path[0]
SYS_PATH = sys.path[1]
# src_data_path = DATA_PATH + "/europarl-v7.fr-en.en"
# tgt_data_path = DATA_PATH + "/europarl-v7.fr-en.fr"
import core_model_initializer as init
def main():
config = init.backend_config()
tf.keras.backend.set_session(tf.Session(config=config))
gpu = init.get_available_gpus()
# set session config
metrics = init.get_metrics()
with tf.device("/cpu:0"):
train_x, train_y = init.train_input()
# val_x, val_y = init.val_input()
# train_model = init.daedalus
train_model = init.train_model()
# with strategy.scope():
hp = init.get_hp()
# dataset
# step
train_step = 800
# val_step = init.get_val_step()
# get train model
# optimizer
optimizer = init.get_optimizer()
# loss function
loss = init.get_loss()
# evaluation metrics
# callbacks
callbacks = init.get_callbacks()
# import pdb; pdb.set_trace()
# test = train_model(train_x,training=True)
if gpu > 0:
# train_model = tf.keras.utils.multi_gpu_model(
# train_model, gpu, cpu_merge=False)
train_model = init.make_parallel(train_model, gpu, '/gpu:1')
# staging_area_callback = hyper_train.StagingAreaCallback(
# train_x, train_y, hp.batch_size)
# callbacks.append(staging_area_callback)
# train_model.compile(
# optimizer=optimizer,
# loss=loss,
# metrics=metrics,
# target_tensors=[staging_area_callback.target_tensor],
# fetches=staging_area_callback.extra_ops)
train_model.compile(
optimizer=optimizer,
loss=loss,
metrics=metrics,
target_tensors=train_y)
else:
train_model.compile(
optimizer=optimizer,
loss=loss,
metrics=metrics,
target_tensors=[train_y])
train_model.summary()
# main
train_model.fit(
x=train_x,
y=train_y,
epochs=hp.epoch_num,
steps_per_epoch=train_step,
verbose=1,
# validation_data=(val_x, val_y),
# validation_steps=val_step,
callbacks=callbacks,
max_queue_size=8 * (gpu if gpu > 0 else 1),
use_multiprocessing=True,
workers=0)
train_model.save_weights("model_weights")
if __name__ == '__main__':
main()
<file_sep>/legacy/core_seq2seq_model.py
# encoder= utf-8
"""
Artist:
Barid
Seek perfect in imperfection.
"""
import tensorflow as tf
from tensorflow.python.keras.utils import tf_utils
from tensorflow.keras.layers import RNN
from data_sentence_helper import SentenceHelper
import model_helper
from tensorflow.python.ops import array_ops
from tensorflow.python.layers import core as core_layer
class AlignAttention(tf.keras.layers.Layer):
"""
batch major
context = [b, t, e]
"""
def __init__(self, unit_num, context=None, name=None, **kwargs):
super(AlignAttention, self).__init__(name=name, **kwargs)
self.units = unit_num
self.context = context
@tf_utils.shape_type_conversion
def build(self, input_shape):
input_dim = input_shape[-1]
# self.batch_size = input_shape[0]
# context_dim = self.context.shape[1]
# self.input_kernel = self.add_weight(
# name="attention_score_W", shape=[input_dim])
# self.context_kernel = self.add_weight(
# name="attention_score_U", shape=[input_dim])
# self.score_kernel = self.add_weight(
# name="attention_score_V", shape=[input_dim])
# self.attention_score = tf.keras.layers.Softmax()
#
# self.context = model_helper.time_major_helper(self.context)
# self.context = tf.reshape(self.context,
# [-1, self.batch_size * input_dim])
self.W = tf.keras.layers.Dense(input_dim)
self.U = tf.keras.layers.Dense(input_dim)
self.V = tf.keras.layers.Dense(1)
def call(self, inputs):
"""
Implementing the method from mentioned paper,
it follows stand attention pipe line:
energy -> softmax -> context
batch major
inputs = [b, v]
"""
if self.context is not None:
hidden_with_time_axis = tf.expand_dims(inputs, 1)
score = self.V(
tf.nn.tanh(
self.W(self.context) + self.U(hidden_with_time_axis)))
# attention_score = self.attention_score(score, axis=0)
self.attention_weights = tf.nn.softmax(score, axis=1)
self.context_vector = self.attention_weights * self.context
self.context_vector = tf.reduce_sum(self.context_vector, axis=1)
return self.context_vector, self.attention_weights
@property
def get_attention_weight(self):
return self.attention_weights
def set_attenton_context(self, context):
self.context = context
class AlignCell(tf.keras.layers.Layer):
"""
The new verison of rnn cell is implemented.
And I have changed the old core_seq2seq_model to
core_seq2seq_model_deprecated,
Acknowledgement:
<NAME>., <NAME>., & <NAME>. (n.d.).
NEURAL MACHINE TRANSLATION BY JOINTLY LEARNING TO ALIGN AND TRANSLATE.
Retrieved from http://cs224d.stanford.edu/papers/nmt.pdf
"""
def __init__(
self,
# vocabulary_size,
# batch_size,
units,
# embedding_size,
attention=False,
bias=True,
backforward=False,
embedding_size=256,
projection=0,
# embedding_matrix=True,
kernel_initializer='glorot_uniform',
recurrent_initializer='orthogonal',
bias_initializer='zeros',
dropout=1,
name=None,
**kwargs):
super(AlignCell, self).__init__(name=name, **kwargs)
self.units = units
# self.state_size = units
# self.output_size = units
# self.embedding_size = embedding_size
self.use_bias = bias
self.attention = attention
self.time_major = True
self.dropout = min(1., max(0., dropout))
# self.vocabulary_size = vocabulary_size
# self.embedding_matrix = embedding_matrix
# self.embedding_helper = tf.keras.layers.Embedding(
# self.vocabulary_size, self.embedding_size)
self.kernel_initializer = tf.keras.initializers.get(kernel_initializer)
self.recurrent_initializer = tf.keras.initializers.get(
recurrent_initializer)
self.bias_initializer = tf.keras.initializers.get(bias_initializer)
self.embedding_size = embedding_size
self.projection = projection
if self.projection != 0:
self.dense_output = tf.keras.layers.Dense(
int(self.projection), name='output_dense')
else:
self.dense_output = tf.keras.layers.Dense(
int(self.units), name='output_dense')
if self.embedding_size != self.units:
self.dense_input = tf.keras.layers.Dense(
int(self.units), name='input_dense')
self.built = True
if self.attention:
self.attention_wrapper = AlignAttention(
self.units, 0, name='attention')
# used to control weights size
@tf_utils.shape_type_conversion
def build(self, input_shape):
input_dim = input_shape[-1]
if self.embedding_size != self.units:
input_dim = self.units
self.batch_size = input_shape[0]
self.kernel = self.add_weight(
shape=(input_dim, self.units * 3),
name='kernel',
initializer=self.kernel_initializer)
self.recurrent_kernel = self.add_weight(
shape=(self.units, self.units * 3),
name='recurrent_kernel',
initializer=self.recurrent_initializer)
# if self.attention_context is not None:
# self.attention = True
# else:
# self.attention = False
if self.attention:
self.attention_kernel = self.add_weight(
shape=(input_dim, self.units * 3),
name='attention_kernel',
initializer=self.kernel_initializer)
if self.use_bias:
bias_shape = (self.units * 3, )
self.bias = self.add_weight(
shape=bias_shape,
name='bias',
initializer=self.bias_initializer)
self.input_bias, self.recurrent_bias = self.bias, None
else:
self.bias = None
def call(self, inputs, states):
if self.embedding_size != self.units:
inputs = self.dense_input(inputs)
if isinstance(states, list) or isinstance(states, tuple):
h_tm1 = states[0]
inference = False
else:
inference = True
h_tm1 = states
# import pdb; pdb.set_trace()
if 0 < self.dropout < 1:
self.dropout_mask = model_helper.dropout_mask_helper(
array_ops.ones_like(inputs), self.dropout, training=True)
h_tm1 = h_tm1 * self.dropout_mask
inputs = inputs * self.dropout_mask
x_z = tf.keras.backend.dot(inputs, self.kernel[:, :self.units])
x_r = tf.keras.backend.dot(inputs,
self.kernel[:, self.units:self.units * 2])
x_h = tf.keras.backend.dot(inputs, self.kernel[:, self.units * 2:])
if self.use_bias:
x_z = tf.keras.backend.bias_add(x_z, self.input_bias[:self.units])
x_r = tf.keras.backend.bias_add(
x_r, self.input_bias[self.units:self.units * 2])
x_h = tf.keras.backend.bias_add(x_h,
self.input_bias[self.units * 2:])
if self.attention:
context_vector, attention_weights = self.attention_wrapper(h_tm1)
if 0 < self.dropout < 1:
context_vector = context_vector * self.dropout_mask
c_z = tf.keras.backend.dot(context_vector,
self.attention_kernel[:, :self.units])
c_r = tf.keras.backend.dot(
context_vector,
self.attention_kernel[:, self.units:self.units * 2])
c_h = tf.keras.backend.dot(
context_vector, self.attention_kernel[:, self.units * 2:])
else:
c_z = 0
c_r = 0
c_h = 0
recurrent_z = tf.keras.backend.dot(
h_tm1, self.recurrent_kernel[:, :self.units])
recurrent_r = tf.keras.backend.dot(
h_tm1, self.recurrent_kernel[:, self.units:self.units * 2])
z = tf.nn.sigmoid(x_z + recurrent_z + c_z)
r = tf.nn.sigmoid(x_r + recurrent_r + c_r)
recurrent_h = tf.keras.backend.dot(
r * h_tm1, self.recurrent_kernel[:, self.units * 2:])
h_bar = tf.nn.tanh(x_h + recurrent_h + c_h)
h = z * h_tm1 + (1 - z) * h_bar
if self.projection is not self.units:
if inference:
return self.dense_output(h), h
return self.dense_output(h), [h]
else:
if inference:
return h, h
return h, [h]
@property
def get_attention_weight(self):
if self.attention:
return self.attention_wrapper.get_attenton_weights
else:
return 0
@property
def state_size(self):
return self.units
@property
def output_size(self):
return self.units
def set_attention_context(self, context):
self.attention = True
self.attention_context = context
self.attention_wrapper.set_attenton_context(context)
def set_dropout(self, pro):
self.dropout = pro
def get_initial_state(self):
self.build()
return tf.zeros((self.batch_sz, self.units))
class Align(RNN):
def __init__(self,
units,
attention=False,
return_sequences=True,
return_state=True,
activation="tanh",
embedding_size=256,
projection=0,
name=None):
# State_size is defined as same as units in cells and which means, we dont
# use projection for cell state
self.state_size = units
self.output_size = units
cell = AlignCell(
units,
attention,
embedding_size=embedding_size,
projection=projection)
super(Align, self).__init__(
cell,
return_sequences=return_sequences,
return_state=return_state,
name=name)
def call(self, inputs, initial_state=None):
"""
batch major
"""
return super(Align, self).call(inputs, initial_state=initial_state)
def set_attention(self, context):
self.cell.set_attention_context(context)
def set_dropout(self, pro):
self.cell.set_dropout(pro)
class TheOldManAndSea(tf.keras.Model):
def __init__(self,
units,
batch_size,
src_vocabulary_size,
tgt_vocabulary_size,
embedding_size=256,
activation=None,
inference_length=50,
bidirectional=True):
super(TheOldManAndSea, self).__init__()
self.units = units
self.batch_size = batch_size
self.decoder_units = units
self.bidirectional = bidirectional
self.src_vocabulary_size = src_vocabulary_size
self.tgt_vocabulary_size = tgt_vocabulary_size
self.embedding_size = embedding_size
self.activation = activation
self.inference_length = inference_length
self.fw_encoder = Align(
self.units, activation=self.activation,
name='fw_encoder') # No activation used
# self.fw_encoder.set_dropout(self.dropout)
if self.bidirectional:
self.bw_encoder = Align(
self.units, activation=self.activation, name='bw_encoder')
self.decoder_units = units * 2
# self.bw_encoder.set_dropout(self.dropout)
self.encoder_zero_state = tf.zeros((self.batch_size, self.units))
self.decoder = Align(
self.decoder_units,
attention=True,
activation=self.activation,
embedding_size=self.embedding_size,
projection=self.embedding_size,
name='decoder')
# self.decoder.set_dropout(self.dropout)
def feed_encoder(self, src_input, src_length):
src_input = self.src_embedding(src_input)
# src_input = self.src_dense(src_input)
self.fw_encoder_hidden, self.fw_encoder_state = self.fw_encoder(
src_input, initial_state=self.encoder_zero_state)
if self.bidirectional:
reversed_src_input = tf.reverse_sequence(
src_input, src_length, seq_axis=1, batch_axis=0)
self.bw_encoder_hidden, self.bw_encoder_state = self.bw_encoder(
reversed_src_input, initial_state=self.encoder_zero_state)
encoder_hidden = tf.concat(
(self.fw_encoder_hidden, self.bw_encoder_hidden), -1)
encoder_state = tf.concat(
(self.fw_encoder_state, self.bw_encoder_state), -1)
else:
self.encoder_hidden = self.fw_encoder_hidden
self.encoder_hidden = tf.keras.layers.BatchNormalization()(
encoder_hidden)
self.encoder_state = tf.keras.layers.BatchNormalization()(
encoder_state)
self.encoder_hidden = tf.nn.tanh(encoder_hidden)
self.encoder_state = tf.nn.tanh(encoder_state)
return self.encoder_hidden, self.encoder_state
def feed_decoder(self, tgt_input, tgt_length, encoder_hidden,
encoder_state):
tgt_input = self.tgt_embedding(tgt_input)
# tgt_input = self.tgt_dense(tgt_input)
self.decoder.set_attention(encoder_hidden)
decoder_hidden, decoder_state = self.decoder(
tgt_input, initial_state=encoder_state)
decoder_hidden = tf.keras.layers.BatchNormalization()(decoder_hidden)
decoder_state = tf.keras.layers.BatchNormalization()(decoder_state)
self.decoder_hidden = tf.nn.tanh(decoder_hidden)
self.decoder_state = tf.nn.tanh(decoder_state)
projection = self.projection(decoder_hidden)
self.logit = tf.keras.layers.Softmax()(projection)
return self.logit, self.decoder_hidden, self.decoder_state
def build(self, input_shape):
self.src_embedding = tf.keras.layers.Embedding(
self.src_vocabulary_size,
self.embedding_size,
name='src_embedding')
self.tgt_embedding = tf.keras.layers.Embedding(
self.tgt_vocabulary_size,
self.embedding_size,
name='tgt_embedding')
# self.src_dense = tf.keras.layers.Dense(self.units, name='src_dense')
# self.tgt_dense = tf.keras.layers.Dense(
# self.decoder_units, name='tgt_dense')
# self.hidden_dense = tf.keras.layers.Dense(self.embedding_size)
# self.projection = tf.keras.layers.Dense(self.tgt_vocabulary_size, )
self.projection = core_layer.Dense(self.tgt_vocabulary_size, name='fc')
def call(self, inputs, train=None, dropout=1):
src_input, tgt_input, src_length, tgt_length = inputs
if dropout < 1:
self.fw_encoder.set_dropout(dropout)
if self.bidirectional:
self.bw_encoder.set_dropout(dropout)
encoder_hidden, encoder_state = self.feed_encoder(
src_input, src_length)
decoder_hidden = self.feed_decoder(tgt_input, tgt_length,
encoder_hidden, encoder_state)
logits, decoder_hidden, decoder_state = self.feed_decoder(
tgt_input, tgt_length, encoder_hidden, encoder_state)
return logits, decoder_hidden, decoder_state
def beam_search(self, inputs, sos_id, eos_id, beam_width=5):
src_input, tgt_input, src_length, tgt_length = inputs
encoder_hidden, encoder_state = self.feed_encoder(
src_input, src_length)
start_tokens = tf.constant(
value=sos_id, shape=[self.batch_size], dtype=tf.int32)
decoder_initial_state = tf.contrib.seq2seq.tile_batch(
encoder_state, multiplier=2)
encoder_hidden = tf.contrib.seq2seq.tile_batch(
encoder_hidden, multiplier=2)
self.decoder.set_attention(encoder_hidden)
decoder = tf.contrib.seq2seq.BeamSearchDecoder(
cell=self.decoder.cell,
embedding=self.tgt_embedding,
start_tokens=start_tokens,
end_token=eos_id,
initial_state=decoder_initial_state,
output_layer=self.projection,
beam_width=2)
# Dynamic decoding
pred, _, _ = tf.contrib.seq2seq.dynamic_decode(
decoder, maximum_iterations=self.inference_length)
return pred
class TheOldManAndSea_factory():
def __init__(
self,
src_data_path,
tgt_data_path,
batch_size=64,
shuffle=100,
unit_num=128,
embedding_size=128,
bidirectional=True,
):
self.batch_size = batch_size
self.unit_num = unit_num
self.embedding_size = embedding_size
self.bidirectional = bidirectional
self.time_major = True
self.src_data_path = src_data_path
self.tgt_data_path = tgt_data_path
self._get_data
print("build model")
def _get_data(self, batch_size):
sentenceHelper = SentenceHelper(
self.src_data_path,
self.tgt_data_path,
batch_size=batch_size,
shuffle=100000)
src_vocabulary, tgt_vocabulary, src_ids2word, tgt_ids2word = sentenceHelper.prepare_vocabulary(
)
self.src_vocabulary_size = len(src_vocabulary)
self.tgt_vocabulary_size = len(tgt_vocabulary)
return sentenceHelper
def test_model(self, batch_size=16, unit=16):
sentenceHelper = self._get_data(batch_size)
test_model = TheOldManAndSea(unit, batch_size,
self.src_vocabulary_size,
self.tgt_vocabulary_size)
return test_model, sentenceHelper
def small_model(self, batch_size=64, unit=64):
sentenceHelper = self._get_data(batch_size)
small_model = TheOldManAndSea(unit, batch_size,
self.src_vocabulary_size,
self.tgt_vocabulary_size)
return small_model, sentenceHelper
def large_model(self, batch_size=128, unit=128):
sentenceHelper = self._get_data(batch_size)
large_model = TheOldManAndSea(unit, batch_size,
self.src_vocabulary_size,
self.tgt_vocabulary_size)
return large_model, sentenceHelper
# class AlignAndTranslate(tf.keras.Model):
# """
# inputs should be time major
# """
#
# def __init__(self, units, batch_size, bidirectional=True):
# super(AlignAndTranslate, self).__init__()
# self.units = units
# self.batch_size = batch_size
# self.decoder_units = units
# self.bi = bidirectional
# self.fw_encoder = Align(self.units, name='fw_encoder')
# if self.bi:
# self.bw_encoder = Align(self.units, name='bw_encoder')
# self.decoder_units = units * 2
# self.decoder = Align(
# self.decoder_units, attention_context=0, name='decoder')
# self.encoder_zero_state = tf.zeros((self.batch_size, self.units))
#
# def encoder(self, src_input, src_length):
# self.fw_encoder_hidden, self.fw_encoder_state = self.fw_encoder(
# src_input, initial_state=self.encoder_zero_state)
# if self.bi:
# reversed_src_input = tf.reverse_sequence(
# src_input, src_length, seq_axis=1, batch_axis=0)
# self.bw_encoder_hidden, self.bw_encoder_state = self.bw_encoder(
# reversed_src_input, initial_state=self.encoder_zero_state)
# self.encoder_hidden = tf.concat(
# (self.fw_encoder_hidden, self.bw_encoder_hidden), -1)
# self.encoder_state = tf.concat(
# (self.fw_encoder_state, self.bw_encoder_state), -1)
# else:
# self.encoder_hidden = self.fw_encoder_hidden
# return self.encoder_hidden, self.encoder_state
#
# def decoder(self, tgt_input, encoder_hidden, encoder_state):
# self.decoder.set_attention(encoder_hidden)
# self.decoder_hidden, self.decoder_state = self.decoder(
# tgt_input, initial_state=encoder_state)
# return self.decoder_hidden, self.decoder_state
#
# def call(self, inputs):
# (src_input, tgt_input, src_length, tgt_length) = inputs
# # attention_context = model_helper.batch_major_helper(self.encoder_hidden)
# encoder_hidden, encoder_state = self.encoder(src_input, src_length)
# decoder_hidden, decoder_state = self.decoder(tgt_input, encoder_hidden,
# encoder_state)
# return decoder_hidden, decoder_state
#
<file_sep>/legacy/nmt.py
# encoding=utf-8
import sys
sys.path.insert(0, '/home/vivalavida/batch_data/corpus_fr2eng/')
sys.path.insert(1, '/home/vivalavida/workspace/alpha/transformer_nmt/')
TRAIN_MODE = 'large'
# sys.path.insert(0, '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng')
# sys.path.insert(1, '/Users/barid/Documents/workspace/alpha/transformer_nmt')
# TRAIN_MODE = 'test'
import hyperParam
import core_Transformer_model
import core_dataset_generator
import graph_trainer
import train_conf
DATA_PATH = sys.path[0]
SYS_PATH = sys.path[1]
src_data_path = DATA_PATH + "/europarl-v7.fr-en.en"
tgt_data_path = DATA_PATH + "/europarl-v7.fr-en.fr"
hp = hyperParam.HyperParam(TRAIN_MODE)
data_manager = core_dataset_generator.DatasetManager(
src_data_path,
tgt_data_path,
batch_size=hp.batch_size,
PAD_ID=hp.PAD_ID,
EOS_ID=hp.EOS_ID,
# shuffle=hp.data_shuffle,
shuffle=hp.data_shuffle,
max_length=hp.max_sequence_length)
# dataset_train_val_test = data_manager.prepare_data()
# src_vocabulary, src_ids2word, tgt_vocabulary, tgt_ids2word = data_manager.prepare_vocabulary(
# )
gpu = train_conf.get_available_gpus()
vocabulary_size = 24000
model = core_Transformer_model.Daedalus(
max_seq_len=hp.max_sequence_length,
vocabulary_size=vocabulary_size,
embedding_size=hp.embedding_size,
batch_size=hp.batch_size / (gpu if gpu > 0 else 1),
num_units=hp.num_units,
num_heads=hp.num_heads,
num_encoder_layers=hp.num_encoder_layers,
num_decoder_layers=hp.num_decoder_layers,
dropout=hp.dropout,
eos_id=hp.EOS_ID,
pad_id=hp.PAD_ID)
# test = test_trainer.Trainer(model=model, dataset=dataset_train_val_test)
# test.train()
large_train = graph_trainer.Graph(
vocab_size=vocabulary_size,
sys_path=SYS_PATH,
hyperParam=hp)
large_train.graph(model, data_manager)
<file_sep>/core_lip_main.py
# encoding=utf8
import tensorflow as tf
import core_Transformer_model
from hyper_and_conf import hyper_layer
from hyper_and_conf import hyper_beam_search as beam_search
# tf.enable_eager_execution()
ENGLISH_BYTE_VOCAB = 12000
class Daedalus(tf.keras.Model):
def __init__(self, hp):
super(Daedalus, self).__init__(name='lip_reading')
self.hp = hp
# self.shared_embedding = hyper_layer.EmbeddingSharedWeights(
# hp.vocabulary_size, hp.embedding_size, hp.PAD_ID)
# if self.embedding_size != self.num_units:
# self.src_dense = tf.keras.layers.Dense(
# self.num_units, name='src_embedding_dense')
# self.tgt_dense = tf.keras.layers.Dense(
# self.embedding_size, name='tgt_embedding_dense')
# self.vgg16 = self.get_vgg()
self.word_embedding = hyper_layer.EmbeddingSharedWeights(
vocab_size=ENGLISH_BYTE_VOCAB,
hidden_size=hp.num_units,
pad_id=hp.PAD_ID,
name='word_embedding')
self.transformer = self.get_transofomer(hp)
self.kernel_initializer = tf.keras.initializers.get("glorot_uniform")
self.bias_initializer = tf.keras.initializers.get("zeros")
self.Q = self.add_weight(
name='Q',
shape=[25088 + self.hp.num_units, self.hp.num_units],
initializer=self.kernel_initializer)
# self.K = self.add_weight(
# name='K',
# shape=[25088, self.hp.num_units],
# initializer=self.kernel_initializer)
# self.V = self.add_weight(
# name='V',
# shape=[12000, self.hp.num_units],
# initializer=self.kernel_initializer)
# self.Q = tf.keras.layers.Dense(self.hp.num_units, name='fusion')
# self.K = tf.keras.layers.Dense(self.hp.num_units, name='K')
# self.V = tf.keras.layers.Dense(self.hp.num_units, name='V')
def build(self, input_shape):
self.build = True
def get_vgg(self):
if tf.gfile.Exists('pre_train/vgg16_pre_all'):
vgg16 = tf.keras.models.load_model('pre_train/vgg16_pre_all')
else:
vgg16 = tf.keras.applications.vgg16.VGG16(
include_top=True, weights='imagenet')
return vgg16
def get_transofomer(self, hp):
transformer = core_Transformer_model.Prometheus(
max_seq_len=hp.max_sequence_length,
vocabulary_size=hp.vocabulary_size,
embedding_size=hp.embedding_size,
batch_size=hp.batch_size,
num_units=hp.num_units,
num_heads=hp.num_heads,
num_encoder_layers=hp.num_encoder_layers,
num_decoder_layers=hp.num_decoder_layers,
dropout=hp.dropout,
eos_id=hp.EOS_ID,
pad_id=hp.PAD_ID,
shared_embedding=self.word_embedding)
return transformer
def call(self, inputs, training=False):
if training is False:
word_id = self.inference_model(inputs, training)
return word_id
else:
logits = self.train_model(inputs, training=True)
return logits
# img_input = tf.keras.layers.Input(
# shape=[None, 25088], dtype=tf.float32)
# tgt_input = tf.keras.layers.Input(
# shape=[None], dtype=tf.int64, name='tgt_input')
def inference_model(self, img_input, training):
img_input_padding = tf.to_float(
tf.equal(img_input, self.hp.PAD_ID))[:, :, 0]
mask_id = self.hp.MASK_ID
mask_words = tf.zeros_like(
img_input[:, :, 0], dtype=tf.int32) + mask_id
mask_embedding = self.word_embedding(mask_words)
fusion = tf.keras.layers.concatenate([img_input, mask_embedding],
axis=-1)
Q = tf.keras.backend.dot(fusion, self.Q)
K = Q
V = mask_embedding
initial_size = tf.shape(Q)[0]
enc = self.transformer.Encoder(
(Q, K, V), padding_matrix=img_input_padding, training=False)
# initial_ids = tf.constant( self.sos_id, shape=[self.batch_size], dtype=tf.int32)
initial_ids = tf.zeros([initial_size], dtype=tf.int32)
cache = dict()
# cache['K'] = tf.zeros([initial_size, 0, self.hp.num_units])
# cache['V'] = tf.zeros([initial_size, 0, self.hp.num_units])
cache['enc'] = enc
cache['src_padding'] = img_input_padding
for i in range(self.hp.num_decoder_layers):
cache[str(i)] = tf.zeros([initial_size, 0, self.hp.num_units])
# cache[str(i)] = tf.constant( self.sos_id, shape=[self.batch_size], dtype=tf.float32)
logits_body = self.transformer.symbols_to_logits_fn(self.hp.max_sequence_length)
decoded_ids, scores = beam_search.sequence_beam_search(
symbols_to_logits_fn=logits_body,
initial_ids=initial_ids,
initial_cache=cache,
vocab_size=self.hp.vocabulary_size,
beam_size=4,
alpha=0.6,
max_decode_length=self.hp.max_sequence_length,
eos_id=self.hp.EOS_ID)
# Get the top sequence for each batch element
top_decoded_ids = decoded_ids[:, 0, 1:]
# top_scores = scores[:, 0]
# self.attention = cache['attention']
return top_decoded_ids
def train_model(self, inputs, training=True):
with tf.name_scope("VGG_features"):
img_input, tgt_input = inputs
# batch_size = self.hp.batch_size
# Q_input_length = img_input.get_shape().as_list()[1]
with tf.name_scope("fusion_layer"):
img_input_padding = tf.to_float(
tf.equal(img_input, self.hp.PAD_ID))[:, :, 0]
mask_id = self.hp.MASK_ID
mask_words = tf.zeros_like(
img_input[:, :, 0], dtype=tf.int32) + mask_id
# mask_words = tf.constant(mask_id, shape=[batch_size, Q_input_length])
mask_embedding = self.word_embedding(mask_words)
# fusion = tf.keras.layers.concatenate((img_input, mask_embedding), axis=0)
fusion = tf.keras.layers.concatenate([img_input, mask_embedding],
axis=-1)
# Q = self.Q(fusion)
# K = self.K(img_input)
# V = self.V(mask_embedding)
Q = tf.keras.backend.dot(fusion, self.Q)
K = Q
# V = mask_embedding
V = Q
# K = V
# transformer_src = tf.keras.layers.Input(
# shape=[None], dtype=tf.int64, name='transformer_src_input')
# transformer_tgt = tf.keras.layers.Input(
# shape=[None], dtype=tf.int64, name='transformer_output_input')
with tf.name_scope("transformer"):
encoder_out = self.transformer.Encoder((Q, K, V),
img_input_padding,
training=True)
embedding_tgt_input = self.word_embedding(tgt_input)
embedding_tgt_input = tf.pad(embedding_tgt_input,
[[0, 0], [1, 0], [0, 0]])[:, :-1, :]
decoder_out = self.transformer.Decoder(
embedding_tgt_input,
encoder_out,
padding_matrix=img_input_padding,
training=True)
logits = self.word_embedding.linear(decoder_out)
# model = tf.keras.Model([img_input, tgt_input], logits)
return logits
# if '__name__' == '__main__':
# from hyper_and_conf import hyper_param
# import tfrecoder_generator
# import core_model_initializer
# hp = hyper_param.HyperParam(mode='test')
# model = main_model(hp)
# vgg16 = get_vgg() # step = tf.shape(vgg16_input)
# # step = vgg16_input.get_shape().as_list()[1]
# output = []
# vgg16_flatten = vgg16.get_layer('flatten')
# vgg16_output = vgg16_flatten.output
# vgg16.input
# model = tf.keras.Model(vgg16.input, vgg16_output)
# test = tf.constant(0.0, shape=[2, 224, 224, 3])
# model(test)
<file_sep>/visualization.py
# encoding=utf8
import sys
def percent(current, total):
if current == total - 1:
current = total
bar_length = 20
hashes = '#' * int(current / total * bar_length)
spaces = ' ' * (bar_length - len(hashes))
sys.stdout.write(
"\rPercent: [%s] %d%%" % (hashes + spaces, int(100 * current / total)))
<file_sep>/legacy/model_legacy/core_Prometheus_model.py
import tensorflow as tf
from tensorflow.python.keras.utils import tf_utils
import Module
import core_VGG_model as VGG
import numpy as np
class Prometheus(tf.keras.Model):
def __init__(self,
tgt_vocabulary_size,
batch_size = 64,
embedding_size = 512,
num_units = 512,
num_heads = 8,
dropout = 1,
num_encoder_layers = 6,
num_decoder_layers = 6,
sos_id=1,
eos_id=2,
pad_id=2):
super(Prometheus, self).__init__()
self.tgt_vocabulary_size = tgt_vocabulary_size
self.batch_size = batch_size
self.embedding_size = embedding_size
self.num_units = num_units
self.num_heads = num_heads
self.dropout = dropout
self.sos_id = sos_id
self.eos_id = eos_id
self.pad_id = pad_id
self.num_encoder_layers = num_encoder_layers
self.num_decoder_layers = num_decoder_layers
self.negtive_infinit = -1e32
self.initial_layer()
def initial_layer(self):
self.en_att = []
self.en_fnn = []
self.de_att = []
self.de_fnn = []
self.de_mask_att = []
self.VGG = VGG.CNNcoder(batch_size = self.batch_size,
embed_size = self.embed_size,
eager = True)
for i in range(self.num_encoder_layers):
self.en_att.append(
Module.Multi_Head_Attention(
num_heads = self.num_heads,
num_units = self.num_units,
dropout = self.dropout,
masked_attention = False,
name = "enc_multi_att_%d" % i))
self.en_ffn.append(
Module.Feed_Forward_Network(
num_units = 4 * self.num_units, name = "enc_ffn_%d" % i))
for i in range(self.num_decoder_layers):
self.de_att.append(
Module.Multi_Head_Attention(
num_heads = self.num_heads,
num_units = self.num_units,
dropout = self.dropout,
masked_attention = False,
name = "de_multi_att_%d" % i))
self.de_ffn.append(
Module.Feed_Forward_Network(
num_units = 4 * self.num_units, name = "dec_ffn_%d" % i))
self.de_mask_att.append(
Module.Multi_Head_Attention(
num_heads = self.num_heads,
num_units = self.num_units,
dropout = self.dropout,
masked_attention = True,
name = "masked_multi_att_%d" % i))
self.shared_embedding = Module.EmbeddingSharedWeights(
self.tgt_vocabulary_size, self.num_units, self.pad_id)
if self.embedding_size != self.num_units:
self.tgt_dense = tf.keras.layers.Dense(
self.embedding_size, name='tgt_embedding_dense')
def Encoder(self,
inputs,
padding_matrix = None,
length = None):
with tf.name_scope("encoder"):
if length is None:
length = tf.shape(inputs)[1]
# src_input = tf.multiply(tf.cast(inputs, tf.float32), self.num_units**0.5)
src_input = inputs * self.num_units**0.5
if padding_matrix is not None:
padding_mask_bias = self.padding_bias(padding_matrix)
else:
padding_mask_bias = 0
positional_input = self.possition_encoding(length)
inputs = src_input + positional_input
outputs = inputs
for i in range(self.num_encoder_layers):
with tf.name_scope('layer_%d' % i):
multi_att = self.en_att[i](outputs, (outputs, outputs),
padding_mask_bias)
outputs = self.en_ffn[i](multi_att)
return outputs
def Decoder(self,
inputs,
enc = None,
self_mask_bias = None,
padding_matrix = None,
length = None,
cache = None):
with tf.name_scope('decoder'):
if length is None:
length = tf.shape(inputs)[1]
if enc is None:
assert ('Using maksed_attention, please give enc')
# src_input = tf.multiply(tf.cast(inputs, tf.float32), self.num_units**0.5)
src_input = inputs * self.num_units**0.5
if self_mask_bias is None:
self_mask_bias = self.masked_self_attention_bias(length)
if padding_matrix is not None:
padding_mask_bias = self.padding_bias(padding_matrix)
else:
padding_mask_bias = 0
positional_input = self.possition_encoding(length)
inputs = src_input + positional_input
outputs = inputs
K_V = inputs
for i in range(self.num_encoder_layers):
if cache is not None:
# Combine cached keys and values with new keys and values.
K_V = tf.concat((cache[str(i)], outputs), axis=1)
# Update cache
cache[str(i)] = K_V
with tf.name_scope('layer_%d' % i):
outputs = self.de_mask_att[i](outputs, (K_V, K_V),
self_mask_bias)
multi_att = self.de_att[i](outputs, (enc, enc),
padding_mask_bias)
outputs = self.de_ffn[i](multi_att)
return outputs
def call(self, inputs, train):
if train:
return self.train_model(inputs)
else:
pass
def train_model(self, inputs):
src_input, tgt_input, _, _ = inputs
src_padding = tf.equal(tf.sign(tf.reduce_sum(tf.abs(src_input), axis = -1)), 0)
embedding_tgt_input = self.shared_embedding(tgt_input)
if self.embedding_size != self.num_units:
embedding_tgt_input = self.tgt_dense(embedding_tgt_input)
enc = self.Encoder(src_input, padding_matrix = src_padding)
dec = self.Decoder(
embedding_tgt_input, enc, padding_matrix = src_padding)
# projection = self.projection(self.outputs)
# logits = tf.keras.layers.Softmax()(projection)
logits = self.shared_embedding.linear(dec)
return logits
def masked_self_attention_bias(self, length):
valid_locs = tf.matrix_band_part(tf.ones([length, length]), -1, 0)
valid_locs = tf.reshape(valid_locs, [1, 1, length, length])
decoder_bias = self.negtive_infinit * (1.0 - valid_locs)
return decoder_bias
def padding_bias(self, padding):
attention_bias = padding * self.negtive_infinit
attention_bias = tf.expand_dims(
tf.expand_dims(attention_bias, axis=1), axis=1)
return attention_bias<file_sep>/hyper_and_conf/hyper_train.py
#encoding=utf8
import tensorflow as tf
from tensorflow.python.keras.losses import Loss
from tensorflow.python.keras.metrics import Metric
from tensorflow.python.keras.metrics import Mean
from tensorflow.python.keras.callbacks import Callback
import hyper_and_conf.conf_metrics as conf_metrics
import hyper_and_conf.conf_fn as conf_fn
import numpy as np
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import init_ops
from tensorflow.python.ops import state_ops
import time
import ctypes
# _cudart = ctypes.CDLL('libcudart.so')
# from tensorflow.python.ops import summary_ops_v2
# import os
class Onehot_CrossEntropy(Loss):
def __init__(self, vocab_size, mask_id=0, smoothing=0.1):
super(Onehot_CrossEntropy, self).__init__(name="Onehot_CrossEntropy")
self.vocab_size = vocab_size
self.mask_id = mask_id
self.smoothing = smoothing
def call(self, true, pred):
loss = conf_fn.onehot_loss_function(
true=true,
pred=pred,
mask_id=self.mask_id,
smoothing=self.smoothing,
vocab_size=self.vocab_size)
return loss
class Padded_Accuracy(Mean):
def __init__(self, pad_id=0):
super(Padded_Accuracy, self).__init__(
name="padded_accuracy", dtype=tf.float32)
self.pad_id = pad_id
def update_state(self, y_true, y_pred, sample_weight=None):
y_true = math_ops.cast(y_true, self._dtype)
y_pred = math_ops.cast(y_pred, self._dtype)
score = conf_metrics.padded_accuracy_score(y_true, y_pred)
return super(Padded_Accuracy, self).update_state(
score, sample_weight=sample_weight)
class Padded_Accuracy_topk(Mean):
def __init__(self, k=5, pad_id=0):
super(Padded_Accuracy_topk, self).__init__(
name="padded_accuracy_topk", dtype=tf.float32)
self.k = k
self.pad_id = pad_id
def update_state(self, y_true, y_pred, sample_weight=None):
y_true = math_ops.cast(y_true, self._dtype)
y_pred = math_ops.cast(y_pred, self._dtype)
score = conf_metrics.padded_accuracy_score_topk(y_true, y_pred)
return super(Padded_Accuracy_topk, self).update_state(
score, sample_weight=sample_weight)
class Approx_BLEU_Metrics(Mean):
def __init__(self, eos_id=1):
super(Approx_BLEU_Metrics, self).__init__(
name="BLEU", dtype=tf.float32)
self.eos_id = eos_id
def update_state(self, y_true, y_pred, sample_weight=None):
y_true = math_ops.cast(y_true, self._dtype)
y_pred = math_ops.cast(y_pred, self._dtype)
y_sample = y_pred.get_shape().as_list()[0]
y_length = y_pred.get_shape().as_list()[1]
if y_length is not None:
ctc_length = tf.constant(y_length, shape=[y_sample])
y_pred, y_score = tf.keras.backend.ctc_decode(
y_pred, ctc_length, greedy=False, beam_width=4)
else:
y_pred = tf.to_int32(tf.argmax(y_pred, axis=-1))
bleu, _ = conf_metrics.bleu_score(y_pred, y_true, self.eos_id)
bleu = bleu * 100.0
return super(Approx_BLEU_Metrics, self).update_state(
bleu, sample_weight=sample_weight)
class Learning_Rate_Reporter(Metric):
def __init__(self):
super(Learning_Rate_Reporter, self).__init__(
name='lr', dtype=tf.float32)
self.lr_reporter = self.add_weight(
'lr', initializer=init_ops.zeros_initializer)
def update_state(self, y_true, y_pred, sample_weight=None):
state_ops.assign(self.lr_reporter,
tf.keras.backend.get_value(self.model.optimizer.lr))
def result(self):
return self.lr_reporter
class Dynamic_LearningRate(Callback):
def __init__(self,
init_lr,
num_units,
learning_rate_warmup_steps,
verbose=0):
super(Dynamic_LearningRate, self).__init__()
self.init_lr = init_lr
self.num_units = num_units
self.learning_rate_warmup_steps = learning_rate_warmup_steps
self.verbose = verbose
self.sess = tf.keras.backend.get_session()
self._total_batches_seen = 0
self.current_lr = 0
def on_train_begin(self, logs=None):
self.current_lr = conf_fn.get_learning_rate(
self.init_lr, self.num_units, self._total_batches_seen,
self.learning_rate_warmup_steps)
lr = float(self.current_lr)
tf.keras.backend.set_value(self.model.optimizer.lr, lr)
if self.verbose > 0:
print('\nStart learning ' 'rate from %s.' % (lr))
def on_batch_begin(self, batch, logs=None):
if not hasattr(self.model.optimizer, 'lr'):
raise ValueError('Optimizer must have a "lr" attribute.')
try: # new API
self.current_lr = conf_fn.get_learning_rate(
self.init_lr, self.num_units, self._total_batches_seen,
self.learning_rate_warmup_steps)
except Exception: # Support for old API for backward compatibility
self.current_lr = self.init_lr
lr = float(self.current_lr)
if not isinstance(lr, (float, np.float32, np.float64)):
raise ValueError('The output of the "schedule" function '
'should be float.')
tf.keras.backend.set_value(self.model.optimizer.lr, lr)
if self.verbose > 0:
tf.logging.info('\nEpoch %05d: Changing learning '
'rate to %s.' % (batch + 1, lr))
def on_batch_end(self, batch, logs=None):
# path = os.path.join("model_summary", "train")
# writer = summary_ops_v2.create_file_writer(path)
# with summary_ops_v2.always_record_summaries():
# with writer.as_default():
# summary_ops_v2.scalar(
# "lr", self.current_lr, step=self._total_batches_seen)
self._total_batches_seen += 1
logs = logs or {}
logs['lr'] = tf.keras.backend.get_value(self.model.optimizer.lr)
# def _log_lr(logs, prefix,step):
class BatchTiming(Callback):
"""
It measure robust stats for timing of batches and epochs.
Useful for measuring the training process.
For each epoch it prints median batch time and total epoch time.
After training it prints overall median batch time and median epoch time.
Usage: model.fit(X_train, Y_train, callbacks=[BatchTiming()])
All times are in seconds.
More info: https://keras.io/callbacks/
"""
def on_train_begin(self, logs={}):
self.all_batch_times = []
self.all_epoch_times = []
def on_epoch_begin(self, epoch, logs={}):
self.epoch_batch_times = []
def on_batch_begin(self, batch, logs={}):
self.start_time = time.time()
def on_batch_end(self, batch, logs={}):
end_time = time.time()
elapsed_time = end_time - self.start_time
self.epoch_batch_times.append(elapsed_time)
self.all_batch_times.append(elapsed_time)
def on_epoch_end(self, epoch, logs={}):
epoch_time = np.sum(self.epoch_batch_times)
self.all_epoch_times.append(epoch_time)
median_batch_time = np.median(self.epoch_batch_times)
print('Epoch timing - batch (median): %0.5f, epoch: %0.5f (sec)' % \
(median_batch_time, epoch_time))
def on_train_end(self, logs={}):
median_batch_time = np.median(self.all_batch_times)
median_epoch_time = np.median(self.all_epoch_times)
print('Overall - batch (median): %0.5f, epoch (median): %0.5f (sec)' % \
(median_batch_time, median_epoch_time))
class SamplesPerSec(Callback):
def __init__(self, batch_size):
self.batch_size = batch_size
def on_train_begin(self, logs={}):
self.all_samples_per_sec = []
def on_batch_begin(self, batch, logs={}):
self.start_time = time.time()
# self.batch_size = logs['size']
def on_batch_end(self, batch, logs={}):
end_time = time.time()
elapsed_time = end_time - self.start_time
samples_per_sec = self.batch_size / elapsed_time
self.all_samples_per_sec.append(samples_per_sec)
def on_epoch_end(self, epoch, logs={}):
self.print_results()
def print_results(self):
print('Samples/sec: %0.2f' % np.median(self.all_samples_per_sec))
"""
Enables CUDA profiling (for usage in nvprof) just for a few batches.
The reasons are:
- profiling outputs are big (easily 100s MB - GBs) and repeating
- without a proper stop the outputs sometimes fail to save
Since initially the TensorFlow runtime may take time to optimize the graph we
skip a few epochs and then enable profiling for a few batches within the next
epoch.
It requires the `cudaprofile` package.
"""
# class CudaProfile(Callback):
# def __init__(self, warmup_epochs=0, batches_to_profile=None):
# self.warmup_epochs = warmup_epochs
# self.batches_to_profile = batches_to_profile
# self.enabled = False
#
# def start(self):
# # As shown at http://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__PROFILER.html,
# # the return value will unconditionally be 0. This check is just in case it changes in
# # the future.
# ret = _cudart.cudaProfilerStart()
# if ret != 0:
# raise Exception("cudaProfilerStart() returned %d" % ret)
#
# def stop(self):
# ret = _cudart.cudaProfilerStop()
# if ret != 0:
# raise Exception("cudaProfilerStop() returned %d" % ret)
#
# def set_params(self, params):
# self.params = params
#
# def on_epoch_begin(self, epoch, logs={}):
# if epoch == self.warmup_epochs:
# self.start()
# self.enabled = True
#
# def on_batch_end(self, batch, logs={}):
# if self.enabled and batch >= self.batches_to_profile:
# self.stop()
#
class StagingAreaCallback(Callback):
"""
staging_area_callback = StagingAreaCallback(x_train, y_train, batch_size)
image = Input(tensor=staging_area_callback.input_tensor)
x = Dense(512, activation='relu')(image)
digit = Dense(num_classes, activation='softmax')(x)
model = Model(inputs=image, outputs=digit)
model.compile(optimizer='sgd', loss='categorical_crossentropy',
target_tensors=[staging_area_callback.target_tensor],
fetches=staging_area_callback.extra_ops)
model.fit(steps_per_epoch=steps_per_epoch, epochs=2,
callbacks=[staging_area_callback])
Full example: https://gist.github.com/bzamecnik/b520e2b1e199b193b715477929e39b22
"""
"""
Fork original one
"""
def __init__(self, x, y, batch_size, prefetch_count=1):
self.x = x
self.y = y
self.batch_size = batch_size
self.prefetch_count = prefetch_count
features_shape_src = (None, ) + x[0].shape[1:]
features_shape_tgt = (None, ) + x[1].shape[1:]
labels_shape = (None, ) + y.shape[1:]
with tf.device('/cpu:0'):
# for feeding inputs to the the StagingArea
# Let's try to decouple feeding data to StagingArea.put()
# from the training batch session.run()
# https://www.tensorflow.org/api_guides/python/reading_data#Preloaded_data
features_batch_next_value_src = tf.placeholder(
dtype=x[0].dtype, shape=features_shape_src)
features_batch_next_value_tgt = tf.placeholder(
dtype=x[1].dtype, shape=features_shape_tgt)
self.features_batch_next_value = (features_batch_next_value_src,
features_batch_next_value_tgt)
# - prevent the variable to be used as a model parameter: trainable=False, collections=[]
# - allow dynamic variable shape (for the last batch): validate_shape=False
features_batch_next = tf.Variable(
self.features_batch_next_value,
trainable=False,
collections=[],
validate_shape=False)
self.labels_batch_next_value = tf.placeholder(
dtype=y.dtype, shape=labels_shape)
labels_batch_next = tf.Variable(
self.labels_batch_next_value,
trainable=False,
collections=[],
validate_shape=False)
self.assign_next_batch = tf.group(features_batch_next.initializer,
labels_batch_next.initializer)
# will be used for prefetching to GPU
area = tf.contrib.staging.StagingArea(
dtypes=[x.dtype, y.dtype],
shapes=[[features_shape_src, features_shape_tgt], labels_shape])
self.area_put = area.put(
[features_batch_next.value(),
labels_batch_next.value()])
area_get_features, area_get_labels = area.get()
self.area_size = area.size()
self.area_clear = area.clear()
self.input_tensor = area_get_features
self.target_tensor = area_get_labels
self.extra_ops = [self.area_put]
def set_params(self, params):
super().set_params(params)
self.steps_per_epoch = self.params['steps']
def _slice_batch(self, i):
start = i * self.batch_size
end = start + self.batch_size
return (self.x[start:end], self.y[start:end])
def _assign_batch(self, session, data):
x_batch, y_batch = data
session.run(
self.assign_next_batch,
feed_dict={
self.features_batch_next_value: x_batch,
self.labels_batch_next_value: y_batch
})
def on_epoch_begin(self, epoch, logs=None):
sess = tf.keras.backen.get_session()
for i in range(self.prefetch_count):
self._assign_batch(sess, self._slice_batch(i))
sess.run(self.area_put)
def on_batch_begin(self, batch, logs=None):
sess = tf.keras.backen.get_session()
# Slice for `prefetch_count` last batches is empty.
# It serves as a dummy value which is put into StagingArea
# but never read.
data = self._slice_batch(batch + self.prefetch_count)
self._assign_batch(sess, data)
def on_epoch_end(self, epoch, logs=None):
sess = tf.keras.backen.get_session()
sess.run(self.area_clear)
#
#
# class StagingAreaCallbackFeedDict(Callback):
# """
# It allows to prefetch input batches to GPU using TensorFlow StagingArea,
# making a simple asynchronous pipeline.
#
# The classic mechanism of copying input data to GPU in Keras with TensorFlow
# is `feed_dict`: a numpy array is synchronously copied from Python to TF memory
# and then using a host-to-device memcpy to GPU memory. The computation,
# however has to wait, which is wasteful.
#
# This class makes the HtoD memcpy asynchronous using a GPU-resident queue
# of size two (implemented by StaginArea). The mechanism is as follows:
#
# - at the beginning of an epoch one batch is `put()` into the queue
# - during each training step another is is `put()` into the queue and in
# parallel the batch already present at the GPU is `get()` from the queue
# at provide as tesnor input to the Keras model (this runs within a single
# `tf.Session.run()`)
#
# The input numpy arrays (features and targets) are provided via this
# callback and sliced into batches inside it. The last batch might be of
# smaller size without any problem (the StagingArea supports variable-sized
# batches and allows to enforce constant data sample shape). In the last
# batch zero-length slice is still put into the queue to keep the get+put
# operation uniform across all batches.
#
# We feed input data to StagingArea via `feed_dict` as an additional input
# besides Keras inputs. Note that the `feed_dict` dictionary is passed as a
# reference and its values are updated inside the callback. It is still
# synchronous. A better, though more complicated way would be to use TF queues
# (depracated) or Dataset API.
#
# It seems to help on GPUs with low host-device bandwidth, such as desktop
# machines with many GPUs sharing a limited number of PCIe channels.
#
# In order to provide extra put() operation to `fetches`, we depend on a fork
# of Keras (https://github.com/bzamecnik/keras/tree/tf-function-session-run-args).
# A pull request to upstream will be made soon.
#
# Example usage:
#
# ```
# staging_area_callback = StagingAreaCallback(x_train, y_train, batch_size)
#
# image = Input(tensor=staging_area_callback.input_tensor)
# x = Dense(512, activation='relu')(image)
# digit = Dense(num_classes, activation='softmax')(x)
# model = Model(inputs=image, outputs=digit)
#
# model.compile(optimizer='sgd', loss='categorical_crossentropy',
# target_tensors=[staging_area_callback.target_tensor],
# feed_dict=staging_area_callback.feed_dict,
# fetches=staging_area_callback.extra_ops)
#
# model.fit(steps_per_epoch=steps_per_epoch, epochs=2,
# callbacks=[staging_area_callback])
# ```
#
# Full example: https://gist.github.com/bzamecnik/b520e2b1e199b193b715477929e39b22
# """
#
# def __init__(self, x, y, batch_size, prefetch_count=1):
# self.x = x
# self.y = y
# self.batch_size = batch_size
# self.prefetch_count = prefetch_count
#
# features_shape = (None, ) + x.shape[1:]
# labels_shape = (None, ) + y.shape[1:]
#
# # inputs for feeding inputs to the the StagingArea
# self.features_batch_next = tf.placeholder(
# dtype=x.dtype, shape=features_shape)
# self.labels_batch_next = tf.placeholder(
# dtype=y.dtype, shape=labels_shape)
# # We'll assign self.features_batch_next, self.labels_batch_next before
# # each StagingArea.put() - feed_dict is passed by reference and updated
# # from outside.
# self.feed_dict = {}
#
# # will be used for prefetching to GPU
# area = tf.contrib.staging.StagingArea(
# dtypes=[x.dtype, y.dtype], shapes=[features_shape, labels_shape])
#
# self.area_put = area.put(
# [self.features_batch_next, self.labels_batch_next])
# area_get_features, area_get_labels = area.get()
# self.area_size = area.size()
# self.area_clear = area.clear()
#
# self.input_tensor = area_get_features
# self.target_tensor = area_get_labels
# self.extra_ops = [self.area_put]
#
# def set_params(self, params):
# super().set_params(params)
# self.steps_per_epoch = self.params['steps']
#
# def _slice_batch(self, i):
# start = i * self.batch_size
# end = start + self.batch_size
# return (self.x[start:end], self.y[start:end])
#
# def _update_feed_dict(self, data):
# x_batch, y_batch = data
# self.feed_dict[self.features_batch_next] = x_batch
# self.feed_dict[self.labels_batch_next] = y_batch
#
# def on_epoch_begin(self, epoch, logs=None):
# sess = tf.keras.backen.get_session()
# # initially fill the StagingArea
# for i in range(self.prefetch_count):
# self._update_feed_dict(self._slice_batch(i))
# sess.run(feed_dict=self.feed_dict, fetches=[self.area_put])
#
# def on_batch_begin(self, batch, logs=None):
# sess = tf.keras.backen.get_session()
# # Slice for `prefetch_count` last batches is empty.
# # It serves as a dummy value which is put into StagingArea
# # but never read.
# self._update_feed_dict(self._slice_batch(batch + self.prefetch_count))
#
# def on_epoch_end(self, epoch, logs=None):
# sess = tf.keras.backen.get_session()
# sess.run(self.area_clear)
#
<file_sep>/legacy/data_sentence_helper.py
# encoding=utf8
import re
import tensorflow as tf
import collections
import train_conf
class SentenceHelper():
"""
This is a basic helper to format sentences into dataset.
In this implementation, I try to use raw python function as much as possible,
because I just do not want to use some functions from tf.contrib which is not LST,
considering tf 2.0 is coming.
Following this concept, I use tf.py_func in this implementation aloneside dataset.map.
The vocabulary will be stored in the hard driver, I strongly recommend this because
of tow following reasons, respecting tradition nlp and easy to maintain, however if the
vocabulary is changed, I suppose all the model should be re-train.
Args:
source_data_path (type): Description of parameter `source_data_path`.
target_data_path (type): Description of parameter `target_data_path`.
num_sample (type): Description of parameter `num_sample`.
batch_size (type): Description of parameter `batch_size`.
split_token (type): Description of parameter `split_token`.
Attributes:
UNK (type): Description of parameter `UNK`.
SOS (type): Description of parameter `SOS`.
EOS (type): Description of parameter `EOS`.
UNK_ID (type): Description of parameter `UNK_ID`.
SOS_ID (type): Description of parameter `SOS_ID`.
EOS_ID (type): Description of parameter `EOS_ID`.
source_data_path
target_data_path
num_sample
batch_size
split_token
"""
def __init__(self,
source_data_path,
target_data_path,
batch_size=32,
shuffle=100,
num_sample=-1,
max_length=50,
UNK_ID=0,
SOS_ID=1,
EOS_ID=2,
PAD_ID=3,
split_token='\n'):
"""Short summary.
Args:
source_data_path (type): Description of parameter `source_data_path`.
target_data_path (type): Description of parameter `target_data_path`.
num_sample (type): Description of parameter `num_sample`.
batch_size (type): Description of parameter `batch_size`.
split_token (type): Description of parameter `split_token`.
Returns:
type: Description of returned object.
"""
self.source_data_path = source_data_path
self.target_data_path = target_data_path
self.num_sample = num_sample
self.batch_size = batch_size
self.split_token = split_token
self.UNK = "<unk>"
self.SOS = "<sossss>"
self.EOS = "<eossss>"
self.PAD = "<paddddd>"
self.UNK_ID = 0
self.SOS_ID = 1
self.EOS_ID = 2
self.PAD_ID = 3
self.shuffle = shuffle
self.max_length = max_length
if train_conf.get_available_gpus() > 0:
self.cpus = 8
else:
self.cpus = 2
def cross_validation(self, data_path, validation=0.15, test=0.15):
train_path = data_path + "_train"
test_path = data_path + "_test"
val_path = data_path + "_val"
raw_data = []
with tf.gfile.GFile(data_path, "r") as f:
raw_data = f.readlines()
self.data_counter = len(raw_data)
val_size = int(validation * self.data_counter)
test_size = int(test * self.data_counter)
self.train_size = self.data_counter - val_size - test_size
f.close()
def writer(path, data):
if tf.gfile.Exists(path) is not True:
with tf.gfile.GFile(path, "w") as f:
for w in data:
if len(w) >= 0:
f.write("%s" % w)
f.close()
print("File exsits: {}".format(path))
print('Total data {0}'.format(self.data_counter))
print(('Train {0}, Validation {1}, Test {2}'.format(
self.train_size, val_size, test_size)))
writer(train_path, raw_data[:self.train_size])
# writer(val_path, raw_data[:128])
writer(val_path,
raw_data[self.train_size:self.train_size + val_size])
writer(test_path, raw_data[self.train_size + val_size:])
return train_path, test_path, val_path
def preprocess_sentence(self, text, table=None):
"""Short summary.
This is the first step of sentence help, actually I found this on stack overflow,
but I cannot find the reference any more.
Args:
npa (type): Description of parameter `npa`.
Returns:
type: Description of returned object.
"""
w = text.lower().strip()
w = re.sub("([?.!,¿])", r" \1 ", w)
w = re.sub('[" "]+', self.split_token, w)
w = re.sub("[^a-zA-Z?.!,¿]+", self.split_token, w).strip()
w = w.split(self.split_token)
return w
def create_dataset(self, data_path, vocabulary):
"""Short summary.
This is a little trick.
TF supports naive python functions underlying tf.py_func.
"""
def lookup(npa):
try:
npa = npa.numpy()
for i in range(0, len(npa)):
try:
npa[i] = vocabulary[npa[i].decode("utf-8")]
except Exception:
print(npa[i])
npa[i] = self.UNK_ID
except Exception:
print(npa)
return npa.astype('int32')
dataset = tf.data.TextLineDataset(data_path)
dataset = dataset.map(
lambda string: tf.py_function(lambda string: string.numpy().lower(), [string], tf.string),num_parallel_calls=self.cpus
)
dataset = dataset.map(
lambda string: tf.strings.regex_replace(tf.strings.strip(string), "([?.!,¿])", r" \1 "), num_parallel_calls=self.cpus
)
dataset = dataset.map(
lambda string: tf.strings.regex_replace(string, '[" "]+', self.split_token),
num_parallel_calls=self.cpus)
dataset = dataset.map(
lambda string: tf.strings.regex_replace(string, "[^a-zA-Z?.!,¿]+", self.split_token),
num_parallel_calls=self.cpus)
dataset = dataset.map(
lambda string: tf.string_split([string], self.split_token).values,
num_parallel_calls=self.cpus)
dataset = dataset.map(
lambda string: tf.py_function(lookup, [string], tf.int32),
num_parallel_calls=self.cpus)
return dataset
def build_vocabulary(self, vocabulary_file):
vocabulary_name = vocabulary_file + "_vocabulary.txt"
if tf.gfile.Exists(vocabulary_name) is not True:
with tf.gfile.GFile(vocabulary_file, "r") as f:
data = self.preprocess_sentence(f.read())
counter = collections.Counter(data)
count_pairs = sorted(
counter.items(), key=lambda x: (-x[1], x[0]))
raw_data, _ = list(zip(*count_pairs))
with tf.gfile.GFile(vocabulary_name, "w") as f:
f.write("%s\n" % self.UNK)
f.write("%s\n" % self.SOS)
f.write("%s\n" % self.EOS)
f.write("%s\n" % self.PAD)
for w in raw_data:
f.write("%s\n" % w)
with tf.gfile.GFile(vocabulary_name, "r") as f:
vocabulary = dict()
idx2word = dict()
for index, word in enumerate(f):
vocabulary[word.rstrip()] = index
for word, index in vocabulary.items():
idx2word[index] = word
return vocabulary, idx2word
def post_process(self, validation=0.15, test=0.15):
src_train_path, src_test_path, src_val_path = self.cross_validation(
self.source_data_path)
src_vocabulary, src_idx2word = self.build_vocabulary(
self.source_data_path)
src_train_dataset = self.create_dataset(src_train_path, src_vocabulary)
src_val_dataset = self.create_dataset(src_val_path, src_vocabulary)
src_test_dataset = self.create_dataset(src_test_path, src_vocabulary)
tgt_train_path, tgt_test_path, tgt_val_path = self.cross_validation(
self.target_data_path)
tgt_vocabulary, tgt_idx2word = self.build_vocabulary(
self.target_data_path)
tgt_train_dataset = self.create_dataset(tgt_train_path, tgt_vocabulary)
tgt_val_dataset = self.create_dataset(tgt_val_path, tgt_vocabulary)
tgt_test_dataset = self.create_dataset(tgt_test_path, tgt_vocabulary)
def body(src_dataset, tgt_dataset):
source_target_dataset = tf.data.Dataset.zip((src_dataset,
tgt_dataset))
source_target_dataset = source_target_dataset.shuffle(self.shuffle)
source_target_dataset = source_target_dataset.map(
lambda src, tgt: (src[:self.max_length], tgt[:self.max_length]),
num_parallel_calls=self.cpus)
source_target_dataset = source_target_dataset.map(
lambda src, tgt:
(src, tf.concat(([self.SOS_ID], tgt), 0), tf.concat((tgt, [self.EOS_ID]), 0)),num_parallel_calls=self.cpus)
source_target_dataset = source_target_dataset.map(
lambda src, tgt_in, tgt_out:
((src, tgt_in, tf.size(src), tf.size(tgt_in)), tgt_out),num_parallel_calls=self.cpus)
return source_target_dataset
train_dataset = body(src_train_dataset, tgt_train_dataset)
val_dataset = body(src_val_dataset, tgt_val_dataset)
test_dataset = body(src_test_dataset, tgt_test_dataset)
return train_dataset, val_dataset, test_dataset
def padding(self, dataset):
batched_dataset = dataset.padded_batch(
self.batch_size,
padded_shapes=(
(
tf.TensorShape([None]), # source vectors of unknown size
tf.TensorShape([None]), # target vectors of unknown size
tf.TensorShape([]),
tf.TensorShape([])
# size(source)
),
tf.TensorShape([None])),
padding_values=(
(
self.
PAD_ID, # source vectors padded on the right with src_eos_id
self.
PAD_ID, # target vectors padded on the right with tgt_eos_id
0,
0),
self.PAD_ID),
drop_remainder=True) # size(target) -- unused
return batched_dataset
def prepare_data(self):
train_dataset, val_dataset, test_dataset = self.post_process()
train_dataset = self.padding(train_dataset)
val_dataset = self.padding(val_dataset)
test_dataset = self.padding(test_dataset)
return train_dataset, val_dataset, test_dataset
def prepare_vocabulary(self):
src_vocabulary, src_ids2word = self.build_vocabulary(
self.source_data_path)
tgt_vocabulary, tgt_ids2word = self.build_vocabulary(
self.target_data_path)
return src_vocabulary, src_ids2word, tgt_vocabulary, tgt_ids2word
def tgt_formater(self, tgt):
"""Short summary.
format tgt to tgt_input[SOS_ID, tgt] and tgt_output[tgt, EOS_ID]
Args:
tgt (type): Description of parameter `tgt`.
Returns:
type: Description of returned object.
"""
input_padding = tf.constant([[0, 0], [1, 0]])
output_padding = tf.constant([[0, 0], [0, 1]])
tgt_input = tf.pad(
tgt, input_padding, mode='CONSTANT', constant_values=self.SOS_ID)
tgt_output = tf.pad(
tgt, output_padding, mode='CONSTANT', constant_values=self.EOS_ID)
return tgt_input, tgt_output
# DATA_PATH = '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng'
# sentenceHelper = SentenceHelper(
# DATA_PATH + "/europarl-v7.fr-en.fr",
# DATA_PATH + "/europarl-v7.fr-en.en",
# batch_size=16,
# shuffle=100000)
# a, b, c = sentenceHelper.prepare_data()
# d = a.make_one_shot_iterator()
# d.get_next()
# sess = tf.Session()
# d = sess.run(d.get_next())
# e = d[0]
<file_sep>/legacy/train_conf.py
# encoding=utf8
import tensorflow as tf
from tensorflow.python.client import device_lib
def get_available_gpus():
local_device_protos = device_lib.list_local_devices()
return len([x.name for x in local_device_protos if x.device_type == 'GPU'])
def bleu(bleu):
tf.summary.scalar("bleu", bleu)
tf.summary.histogram("bleu", bleu)
return tf.summary.merge_all()
def train_summarise(loss, total=None):
"""
plot loss and accuracy for analyseing
"""
tf.summary.scalar("loss", loss)
tf.summary.histogram("loss", loss)
if total is not None:
tf.summary.scalar("total_loss", total)
tf.summary.histogram("total_loss", total)
return tf.summary.merge_all()
def evaluation_summarise(bleu):
tf.summary.scalar("bleu", bleu)
tf.summary.histogram("bleu", bleu)
return tf.summary.merge_all()
def loss_function(true, pred, mask_id=1):
"""Short summary.
A little trick here:
Using a mask, which filters '<EOS>' mark in true, it can give a more precise loss value.
Args:
pred (type): Description of parameter `pred`.
true (type): Description of parameter `true`.
Returns:
type: Description of returned object.
"""
mask = 1 - tf.cast(tf.equal(true, mask_id), tf.float32)
loss = tf.nn.sparse_softmax_cross_entropy_with_logits(
logits=pred, labels=true) * mask
return tf.reduce_mean(loss)
def optimizer(lr=0.1):
optimizer = tf.train.AdamOptimizer(lr)
return optimizer
# def compute_gradients(tape, loss, variables, clipping=5):
# gradients, _ = tf.clip_by_global_norm(
# tape.gradient(loss, variables), clipping)
# return gradients
#
#
# def apply_gradients(optimizer, gradients, variables, global_step):
# return optimizer.apply_gradients(
# zip(gradients, variables), global_step=global_step)
<file_sep>/hyper_and_conf/hyper_layer.py
# encoder=utf8
import tensorflow as tf
from tensorflow.python.keras.utils import tf_utils
class EmbeddingSharedWeights(tf.keras.layers.Layer):
"""Calculates input embeddings and pre-softmax linear with shared weights."""
def __init__(self, vocab_size, hidden_size, pad_id, name="embedding"):
"""Specify characteristic parameters of embedding layer.
Args:
vocab_size: Number of tokens in the embedding. (Typically ~32,000)
hidden_size: Dimensionality of the embedding. (Typically 512 or 1024)
method: Strategy for performing embedding lookup. "gather" uses tf.gather
which performs well on CPUs and GPUs, but very poorly on TPUs. "matmul"
one-hot encodes the indicies and formulates the embedding as a sparse
matrix multiplication. The matmul formulation is wasteful as it does
extra work, however matrix multiplication is very fast on TPUs which
makes "matmul" considerably faster than "gather" on TPUs.
"""
super(EmbeddingSharedWeights, self).__init__(name="embedding")
self.vocab_size = vocab_size
self.hidden_size = hidden_size
self.pad_id = pad_id
self.shared_weights = self.add_variable(
shape=[self.vocab_size, self.hidden_size],
name="shared_weights",
initializer=tf.random_normal_initializer(0.,
self.hidden_size**-0.5))
# self.build = True
def call(self, inputs):
"""Get token embeddings of x.
Args:
x: An int64 tensor with shape [batch_size, length]
Returns:
embeddings: float32 tensor with shape [batch_size, length, embedding_size]
padding: float32 tensor with shape [batch_size, length] indicating the
locations of the padding tokens in x.
"""
mask = tf.to_float(tf.not_equal(inputs, self.pad_id))
embeddings = tf.gather(self.shared_weights, inputs)
embeddings *= tf.expand_dims(mask, -1)
# Scale embedding by the sqrt of the hidden size
embeddings *= self.hidden_size**0.5
return embeddings
def linear(self, inputs):
"""Computes logits by running x through a linear layer.
Args:
x: A float32 tensor with shape [batch_size, length, hidden_size]
Returns:
float32 tensor with shape [batch_size, length, vocab_size].
"""
batch_size = tf.shape(inputs)[0]
length = tf.shape(inputs)[1]
inputs = tf.reshape(inputs, [-1, self.hidden_size])
logits = tf.matmul(inputs, self.shared_weights, transpose_b=True)
return tf.reshape(logits, [batch_size, length, self.vocab_size])
class LayerNorm(tf.keras.layers.Layer):
"""
Layer normalization for transformer, we do that:
ln(x) = α * (x - μ) / (σ**2 + ϵ)**0.5 + β
mode:
add: ln(x) + x
norm: ln(x)
"""
def __init__(self,
epsilon=1e-6,
gamma_initializer="ones",
beta_initializer="zeros"):
super(LayerNorm, self).__init__()
self.epsilon = epsilon
self.gamma_initializer = tf.keras.initializers.get(gamma_initializer)
self.beta_initializer = tf.keras.initializers.get(beta_initializer)
@tf_utils.shape_type_conversion
def build(self, input_shape):
input_dim = input_shape[-1]
self.gamma_kernel = self.add_variable(
shape=(input_dim),
name="gamma",
initializer=self.gamma_initializer)
self.beta_kernel = self.add_variable(
shape=(input_dim), name="beta", initializer=self.beta_initializer)
self.built = True
def call(self, inputs, training=False):
mean, variance = tf.nn.moments(inputs, [-1], keep_dims=True)
normalized = (inputs - mean) * tf.rsqrt(variance + self.epsilon)
output = self.gamma_kernel * normalized + self.beta_kernel
return output
class Positional_Encoding(tf.keras.layers.Layer):
"""
Add the position information to encoding, which:
PE(pos, 2i) = sin(pos / 10000^(2i / d_model))
PE(pos, 2i+1) = cos(pos / 10000^(2i / d_model))
args:
pos: the position of the word
i: the word embedding dimention index
d_model: the word embedding dimention
"""
def __init__(self, num_units, min_timescale=1.0, max_timescale=1.0e4):
super(Positional_Encoding, self).__init__()
# self.max_seq_len = max_seq_len
self.num_units = num_units
self.min_timescale = min_timescale
self.max_timescale = max_timescale
def call(self, inputs, training=False):
position = tf.to_float(tf.range(inputs))
num_timescales = self.num_units // 2
log_timescale_increment = (
tf.math.log(float(self.max_timescale) / float(self.min_timescale))
/ (tf.to_float(num_timescales) - 1))
inv_timescales = self.min_timescale * tf.exp(
tf.to_float(tf.range(num_timescales)) * -log_timescale_increment)
scaled_time = tf.expand_dims(position, 1) * tf.expand_dims(
inv_timescales, 0)
signal = tf.concat([tf.sin(scaled_time), tf.cos(scaled_time)], axis=1)
return signal
class Feed_Forward_Network(tf.keras.layers.Layer):
"""
FFN
"""
def __init__(self,
num_units=2048,
bias=True,
name=None,
dropout=1,
kernel_initializer="glorot_uniform",
bias_initializer="zeros"):
super(Feed_Forward_Network, self).__init__(name=name)
self.num_units = num_units
self.bias = bias
self.dropout = min(1., max(0., dropout))
self.kernel_initializer = tf.keras.initializers.get(kernel_initializer)
self.bias_initializer = tf.keras.initializers.get(bias_initializer)
@tf_utils.shape_type_conversion
def build(self, input_shape):
input_dim = input_shape[-1]
self.linear_kernel = self.add_variable(
shape=(input_dim, self.num_units),
name="linear_kernel",
initializer=self.kernel_initializer)
self.FFN_kernel = self.add_variable(
shape=(self.num_units, input_dim),
name="FFN_kernel",
initializer=self.kernel_initializer)
if (self.bias):
self.linear_bias = self.add_variable(
shape=self.num_units,
name="linear_bias",
initializer=self.bias_initializer)
self.FFN_bias = self.add_variable(
shape=input_dim,
name="FFN_bias",
initializer=self.bias_initializer)
self.built = True
def call(self, inputs, padding=None, training=None):
batch_size = tf.shape(inputs)[0]
length = tf.shape(inputs)[1]
if padding is not None:
pad_mask = tf.reshape(padding, [-1])
nonpad_ids = tf.to_int32(tf.where(pad_mask < 1e-9))
# Reshape x to [batch_size*length, hidden_size] to remove padding
inputs = tf.reshape(inputs, [-1, self.num_units])
inputs = tf.gather_nd(inputs, indices=nonpad_ids)
# Reshape x from 2 dimensions to 3 dimensions.
inputs.set_shape([None, self.num_units])
inputs = tf.expand_dims(inputs, axis=0)
linear = tf.keras.backend.dot(inputs, self.linear_kernel)
linear = tf.keras.layers.Activation("relu")(linear)
if (self.bias):
linear = linear + self.linear_bias
if training is not False:
dropout_mask_inputs = tf.keras.backend.dropout(
tf.ones_like(inputs), self.dropout)
inputs = inputs * dropout_mask_inputs
FFN = tf.keras.backend.dot(linear, self.FFN_kernel)
if (self.bias):
FFN = FFN + self.FFN_bias
if training is not False:
dropout_mask_inputs = tf.keras.backend.dropout(
tf.ones_like(inputs), self.dropout)
FFN = FFN * dropout_mask_inputs
output = FFN
if padding is not None:
output = tf.squeeze(output, axis=0)
output = tf.scatter_nd(
indices=nonpad_ids,
updates=output,
shape=[batch_size * length, self.num_units])
output = tf.reshape(output, [batch_size, length, self.num_units])
return output
class Multi_Head_Attention(tf.keras.layers.Layer):
def __init__(self,
num_heads=8,
num_units=512,
dropout=1,
ln=None,
name=None,
masked_attention=False,
query_initializer='glorot_uniform',
key_initializer='glorot_uniform',
value_initializer='glorot_uniform',
liner_initializer='glorot_uniform'):
super(Multi_Head_Attention, self).__init__(name=name)
self.num_heads = num_heads
self.num_units = num_units
self.dropout = min(1., max(0., dropout))
self.masked_attention = masked_attention
self.query_initializer = tf.keras.initializers.get(query_initializer)
self.key_initializer = tf.keras.initializers.get(key_initializer)
self.value_initializer = tf.keras.initializers.get(value_initializer)
self.liner_initializer = tf.keras.initializers.get(liner_initializer)
@tf_utils.shape_type_conversion
def build(self, input_shape):
input_dim = input_shape[-1]
self.query_kernel = self.add_variable(
shape=(input_dim, self.num_units),
name="query_kernel",
initializer=self.query_initializer)
self.key_kernel = self.add_variable(
shape=(input_dim, self.num_units),
name="key_kernel",
initializer=self.key_initializer)
self.value_kernel = self.add_variable(
shape=(input_dim, self.num_units),
name="value_kernel",
initializer=self.value_initializer)
self.liner_kernel = self.add_variable(
shape=(input_dim, self.num_units),
name="liner_kernel",
initializer=self.liner_initializer)
self.built = True
def call(self, inputs, K_V=None, bias=0, cache=None, training=False):
Q = inputs
if K_V is None:
K_V = (Q, Q)
K, V = K_V
#if cache is not None:
# Combine cached keys and values with new keys and values.
# K = tf.concat([cache["K"], K], axis=1)
# V = tf.concat([cache["V"], V], axis=1)
# Update cache
# cache["K"] = K
# cache["V"] = V
# Q = self.ln(Q)
# K = self.ln(K)
# V = self.ln(V)
with tf.name_scope('Q_K_V_linear_projection'):
Q = tf.keras.backend.dot(Q, self.query_kernel)
K = tf.keras.backend.dot(K, self.key_kernel)
V = tf.keras.backend.dot(V, self.value_kernel)
attention_output = self.scale_dot_product_attention(
Q, K, V, bias, training=training)
with tf.name_scope('attention_linear_projection'):
liner = tf.keras.backend.dot(attention_output, self.liner_kernel)
if training is not False:
dropout_mask = tf.keras.backend.dropout(
tf.ones_like(liner), self.dropout)
liner = liner * dropout_mask
# ResNet
output = liner
return output
def scale_dot_product_attention(self, Q, K, V, bias, training=False):
with tf.name_scope('scale_dot_product'):
Q = self.split_heads(Q)
K = self.split_heads(K)
V = self.split_heads(V)
d_Q = tf.cast(tf.shape(Q)[-1], tf.float32)
# mat = tf.keras.backend.batch_dot(Q, tf.transpose(K, [0, 2, 1])) # this one is ok as well
mat = tf.matmul(Q, K, transpose_b=True)
scale = mat / (tf.math.sqrt(d_Q))
scale += bias
softmax = tf.keras.layers.Softmax(name="attention_weights")(scale)
self.softmax_attention = softmax
# if training is not False:
# dropout_mask = tf.keras.backend.dropout(
# tf.ones_like(softmax), self.dropout)
# softmax = softmax * dropout_mask
# output = tf.keras.backend.dot(softmax, V)
output = tf.matmul(softmax, V)
attention_output = self.combine_heads(output)
return attention_output
def split_heads(self, x):
with tf.name_scope("split_heads"):
batch_size = tf.shape(x)[0]
length = tf.shape(x)[1]
# Calculate depth of last dimension after it has been split.
depth = (self.num_units // self.num_heads)
# Split the last dimension
x = tf.reshape(x, [batch_size, length, self.num_heads, depth])
# Transpose the result
return tf.transpose(x, [0, 2, 1, 3])
def combine_heads(self, x):
with tf.name_scope("combine_heads"):
batch_size = tf.shape(x)[0]
length = tf.shape(x)[2]
x = tf.transpose(
x, [0, 2, 1, 3]) # --> [batch, length, num_heads, depth]
return tf.reshape(x, [batch_size, length, self.num_units])
def get_attention(self):
return self.softmax_attention
<file_sep>/legacy/model_helper.py
# encoding=utf8
import tensorflow as tf
import time
import numpy as np
class TimeHistory(tf.train.SessionRunHook):
def begin(self):
self.times = []
def before_run(self, run_context):
self.iter_time_start = time.time()
def after_run(self, run_context, run_values):
self.times.append(time.time() - self.iter_time_start)
def id2word(inputs, id2w):
words = []
for i in inputs:
words.append(id2w[i])
words = " ".join(words)
return words
def mini_batch(dataset, gpus):
mini_batch = []
mini = []
if isinstance(dataset, list) or isinstance(dataset, tuple):
for d in dataset:
temp = tf.split(d, gpus)
mini_batch.append(temp)
for m_b in zip(*mini_batch):
mini.append(m_b)
else:
# mini_batch.append(tf.split(dataset, gpus))
# for m_b in zip(*mini_batch):
# mini.append(m_b[0])
gpu_0, gpu2 = tf.split(dataset, gpus)
mini = [gpu_0, gpu2]
return mini
def dropout_mask_helper(ones, rate, training=None, count=1):
def dropped_inputs():
return tf.keras.backend.dropout(ones, rate)
if count > 1:
return [
tf.keras.backend.in_train_phase(
dropped_inputs, ones, training=training) for _ in range(count)
]
return tf.keras.backend.in_train_phase(
dropped_inputs, ones, training=training)
def embedding_helper(X, vocabulary_size, embedding_size):
"""Short summary.
Args:
X (type): Description of parameter `X`.
vocabulary_size (type): Description of parameter `vocabulary_size`.
embedding_size (type): Description of parameter `embedding_size`.
name (type): Description of parameter `name`.
Returns:
embedded_X
"""
embedding_matrix = tf.keras.layers.Embedding(vocabulary_size,
embedding_size)
embedded_X = embedding_matrix(X)
return embedded_X
def lstm_cell_helper(unit_num, dropout=1):
"""Short summary.
Args:
unit_num (type): Description of parameter `unit_num`.
name (type): Description of parameter `name`.
Returns:
basice lstm cell
"""
if tf.test.is_gpu_available():
return tf.keras.layers.CuDNNLSTM(
unit_num, return_sequences=True, return_state=True)
else:
return tf.keras.layers.LSTM(
unit_num,
return_sequences=True,
return_state=True,
dropout=dropout)
def lstm_helper(X,
unit_num,
batch_size,
bidirection=True,
initial_state=None,
merge_mode='concat'):
"""Short summary.
Wrap lstm.
Args:
X (type): Description of parameter `X`.
unit_num (type): Description of parameter `unit_num`.
bidirection (type): Description of parameter `bidirection`.
name (type): Description of parameter `name`.
Returns:
raw tf.keras.layer output
"""
if initial_state is None:
initial_state = tf.zeros([batch_size, unit_num])
cell = lstm_cell_helper(unit_num)
if bidirection:
bi_cell = tf.keras.layers.Bidirectional(
layer=cell, dtype=tf.float32, merge_mode='concat')
output = bi_cell(X)
else:
output = cell(X)
return output
def time_major_helper(X):
"""Short summary.
convert [batch, time, vector] to [time, batch, vector] for
truncated propogation.
Args:
X (type): Description of parameter `X`.
axis (type):
Returns:
tensorf
"""
return tf.transpose(X, [1, 0, 2])
def batch_major_helper(X):
"""Short summary.
convert [time, batch, vector] to [batch, time, vector] for
truncated propogation.
Args:
X (type): Description of parameter `X`.
axis (type):
Returns:
tensorf
"""
return tf.transpose(X, [1, 0, 2])
def beam_search_helper(decoder_cell, encoder_state, beam_width,
embedding_decoder, sos_id, eos_id, batch_size):
# Replicate encoder infos beam_width times
decoder_initial_state = tf.contrib.seq2seq.tile_batch(
encoder_state, multiplier=beam_width)
start_tokens = tf.constant(value=sos_id, shape=[batch_size])
# Define a beam-search decoder
decoder = tf.contrib.seq2seq.BeamSearchDecoder(
cell=decoder_cell,
embedding=embedding_decoder,
start_tokens=start_tokens,
end_token=eos_id,
initial_state=decoder_initial_state,
beam_width=beam_width)
# Dynamic decoding
outputs, _ = tf.contrib.seq2seq.dynamic_decode(decoder)
return outputs
def dense_helper(X, out_dimention, activation='relu'):
"""Short summary.
simplely full connection wrapper
Args:
out_dimention (type): Description of parameter `out_dimention`.
activation='relu'
Returns:
type: Description of returned object.
"""
w = tf.keras.layers.Dense(out_dimention, activation=activation)
return w(X)
def softmax_helper(X, class_num, dense=False):
"""Short summary.
simplely softmax wrapper.
Args:
X (type): Description of parameter `X`.
class_num (type): Description of parameter `class_num`.
fc: whether it needs fc layer before softmax
Returns:
type: Description of returned object.
"""
if dense is not True:
X = dense_helper(X, class_num)
softmax = tf.keras.layers.Softmax()
return softmax(X)
def get_device_str(device_id, num_gpus):
"""Return a device string for multi-GPU setup."""
if num_gpus == 0:
return "/cpu:0"
device_str_output = "/gpu:%d" % (device_id % num_gpus)
return device_str_output
if __name__ == '__main__':
"""
test exmaple
"""
tf.enable_eager_execution()
import numpy as np
src_3d = tf.constant(
np.random.randint(1, 5), shape=[3, 5, 3], dtype=tf.float32)
src_zero = tf.constant(0, shape=[3, 5, 3], dtype=tf.float32)
src_2d = tf.constant(
np.random.randint(1, 5), shape=[5, 5], dtype=tf.float32)
tgt_3d = tf.constant(
np.random.randint(5, 10), shape=[3, 6, 3], dtype=tf.float32)
e_h = embedding_helper(src_2d, 10, 10)
l_h = lstm_helper(src_3d, 10, 3)
zero_t = dense_helper(src_zero, 6)
<file_sep>/hyper_and_conf/conf_fn.py
# encoding=utf8
import tensorflow as tf
import numpy as np
from tensorflow.python.client import device_lib
_MIN_BOUNDARY = 8
_BOUNDARY_SCALE = 1.1
def batch_examples(dataset, batch_size, max_length):
"""Group examples by similar lengths, and return batched dataset.
Each batch of similar-length examples are padded to the same length, and may
have different number of elements in each batch, such that:
group_batch_size * padded_length <= batch_size.
This decreases the number of padding tokens per batch, which improves the
training speed.
Args:
dataset: Dataset of unbatched examples.
batch_size: Max number of tokens per batch of examples.
max_length: Max number of tokens in an example input or target sequence.
Returns:
Dataset of batched examples with similar lengths.
"""
# Get min and max boundary lists for each example. These are used to calculate
# the `bucket_id`, which is the index at which:
# buckets_min[bucket_id] <= len(example) < buckets_max[bucket_id]
# Note that using both min and max lists improves the performance.
def _get_example_length(example):
"""Returns the maximum length between the example inputs and targets."""
length = tf.maximum(tf.shape(example[0])[0], tf.shape(example[1])[0])
return length
def _create_min_max_boundaries(max_length,
min_boundary=_MIN_BOUNDARY,
boundary_scale=_BOUNDARY_SCALE):
"""Create min and max boundary lists up to max_length.
For example, when max_length=24, min_boundary=4 and boundary_scale=2, the
returned values will be:
buckets_min = [0, 4, 8, 16, 24]
buckets_max = [4, 8, 16, 24, 25]
Args:
max_length: The maximum length of example in dataset.
min_boundary: Minimum length in boundary.
boundary_scale: Amount to scale consecutive boundaries in the list.
Returns:
min and max boundary lists
"""
# Create bucket boundaries list by scaling the previous boundary or adding 1
# (to ensure increasing boundary sizes).
bucket_boundaries = []
x = min_boundary
while x < max_length:
bucket_boundaries.append(x)
x = max(x + 1, int(x * boundary_scale))
# Create min and max boundary lists from the initial list.
buckets_min = [0] + bucket_boundaries
buckets_max = bucket_boundaries + [max_length + 1]
return buckets_min, buckets_max
buckets_min, buckets_max = _create_min_max_boundaries(max_length)
# Create list of batch sizes for each bucket_id, so that
# bucket_batch_size[bucket_id] * buckets_max[bucket_id] <= batch_size
bucket_batch_sizes = [batch_size // x for x in buckets_max]
# bucket_id will be a tensor, so convert this list to a tensor as well.
bucket_batch_sizes = tf.constant(bucket_batch_sizes, dtype=tf.int64)
def example_to_bucket_id(example_input, example_target):
"""Return int64 bucket id for this example, calculated based on length."""
seq_length = _get_example_length((example_input, example_target))
# TODO: investigate whether removing code branching improves performance.
conditions_c = tf.logical_and(
tf.less_equal(buckets_min, seq_length),
tf.less(seq_length, buckets_max))
bucket_id = tf.reduce_min(tf.where(conditions_c))
return bucket_id
def window_size_fn(bucket_id):
"""Return number of examples to be grouped when given a bucket id."""
return bucket_batch_sizes[bucket_id]
def batching_fn(bucket_id, grouped_dataset):
"""Batch and add padding to a dataset of elements with similar lengths."""
bucket_batch_size = window_size_fn(bucket_id)
# Batch the dataset and add padding so that all input sequences in the
# examples have the same length, and all target sequences have the same
# lengths as well. Resulting lengths of inputs and targets can differ.
return grouped_dataset.padded_batch(bucket_batch_size,
([None], [None]))
return dataset.apply(
tf.contrib.data.group_by_window(
key_func=example_to_bucket_id,
reduce_func=batching_fn,
window_size=None,
window_size_func=window_size_fn))
def get_available_cpus():
local_device_protos = device_lib.list_local_devices()
return len([x.name for x in local_device_protos if x.device_type == 'CPU'])
def get_available_gpus():
local_device_protos = device_lib.list_local_devices()
return len([x.name for x in local_device_protos if x.device_type == 'GPU'])
def get_learning_rate(learning_rate, hidden_size, step=1,
learning_rate_warmup_steps=16000):
"""Calculate learning rate with linear warmup and rsqrt decay."""
with tf.name_scope("learning_rate"):
warmup_steps = float(learning_rate_warmup_steps)
# try:
# step = tf.to_float(tf.train.get_or_create_global_step())
# except Exception:
# step = 1
step = max(1.0, step)
# step = max(1.0, 10)
learning_rate *= (hidden_size**-0.5)
# Apply linear warmup
learning_rate *= min(1.0, step / warmup_steps)
# Apply rsqrt decay
learning_rate *= (1 / np.sqrt(max(step, warmup_steps)))
# Create a named tensor that will be logged using the logging hook.
# The full name includes variable and names scope. In this case, the name
# is model/get_train_op/learning_rate/learning_rate
return learning_rate
def pad_tensors_to_same_length(x, y, pad_id=0):
"""Pad x and y so that the results have the same length (second dimension)."""
x_length = tf.shape(x)[1]
y_length = tf.shape(y)[1]
max_length = tf.maximum(x_length, y_length)
x = tf.pad(
x, [[0, 0], [0, max_length - x_length], [0, 0]],
constant_values=pad_id)
y = tf.pad(y, [[0, 0], [0, max_length - y_length]], constant_values=pad_id)
return x, y
def onehot_loss_function(true,
pred,
mask_id=0,
smoothing=0.1,
vocab_size=24000):
"""Short summary.
Args:
pred (type): Description of parameter `pred`.
true (type): Description of parameter `true`.
Returns:
type: Description of returned object.
"""
# mask = 1 - tf.cast(tf.equal(true, mask_id), tf.float32)
# loss = tf.nn.sparse_softmax_cross_entropy_with_logits(
# logits=pred, labels=true) * mask
# return tf.reduce_mean(loss)
logits, labels = pad_tensors_to_same_length(pred, true)
# Calculate smoothing cross entropy
confidence = 1.0 - smoothing
low_confidence = (1.0 - confidence) / tf.to_float(vocab_size - 1)
soft_targets = tf.one_hot(
tf.cast(labels, tf.int32),
depth=vocab_size,
on_value=confidence,
off_value=low_confidence)
xentropy = tf.nn.softmax_cross_entropy_with_logits_v2(
logits=logits, labels=soft_targets)
normalizing_constant = -(confidence * tf.log(confidence) + tf.to_float(
vocab_size - 1) * low_confidence * tf.log(low_confidence + 1e-20))
xentropy -= normalizing_constant
weights = tf.to_float(tf.not_equal(labels, mask_id))
xentropy *= weights
loss = tf.reduce_sum(xentropy) / tf.reduce_sum(weights)
return loss
<file_sep>/test.py
import tensorflow as tf
import tensorflow.contrib as tf_contrib
import data_image_helper
import data_sentence_helper
import core_lipread_model as lipread
# tf_contrib.eager.enable_eager_execution()
BATCH_SIZE = 1
sentence = data_sentence_helper.SentenceHelper('D:/lip_data/ABOUT/train/ABOUT_00003.txt',
'D:/lip_data/ABOUT/train/ABOUT_00003.txt',
batch_size = BATCH_SIZE)
tgt_dataset = sentence.prepare_data()
img_reader = data_image_helper.data_image_helper('')
src_dataset, img = img_reader.prepare_data(paths = ['D:/lip_data/ABOUT/train/ABOUT_00003.mp4'], batch_size = BATCH_SIZE)
dataset = tf.data.Dataset.zip((src_dataset, tgt_dataset))
src_vocabulary, tgt_vocabulary, src_ids2word, tgt_ids2word = sentence.prepare_vocabulary()
src_vocabulary_size = len(src_vocabulary)
tgt_vocabulary_size = len(tgt_vocabulary)
daedalus = lipread.Daedalus(src_vocabulary_size = src_vocabulary_size,
tgt_vocabulary_size = tgt_vocabulary_size,
batch_size = BATCH_SIZE,
embed_size = 10,
num_units = 10,
backforward = True,
eager = True)
for (i, ((src_input, src_length), ((_, tgt_in, __, tgt_length), tgt_out))) in enumerate(dataset):
print(src_input.shape)
print(tgt_length)
inputs = (src_input, tgt_in, src_length, tgt_length)
logits = daedalus(inputs)
h, f = daedalus.get_states()
v, v_o, v_h = daedalus.get_VGG()
print(logits)
print(h.shape)
print(f.shape)
print(v_o.shape)
print(v_h[0].shape)
print(tf.argmax(logits, -1))<file_sep>/server_text.py
import tensorflow as tf
import tensorflow.contrib.eager as eager
import core_lip_main
from hyper_and_conf import hyper_param
import core_data_SRCandTGT
import numpy as np
import data_image_helper
eager.enable_eager_execution()
CORPUS_PATH = '../europarl-v7.fr-en.en'
def get_vgg():
# with tf.device("/cpu:0"):
if tf.gfile.Exists('pre_train/vgg16_pre_all'):
vgg16 = tf.keras.models.load_model('pre_train/vgg16_pre_all')
else:
vgg16 = tf.keras.applications.vgg16.VGG16(
include_top=True, weights='imagenet')
return vgg16
class text_helper():
def __init__(self,
corpus_path = CORPUS_PATH,
mode = 'test'):
self.hp = hyper_param.HyperParam(mode = mode)
self.text_parser = core_data_SRCandTGT.DatasetManager(
[corpus_path],
[corpus_path],
)
self.helper = data_image_helper.data_image_helper(detector='./cascades/')
self.vgg16 = get_vgg()
self.vgg16_flatten = self.vgg16.get_layer('flatten')
self.vgg16_output = self.vgg16_flatten.output
self.vgg16.input
self.vgg_model = tf.keras.Model(self.vgg16.input, self.vgg16_output)
self.daedalus = core_lip_main.Daedalus(self.hp)
def get_text(self, path):
video = self.helper.get_raw_dataset(path)
out = self.vgg_model(video)
out = tf.expand_dims(out, 0)
ids = self.daedalus(out)
word = self.text_parser.decode(ids[0])
return word
if __name__ == '__main__':
test = '~/massive_data/lip_reading_data/word_level_lrw/ABOUT/test/ABOUT_00003.mp4'
model = text_helper()
word = model.get_text(test)
print(word)<file_sep>/legacy/graph_trainer.py
# encoder=utf.8
import sys
sys.path.insert(0, '/home/vivalavida/batch_data/corpus_fr2eng/')
sys.path.insert(1, '/home/vivalavida/workspace/alpha/transformer_nmt/')
TRAIN_MODE = 'large'
# sys.path.insert(0, '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng')
# sys.path.insert(1, '/Users/barid/Documents/workspace/alpha/transformer_nmt')
# TRAIN_MODE = 'test'
import tensorflow as tf
import numpy as np
import time
import os
import train_conf
import model_helper
import bleu_metrics
class Graph():
def __init__(self,
hyperParam,
sys_path,
vocab_size=24000,
keep_prob=0.1,
gpu=0):
self.hp = hyperParam
self.num_units = self.hp.num_units
self.sys_path = sys_path
self.epoch_number = self.hp.epoch_num
self.lr = self.lr_init = self.hp.lr
self.learning_warmup = self.hp.learning_warmup
self.vocab_size = vocab_size
self.clipping = self.hp.clipping
self.global_step = tf.Variable(initial_value=0, trainable=False)
self.gpu = train_conf.get_available_gpus()
# if self.gpu > 0:
# self.batch_size = int(self.hp.batch_size / self.gpu)
# else:
self.batch_size = self.hp.batch_size
def _check_point_creater(self, model):
try:
os.makedirs('training_checkpoints')
except OSError:
pass
checkpoint_dir = './training_checkpoints'
checkpoint = tf.train.Checkpoint(model=model)
# checkpoint_prefix = os.path.join(checkpoint_dir, "ckpt")
ckpt = tf.train.CheckpointManager(
checkpoint, checkpoint_dir, max_to_keep=10)
status = checkpoint.restore(tf.train.latest_checkpoint(checkpoint_dir))
return ckpt, status
def _prepocess_dataset(self, data_manager):
try:
train_dataset, val_dataset, test_dataset = data_manager.prepare_data(
)
if self.gpu > 0:
# self.train_dataset = self.train_dataset.prefetch(self.gpu * 24)
val_dataset = val_dataset.prefetch(self.gpu * 4)
test_dataset = test_dataset.prefetch(self.gpu * 4)
for i in range(self.gpu):
train_dataset = train_dataset.apply(
tf.data.experimental.prefetch_to_device(
"/device:GPU:" + str(i)))
else:
train_dataset = train_dataset.prefetch(2)
val_dataset = val_dataset.prefetch(2)
test_dataset = test_dataset.prefetch(2)
return train_dataset, val_dataset, test_dataset
except Exception:
print("Data Manager is not a proper one.")
def _input_fn(self, dataset):
iterator = tf.data.Iterator.from_structure(
output_types=dataset.output_types,
output_shapes=dataset.output_shapes)
input_iterater = iterator.make_initializer(dataset)
X, Y = iterator.get_next()
return X, Y, input_iterater
def _tower_fusion_grad(self, model, X, Y, optimizer):
"""
core part
"""
def average_gradients(tower_grads):
average_grads = []
for grad in zip(*tower_grads):
grads = []
for g in grad:
expanded_g = tf.expand_dims(g, 0)
grads.append(expanded_g)
grad = tf.concat(axis=0, values=grads)
grad = tf.reduce_mean(grad, 0)
average_grads.append(grad)
return average_grads
loss = []
grad = []
if self.gpu > 0:
mini_batch_x = model_helper.mini_batch(X, self.gpu)
mini_batch_y = model_helper.mini_batch(Y, self.gpu)
for index, gpu in enumerate(np.arange(0, self.gpu)):
with tf.device("/device:GPU:" + str(gpu)):
batch_X = mini_batch_x[index]
batch_Y = mini_batch_y[index]
# self.model.dropout_manager(self.keep_prob)
p = model((batch_X, batch_Y), train=True)
tower_loss = train_conf.onehot_loss_function(
batch_Y, p, self.hp.PAD_ID, vocab_size=self.vocab_size)
del p
tower_grad, _ = zip(*optimizer.compute_gradients(
tower_loss, model.variables))
grad.append(tower_grad)
loss.append(tower_loss)
del tower_grad, tower_loss
loss = tf.reduce_mean(loss, axis=0)
grad = average_gradients(grad)
else:
# self.model.dropout_manager(self.keep_prob)
pred = model((X, Y), train=True)
loss = train_conf.onehot_loss_function(
Y, pred, self.hp.PAD_ID, vocab_size=self.vocab_size)
grad, _ = zip(*optimizer.compute_gradients(loss, model.variables))
grad, _ = tf.clip_by_global_norm(grad, self.clipping)
# train_op = self.optimizer.apply_gradients(
# zip(grad, self.model.variables), self.global_step)
train_op = optimizer.apply_gradients(
zip(grad, model.variables), self.global_step)
return loss, train_op
def _epoch_train(self,
model,
sess,
loss,
dataset_iterator,
train_op,
summarise_op,
ckpt,
writer,
data_manager=None,
epoch=0):
sess.run(dataset_iterator)
batch_num = 0.0
total_loss = 0.0
try:
while True:
start_time = time.time()
batch_loss, _ = sess.run([loss, train_op])
step = self.global_step.eval()
total_loss += batch_loss
batch_num += 1
total = total_loss / batch_num
train_summarise = sess.run(
summarise_op,
feed_dict={
self.summary_bleu: 0,
self.summary_learning_rate: self.lr,
self.summary_total_loss: total,
self.summary_batch_loss: batch_loss,
})
writer.add_summary(train_summarise, global_step=step)
print('Training_step %d' % step)
print("Batch loss %s" % batch_loss)
print('Average loss at epoch %d:%s' % (epoch, total))
print('Training cost: %s seconds' % (time.time() - start_time))
if step % 5000 == 0:
ckpt.save()
try:
if step % 100 == 0:
data_manager.train_percentage(
batch_num * self.batch_size)
except Exception:
pass
except tf.errors.OutOfRangeError:
print("epoch %d training finished" % epoch)
print("epoch %d: trained %d batches" % (epoch, batch_num))
pass
model.save_weights(self.sys_path + '/model/model_weights')
def _tower_fusion_pred(self, model, X):
pred = []
if self.gpu > 0:
mini_batch_x = model_helper.mini_batch(X, self.gpu)
# mini_batch_y = model_helper.mini_batch(self.Y, self.gpu)
for index, gpu in enumerate(np.arange(0, self.gpu)):
with tf.device("/device:GPU:" + str(gpu)):
X = mini_batch_x[index]
p = model(X, train=False)
pred.append(p)
else:
p = model(X, train=False)
pred.append(p)
return pred
def _epoch_evaluation(self,
sess,
Y,
pred,
val_iterator,
summarise_op,
writer,
data_manager,
epoch=0):
sess.run(val_iterator)
batch_size = 0
self.num_eval = 0
batch_bleu = []
visual_true = []
visual_pred = []
# bleu_summarise_op = train_conf.train_summarise(bleu=self.summary_bleu)
try:
while True:
self.num_eval += 1
pred_eval = sess.run(pred)
if self.gpu > 0:
eval_y = model_helper.mini_batch(Y, self.gpu)
batch_size += 1 * self.gpu
else:
eval_y = [Y]
batch_size += 1
with tf.device("/device:CPU:0"):
for i, p in enumerate(pred_eval):
y = eval_y[i].eval().tolist()
p = p.tolist()
for k, v in enumerate(p):
y[k] = data_manager.decode(
bleu_metrics.token_trim(y[k], self.hp.EOS_ID))
p[k] = data_manager.decode(
bleu_metrics.token_trim(p[k], self.hp.EOS_ID))
score, _ = bleu_metrics.bleu_score(
p, y, eos_id=self.hp.EOS_ID)
# score, _ = bleu_metrics.bleu_score(pred_eval[i], Y[i])
batch_bleu.append(score * 100.0)
self.final_bleu = tf.reduce_mean(batch_bleu).eval()
print("BLEU in epoch %d at step %d is %s" %
(epoch, self.num_eval, self.final_bleu))
summarise = sess.run(
summarise_op,
feed_dict={
self.summary_bleu: self.final_bleu,
self.summary_learning_rate: self.lr,
self.summary_total_loss: 0.0,
self.summary_batch_loss: 0.0,
})
writer.add_summary(summarise, global_step=self.num_eval)
r = np.random.randint(0, int(self.batch_size / 2 - 1))
visual_true.append(
bleu_metrics.token_trim(Y[0][r].eval().tolist(),
self.hp.EOS_ID))
visual_pred.append(
bleu_metrics.token_trim(pred_eval[0][r], self.hp.EOS_ID))
except tf.errors.OutOfRangeError:
if self.final_bleu > self.best_bleu:
self.best_bleu = self.final_bleu
self.best_epoch = epoch
print("The best BLEU score is %f in epoch %d" % (self.best_bleu,
epoch))
eval_visual = []
for k, v in enumerate(visual_pred):
true_words = data_manager.decode(visual_true[k])
pred_words = data_manager.decode(visual_pred[k])
eval_visual.append(
tf.summary.text('true_pred',
tf.convert_to_tensor([true_words,
pred_words])))
# print(visual_attention)
eval_visual = tf.summary.merge(eval_visual)
eval_visual = sess.run(eval_visual)
writer.add_summary(eval_visual, global_step=self.num_eval)
print("epoch %d evaluation finished" % epoch)
print("epoch %d: evaluated %d" % (epoch, batch_size))
def graph(self, model, data_manager):
config = tf.ConfigProto(allow_soft_placement=True)
config.gpu_options.allocator_type = 'BFC'
config.gpu_options.per_process_gpu_memory_fraction = 0.99
# checkpoint_prefix = os.path.join(checkpoint_dir, "ckpt")
with tf.Session(config=config) as sess:
tf.keras.backend.set_session(sess)
########################################################
self.summary_total_loss = tf.placeholder(
tf.float32, shape=None, name="summary_total_loss")
self.summary_batch_loss = tf.placeholder(
tf.float32, shape=None, name="summary_batch_loss")
self.summary_learning_rate = tf.placeholder(
tf.float32, shape=None, name="summary_learning_rate")
self.summary_bleu = tf.placeholder(
tf.float32, shape=None, name="summary_bleu")
self.global_step = tf.train.get_or_create_global_step()
self.lr = train_conf.get_learning_rate(
self.lr_init,
self.num_units,
learning_rate_warmup_steps=self.hp.learning_warmup)
self.num_eval = 0
self.best_bleu = 0
self.best_epoch = 0
###########################################################
ckpt, status = self._check_point_creater(model)
train_dataset, val_dataset, test_dataset = self._prepocess_dataset(
data_manager=data_manager)
X_train, Y_train, train_iterator = self._input_fn(train_dataset)
X_val, Y_val, val_iterator = self._input_fn(val_dataset)
optimizer = train_conf.optimizer(lr=self.lr)
loss, train_op = self._tower_fusion_grad(model, X_train, Y_train,
optimizer)
model.summary()
pred = self._tower_fusion_pred(model, X_val)
writer = tf.summary.FileWriter(self.sys_path + '/graphs/nmt',
sess.graph)
train_summarise_op = train_conf.train_summarise(
self.summary_batch_loss, self.summary_total_loss,
self.summary_learning_rate)
bleu_summarise_op = train_conf.bleu_summarise(self.summary_bleu)
sess.run(tf.global_variables_initializer())
status.initialize_or_restore(sess)
for epoch in range(1, self.epoch_number):
print('Starting epoch %d' % epoch)
self._epoch_train(model, sess, loss, train_iterator, train_op,
train_summarise_op, ckpt, writer,
data_manager, epoch)
print('starting evaluation')
self._epoch_evaluation(sess, Y_val, pred, val_iterator,
bleu_summarise_op, writer, data_manager,
epoch)
print('graph sucessed')
# ###########################################
import hyperParam
import core_Transformer_model
import core_dataset_generator
# import test_trainer
# import graph_trainer
# set_up
DATA_PATH = sys.path[0]
SYS_PATH = sys.path[1]
src_data_path = DATA_PATH + "/europarl-v7.fr-en.en"
tgt_data_path = DATA_PATH + "/europarl-v7.fr-en.fr"
hp = hyperParam.HyperParam(TRAIN_MODE)
data_manager = core_dataset_generator.DatasetManager(
src_data_path,
tgt_data_path,
batch_size=hp.batch_size,
PAD_ID=hp.PAD_ID,
EOS_ID=hp.EOS_ID,
# shuffle=hp.data_shuffle,
shuffle=hp.data_shuffle,
max_length=hp.max_sequence_length)
# dataset_train_val_test = data_manager.prepare_data()
# src_vocabulary, src_ids2word, tgt_vocabulary, tgt_ids2word = data_manager.prepare_vocabulary(
# )
gpu = train_conf.get_available_gpus()
vocabulary_size = 24000
model = core_Transformer_model.Daedalus(
max_seq_len=hp.max_sequence_length,
vocabulary_size=vocabulary_size,
embedding_size=hp.embedding_size,
batch_size=hp.batch_size / (gpu if gpu > 0 else 1),
num_units=hp.num_units,
num_heads=hp.num_heads,
num_encoder_layers=hp.num_encoder_layers,
num_decoder_layers=hp.num_decoder_layers,
dropout=hp.dropout,
eos_id=hp.EOS_ID,
pad_id=hp.PAD_ID)
# test = test_trainer.Trainer(model=model, dataset=dataset_train_val_test)
# test.train()
large_train = Graph(
vocab_size=vocabulary_size,
sys_path=SYS_PATH,
hyperParam=hp)
large_train.graph(model, data_manager)
<file_sep>/legacy/model_legacy/core_VGG_model.py
import tensorflow as tf
import numpy as np
import data_image_helper
import tensorflow.contrib as tf_contrib
# tf_contrib.eager.enable_eager_execution()
class CNNcoder(tf.keras.Model):
def __init__(self,
batch_size = 64,
embed_size = 512,
eager = False):
super(CNNcoder, self).__init__()
self.batch_size = batch_size
self.embed_size = embed_size
self.eager = eager
self.cnn1 = tf.keras.layers.Conv2D(filters = 96, kernel_size = 3, strides = (1, 1), padding = 'same')
self.cnn2 = tf.keras.layers.Conv2D(filters = 256, kernel_size = 3, strides = (2, 2), padding = 'same')
self.cnn3 = tf.keras.layers.Conv2D(filters = 512, kernel_size = 3, strides = (1, 1), padding = 'same')
self.cnn4 = tf.keras.layers.Conv2D(filters = 512, kernel_size = 3, strides = (1, 1), padding = 'same')
self.cnn5 = tf.keras.layers.Conv2D(filters = 512, kernel_size = 3, strides = (1, 1), padding = 'same')
self.cnn6 = tf.keras.layers.Conv2D(filters = self.embed_size, kernel_size = 6)
self.pool1 = tf.keras.layers.MaxPooling2D(pool_size = (3, 3), strides = (2, 2))
self.pool2 = tf.keras.layers.MaxPooling2D(pool_size = (3, 3), strides = (2, 2))
self.pool5 = tf.keras.layers.MaxPooling2D(pool_size = (3, 3), strides = (2, 2))
self.fc6 = tf.keras.layers.Dense(units = self.embed_size)
def build_Graph(self, img):
c_o1 = self.cnn1(img)
p_o1 = self.pool1(c_o1)
c_o2 = self.cnn2(p_o1)
p_o2 = self.pool2(c_o2)
c_o3 = self.cnn3(p_o2)
c_o4 = self.cnn4(c_o3)
c_o5 = self.cnn5(c_o4)
p_o5 = self.pool5(c_o5)
c_o6 = self.cnn6(p_o5)
c_o6 = tf.reshape(c_o6, shape = [self.batch_size, -1])
f_o = self.fc6(c_o6)
return f_o
def call(self, inputs):
imgs = inputs
if(self.eager):
time_step = tf.shape(imgs)[1]
else:
time_step = tf.get_shape(imgs)[1]
embeded =[]
for i in range(time_step):
embeded.append(self.build_Graph(imgs[:, i, :, :, :]))
embeded = tf.transpose(embeded, perm = [1, 0, 2])
return embeded
class LSTMcoder(tf.keras.Model):
def __init__(self,
batch_sz,
num_units,
backforward = False):
super(LSTMcoder, self).__init__()
self.batch_sz = batch_sz
self.num_units = num_units
self.bf = backforward
self.lstm1 = tf.keras.layers.LSTM(units = self.num_units,
return_sequences = True,
return_state = True,
recurrent_initializer = 'glorot_uniform')
self.lstm2 = tf.keras.layers.LSTM(units = self.num_units,
return_sequences = True,
return_state = True,
recurrent_initializer = 'glorot_uniform')
self.lstm3 = tf.keras.layers.LSTM(units = self.num_units,
return_sequences = True,
return_state = True,
recurrent_initializer = 'glorot_uniform')
def initial_hidden_state(self):
return tf.zeros((self.batch_sz, self.num_units)), tf.zeros((self.batch_sz, self.num_units))
def build_Graph(self, x, seq_lengths):
if(not self.bf):
x = tf.reverse_sequence(x, seq_lengths, seq_axis = 1, batch_axis = 0)
out1, h1, state1 = self.lstm1(x, initial_state = self.initial_hidden_state())
out2, h2, state2 = self.lstm2(out1, initial_state = self.initial_hidden_state())
out3, h3, state3 = self.lstm3(out2, initial_state = self.initial_hidden_state())
if(self.bf):
out1 = tf.reverse_sequence(out1, seq_lengths, seq_axis = 1, batch_axis = 0)
out2 = tf.reverse_sequence(out2, seq_lengths, seq_axis = 1, batch_axis = 0)
out3 = tf.reverse_sequence(out3, seq_lengths, seq_axis = 1, batch_axis = 0)
return out1, out2, out3, h1, h2, h3, state1, state2, state3
def call(self, inputs):
(X, seq_lengths) = inputs
# O1 = []
# O2 = []
# O3 = []
# S1 = None
# S2 = None
# S3 = None
# for i in range(self.time_step):
# out1, out2, out3, state1, state2, state3 = self.build_Graph(X)
# O1.append(out1)
# O2.append(out2)
# O3.append(out3)
# S1 = state1
# S2 = state2
# S3 = state3
# O1 = tf.transpose(O1, perm = [1, 0, 2])
# O2 = tf.transpose(O2, perm = [1, 0, 2])
# O3 = tf.transpose(O3, perm = [1, 0, 2])
O1, O2, O3, H1, H2, H3, S1, S2, S3 = self.build_Graph(X, seq_lengths)
return O1, O2, O3, H1, H2, H3, S1, S2, S3
class VGGTower(tf.keras.Model):
def __init__(self,
batch_size = 64,
embed_size = 512,
num_units = 512,
backforward = False,
eager = False):
super(VGGTower, self).__init__()
self.batch_size = batch_size
self.embed_size = embed_size
self.num_units = num_units
self.bf = backforward
self.eager = eager
self.embeded = None
self.final_out = None
self.final_hidden = None
self.final_state = None
self.encoder = CNNcoder(batch_size = self.batch_size,
embed_size = self.embed_size,
eager = self.eager)
self.fw_decoder = LSTMcoder(batch_sz = self.batch_size,
num_units = self.num_units,
backforward = False)
if(self.bf):
self.bw_decoder = LSTMcoder(batch_sz = self.batch_size,
num_units = self.num_units,
backforward = True)
self.output_size = self.num_units * 2
else:
self.output_size = self.num_units
def call(self, inputs):
"""
inputs:
images: a batch of mouth images
return:
final_out: [batch_size, time_step, embed_size]
final_hidden: [batch_size, embed_size]
"""
(images, img_length) = inputs
encoder_input = (images, img_length)
self.embeded = self.encoder(encoder_input)
decoder_input = (self.embeded, img_length)
fw_o1, fw_o2, fw_o3, fw_h1, fw_h2, fw_h3, fw_s1, fw_s2, fw_s3 = self.fw_decoder(decoder_input)
if(self.bf):
bw_o1, bw_o2, bw_o3, bw_h1, bw_h2, bw_h3, bw_s1, bw_s2, bw_s3 = self.bw_decoder(decoder_input)
self.final_out = tf.concat((fw_o3, bw_o3), -1)
self.final_hidden = [tf.concat((fw_h1, bw_h1), -1),
tf.concat((fw_h2, bw_h2), -1),
tf.concat((fw_h3, bw_h3), -1)]
self.final_state = [tf.concat((fw_s1, bw_s1), -1),
tf.concat((fw_s2, bw_s2), -1),
tf.concat((fw_s3, bw_s3), -1)]
else:
self.final_out = fw_o3
self.final_hidden = [fw_h1, fw_h2, fw_h3]
self.final_state = [fw_s1, fw_s2, fw_s3]
return self.final_out, self.final_hidden
def get_state(self):
return self.final_state
def get_embeded(self):
return self.embeded
def get_output_size(self):
return self.output_size
class VGGTowerFactory(tf.keras.Model):
def __init__(self,
detector_path,
data_path,
embed_size = 512,
batch_size = 64,
num_units = 512,
time_step = 10,
backforward = False,
eager = False):
super(VGGTowerFactory, self).__init__()
self.detector_path = detector_path
self.data_path = data_path
self.embed_size = embed_size
self.batch_size = batch_size
self.num_units = num_units
self.time_step = time_step
self.bf = backforward
self.eager = eager
print("build VGG model")
def get_data(self, detector_path, data_path, batch_size, time_step):
reader = data_image_helper.data_image_helper(detector_path)
dataset, images = reader.prepare_data(paths = data_path, batch_size = batch_size)
return dataset, images
def mini_model(self, batch_size = 4):
"""short summary:
A mini model is used to train final model.
Args:
batch_size: the size take from the dataset.
Returns:
model, dataset, images
"""
dataset, images = self.get_data(detector_path = self.detector_path,
data_path = self.data_path,
batch_size = self.batch_size,
time_step = self.time_step)
return VGGTower(batch_size = batch_size,
embed_size = 4,
num_units = 4,
backforward = self.bf,
eager = self.eager), dataset, images
def small_model(self, batch_size = 16, embed_size = 16, num_units = 16):
"""short summary:
A small_modle model is used to train final model.
Args:
batch_size: the size take from the dataset.
embed_size: the size picture embed to.
num_units: the units number of the lstm cell.
Returns:
model, dataset, images
"""
dataset, images = self.get_data(detector_path = self.detector_path,
data_path = self.data_path,
batch_size = self.batch_size,
time_step = self.time_step)
return VGGTower(batch_size = batch_size,
embed_size = embed_size,
num_units = num_units,
backforward = self.bf,
eager = self.eager), dataset, images
def full_model(self):
"""short summary:
A full model is used to train final model.
Args:
Don't need.
Returns:
model, dataset, images
"""
dataset, images = self.get_data(detector_path = self.detector_path,
data_path = self.data_path,
batch_size = self.batch_size,
time_step = self.time_step)
return VGGTower(batch_size = self.batch_size,
embed_size = self.embed_size,
num_units = self.num_units,
backforward = self.bf,
eager = self.eager), dataset, images
# this is used to test VGGTower
if __name__ == '__main__':
img = tf.zeros(dtype = tf.float32, shape = (44, 10, 120, 120, 5))
length = tf.constant([10, 9] * 22)
v = VGGTower(batch_size = 44, num_units = 512, eager = True, backforward = False)
inputs = (img, length)
o, h= v(inputs)
s = v.get_state()
print(o.shape)
print(h[2].shape)
print(s[2].shape)<file_sep>/debug.py
# encode=utf8
# author barid
import tensorflow as tf
from hyper_and_conf import conf_fn
tf.enable_eager_execution()
import sys
import os
cwd = os.getcwd()
sys.path.insert(0, cwd + '/corpus')
sys.path.insert(1, cwd)
# sys.path.insert(0, '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng')
# sys.path.insert(1, '/Users/barid/Documents/workspace/alpha/transformer_nmt')
# device = ["/device:CPU:0", "/device:GPU:0", "/device:GPU:1"]
DATA_PATH = sys.path[0]
SYS_PATH = sys.path[1]
# src_data_path = DATA_PATH + "/europarl-v7.fr-en.en"
# tgt_data_path = DATA_PATH + "/europarl-v7.fr-en.fr"
import core_model_initializer as init
# def main():
config = init.backend_config()
tf.keras.backend.set_session(tf.Session(config=config))
gpu = init.get_available_gpus()
# set session config
metrics = init.get_metrics()
with tf.device("/cpu:0"):
train_x, train_y = init.train_input()
X_Y = init.train_input(True)
# val_x, val_y = init.val_input()
# train_model = init.train_model()
train_model = init.daedalus
# with strategy.scope():
hp = init.get_hp()
# dataset
# step
train_step = 500
# val_step = init.get_val_step()
# get train model
# optimizer
optimizer = init.get_optimizer()
# loss function
# loss = init.get_loss()
# evaluation metrics
# callbacks
callbacks = init.get_callbacks()
# import pdb; pdb.set_trace()
# test = train_model(train_x,training=True)
# if gpu > 0:
# # train_model = tf.keras.utils.multi_gpu_model(
# # train_model, gpu, cpu_merge=False)
# train_model = init.make_parallel(train_model, gpu, '/gpu:1')
# # staging_area_callback = hyper_train.StagingAreaCallback(
# # train_x, train_y, hp.batch_size)
# # callbacks.append(staging_area_callback)
# # train_model.compile(
# # optimizer=optimizer,
# # loss=loss,
# # metrics=metrics,
# # target_tensors=[staging_area_callback.target_tensor],
# # fetches=staging_area_callback.extra_ops)
# train_model.compile(
# optimizer=optimizer,
# loss=loss,
# metrics=metrics,
# target_tensors=train_y)
# else:
# train_model.compile(
# optimizer=optimizer,
# loss=loss,
# metrics=metrics,
# target_tensors=train_y)
# train_model.summary()
optimizer = tf.train.AdamOptimizer()
with tf.GradientTape() as tape:
for index, (x,y) in enumerate(X_Y):
logits = train_model(x, training=True)
import pdb;pdb.set_trace()
loss_v = conf_fn.onehot_loss_function(y, logits, vocab_size=12000)
variables = train_model.trainable_variables
grads = tape.gradient(loss_v, variables)
optimizer.apply_gradients(zip(grads, variables),
global_step=tf.train.get_or_create_global_step())
<file_sep>/legacy/conf_train.py
# encoding=utf8
import tensorflow as tf
from tensorflow.python.client import device_lib
import numpy as np
def backend_config():
config = tf.ConfigProto()
config.gpu_options.allocator_type = 'BFC'
# # Don't pre-allocate memory; allocate as-needed
# config.gpu_options.allow_growth = True
# Only allow a total of half the GPU memory to be allocated
config.gpu_options.per_process_gpu_memory_fraction = 0.99
return config
def get_learning_rate(learning_rate, hidden_size, step,
learning_rate_warmup_steps):
"""Calculate learning rate with linear warmup and rsqrt decay."""
with tf.name_scope("learning_rate"):
warmup_steps = float(learning_rate_warmup_steps)
# try:
# step = tf.to_float(tf.train.get_or_create_global_step())
# except Exception:
# step = 1
step = max(1.0, step)
# step = max(1.0, 10)
learning_rate *= (hidden_size**-0.5)
# Apply linear warmup
learning_rate *= min(1.0, step / warmup_steps)
# Apply rsqrt decay
learning_rate *= (1 / np.sqrt(max(step, warmup_steps)))
# Create a named tensor that will be logged using the logging hook.
# The full name includes variable and names scope. In this case, the name
# is model/get_train_op/learning_rate/learning_rate
return learning_rate
def pad_tensors_to_same_length(x, y, pad_id=0):
"""Pad x and y so that the results have the same length (second dimension)."""
x_length = tf.shape(x)[1]
y_length = tf.shape(y)[1]
max_length = tf.maximum(x_length, y_length)
x = tf.pad(
x, [[0, 0], [0, max_length - x_length], [0, 0]],
constant_values=pad_id)
y = tf.pad(y, [[0, 0], [0, max_length - y_length]], constant_values=pad_id)
return x, y
def get_available_gpus():
local_device_protos = device_lib.list_local_devices()
return len([x.name for x in local_device_protos if x.device_type == 'GPU'])
def get_available_cpus():
local_device_protos = device_lib.list_local_devices()
return len([x.name for x in local_device_protos if x.device_type == 'CPU'])
def bleu_summarise(bleu):
summarise = []
summarise.append(tf.summary.scalar("evaluation_bleu", bleu))
return tf.summary.merge(summarise, name="bleu")
def train_summarise(loss=None, total=None, lr=None):
"""
plot loss and accuracy for analyseing
"""
summarise = []
if loss is not None:
summarise.append(tf.summary.scalar("batch_loss", loss))
# tf.summary.histogram("loss", loss)
if total is not None:
summarise.append(tf.summary.scalar("model_total_loss", total))
# tf.summary.histogram("total_loss", total)
# tf.summary.histogram("bleu", bleu)
if lr is not None:
summarise.append(tf.summary.scalar("learning_rate", lr))
# tf.summary.histogram("lr", lr)
return tf.summary.merge(summarise, name='train_summaris')
def cross_entropy_loss_function(true, pred, mask_id=0):
import pdb
pdb.set_trace()
mask = 1 - tf.cast(tf.equal(true, mask_id), tf.float32)
loss = tf.nn.sparse_softmax_cross_entropy_with_logits(
logits=pred, labels=true) * mask
return tf.reduce_mean(loss)
def onehot_loss_function(true,
pred,
mask_id=0,
smoothing=0.1,
vocab_size=24000):
"""Short summary.
Args:
pred (type): Description of parameter `pred`.
true (type): Description of parameter `true`.
Returns:
type: Description of returned object.
"""
# mask = 1 - tf.cast(tf.equal(true, mask_id), tf.float32)
# loss = tf.nn.sparse_softmax_cross_entropy_with_logits(
# logits=pred, labels=true) * mask
# return tf.reduce_mean(loss)
logits, labels = pad_tensors_to_same_length(pred, true)
# Calculate smoothing cross entropy
confidence = 1.0 - smoothing
low_confidence = (1.0 - confidence) / tf.to_float(vocab_size - 1)
soft_targets = tf.one_hot(
tf.cast(labels, tf.int32),
depth=vocab_size,
on_value=confidence,
off_value=low_confidence)
xentropy = tf.nn.softmax_cross_entropy_with_logits_v2(
logits=logits, labels=soft_targets)
normalizing_constant = -(confidence * tf.log(confidence) + tf.to_float(
vocab_size - 1) * low_confidence * tf.log(low_confidence + 1e-20))
xentropy -= normalizing_constant
weights = tf.to_float(tf.not_equal(labels, mask_id))
xentropy *= weights
loss = tf.reduce_sum(xentropy) / tf.reduce_sum(weights)
return loss
def optimizer(lr=0.1):
# optimizer = tf.train.AdamOptimizer(lr)
optimizer = tf.keras.optimizers.Adam(lr)
return optimizer
# def compute_gradients(tape, loss, variables, clipping=5):
# gradients, _ = tf.clip_by_global_norm(
# tape.gradient(loss, variables), clipping)
# return gradients
#
#
# def apply_gradients(optimizer, gradients, variables, global_step):
# return optimizer.apply_gradients(
# zip(gradients, variables), global_step=global_step)
<file_sep>/legacy/core_dataset_generator.py
# encoding=utf8
from hyper_and_conf import conf_fn as train_conf
from data import data_setentceToByte_helper
import numpy as np
import tensorflow as tf
class DatasetManager():
def __init__(self,
source_data_path,
target_data_path,
batch_size=32,
shuffle=100,
num_sample=-1,
max_length=50,
EOS_ID=1,
PAD_ID=0,
byte_token='@@',
word_token=' ',
split_token='\n'):
"""Short summary.
Args:
source_data_path (type): Description of parameter `source_data_path`.
target_data_path (type): Description of parameter `target_data_path`.
num_sample (type): Description of parameter `num_sample`.
batch_size (type): Description of parameter `batch_size`.
split_token (type): Description of parameter `split_token`.
Returns:
type: Description of returned object.
"""
self.source_data_path = source_data_path
self.target_data_path = target_data_path
self.num_sample = num_sample
self.batch_size = batch_size
self.byte_token = byte_token
self.split_token = split_token
self.word_token = word_token
self.EOS_ID = EOS_ID
self.PAD_ID = PAD_ID
self.shuffle = shuffle
self.max_length = max_length
self.byter = data_setentceToByte_helper.Subtokenizer(
[self.source_data_path, self.target_data_path],
PAD_ID=self.PAD_ID,
EOS_ID=self.EOS_ID)
if train_conf.get_available_gpus() > 0:
self.cpus = 12
else:
self.cpus = 2
self.cross_validation(self.source_data_path, self.target_data_path)
def corpus_length_checker(self, path, data):
short_20 = 0
median_50 = 0
long_100 = 0
super_long = 0
for k, v in enumerate(data):
v = v.split(self.word_token)
v_len = len(v)
if v_len <= 20:
short_20 += 1
if v_len > 20 and v_len <= 50:
median_50 += 1
if v_len > 50 and v_len <= 100:
long_100 += 1
if v_len > 100:
super_long += 1
print("Statistics for %s" % path)
print("short: %d" % short_20)
print("median: %d" % median_50)
print("long: %d" % long_100)
print("super long: %d" % super_long)
def cross_validation(self, src_path, tgt_path, validation=0.05, test=0.05):
print("Cross validation process")
self.train_path_byte = "./data/train_data_BYTE_LEVEL"
self.test_path_byte = "./data/test_data_BYTE_LEVEL"
self.val_path_byte = "./data/val_data_BYTE_LEVEL"
train_path_word = "./data/train_data_WORD_LEVEL"
test_path_word = "./data/test_data_WORD_LEVEL"
val_path_word = "./data/val_data_WORD_LEVEL"
with tf.gfile.GFile(src_path, "r") as f_src:
src_raw_data = f_src.readlines()
self.corpus_length_checker(src_path, src_raw_data)
with tf.gfile.GFile(tgt_path, "r") as f_tgt:
tgt_raw_data = f_tgt.readlines()
self.corpus_length_checker(tgt_path, tgt_raw_data)
raw_data = list(zip(src_raw_data, tgt_raw_data))
f_src.close()
self.data_counter = len(raw_data)
# val_size = int(validation * self.data_counter)
# test_size = int(test * self.data_counter)
self.val_size = 32000
self.test_size = 32000
self.train_size = self.data_counter - self.val_size - self.test_size
f_src.close()
def parser(string):
string = self.byter.encode(string, add_eos=True)
string = self.word_token.join([str(s) for s in string])
return string
def writer(path, data, byte=False):
if tf.gfile.Exists(path) is not True:
with tf.gfile.GFile(path, "w") as f:
for w in data:
if len(w) >= 0:
if byte:
f.write(
parser(w[0].rstrip()) +
self.byte_token +
parser(w[1].rstrip()) + '\n')
else:
f.write(w[0].rstrip() + self.byte_token +
w[1])
f.close()
print("File exsits: {}".format(path))
print('Total data {0}'.format(self.data_counter))
print(('Train {0}, Validation {1}, Test {2}'.format(
self.train_size, self.val_size, self.test_size)))
writer(train_path_word, raw_data[:self.train_size])
# writer(val_path, raw_data[:128])
writer(val_path_word,
raw_data[self.train_size:self.train_size + self.val_size])
writer(test_path_word, raw_data[self.train_size + self.val_size:])
writer(self.train_path_byte, raw_data[:self.train_size], byte=True)
# writer(val_path, raw_data[:128])
writer(
self.val_path_byte,
raw_data[self.train_size:self.train_size + self.val_size],
byte=True)
writer(
self.test_path_byte,
raw_data[self.train_size + self.val_size:],
byte=True)
del raw_data, tgt_raw_data, src_raw_data
return self.train_path_byte, self.test_path_byte, self.val_path_byte
def encode(self, string):
return self.byter.encode(string)
# def decode(self, string):
# def body(string):
# string = string.numpy().tolist()
# re = []
# for s in string:
# s = bleu_metrics.token_trim(s,self.EOS_ID)
# s = self.byter.decode(s).decode("utf8")
# re.append(s)
# return re
# string = tf.py_function(body, [string], tf.string)
# return string
def decode(self, string):
return self.byter.decode(string)
def parser_fn(self, string):
"""
All data should be regarded as a numpy array
"""
string = string.numpy().decode('utf8').strip()
# string = string.split(self.byte_token)
# res = (np.array(
# self.byter.encode(string[0], add_eos=True),
# dtype=np.int32)[:self.max_length],
# np.array(
# self.byter.encode(string[1], add_eos=True),
# dtype=np.int32)[:self.max_length])
res = np.array(
self.byter.encode(string, add_eos=True),
dtype=np.int32)[:self.max_length]
return res
def create_dataset(self, data_path):
with tf.device("/cpu:0"):
dataset = tf.data.TextLineDataset(data_path)
# with tf.device("/device:CPU:0"):
dataset = dataset.map(
lambda string: tf.string_split([string], self.byte_token).values,
num_parallel_calls=self.cpus)
dataset = dataset.map(
lambda string: (tf.string_split([string[0]], self.word_token
).values[:self.max_length],
tf.string_split([string[1]], self.word_token).
values[:self.max_length]),
num_parallel_calls=self.cpus)
dataset = dataset.map(
lambda src, tgt: (tf.strings.to_number(src, tf.int32),
tf.strings.to_number(tgt, tf.int32)),
num_parallel_calls=self.cpus)
# dataset = dataset.shuffle(self.shuffle)
# dataset = dataset.map(
# lambda string: (tf.py_function(self.parser_fn, [string[0]], tf.int32), tf.py_function(self.parser_fn, [string[1]], tf.int32)),
# num_parallel_calls=self.cpus)
return dataset
def post_process(self, validation=0.05, test=0.05):
train_path, test_path, val_path = self.cross_validation(
self.source_data_path, self.target_data_path)
train_dataset = self.create_dataset(train_path)
val_dataset = self.create_dataset(val_path)
test_dataset = self.create_dataset(test_path)
return train_dataset, val_dataset, test_dataset
def padding(self, dataset):
batched_dataset = dataset.padded_batch(
self.batch_size,
padded_shapes=(
tf.TensorShape([None]), # source vectors of unknown size
tf.TensorShape([None]), # target vectors of unknown size
),
padding_values=(
self.
PAD_ID, # source vectors padded on the right with src_eos_id
self.
PAD_ID, # target vectors padded on the right with tgt_eos_id
),
drop_remainder=True) # size(target) -- unused
return batched_dataset
def prepare_data(self):
train_dataset, val_dataset, test_dataset = self.post_process()
train_dataset = self.padding(train_dataset)
val_dataset = self.padding(val_dataset)
test_dataset = self.padding(test_dataset)
return train_dataset, val_dataset, test_dataset
def get_raw_train_dataset(self):
with tf.device('/cpu:0'):
return self.create_dataset(self.train_path_byte)
def get_raw_val_dataset(self):
with tf.device('/cpu:0'):
return self.create_dataset(self.val_path_byte)
def get_raw_test_dataset(self):
with tf.device("/cpu:0"):
return self.create_dataset(self.test_path_byte)
def get_train_size(self):
return self.train_size
def get_val_size(self):
return self.val_size
def get_test_size(self):
return self.test_size
# tf.enable_eager_execution()
# DATA_PATH = '/Users/barid/Documents/workspace/batch_data/corpus_fr2eng'
# sentenceHelper = DatasetManager(
# DATA_PATH + "/europarl-v7.fr-en.fr",
# DATA_PATH + "/europarl-v7.fr-en.en",
# batch_size=16,
# shuffle=100)
# # a, b, c = sentenceHelper.prepare_data()
# a, b, c = sentenceHelper.post_process()
#
# for i, e in enumerate(a):
# print(e[0])
# print(i)
# sentenceHelper.byter.decode(e[0].numpy())
# break
# d = a.make_one_shot_iterator()
# d = d.get_next()
<file_sep>/core_model_initializer.py
# encoding=utf-8
import sys
from hyper_and_conf import hyper_param as hyperParam
from hyper_and_conf import hyper_train
import core_lip_main
import core_data_SRCandTGT
from tensorflow.python.client import device_lib
import tensorflow as tf
DATA_PATH = sys.path[0]
SYS_PATH = sys.path[1]
src_data_path = [DATA_PATH + "/corpus/europarl-v7.fr-en.en"]
tgt_data_path = [DATA_PATH + "/corpus/europarl-v7.fr-en.en"]
# TFRECORD = '/home/vivalavida/massive_data/lip_reading_TFRecord/tfrecord_word'
TFRECORD = '/home/vivalavida/massive_data/lip_reading_TFRecord/sentence_TFRECORD'
# TFRECORD = '/Users/barid/Documents/workspace/batch_data/lip_data_TFRecord'
def get_available_cpus():
local_device_protos = device_lib.list_local_devices()
return len([x.name for x in local_device_protos if x.device_type == 'CPU'])
def get_available_gpus():
local_device_protos = device_lib.list_local_devices()
return len([x.name for x in local_device_protos if x.device_type == 'GPU'])
gpu = get_available_gpus()
TRAIN_MODE = 'large' if gpu > 0 else 'test'
hp = hyperParam.HyperParam(TRAIN_MODE, gpu=get_available_gpus())
PAD_ID = tf.cast(hp.PAD_ID, tf.int64)
with tf.device("/cpu:0"):
daedalus = core_lip_main.Daedalus(hp)
# if tf.gfile.Exists('pre_train/vgg16_pre_all'):
# vgg16 = tf.keras.models.load_model('pre_train/vgg16_pre_all')
# else:
# vgg16 = tf.keras.applications.vgg16.VGG16(
# include_top=True, weights='imagenet')
data_manager = core_data_SRCandTGT.DatasetManager(
src_data_path,
tgt_data_path,
batch_size=hp.batch_size,
PAD_ID=hp.PAD_ID,
EOS_ID=hp.EOS_ID,
# shuffle=hp.data_shuffle,
shuffle=hp.data_shuffle,
max_length=hp.max_sequence_length,
tfrecord_path=TFRECORD)
# train_dataset, val_dataset, test_dataset = data_manager.prepare_data()
def get_hp():
return hp
def backend_config():
config = tf.ConfigProto()
# config.graph_options.optimizer_options.global_jit_level = tf.OptimizerOptions.ON_1
config.intra_op_parallelism_threads = 4
config.inter_op_parallelism_threads = 4
# # Don't pre-allocate memory; allocate as-needed
config.gpu_options.allow_growth = True
# Only allow a total of half the GPU memory to be allocated
# config.gpu_options.per_process_gpu_memory_fraction = 0.999
config.allow_soft_placement = True
return config
def input_fn(flag="TRAIN"):
with tf.device('/cpu:0'):
if flag == "VAL":
dataset = data_manager.get_raw_val_dataset()
if flag == "TEST":
dataset = data_manager.get_raw_test_dataset()
if flag == "TRAIN":
dataset = data_manager.get_raw_train_dataset()
else:
assert ("data error")
# repeat once in case tf.keras.fit out range error
dataset = dataset.apply(
tf.data.experimental.shuffle_and_repeat(30000, 1))
return dataset
def pad_sample(dataset, seq2seq=False):
if seq2seq:
dataset = dataset.map(
dataset_prepross_fn,
num_parallel_calls=12 * get_available_gpus()
if get_available_gpus() > 0 else 1)
dataset = dataset.padded_batch(
hp.batch_size,
padded_shapes=(
(
tf.TensorShape([None,
None]), # source vectors of unknown size
tf.TensorShape([None]), # target vectors of unknown size
),
tf.TensorShape([None])),
padding_values=(
(
tf.cast(
hp.PAD_ID, tf.float32
), # source vectors padded on the right with src_eos_id
PAD_ID
# target vectors padded on the right with tgt_eos_id
),
PAD_ID),
drop_remainder=True)
else:
dataset = dataset.padded_batch(
hp.batch_size,
padded_shapes=(
tf.TensorShape([None, None]), # source vectors of unknown size
tf.TensorShape([None]), # target vectors of unknown size
),
padding_values=(
tf.cast(
hp.PAD_ID, tf.float64
), # source vectors padded on the right with src_eos_id
PAD_ID
# target vectors padded on the right with tgt_eos_id
),
drop_remainder=True)
if gpu > 0:
for i in range(gpu):
dataset = dataset.apply(
tf.data.experimental.prefetch_to_device("/GPU:" + str(i)))
else:
dataset = dataset.prefetch(gpu * 8)
return dataset
def get_train_step():
return data_manager.get_train_size() // hp.batch_size
def get_val_step():
return data_manager.get_val_size() // hp.batch_size
def get_test_step():
return data_manager.get_test_size() // hp.batch_size
def dataset_prepross_fn(src, tgt):
return (src, tgt), tgt
def train_input(debug=False):
with tf.device('/cpu:0'):
dataset = input_fn('TRAIN')
dataset = pad_sample(dataset, seq2seq=True)
if debug:
return dataset
iterator = dataset.make_one_shot_iterator()
x, y = iterator.get_next()
return x, y
def val_input():
with tf.device('/cpu:0'):
dataset = input_fn("VAL")
dataset = pad_sample(dataset, seq2seq=True)
iterator = dataset.make_one_shot_iterator()
x, y = iterator.get_next()
return x, y
def model_structure(training=False):
with tf.device('/cpu:0'):
img_input = tf.keras.layers.Input(
shape=[None, 25088], dtype=tf.float32, name='VGG_features')
tgt_input = tf.keras.layers.Input(
shape=[None], dtype=tf.int64, name='tgt_input')
output = daedalus((img_input, tgt_input), training=training)
model = tf.keras.models.Model(
inputs=(img_input, tgt_input), outputs=output)
# if multi_gpu and gpu > 0:
# model = tf.keras.utils.multi_gpu_model(model, gpus=gpu)
return model
def train_model():
return model_structure(True)
def test_model():
return model_structure(False)
def get_metrics():
# evaluation metrics
bleu = hyper_train.Approx_BLEU_Metrics(eos_id=hp.EOS_ID)
accuracy = hyper_train.Padded_Accuracy(hp.PAD_ID)
accuracy_topk = hyper_train.Padded_Accuracy_topk(k=10, pad_id=hp.PAD_ID)
return [bleu, accuracy, accuracy_topk]
def get_optimizer():
return tf.keras.optimizers.Adam()
def get_loss():
return hyper_train.Onehot_CrossEntropy(hp.vocabulary_size)
def get_callbacks():
LRschedule = hyper_train.Dynamic_LearningRate(hp.lr, hp.num_units,
hp.learning_warmup)
TFboard = tf.keras.callbacks.TensorBoard(
log_dir=hp.model_summary_dir,
# histogram_freq=10,
write_images=True,
update_freq=10)
TFchechpoint = tf.keras.callbacks.ModelCheckpoint(
hp.model_checkpoint_dir + '/cp.ckpt', save_weights_only=True)
# BatchTime = hyper_train.BatchTiming()
# SamplesPerSec = hyper_train.SamplesPerSec(hp.batch_size)
# if get_available_gpus() > 0:
# CudaProfile = hyper_train.CudaProfile()
#
# return [
# LRschedule, TFboard, TFchechpoint, BatchTime, SamplesPerSec,
# CudaProfile
# ]
# else:
return [LRschedule, TFboard, TFchechpoint]
def make_parallel(model, gpu_count, ps_device=None, training=True):
if gpu_count <= 1:
return model
if ps_device is None:
ps_device = '/gpu:0'
def get_slice(data, idx, parts):
shape = tf.shape(data)
size = tf.concat([shape[:1] // parts, shape[1:]], axis=0)
stride = tf.concat([shape[:1] // parts, shape[1:] * 0], axis=0)
start = stride * idx
return tf.slice(data, start, size)
outputs_all = []
for i in range(len(model.outputs)):
outputs_all.append([])
# Place a copy of the model on each GPU, each getting a slice of the batch
for i in range(gpu_count):
with tf.device('/gpu:%d' % i):
with tf.name_scope('tower_%d' % i):
inputs = []
# Slice each input into a piece for processing on this GPU
for x in model.inputs:
input_shape = tuple(x.get_shape().as_list())[1:]
slice_n = tf.keras.layers.Lambda(
get_slice,
output_shape=input_shape,
arguments={
'idx': i,
'parts': gpu_count
})(x)
inputs.append(slice_n)
outputs = model(inputs)
if not isinstance(outputs, list):
outputs = [outputs]
# Save all the outputs for merging back together later
for l in range(len(outputs)):
outputs_all[l].append(outputs[l])
# merge outputs on parameter server
with tf.device(ps_device):
merged = []
for outputs in outputs_all:
merged.append(tf.keras.layers.concatenate(outputs, axis=0))
return tf.keras.Model(inputs=model.inputs, outputs=merged)
# model = train_model()
# model.summary()
<file_sep>/sentence_tfrecoder_generator.py
# encoding=utf8
import tensorflow as tf
tf.enable_eager_execution()
import data_image_helper
import data_file_helper as fh
import core_data_SRCandTGT
import six
import os
import visualization
# import visualization
CUDA_VISIBLE_DEVICES = ""
cwd = os.getcwd()
CORPUS_PATH = cwd + '/corpus/europarl-v7.fr-en.en'
print(CORPUS_PATH)
# ROOT_PATH = '/Users/barid/Documents/workspace/batch_data'
# TFRecord_PATH = '/Users/barid/Documents/workspace/batch_data/sentence_lip_data_TFRecord'
# TRAIN_PATH = '/Users/barid/Documents/workspace/alpha/lip_read/lr_train.txt'
ROOT_PATH = '/media/lab/文档/sentence_level_lrs2/main'
TFRecord_PATH = '/media/lab/文档/sentence_level_lrs2/sentence_TFRECORD'
TRAIN_PATH = '/media/lab/文档/sentence_level_lrs2/lr_train_shard_1.txt'
image_parser = data_image_helper.data_image_helper(detector='./cascades/')
text_parser = core_data_SRCandTGT.DatasetManager(
[CORPUS_PATH],
[CORPUS_PATH],
)
BUFFER_SIZE = 200
def get_vgg():
# with tf.device("/cpu:0"):
if tf.gfile.Exists('pre_train/vgg16_pre_all'):
vgg16 = tf.keras.models.load_model('pre_train/vgg16_pre_all')
else:
vgg16 = tf.keras.applications.vgg16.VGG16(
include_top=True, weights='imagenet')
return vgg16
vgg16 = get_vgg()
vgg16_flatten = vgg16.get_layer('flatten')
vgg16_output = vgg16_flatten.output
vgg16.input
model = tf.keras.Model(vgg16.input, vgg16_output)
def _int64_feature(value):
"""Wrapper for inserting int64 features into Example proto."""
if not isinstance(value, list):
value = [value]
return tf.train.Feature(int64_list=tf.train.Int64List(value=value))
def _float_feature(value):
"""Wrapper for inserting float features into Example proto."""
if not isinstance(value, list):
value = [value]
return tf.train.Feature(float_list=tf.train.FloatList(value=value))
def _bytes_feature(value):
"""Wrapper for inserting bytes features into Example proto."""
if six.PY3 and isinstance(value, six.text_type):
value = six.binary_type(value, encoding='utf-8')
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
def get_file():
files = []
with open(TRAIN_PATH, 'r') as f:
files = f.readlines()
files = [ROOT_PATH + '/' + f.rstrip() for f in files]
return files
def sentence_reader(path):
files = get_file(path)
for f in files:
v = f + '.mp4'
v_data = image_parser.get_raw_dataset(path=v)
w = f + '.txt'
w = text_parser.one_file_encoder(w, 0)
# def word_reader(path):
# video, _, word = fh.read_file(path)
# total = len(video)
# # raw_data = []
# tf.logging.info("Total train samples:{}".format(len(video)))
# for k, v in enumerate(video):
# v_data = image_parser.get_raw_dataset(paths=v)
# v_data = tf.reshape(model(v_data), [-1])
# w = text_parser.encode(word[k])
# # tf.logging.info("Train sample:{}".format(k))
# visualization.percent(k, total)
# yield (v_data, w)
def tfrecord_generater(record_dir, raw_data, index):
# with tf.device("/cpu:0"):
num_train = 0
# num_test = 0
prefix_train = record_dir + "/train_TFRecord_"
# prefix_test = record_dir + "/test_TFRecord_"
def all_exist(filepaths):
"""Returns true if all files in the list exist."""
for fname in filepaths:
if not tf.gfile.Exists(fname):
return False
return True
def txt_line_iterator(path):
with tf.gfile.Open(path) as f:
for line in f:
yield line.strip()
def dict_to_example(img, txt):
"""Converts a dictionary of string->int to a tf.Example."""
features = {}
features['img'] = _float_feature(img)
features['text'] = _int64_feature(txt)
return tf.train.Example(features=tf.train.Features(feature=features))
checker = -1
shard = 0
options = tf.python_io.TFRecordOptions(
tf.python_io.TFRecordCompressionType.GZIP)
for k, f in enumerate(raw_data):
v = f + '.mp4'
v_data = image_parser.get_raw_dataset(path=v)
w = f + '.txt'
w = text_parser.one_file_encoder(w, 0)
# v_data = image_parser.get_raw_dataset(path=v)
# import pdb; pdb.set_trace()
if len(v_data.shape) == 4:
v_data = tf.reshape(model(v_data), [-1])
# w = text_parser.encode(v[1])
if checker == shard:
pass
else:
shard = k // BUFFER_SIZE
train_writers = tf.python_io.TFRecordWriter(
prefix_train + str(index * 1000000 + shard),
options=options)
example = dict_to_example(
v_data.numpy().tolist(),
w,
)
train_writers.write(example.SerializeToString())
checker = int((k + 1) / BUFFER_SIZE)
num_train += 1
if num_train % BUFFER_SIZE == 0:
tf.logging.info("Train samples are : {}".format(num_train))
if checker > shard:
print("TFRecord {} is completed.".format(prefix_train +
str(shard)))
# print("Test samples are : {}".format(num_test))
train_writers.close()
visualization.percent(k, len(raw_data))
files = get_file()
tfrecord_generater(TFRecord_PATH, files, 1)
# sentence_reader(TRAIN_PATH)
# files = tf.data.Dataset.list_files(TFRecord_PATH + "/train_TFRecord_100*")
# dataset = tf.data.TFRecordDataset(
# filenames=files, compression_type='GZIP', buffer_size=BUFFER_SIZE)
#
#
# def _parse_function(example_proto):
# # Parse the input tf.Example proto using the dictionary above.
# feature_description = {
# 'text': tf.VarLenFeature(tf.int64),
# 'img': tf.VarLenFeature(tf.float32),
# }
# parsed = tf.parse_single_example(example_proto, feature_description)
# img = tf.sparse_tensor_to_dense(parsed["img"])
# text = tf.sparse_tensor_to_dense(parsed["text"])
# return img, text
#
#
# dataset = dataset.map(_parse_function)
# #
# for d in dataset:
# # print(d['img'].values)
# # print(tf.reshape(d['img'].values, [-1,224,224,3]))
# print(d[0])
# break
<file_sep>/core_Transformer_model.py
# encoder=utf8
import tensorflow as tf
from hyper_and_conf import hyper_layer
# from tensorflow.python.layers import core as core_layer
# import numpy as np
from hyper_and_conf import hyper_beam_search as beam_search
class Prometheus(tf.keras.Model):
"""
Transformer
"""
def __init__(self,
max_seq_len,
vocabulary_size,
embedding_size=512,
batch_size=64,
num_units=512,
num_heads=6,
num_encoder_layers=6,
num_decoder_layers=6,
dropout=0.4,
eos_id=1,
pad_id=0,
external_embedding=False,
shared_embedding=None):
super(Prometheus, self).__init__(name='transformer')
self.max_seq_len = max_seq_len
self.vocabulary_size = vocabulary_size
# self.vocabulary_size = 32000
# self.src_vocabulary_size = src_vocabulary_size
# self.tgt_vocabulary_size = tgt_vocabulary_size
self.embedding_size = embedding_size
self.batch_size = batch_size
self.num_units = num_units
self.num_heads = num_heads
self.num_encoder_layers = num_encoder_layers
self.num_decoder_layers = num_decoder_layers
self.dropout = dropout
self.eos_id = eos_id
self.pad_id = pad_id
self.possition_encoding = hyper_layer.Positional_Encoding(
self.num_units)
self.en_att = []
self.en_ffn = []
self.de_att = []
self.de_ffn = []
self.de_mask_att = []
self.negtive_infinit = -1e32
self.norm = hyper_layer.LayerNorm()
for i in range(self.num_encoder_layers):
self.en_att.append(
hyper_layer.Multi_Head_Attention(
num_heads=self.num_heads,
num_units=self.num_units,
dropout=self.dropout,
masked_attention=False,
name="enc_multi_att_%d" % i))
self.en_ffn.append(
hyper_layer.Feed_Forward_Network(
num_units=4 * self.num_units,
dropout=self.dropout,
name="enc_ffn_%d" % i))
for i in range(self.num_decoder_layers):
self.de_att.append(
hyper_layer.Multi_Head_Attention(
num_heads=self.num_heads,
num_units=self.num_units,
dropout=self.dropout,
masked_attention=False,
name="de_multi_att_%d" % i))
self.de_ffn.append(
hyper_layer.Feed_Forward_Network(
num_units=4 * self.num_units,
dropout=self.dropout,
name="dec_ffn_%d" % i))
self.de_mask_att.append(
hyper_layer.Multi_Head_Attention(
num_heads=self.num_heads,
num_units=self.num_units,
dropout=self.dropout,
masked_attention=True,
name="masked_multi_att_%d" % i))
self.shared_embedding = shared_embedding
# self.shared_embedding = hyper_layer.EmbeddingSharedWeights(
# self.vocabulary_size, self.embedding_size, self.pad_id)
if self.embedding_size != self.num_units:
self.src_dense = tf.keras.layers.Dense(
self.num_units, name='src_embedding_dense')
self.tgt_dense = tf.keras.layers.Dense(
self.embedding_size, name='tgt_embedding_dense')
def build(self, input_shape):
self.build = True
def Encoder(self, inputs, padding_matrix=None, length=None,
training=False):
Q, K, V = inputs
inputs = Q
with tf.name_scope("encoder"):
if training is not False:
dropout_mask_inputs = tf.keras.backend.dropout(
tf.ones_like(inputs), self.dropout)
inputs = inputs * dropout_mask_inputs
if length is None:
length = tf.shape(inputs)[1]
# src_input = tf.multiply(tf.cast(inputs, tf.float32), self.num_units**0.5)
src_input = inputs * self.num_units**0.5
if padding_matrix is not None:
padding_mask_bias = self.padding_bias(padding_matrix)
else:
padding_mask_bias = 0
positional_input = self.possition_encoding(length)
inputs = src_input + positional_input
Q = K = V = self.norm(Q)
K = self.norm(K)
V = self.norm(V)
outputs = 0
for i in range(self.num_encoder_layers):
with tf.name_scope('layer_%d' % i):
if i == 0:
multi_att = self.en_att[i](
Q, (K, V), padding_mask_bias, training=training)
else:
multi_att = self.en_att[i](
outputs, (outputs, outputs),
padding_mask_bias,
training=training)
multi_att = self.norm(multi_att + Q)
outputs = self.en_ffn[i](multi_att, training=training)
outputs = self.norm(outputs + multi_att)
return outputs
def Decoder(self,
inputs,
enc=None,
self_mask_bias=None,
padding_matrix=None,
length=None,
cache=None,
training=False):
with tf.name_scope('decoder'):
if enc is None:
assert ('Using maksed_attention, please give enc')
if training is not False:
dropout_mask_inputs = tf.keras.backend.dropout(
tf.ones_like(inputs), self.dropout)
inputs = inputs * dropout_mask_inputs
dropout_mask_enc = tf.keras.backend.dropout(
tf.ones_like(enc), self.dropout)
enc = enc * dropout_mask_enc
if length is None:
length = tf.shape(inputs)[1]
# src_input = tf.multiply(tf.cast(inputs, tf.float32), self.num_units**0.5)
src_input = inputs * self.num_units**0.5
if self_mask_bias is None:
self_mask_bias = self.masked_self_attention_bias(length)
if padding_matrix is not None:
padding_mask_bias = self.padding_bias(padding_matrix)
else:
padding_mask_bias = 0
positional_input = self.possition_encoding(length)
inputs = src_input + positional_input
outputs = self.norm(inputs)
K_V = self.norm(inputs)
i = 0
for i in range(self.num_decoder_layers):
if cache is not None:
# Combine cached keys and values with new keys and values.
K_V = tf.concat((cache[str(i)], outputs), axis=1)
# Update cache
cache[str(i)] = K_V
with tf.name_scope('layer_%d' % i):
de_outputs = self.de_mask_att[i](
outputs, (K_V, K_V),
self_mask_bias,
cache=cache,
training=training)
de_outputs = self.norm(outputs + de_outputs)
multi_att = self.de_att[i](
de_outputs, (enc, enc),
padding_mask_bias,
training=training)
multi_att = self.norm(multi_att + de_outputs)
outputs = self.de_ffn[i](multi_att, training=training)
outputs = self.norm(outputs + multi_att)
return outputs
def call(self, inputs, training=False):
# src, tgt = tf.split(inputs, 2, 0)
# inputs = (src, tgt)
if training:
return self.train_model(inputs)
else:
return self.inference_model(inputs, training=False)
def train_model(self, inputs, training=True):
# src_input, tgt = tf.split(inputs, 2)
src_input, tgt = inputs
src_input = tf.cast(src_input, tf.int64)
tgt = tf.cast(tgt, tf.int64)
src_padding = tf.to_float(tf.equal(src_input, self.pad_id))
embedding_src_input = self.shared_embedding(src_input)
embedding_tgt_input = self.shared_embedding(tgt)
embedding_tgt_input = tf.pad(embedding_tgt_input,
[[0, 0], [1, 0], [0, 0]])[:, :-1, :]
if self.embedding_size != self.num_units:
embedding_src_input = self.src_dense(embedding_src_input)
embedding_tgt_input = self.tgt_dense(embedding_tgt_input)
enc = self.Encoder(
embedding_src_input, padding_matrix=src_padding, training=training)
dec = self.Decoder(
embedding_tgt_input,
enc,
padding_matrix=src_padding,
training=training)
# projection = self.projection(self.outputs)
# logits = tf.keras.layers.Softmax()(projection)
logits = self.shared_embedding.linear(dec)
return logits
def inference_model(self, inputs, training):
if isinstance(inputs, list) or isinstance(inputs, tuple):
src_input, _ = inputs
else:
src_input = inputs
initial_size = tf.shape(inputs)[0]
src_padding = tf.to_float(tf.equal(src_input, self.pad_id))
src_input = tf.cast(src_input, tf.int32)
embedding_src_input = self.shared_embedding(src_input)
if self.embedding_size != self.num_units:
embedding_src_input = self.src_dense(embedding_src_input)
enc = self.Encoder(
embedding_src_input, padding_matrix=src_padding, training=False)
# initial_ids = tf.constant( self.sos_id, shape=[self.batch_size], dtype=tf.int32)
initial_ids = tf.zeros([initial_size], dtype=tf.int32)
cache = dict()
cache['enc'] = enc
cache['src_padding'] = src_padding
for i in range(self.num_decoder_layers):
cache[str(i)] = tf.zeros([initial_size, 0, self.num_units])
# cache[str(i)] = tf.constant( self.sos_id, shape=[self.batch_size], dtype=tf.float32)
# cache['K'] = tf.zeros([self.batch_size, 0, self.num_units])
# cache['V'] = tf.zeros([self.batch_size, 0, self.num_units])
logits_body = self.symbols_to_logits_fn(self.max_seq_len)
decoded_ids, scores = beam_search.sequence_beam_search(
symbols_to_logits_fn=logits_body,
initial_ids=initial_ids,
initial_cache=cache,
vocab_size=self.vocabulary_size,
beam_size=4,
alpha=0.6,
max_decode_length=self.max_seq_len,
eos_id=self.eos_id)
# Get the top sequence for each batch element
top_decoded_ids = decoded_ids[:, 0, 1:]
# top_scores = scores[:, 0]
# self.attention = cache['attention']
return top_decoded_ids
def masked_self_attention_bias(self, length):
valid_locs = tf.matrix_band_part(tf.ones([length, length]), -1, 0)
valid_locs = tf.reshape(valid_locs, [1, 1, length, length])
decoder_bias = self.negtive_infinit * (1.0 - valid_locs)
return decoder_bias
def padding_bias(self, padding):
attention_bias = padding * self.negtive_infinit
attention_bias = tf.expand_dims(
tf.expand_dims(attention_bias, axis=1), axis=1)
return attention_bias
def symbols_to_logits_fn(self, max_seq_len):
inference_possition = self.possition_encoding(max_seq_len)
masked_attention_bias = self.masked_self_attention_bias(max_seq_len)
def body(ids, i, cache):
decoder_input = ids[:, -1:]
decoder_input = self.shared_embedding(decoder_input)
self_mask_bias = masked_attention_bias[:, :, i:i + 1, :i + 1]
decoder_input += inference_possition[i:i + 1]
if self.embedding_size != self.num_units:
decoder_input = self.src_dense(decoder_input)
# Preprocess decoder input by getting embeddings and adding timing signal.
outputs = self.Decoder(
decoder_input,
cache['enc'],
padding_matrix=cache['src_padding'],
self_mask_bias=self_mask_bias,
cache=cache,
training=False)
# projection = self.projection(outputs)
logits = self.shared_embedding.linear(outputs)
logits = tf.squeeze(logits, axis=[1])
return logits, cache
return body
def get_attention(self):
self.attention = self.de_att[self.num_decoder_layers -
1].get_attention()
return self.attention
<file_sep>/server.py
from werkzeug.utils import secure_filename
from flask import Flask, render_template, jsonify, request, make_response, send_from_directory, abort
# from flask_cors import CORS
import server_text
import time
import json
import os
import base64
import cv2
import numpy as np
app = Flask(__name__)
#CORS(app, supports_credentials=True)
UPLOAD_FOLDER = 'upload'
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
basedir = os.path.abspath(os.path.dirname(__file__))
ALLOWED_EXTENSIONS = set(['png', 'jpg', 'JPG', 'PNG', 'gif', 'GIF'])
model = server_text.text_helper(mode = 'test')
video = None
cnt = 0
FLAG = False
def allowed_file(filename):
return '.' in filename and filename.rsplit('.', 1)[1] in ALLOWED_EXTENSIONS
@app.route('/upload')
def upload_test():
return render_template('up.html')
# json
@app.route('/up_photo', methods=['POST', 'GET'], strict_slashes=False)
def upload():
global cnt, FLAG, video
if(not os.path.exists('../server/')):
os.makedirs('../server/')
img = request.values['photo']
s = request.values['s']
img = img.replace('data:image/png;base64,', '')
img = base64.b64decode(img)
if(FLAG == False and s == 'ok'):
FLAG = True
cnt = 0
video = cv2.VideoWriter('../server/output.mp4',cv2.VideoWriter_fourcc(*'XVID'), 20.0, (720,480))
if img and video and s == 'ok' and FLAG:
with open('../server/p_' + str(cnt) + '.png', 'wb') as fdecode:
fdecode.write(img)
tmp = cv2.imread('../server/p_' + str(cnt) + '.png')
video.write(tmp)
cnt += 1
fdecode.close()
rst = make_response(jsonify({"success": 0, "flag": 0, "msg": "you are success"}))
rst.headers['Access-Control-Allow-Origin'] = '*'
return rst, 201
else:
rst_flag = 2
print("ok")
msg = ''
if(video != None):
rst_flag = 1
video.release()
video = None
FLAG = False
cnt = 0
word = model.get_text('../server/output.mp4')
for w in word:
msg += w
print(msg)
rst = make_response(jsonify({"success": 0, "flag": rst_flag, "msg": msg}))
rst.headers['Access-Control-Allow-Origin'] = '*'
return rst, 201
# show photo
@app.route('/show', methods=['GET', 'POST'])
def show_txt():
pass
if __name__ == '__main__':
app.run(debug=True, host = '0.0.0.0', port = 5000)
| 3487ede072600dfc22022a75d7e34b9de91b091f | [
"Python"
] | 33 | Python | JZX555/lip_read | 0e136db04d8a82c1fb00dfada4426298ce86f86a | a14629f7c520daab2c85af8d2e8eca3e10e9034d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.